Visualise Ansible execution time in Perfetto trace viewer: see duration of playbooks, tasks, and hosts

Visualise where time is spent in your Ansible playbooks: what tasks, and what hosts, so you can find where to optimise and decrease playbook latency.

An Ansible Callback Function which traces the execution time of Ansible playooks, outputting Chrome’s Trace Event Format for visualising in the Perfetto in-browser trace UI.

Here’s a trace of me deploying to my home Raspberry Pi cluster, with the default strategy: linear. You can see that now all the tasks are synchronized across hosts, with each host waiting for the slowest host before proceeding to the next task:

Perfetto window showing tasks all happening synchronized

Here’s the same playbook ran with strategy: free so fast hosts run to

 

 

 

To finish reading, please visit source site