Skip to content

Move blocking work off the event loop - #4520

Merged
r4victor merged 3 commits into
masterfrom
pr_offload_blocking_startup_and_keygen
Nov 24, 2026
Merged

r4victor merged 3 commits into
masterfrom
pr_offload_blocking_startup_and_keygen

Conversation

@r4victor

Copy link
Copy Markdown
Collaborator

Moves CPU and network work that blocked the server's event loop into threads.

  • Make the first gpuhunt.default_catalog() call, which downloads and parses the offers catalog, in a thread, so server startup no longer blocks the event loop for seconds, or indefinitely if the download hangs since gpuhunt sets no timeout.
  • Generate job SSH keys for multi-node runs in a thread, since RSA key generation took tens of milliseconds of CPU on the event loop for every submission and resubmission.
  • Generate gateway replica SSH keys in a thread, which makes the gateway replica scaling code async.

@r4victor
r4victor merged commit 2e2a2a2 into master Nov 24, 2026
26 checks passed
@r4victor
r4victor deleted the pr_offload_blocking_startup_and_keygen branch November 24, 2026 10:34
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.

1 participant