kolla-ansible/ansible/roles/nova/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 Support multiple nova cells 2019-10-16 17:42:36 +00:00
bootstrap_upgrade.yml Support multiple nova cells 2019-10-16 17:42:36 +00:00
bootstrap.yml fix deploy nova failed when use kolla_dev_mod 2020-06-15 01:45:23 +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
clone.yml permission denied when enable_kolla_dev_mod 2020-06-07 19:36:42 +08:00
config_bootstrap.yml Support multiple nova cells 2019-10-16 17:42:36 +00:00
config.yml Add support for encrypting Nova API 2020-08-15 13:22:44 +00: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
map_cell0.yml Ansible lint: lines longer than 160 chars 2020-04-16 15:59:06 +02:00
online_data_migrations.yml Support multiple nova cells 2019-10-16 17:42:36 +00: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
refresh_scheduler_cell_cache.yml Ansible lint: Variables should have spaces before and after 2020-01-16 16:37:20 +01:00
register.yml Refactor service, endpoint and user registration 2019-09-17 10:13:56 -07:00
reload_api.yml Support multiple nova cells 2019-10-16 17:42:36 +00:00
reload_super_conductor.yml Support multiple nova cells 2019-10-16 17:42:36 +00:00
rolling_upgrade.yml Performance: replace unconditional include_tasks with import_tasks 2020-08-28 16:12:03 +00: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