diff options
author | Will Chandler <wchandler@gitlab.com> | 2023-01-06 06:39:49 +0300 |
---|---|---|
committer | Will Chandler <wchandler@gitlab.com> | 2023-01-17 20:28:17 +0300 |
commit | f4bbc120cc27cd3f4600e803225f9d4a12e52cc2 (patch) | |
tree | 38e8ad8848bf3181ae80253347cdc5ab27c1d5dd /_support | |
parent | 7e80ece2ebfd82776285c83362e6874dacb5b26a (diff) |
benchmarking: Add Ansible config
Ansible can run slowly when performing a large number of operations, and
determining which tasks are slow is difficult with the default output.
Mitigate these issues by enabling pipelining[0], which speeds things up
dramatically and is compatible with the Ubuntu 22.04 hosts we're using,
and the `profile_tasks` callback[1] which print the start time of each
task during execution and a summary of task times on completion.
[0] https://docs.ansible.com/ansible/latest/reference_appendices/config.html#ansible-pipelining
[1] https://docs.ansible.com/ansible/latest/collections/ansible/posix/profile_tasks_callback.html
Diffstat (limited to '_support')
-rw-r--r-- | _support/benchmarking/ansible.cfg | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/_support/benchmarking/ansible.cfg b/_support/benchmarking/ansible.cfg new file mode 100644 index 000000000..9eec3508d --- /dev/null +++ b/_support/benchmarking/ansible.cfg @@ -0,0 +1,5 @@ +[ssh_connection] +pipelining = True + +[defaults] +callbacks_enabled = profile_tasks |