Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: add basic instrumentation to defer queue #19824

Merged
merged 1 commit into from Jan 12, 2023
Merged

Conversation

SamSaffron
Copy link
Member

This will give us some aggregate stats on the defer queue performance.

It is limited to 100 entries (for safety) which is stored in an LRU cache.

Scheduler::Defer.stats can then be used to get an array that denotes:

  • number of runs and completions (queued, finished)
  • error count (errors)
  • total duration (duration)

We can look later at exposing these metrics to gain visibility on the reason
the defer queue is clogged.

This will give us some aggregate stats on the defer queue performance.

It is limited to 100 entries (for safety) which is stored in an LRU cache.

Scheduler::Defer.stats can then be used to get an array that denotes:

- number of runs and completions (queued, finished)
- error count (errors)
- total duration (duration)

We can look later at exposing these metrics to gain visibility on the reason
the defer queue is clogged.
@SamSaffron SamSaffron merged commit 7b63c42 into main Jan 12, 2023
@SamSaffron SamSaffron deleted the defer_instrument branch January 12, 2023 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants