-
-
Notifications
You must be signed in to change notification settings - Fork 727
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
Weigh gilknocker Prometheus metric by duration #8558
Conversation
raw_interval = dask.config.get( | ||
"distributed.admin.system-monitor.gil.interval", | ||
) | ||
interval = parse_timedelta(raw_interval, default="us") * 1e6 | ||
|
||
interval = parse_timedelta(raw_interval) * 1e6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't interpret a raw 1
in the config (which violates the jsonschema) as 1us. Crash instead.
self._gilknocker.reset_contention_metric() | ||
result["gil_contention"] = self._last_gil_contention = gil_contention | ||
self.cumulative_gil_contention += duration * gil_contention |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the key change.
Unit Test ResultsSee test report for an extended history of previous test failures. This is useful for diagnosing flaky tests. 27 files + 26 27 suites +26 10h 2m 13s ⏱️ + 10h 1m 49s For more details on these failures, see this check. Results for commit f919669. ± Comparison against base commit e16a7af. ♻️ This comment has been updated with latest results. |
Thanks, @crusaderky! It would be nice to be able to get more accurate GIL data via Prometheus. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @crusaderky! Changes look good, assuming CI turns green.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, good for me as well, sorry for the delayed review here!
stress test from #8557:
BEFORE
AFTER
CC @ntabris @milesgranger