kolla-ansible/ansible/roles/karbor/tasks
Mark Goddard 496904d650 Performance: use import_tasks for register and bootstrap
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 register.yml and bootstrap.yml
includes, all of the tasks in the included file use run_once: True.
The run_once flag improves performance at scale drastically, so
importing these tasks unconditionally will have a lower overhead than a
conditional include task.  It therefore makes sense to switch to use
import_tasks there.

See [1] for benchmarks of run_once.

[1] https://github.com/stackhpc/ansible-scaling/blob/master/doc/run-once.md

Change-Id: Ic67631ca3ea3fb2081a6f8978e85b1522522d40d
Partially-Implements: blueprint performance-improvements
2020-08-28 16:31:04 +00:00
..
bootstrap_service.yml Fix handling of docker restart policy 2019-07-18 13:39:06 +00:00
bootstrap.yml Performance: replace unconditional include_tasks with import_tasks 2020-08-28 16:12:03 +00:00
check-containers.yml Add a job that *only* deploys updated containers 2019-09-26 17:51:14 +01:00
check.yml Enable sanity checks from kolla-ansible 2017-03-09 10:37:06 +00:00
config.yml Performance: use import_tasks for check-containers.yml 2020-07-28 12:10:59 +01:00
copy-certs.yml Refactor copy certificates task 2020-04-14 17:26:19 +00:00
deploy-containers.yml Add a job that *only* deploys updated containers 2019-09-26 17:51:14 +01:00
deploy.yml Performance: use import_tasks for register and bootstrap 2020-08-28 16:31:04 +00:00
loadbalancer.yml Use "name:" instead of "role:" for *_role modules 2020-03-02 10:01:17 +01:00
main.yml Use include_tasks instead of include 2018-07-25 23:57:22 +08:00
precheck.yml Add Ansible group check to prechecks 2020-02-28 16:23:14 +00:00
pull.yml Specify 'become' for all tasks that use kolla_docker module 2018-06-08 12:39:24 +00:00
reconfigure.yml Performance: replace unconditional include_tasks with import_tasks 2020-08-28 16:12:03 +00:00
register.yml Refactor service, endpoint and user registration 2019-09-17 10:13:56 -07:00
stop.yml Use "name:" instead of "role:" for *_role modules 2020-03-02 10:01:17 +01:00
upgrade.yml Performance: replace unconditional include_tasks with import_tasks 2020-08-28 16:12:03 +00:00