[qa][openstackclient] Debugging devstack slowness

Dean Troyer dtroyer at gmail.com
Tue Aug 6 19:44:36 UTC 2019


On Tue, Aug 6, 2019 at 11:42 AM Chris Dent <cdent+os at anticdent.org> wrote:
> If we are in a situation where name to id and id to name
> translations are slow at the services' API layer, isn't that a
> really big bug? One where the fixing is beneficial to everyone,
> including devstack users?

While the name->ID lookup is an additional API round trip, it does not
cause an additional python startup scan, which is the major killer
here.  In fact, it is possible that there is more than one lookup and
that at least one will always be done because we do not know if that
value is a name or an ID.  The GET is done in any case because nearly
every time (in non-create operations) we probably want the full object
anyway.

I also played with starting OSC as a background process a while back,
it actually does work pretty well and with a bit more error handling
would have been good enough(tm)[0].  The major concern with it then
was it was not representative of how people actually use OSC and
changed the testing value we get from doing that.

dt

[0] Basically run interactive mode in background, plumb up
stdin/stdout to some descriptors and off to the races.

-- 
Dean Troyer
dtroyer at gmail.com



More information about the openstack-discuss mailing list