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
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