-
-
Notifications
You must be signed in to change notification settings - Fork 720
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
Review log-length configuration #8173
Conversation
Unit Test ResultsSee test report for an extended history of previous test failures. This is useful for diagnosing flaky tests. 21 files ± 0 21 suites ±0 10h 56m 21s ⏱️ - 3m 13s Results for commit 7e780c7. ± Comparison against base commit b6333df. ♻️ This comment has been updated with latest results. |
73879f5
to
2d96551
Compare
2d96551
to
b967e78
Compare
distributed/utils.py
Outdated
"deserialize_for_cli": "dask.config.deserialize", | ||
"serialize_for_cli": "dask.config.serialize", | ||
"format_bytes": "dask.utils.format_bytes", | ||
"format_time": "dask.utils.format_time", | ||
"funcname": "dask.utils.funcname", | ||
"parse_bytes": "dask.utils.parse_bytes", | ||
"parse_timedelta": "dask.utils.parse_timedelta", | ||
"typename": "dask.utils.typename", | ||
"tmpfile": "dask.utils.tmpfile", |
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.
I'm curious why these are removed?
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 part of #8171
1bec147
to
edbea05
Compare
8a5a9d3
to
b5f1a1f
Compare
distributed/system_monitor.py
Outdated
if maxlen is no_default: | ||
maxlen = dask.config.get("distributed.admin.log-length") | ||
if isinstance(maxlen, int): | ||
maxlen = max(1, maxlen) |
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.
I'm not sure how I feel about lumping this in with the other logs.
Barely anybody will care for the scheduler/worker transition log
However, this will cut the system dashboard page, won't it?
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.
Moved to distributed.admin.system-monitor.log-length
distributed/config.py
Outdated
"ucx": "distributed.comm.ucx", | ||
"rmm": "distributed.rmm", | ||
# log-length aliases | ||
"transition-log-length": "distributed.admin.log-length", |
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.
distributed.admin.log-length
is the length of the actual logs we keep. There is even an option admin.log-format
.
Some users care about this (it enables client.get_logs() even if it is just partial logging).
The logs we intend to cut are low level debug logs and I think we should distinguish this
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.
Moved everything else to distributed.admin.low-level-log-length
8885393
to
24eb71d
Compare
24eb71d
to
83e077b
Compare
n_workers
deprecation inwait_for_workers
#8192distributed.utils
#8193distributed/config.py
but otherwise don't block merging:dask.config
dask#10499dask.config.set()
#8179Make all deque lengths configurable from a single config line, and set the default to 1000.
[EDIT]
Previously this PR was setting the default to 0. I think it was problematic as it would cause
get_scheduler_logs()
andget_worker_logs()
to return no results. In a separate PR I will print a warning on the client when maxlen is reached.Reproducer from #8164 (the difference in duration looks like noise):