Skip to content

Set minimum MaxDegreeOfParallelism to 5 on all endpoints#2346

Merged
jeremydmiller merged 1 commit intomainfrom
parallelism
Mar 24, 2026
Merged

Set minimum MaxDegreeOfParallelism to 5 on all endpoints#2346
jeremydmiller merged 1 commit intomainfrom
parallelism

Conversation

@jeremydmiller
Copy link
Copy Markdown
Member

Summary

  • Change Endpoint.MaxDegreeOfParallelism default from Environment.ProcessorCount to Math.Max(Environment.ProcessorCount, 5) so low-core environments (containers, CI runners) get reasonable throughput
  • Add "Maximum Parallel Messages" section to the listeners documentation explaining the default behavior and how to override it

Test plan

  • CoreTests: 1193 passed, 0 failed

🤖 Generated with Claude Code

Change Endpoint.MaxDegreeOfParallelism default from
Environment.ProcessorCount to Math.Max(Environment.ProcessorCount, 5)
so low-core environments (containers, CI) get reasonable throughput.

Add "Maximum Parallel Messages" documentation section to the listeners
guide explaining the default and showing how to override it per
endpoint or globally via opts.Policies.AllListeners.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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