Bug 1257401
| Summary: | Extended delay between calls to create nova instances from heat-engine | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Mark Wagner <mwagner> |
| Component: | openstack-heat | Assignee: | Steven Hardy <shardy> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Amit Ugol <augol> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 7.0 (Kilo) | CC: | calfonso, jslagle, mburns, mwagner, rhel-osp-director-maint, sbaker, shardy, yeylon, zbitter |
| Target Milestone: | z4 | Keywords: | Triaged, ZStream |
| Target Release: | 7.0 (Kilo) | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-heat-2015.1.0-2.el7ost | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-01-06 22:53:47 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Mark Wagner
2015-08-27 02:53:34 UTC
I did some profiling today, and discovered that most of the time is getting eaten up doing recursive calculation of the number of resources. This is something we made optional (can be disabled via config file) during Liberty via the Unlimited option max_resources_per_stack - see this patch: https://review.openstack.org/#/c/185894/7 Unfortunately that isn't yet backported to kilo (I'm working on a backport, few issues to sort out with the tests but otherwise should be straight forward), so to prove this is the bottleneck, it's possible to comment the validation in the code: In my testing I observed a 500% performance penalty for having the resource number check enabled (admittedly something of a worst-case due to tailoring a template to magnify the issue). https://github.com/openstack/heat/blob/stable/kilo/heat/engine/resources/stack_resource.py#L197 The root_stack and total resource count thing has long been acknowledged as a problem in the heat community, but it wasn't until my testing today that I fully understood the severity of the impact, particularly for highly nested deployments like tripleo. I raised an upstream bug to discuss disabling the check by default (this was rejected previously, but worth revisiting I think, this discussion shouldn't influence the viabillty of the backport of the unlimited option mentioned above); https://bugs.launchpad.net/heat/+bug/1489548 Stable/kilo backport proposed for the unlimited option mentioned in comment #4: https://review.openstack.org/#/c/218193/ |