This template was used to time the stack creation with
count=40 and count=80 against heat-master, the previous
change I2b00285514235834131222012408d2b5b2b37d30
and this change. Here are the results:
Stack heat-master-40 CREATE_COMPLETE
real 1m9.103s
Stack root-stack-id-40 CREATE_COMPLETE
real 0m59.233s
Stack count-total-resources-40 CREATE_COMPLETE
real 0m43.308s
Stack heat-master-80 CREATE_COMPLETE
real 2m47.190s
Stack root-stack-id-80 CREATE_COMPLETE
real 2m16.743s
Stack count-total-resources-80 CREATE_COMPLETE
real 1m15.288s
Also, the test template in bug #1489548 took 3 minutes
to create (vs the originally reported 13 minutes).
Reviewed: https:/ /review. openstack. org/226135 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=5576ffd249e 251abab87fc954f 778e2f9b003cfe
Committed: https:/
Submitter: Jenkins
Branch: master
commit 5576ffd249e251a bab87fc954f778e 2f9b003cfe
Author: Steve Baker <email address hidden>
Date: Tue Sep 22 10:50:23 2015 +1200
Use root_stack_id for stack_count_ total_resources
The current implementation of stack_count_ total_resources
scales very poorly for stacks with many nested stacks.
This change replaces the implementation with a single count root_stack_ id column.
query filtering on the resource.
The following template was used for performance testing:
heat_ template_ version: 2015-04-30 :ResourceGroup
resource_ def:
description: >
Stress test, create many stacks in a RG
parameters:
count:
type: number
default: 4
resources:
dummies:
type: OS::Heat:
properties:
count: {get_param: count}
type: dummy_node.yaml
# dummy_node.yaml template_ version: 2015-04-30 :RandomString :ResourceGroup
resource_ def: :RandomString
heat_
parameters:
resources:
random:
type: OS::Heat:
randoms:
type: OS::Heat:
properties:
count: 1
type: OS::Heat:
This template was used to time the stack creation with 34131222012408d 2b5b2b37d30
count=40 and count=80 against heat-master, the previous
change I2b002855142358
and this change. Here are the results:
Stack heat-master-40 CREATE_COMPLETE
real 1m9.103s
Stack root-stack-id-40 CREATE_COMPLETE
real 0m59.233s
Stack count-total- resources- 40 CREATE_COMPLETE
real 0m43.308s
Stack heat-master-80 CREATE_COMPLETE
real 2m47.190s
Stack root-stack-id-80 CREATE_COMPLETE
real 2m16.743s
Stack count-total- resources- 80 CREATE_COMPLETE
real 1m15.288s
Also, the test template in bug #1489548 took 3 minutes
to create (vs the originally reported 13 minutes).
Change-Id: Iab3eaaba3ece16 e14db3231f1c725 bca3c8985c2
Closes-Bug: 1489548