Skip to content

Support specifying --concurrency Envoy flag#7499

Open
msanft wants to merge 2 commits intoprojectcontour:mainfrom
edgelesssys:msanft/concurrency
Open

Support specifying --concurrency Envoy flag#7499
msanft wants to merge 2 commits intoprojectcontour:mainfrom
edgelesssys:msanft/concurrency

Conversation

@msanft
Copy link
Copy Markdown

@msanft msanft commented Mar 25, 2026

On machines with high core count, not setting the --concurrency flag of Envoy results in Envoy defaulting to having as many worker threads as HW threads. In low-load scenarios, this creates very high CPU and memory usage unnecessarily. This fixes the issue by adding a concurrency flag and plumbing it through the ContourDeployment CRD.

224-thread machine without the fix:

icn01@dgx-007:~$ ps -o nlwp $(pidof envoy | awk '{print $1}')
NLWP
 456

after the fix (concurrency: 4):

icn01@dgx-007:~$ ps -o nlwp $(pidof envoy | awk '{print $1}')
NLWP
  14

@msanft msanft requested a review from a team as a code owner March 25, 2026 20:35
@msanft msanft requested review from sunjayBhatia and tsaarni and removed request for a team March 25, 2026 20:35
@tsaarni tsaarni added the release-note/small A small change that needs one line of explanation in the release notes. label Mar 25, 2026
msanft added 2 commits March 25, 2026 22:15
On machines with high core count, not setting the
`--concurrency` flag of Envoy results in Envoy
defaulting to having as many worker threads as HW
threads. In low-load scenarios, this creates very
high CPU and memory usage unnecessarily. This fixes
the issue by adding a concurrency flag and plumbing
it through the `ContourDeployment` CRD.

Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>
Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>
@msanft msanft force-pushed the msanft/concurrency branch from eae69f2 to 627def9 Compare March 25, 2026 21:15
@github-actions
Copy link
Copy Markdown

The Contour project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 30d of inactivity, lifecycle/stale is applied
  • After 60d of inactivity since lifecycle/stale was applied, the PR is closed

You can:

  • Ensure your PR is passing all CI checks. PRs that are fully green are more likely to be reviewed. If you are having trouble with CI checks, reach out to the #contour channel in the Kubernetes Slack workspace.
  • Mark this PR as fresh by commenting or pushing a commit
  • Close this PR
  • Offer to help out with triage

Please send feedback to the #contour channel in the Kubernetes Slack

@github-actions github-actions Bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 25, 2026
@msanft
Copy link
Copy Markdown
Author

msanft commented Apr 25, 2026

Not stale

@github-actions github-actions Bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note/small A small change that needs one line of explanation in the release notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants