Skip to content

Review log-length configuration#8173

Merged
fjetter merged 4 commits into
dask:mainfrom
crusaderky:log-length
Sep 26, 2023
Merged

Review log-length configuration#8173
fjetter merged 4 commits into
dask:mainfrom
crusaderky:log-length

Conversation

@crusaderky

@crusaderky crusaderky commented Sep 7, 2023

Copy link
Copy Markdown
Collaborator

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

github-actions Bot commented Sep 7, 2023

Copy link
Copy Markdown
Contributor

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.

@crusaderky crusaderky force-pushed the log-length branch 5 times, most recently from 73879f5 to 2d96551 Compare September 12, 2023 11:22
@crusaderky crusaderky marked this pull request as ready for review September 12, 2023 12:54
Comment thread distributed/utils.py Outdated
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 thread distributed/config.py Outdated
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
Copy Markdown
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
Copy Markdown
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
@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