Announcing Ansible-Trace: understand task duration and playbook critical paths

66 views
Skip to first unread message

ma...@markhansen.co.nz

unread,
Oct 8, 2021, 5:16:02 PM10/8/21
to Ansible Project
Hi there,

I have some slow Ansible playbooks, and I was wondering where the time goes. So I made a Callback Plugin that outputs Chrome's "Trace Event Format" for visualising the parallel execution and critical path in https://ui.perfetto.dev/. I hope this will be generally useful, so I'm sharing it.

Pictures are worth 1000 words, so here's a playbook executing with strategy: free:
ansible-trace-marked-up.png

Here's the same playbook executing with the default strategy: linear:
ansible-trace-lockstep.png

Please try ansible-trace. It can help you understand your playbook and where to optimise. Please reply with your feedback if you find it useful, or find it could be improved.


I'd like to contribute this to Ansible core, if there is interest.

Thanks,
Mark

Gundalow Barker

unread,
Oct 11, 2021, 8:21:48 AM10/11/21
to Ansible Project
Very cool thanks for sharing.

If anyone else is interested, there's a loads of good discussion happening in https://www.reddit.com/r/ansible/comments/q49h2d/ansibletrace_visualise_execution_time_of_ansible/

Kind regards,
John "gundalow" Barker
Manager, Ansible Community
Red Hat
Reply all
Reply to author
Forward
0 new messages