foreman-installer
foreman-installer copied to clipboard
Add script to analyze installer log for action run times
I've had this little script for a while, and wanted to stop losing track of where it is. The idea is it analyzes an installer run log file and identifies the actions that took the longest. For example, a recent analysis:
61.42: Exec[foreman-rake-db:migrate]
39.89: Exec[pulpcore-manager migrate --noinput]
38.11: Service[foreman]
26.33: Service[dynflow-sidekiq@worker-hosts-queue-1]
26.27: Service[dynflow-sidekiq@worker-1]
25.94: Exec[foreman-rake-db:seed]
25.57: Service[dynflow-sidekiq@orchestrator]
7.99: Exec[pulpcore-manager reset-admin-password --random]
7.36: Foreman_host[foreman-ip-10-0-168-157.rhos-01.prod.psi.rdu2.redhat.com]
4.13: Foreman_smartproxy[ip-10-0-168-157.rhos-01.prod.psi.rdu2.redhat.com]
3.27: Package[mod_ssl]
2.9: Service[pulpcore-content.service]
2.82: Service[pulpcore-api.service]
2.27: Cert[ip-10-0-168-157.rhos-01.prod.psi.rdu2.redhat.com-apache]
2.25: Exec[pulpcore-manager collectstatic --noinput]