Performance: use import_tasks for check-containers.yml
Including tasks has a performance penalty when compared with importing tasks. If the include has a condition associated with it, then the overhead of the include may be lower than the overhead of skipping all imported tasks. In the case of the check-containers.yml include, the included file only has a single task, so the overhead of skipping this task will not be greater than the overhead of the task import. It therefore makes sense to switch to use import_tasks there. Partially-Implements: blueprint performance-improvements Change-Id: I65d911670649960708b9f6a4c110d1a7df1ad8f7
This commit is contained in:
parent
da1d14b186
commit
9702d4c3c3
@ -96,5 +96,5 @@
|
||||
notify:
|
||||
- "Restart aodh-api container"
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -142,5 +142,5 @@
|
||||
notify:
|
||||
- Restart {{ item.key }} container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -82,5 +82,5 @@
|
||||
notify:
|
||||
- Restart {{ item.key }} container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -391,5 +391,5 @@
|
||||
notify:
|
||||
- "Restart {{ item.key }} container"
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -52,5 +52,5 @@
|
||||
notify:
|
||||
- Restart chrony container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -127,5 +127,5 @@
|
||||
notify:
|
||||
- Restart cinder-volume container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -120,5 +120,5 @@
|
||||
notify:
|
||||
- Restart {{ item.key }} container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -57,5 +57,5 @@
|
||||
notify:
|
||||
- Restart collectd container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -397,5 +397,5 @@
|
||||
- common_services['kolla-toolbox'] | service_enabled_and_mapped_to_host
|
||||
- api_address_family == "ipv6"
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -97,5 +97,5 @@
|
||||
notify:
|
||||
- Restart cyborg-api container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -152,5 +152,5 @@
|
||||
notify:
|
||||
- Restart {{ item.key }} container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -77,5 +77,5 @@
|
||||
notify:
|
||||
- Restart elasticsearch-curator container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -29,5 +29,5 @@
|
||||
when:
|
||||
- etcd_enable_tls | bool
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -96,5 +96,5 @@
|
||||
notify:
|
||||
- "Restart {{ item.key }} container"
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -156,5 +156,5 @@
|
||||
notify:
|
||||
- Restart glance-tls-proxy container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -102,5 +102,5 @@
|
||||
notify:
|
||||
- Restart {{ item.key }} container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -103,5 +103,5 @@
|
||||
notify:
|
||||
- Restart grafana container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -147,5 +147,5 @@
|
||||
notify:
|
||||
- Restart haproxy container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -110,5 +110,5 @@
|
||||
notify:
|
||||
- Restart heat-api-cfn container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -136,5 +136,5 @@
|
||||
when:
|
||||
- kolla_copy_ca_into_containers | bool or horizon_enable_tls_backend | bool
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -43,5 +43,5 @@
|
||||
notify:
|
||||
- Restart influxdb container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -244,5 +244,5 @@
|
||||
notify:
|
||||
- "Restart {{ item.key }} container"
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -25,5 +25,5 @@
|
||||
notify:
|
||||
- "Restart {{ item.key }} container"
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -41,5 +41,5 @@
|
||||
notify:
|
||||
- Restart kafka container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -83,5 +83,5 @@
|
||||
notify:
|
||||
- Restart karbor-protection container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -230,5 +230,5 @@
|
||||
notify:
|
||||
- Restart keystone-ssh container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -47,5 +47,5 @@
|
||||
notify:
|
||||
- Restart kibana container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -98,5 +98,5 @@
|
||||
notify:
|
||||
- Restart kuryr container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -82,5 +82,5 @@
|
||||
notify:
|
||||
- Restart {{ item.key }} container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -111,5 +111,5 @@
|
||||
notify:
|
||||
- "Restart {{ item.key }} container"
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -110,5 +110,5 @@
|
||||
notify:
|
||||
- restart mariadb-clustercheck
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -25,5 +25,5 @@
|
||||
- service.enabled | bool
|
||||
notify: Restart memcached container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -100,5 +100,5 @@
|
||||
notify:
|
||||
- "Restart mistral-event-engine container"
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -385,5 +385,5 @@
|
||||
notify:
|
||||
- Restart monasca-grafana container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -38,5 +38,5 @@
|
||||
notify:
|
||||
- Restart multipathd container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -81,5 +81,5 @@
|
||||
notify:
|
||||
- "Restart {{ item.key }} container"
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -399,5 +399,5 @@
|
||||
notify:
|
||||
- "Restart {{ item.0 }} container"
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -193,5 +193,5 @@
|
||||
notify:
|
||||
- "Restart {{ item.key }} container"
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -83,5 +83,5 @@
|
||||
notify:
|
||||
- "Restart {{ item.key }} container"
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -139,5 +139,5 @@
|
||||
notify:
|
||||
- Restart octavia-health-manager container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -53,5 +53,5 @@
|
||||
notify:
|
||||
- "Restart openvswitch-db-server container"
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -25,5 +25,5 @@
|
||||
notify:
|
||||
- Restart {{ item.key }} container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -55,5 +55,5 @@
|
||||
hugepage_mountpoint: "{{ ovs_hugepage_mountpoint }}"
|
||||
ovs_physical_port_policy: "{{ ovs_physical_port_policy }}"
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -96,5 +96,5 @@
|
||||
notify:
|
||||
- Restart panko-api container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -110,5 +110,5 @@
|
||||
notify:
|
||||
- "Restart {{ item.key }} container"
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -213,5 +213,5 @@
|
||||
- inventory_hostname in groups[service.group]
|
||||
- service.enabled | bool
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -61,5 +61,5 @@
|
||||
notify:
|
||||
- Restart qdrouterd container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -101,5 +101,5 @@
|
||||
notify:
|
||||
- Restart {{ item.key }} container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -103,5 +103,5 @@
|
||||
- Restart rabbitmq container (first node)
|
||||
- Restart rabbitmq container (rest of nodes)
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -79,5 +79,5 @@
|
||||
notify:
|
||||
- Restart rally container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -38,5 +38,5 @@
|
||||
notify:
|
||||
- Restart {{ item.key }} container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -82,5 +82,5 @@
|
||||
notify:
|
||||
- Restart {{ item.key }} container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -81,5 +81,5 @@
|
||||
notify:
|
||||
- Restart {{ item.key }} container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -82,5 +82,5 @@
|
||||
notify:
|
||||
- Restart {{ item.key }} container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -46,5 +46,5 @@
|
||||
notify:
|
||||
- Restart {{ item.key }} container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -49,5 +49,5 @@
|
||||
notify:
|
||||
- Restart {{ item.key }} container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -61,5 +61,5 @@
|
||||
notify:
|
||||
- Restart storm-nimbus container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -82,5 +82,5 @@
|
||||
notify:
|
||||
- Restart {{ item.key }} container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -63,5 +63,5 @@
|
||||
notify:
|
||||
- Restart telegraf container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -46,5 +46,5 @@
|
||||
notify:
|
||||
- Restart tempest container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -103,5 +103,5 @@
|
||||
notify:
|
||||
- Restart {{ item.key }} container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -109,5 +109,5 @@
|
||||
notify:
|
||||
- Restart {{ item.key }} container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -31,5 +31,5 @@
|
||||
notify:
|
||||
- Restart vmtp container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -79,5 +79,5 @@
|
||||
notify:
|
||||
- Restart {{ item.key }} container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -54,5 +54,5 @@
|
||||
notify:
|
||||
- Restart zookeeper container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
@ -95,5 +95,5 @@
|
||||
notify:
|
||||
- Restart {{ item.key }} container
|
||||
|
||||
- include_tasks: check-containers.yml
|
||||
- import_tasks: check-containers.yml
|
||||
when: kolla_action != "config"
|
||||
|
Loading…
Reference in New Issue
Block a user