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

Cache URL encoding of worker addresses in dashboard #8725

Merged
merged 4 commits into from
Jun 24, 2024

Conversation

fjetter
Copy link
Member

@fjetter fjetter commented Jun 24, 2024

I recently looked at a scheduler profile of a large-ish cluster (~300 workers) and noticed that the scheduler CPU is utilized up to 20% with an idle cluster once the dashboard is enabled.
Most of this turned out to be the occupancy, tasks, memory, etc. view per worker and I found a couple of hotspots.

I also noticed how _expects_comm is taking up a nontrivial time and can be cached.

Copy link
Contributor

github-actions bot commented Jun 24, 2024

Unit Test Results

See test report for an extended history of previous test failures. This is useful for diagnosing flaky tests.

    29 files  ± 0      29 suites  ±0   11h 34m 51s ⏱️ + 7m 20s
 4 064 tests + 1   3 961 ✅ + 3     97 💤 ±0  6 ❌  - 2 
55 981 runs  +14  53 808 ✅ +14  2 164 💤 +1  9 ❌  - 1 

For more details on these failures, see this check.

Results for commit b71a030. ± Comparison against base commit f925766.

♻️ This comment has been updated with latest results.

Copy link
Member

@jrbourbeau jrbourbeau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, LGTM @fjetter

I'm curious what this PR does to the idle dashboard performance you were looking at

distributed/utils.py Outdated Show resolved Hide resolved
fjetter and others added 2 commits June 24, 2024 17:09
@jrbourbeau
Copy link
Member

Sorry, there was a linting error in the code suggestion I made : / Pushed a commit to make pre-commit happy

@jrbourbeau jrbourbeau merged commit 5b2e2b4 into dask:main Jun 24, 2024
24 of 34 checks passed
@fjetter fjetter deleted the minor_perf_fixes branch June 25, 2024 07:53
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.

2 participants