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:
Mark Goddard 2020-06-29 14:48:43 +01:00
parent da1d14b186
commit 9702d4c3c3
66 changed files with 66 additions and 66 deletions

View File

@ -96,5 +96,5 @@
notify:
- "Restart aodh-api container"
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -142,5 +142,5 @@
notify:
- Restart {{ item.key }} container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -82,5 +82,5 @@
notify:
- Restart {{ item.key }} container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -391,5 +391,5 @@
notify:
- "Restart {{ item.key }} container"
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -52,5 +52,5 @@
notify:
- Restart chrony container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -127,5 +127,5 @@
notify:
- Restart cinder-volume container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -120,5 +120,5 @@
notify:
- Restart {{ item.key }} container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -57,5 +57,5 @@
notify:
- Restart collectd container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -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"

View File

@ -97,5 +97,5 @@
notify:
- Restart cyborg-api container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -152,5 +152,5 @@
notify:
- Restart {{ item.key }} container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -77,5 +77,5 @@
notify:
- Restart elasticsearch-curator container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -29,5 +29,5 @@
when:
- etcd_enable_tls | bool
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -96,5 +96,5 @@
notify:
- "Restart {{ item.key }} container"
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -156,5 +156,5 @@
notify:
- Restart glance-tls-proxy container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -102,5 +102,5 @@
notify:
- Restart {{ item.key }} container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -103,5 +103,5 @@
notify:
- Restart grafana container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -147,5 +147,5 @@
notify:
- Restart haproxy container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -110,5 +110,5 @@
notify:
- Restart heat-api-cfn container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -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"

View File

@ -43,5 +43,5 @@
notify:
- Restart influxdb container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -244,5 +244,5 @@
notify:
- "Restart {{ item.key }} container"
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -25,5 +25,5 @@
notify:
- "Restart {{ item.key }} container"
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -41,5 +41,5 @@
notify:
- Restart kafka container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -83,5 +83,5 @@
notify:
- Restart karbor-protection container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -230,5 +230,5 @@
notify:
- Restart keystone-ssh container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -47,5 +47,5 @@
notify:
- Restart kibana container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -98,5 +98,5 @@
notify:
- Restart kuryr container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -82,5 +82,5 @@
notify:
- Restart {{ item.key }} container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -111,5 +111,5 @@
notify:
- "Restart {{ item.key }} container"
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -110,5 +110,5 @@
notify:
- restart mariadb-clustercheck
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -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"

View File

@ -100,5 +100,5 @@
notify:
- "Restart mistral-event-engine container"
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -385,5 +385,5 @@
notify:
- Restart monasca-grafana container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -38,5 +38,5 @@
notify:
- Restart multipathd container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -81,5 +81,5 @@
notify:
- "Restart {{ item.key }} container"
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -399,5 +399,5 @@
notify:
- "Restart {{ item.0 }} container"
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -193,5 +193,5 @@
notify:
- "Restart {{ item.key }} container"
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -83,5 +83,5 @@
notify:
- "Restart {{ item.key }} container"
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -139,5 +139,5 @@
notify:
- Restart octavia-health-manager container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -53,5 +53,5 @@
notify:
- "Restart openvswitch-db-server container"
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -25,5 +25,5 @@
notify:
- Restart {{ item.key }} container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -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"

View File

@ -96,5 +96,5 @@
notify:
- Restart panko-api container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -110,5 +110,5 @@
notify:
- "Restart {{ item.key }} container"
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -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"

View File

@ -61,5 +61,5 @@
notify:
- Restart qdrouterd container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -101,5 +101,5 @@
notify:
- Restart {{ item.key }} container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -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"

View File

@ -79,5 +79,5 @@
notify:
- Restart rally container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -38,5 +38,5 @@
notify:
- Restart {{ item.key }} container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -82,5 +82,5 @@
notify:
- Restart {{ item.key }} container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -81,5 +81,5 @@
notify:
- Restart {{ item.key }} container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -82,5 +82,5 @@
notify:
- Restart {{ item.key }} container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -46,5 +46,5 @@
notify:
- Restart {{ item.key }} container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -49,5 +49,5 @@
notify:
- Restart {{ item.key }} container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -61,5 +61,5 @@
notify:
- Restart storm-nimbus container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -82,5 +82,5 @@
notify:
- Restart {{ item.key }} container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -63,5 +63,5 @@
notify:
- Restart telegraf container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -46,5 +46,5 @@
notify:
- Restart tempest container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -103,5 +103,5 @@
notify:
- Restart {{ item.key }} container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -109,5 +109,5 @@
notify:
- Restart {{ item.key }} container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -31,5 +31,5 @@
notify:
- Restart vmtp container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -79,5 +79,5 @@
notify:
- Restart {{ item.key }} container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -54,5 +54,5 @@
notify:
- Restart zookeeper container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"

View File

@ -95,5 +95,5 @@
notify:
- Restart {{ item.key }} container
- include_tasks: check-containers.yml
- import_tasks: check-containers.yml
when: kolla_action != "config"