Skip to content

Start proxy_server on a dedicated Tokio runtime - #402

Merged
Zhidong Peng (ZhidongPeng) merged 7 commits into
Azure:devfrom
ZhidongPeng:tokio_worker
Sep 9, 2026
Merged

Start proxy_server on a dedicated Tokio runtime#402
Zhidong Peng (ZhidongPeng) merged 7 commits into
Azure:devfrom
ZhidongPeng:tokio_worker

Conversation

@ZhidongPeng

@ZhidongPeng Zhidong Peng (ZhidongPeng) commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Summary
Isolate proxy_server workloads from the Guest Proxy Agent’s main Tokio runtime and provide explicit control over runtime thread usage.

Changes

  • Run proxy_server on a dedicated, named Tokio runtime.
  • Limit the main runtime to 1–4 worker threads based on CPU count.
  • Add proxyServerRuntimeWorkerThreads, defaulting to 2 and clamped between 1 and the available CPU count.

@ZhidongPeng Zhidong Peng (ZhidongPeng) changed the title Set tokio runtime worker threads between 2 and 10 instead of default to the processor count. Start proxy_server on delicated tokio runtime Sep 9, 2026
@ZhidongPeng Zhidong Peng (ZhidongPeng) changed the title Start proxy_server on delicated tokio runtime Start proxy_server on a dedicated Tokio runtime Sep 9, 2026
@ZhidongPeng
Zhidong Peng (ZhidongPeng) merged commit 309b0d9 into Azure:dev Sep 9, 2026
24 checks passed
@ZhidongPeng
Zhidong Peng (ZhidongPeng) deleted the tokio_worker branch September 9, 2026 23:40
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