In 6.0.0 startup can be extremely slow when checking many config items
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.config |
Fix Released
|
High
|
Unassigned |
Bug Description
I have a script which imports a nova module which itself imports nova.conf, resulting in all the nova.conf options being checked (during import). In 1.5.2 this goes by quickly. In 1.6.0 it takes minutes.
This appears to happening because of the changes in commit bdba34f7 which adds information about which file a given config option comes from. If nova.conf is involved the number of config options is enormous and the inspect is happening for each time (not each file that has items). 871 times in my tests. inspect, presumably, is not being particularly performant, or something else in the processing nearby.
Before we try to fix this (not sure how) I'll check with jaypipes to make sure that his requirements for the Location feature are still relevant not sure they are.
Initially, I thought this was related to the use of the --config-file argument, but turns out that makes no difference/
In the meantime we may wish to make sure this doesn't get into global-requirements (it's not there yet).
summary: |
- In 1.6.0 startup can be extremely slow when checking many config items + In 6.0.0 startup can be extremely slow when checking many config items |
FWIW, there were a couple of other issues found with this release that are currently blocking it from g-r, so there's no immediate concern on that front. Clearly we need to fix this before the next release though.