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

Review log-length configuration #8173

Merged
merged 4 commits into from
Sep 26, 2023
Merged

Review log-length configuration #8173

merged 4 commits into from
Sep 26, 2023

Conversation

crusaderky
Copy link
Collaborator

@crusaderky crusaderky commented Sep 7, 2023

Make 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() and get_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):
download (1)

@crusaderky crusaderky self-assigned this Sep 7, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Sep 7, 2023

Unit Test Results

See 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
  3 815 tests +  1    3 708 ✔️ +  7     107 💤 ±0  0  - 6 
36 875 runs  +10  35 075 ✔️ +17  1 800 💤 ±0  0  - 7 

Results for commit 7e780c7. ± Comparison against base commit b6333df.

♻️ This comment has been updated with latest results.

Comment on lines 1608 to 1616
"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",
Copy link
Member

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?

Copy link
Collaborator Author

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

Comment on lines 51 to 52
if maxlen is no_default:
maxlen = dask.config.get("distributed.admin.log-length")
if isinstance(maxlen, int):
maxlen = max(1, maxlen)
Copy link
Member

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?

Copy link
Collaborator Author

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

Comment on lines 51 to 54
"ucx": "distributed.comm.ucx",
"rmm": "distributed.rmm",
# log-length aliases
"transition-log-length": "distributed.admin.log-length",
Copy link
Member

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

Copy link
Collaborator Author

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

@crusaderky crusaderky force-pushed the log-length branch 3 times, most recently from 8885393 to 24eb71d Compare September 18, 2023 14:40
@fjetter fjetter merged commit ccb2012 into dask:main Sep 26, 2023
26 checks passed
@crusaderky crusaderky deleted the log-length branch September 26, 2023 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants