awx icon indicating copy to clipboard operation
awx copied to clipboard

[Metrics&Observability] Track task manager metrics

Open kdelee opened this issue 2 years ago • 3 comments

ISSUE TYPE
  • Feature Idea
SUMMARY

Track timing and stats of the task manager. This can include:

  • Number of jobs collected by task manager (by type)
  • Number of jobs scheduled in a run of the task manager
  • Number of jobs blocked by "soft" dependencies like allow_simultaneous=False
  • Time it took to run different stages of the task manager (e.g. _schedule, process_pending_tasks, etc)

@fosterseth has done some work for efficient collection of stats in subsystem metrics. Since that's how we measure the callback receiver, I think we should use the same tool to measure the task manager timing breakdown.

kdelee avatar May 12 '22 16:05 kdelee

https://github.com/ansible/awx/pull/12235

kdelee avatar May 16 '22 17:05 kdelee

This is now merged, we need to determine if we want to add any tests

Note: may undergo some updates with work on the task_manager_refactor branch cc @fosterseth @AlanCoding

kdelee avatar Jul 27 '22 18:07 kdelee

Verified and added downstream tests: https://github.com/ansible/tower-qa/pull/7665

obaranov avatar Sep 02 '22 10:09 obaranov