Closed odyssey4me closed 9 years ago
In order to allow effective benchmarking of the time taken for tasks and plays (in order to focus gate optimisation efforts), please include the ansible timestamp callback plugin in the ansible deployments done by jenkins.
plugin: https://github.com/ginsys/ansible-plugins/blob/devel/callback_plugins/timestamp.py
No configuration necessary, just wget it and drop it into /usr/local/lib/python2.7/dist-packages/ansible/callback_plugins/ on the deployment server.
Output sample is as follows:
TASK: [rsyslog_config | Ensure ownership on /var/spool/rsyslog] *************** Friday 28 November 2014 15:41:53 +0000 (0:00:00.187) 0:03:28.372 ******* ok: [355158-node3_rsyslog_container-e8b322e5] ok: [355160-node4_rsyslog_container-de8c5bab] ok: [355156-node2_rsyslog_container-5b0f9790] ok: [355161-node5_rsyslog_container-ffd02b4d] ok: [355132-node1_rsyslog_container-30ede95c] TASK: [rsyslog_config | Start rsyslog] **************************************** Friday 28 November 2014 15:41:53 +0000 (0:00:00.169) 0:03:28.541 ******* changed: [355158-node3_rsyslog_container-e8b322e5] changed: [355160-node4_rsyslog_container-de8c5bab] changed: [355156-node2_rsyslog_container-5b0f9790] changed: [355132-node1_rsyslog_container-30ede95c] changed: [355161-node5_rsyslog_container-ffd02b4d] PLAY RECAP ******************************************************************** Friday 28 November 2014 15:41:53 +0000 (0:00:00.252) 0:03:28.794 *******
The time between () is the duration of the previous task. The time to the right of that is the overall duration of the play.
Completed in PR https://github.com/rcbops/jenkins-rpc/pull/76
In order to allow effective benchmarking of the time taken for tasks and plays (in order to focus gate optimisation efforts), please include the ansible timestamp callback plugin in the ansible deployments done by jenkins.
plugin: https://github.com/ginsys/ansible-plugins/blob/devel/callback_plugins/timestamp.py
No configuration necessary, just wget it and drop it into /usr/local/lib/python2.7/dist-packages/ansible/callback_plugins/ on the deployment server.
Output sample is as follows:
The time between () is the duration of the previous task. The time to the right of that is the overall duration of the play.