Skip to content

feat(chart): proxy.concurrency sets the node proxy's Envoy worker count (#1093) - #1125

Merged
bpalermo merged 2 commits into
mainfrom
feat/1093-proxy-concurrency-knob
Oct 1, 2026
Merged

bpalermo merged 2 commits into
mainfrom
feat/1093-proxy-concurrency-knob

Conversation

@bpalermo

@bpalermo bpalermo commented Oct 1, 2026

Copy link
Copy Markdown
Owner

Refs #1093

Adds one knob so the node proxy's Envoy worker count can be set for tonight's #1093 A/B. On 4-core nodes a hot-restart handoff runs two Envoys, which means 8 worker threads plus 2 main threads on 4 saturated cores.

Change

  • proxy.concurrency (default 0) in charts/aether/values.yaml, after the hotRestart block.
    • 0 passes no flag, so Envoy keeps one worker per core. This is today's behaviour.
    • N > 0 passes --concurrency N to every Envoy epoch through the supervisor. It renders as two adjacent --envoy-arg entries after --drain-strategy.
  • New helper aether.proxy.concurrency validates the value. A negative or non-integer value (-1, 1.5, abc) fails the render with proxy.concurrency must be a non-negative integer. It follows the same pattern as aether.proxy.drainStrategy.
  • The docs/configuration.md row is added, and the chart goes from 2.1.2 to 2.2.0.

Warning: keep the value constant across epochs. The rollout that changes it performs one hot restart between epochs with different worker counts. That can drop connections sitting in the old listeners' accept queues (see the ExtraArgs comment in agent/internal/proxy/hotrestart/supervisor.go). After that rollout, every restart is between two epochs with the same count.

Nothing else derives a worker count, so there are no Go changes. The bootstrap overload manager is heap-based. There is no --cpuset-threads. The stall sampler only mentions the default concurrency in a sizing comment, and it samples whatever threads exist.

Tests

  • aether_proxy_concurrency_test: with proxy.concurrency=2, --envoy-arg=--concurrency and --envoy-arg=2 render adjacent and in that order. It fails without the template change (does not contain the pattern).
  • aether_proxy_concurrency_off_test (helm_template_absent_test): the default renders no --concurrency. Its control string is --envoy-arg=--drain-strategy.
  • bazel test //charts/aether:all: 47/47 pass. make format produced no diff. bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //... is clean.

Usage

--set proxy.concurrency=2

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

bpalermo and others added 2 commits October 1, 2026 17:58
…nt (#1093)

0 (default) passes no flag: Envoy keeps one worker per core. N > 0 passes
--concurrency N to every Envoy epoch through the supervisor's --envoy-arg
list. On a 4-core node a hot-restart handoff runs two Envoys (8 workers +
2 main threads on 4 cores); this knob lets #1093 A/B a smaller count.

The value must stay constant across epochs: the rollout that changes it
performs one hot restart between epochs with different worker counts,
which can drop connections in the old listeners' accept queues. A negative
or non-integer value fails the render. Chart 2.2.0.

Refs #1093

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
@bpalermo
bpalermo merged commit 231498f into main Oct 1, 2026
24 checks passed
@bpalermo
bpalermo deleted the feat/1093-proxy-concurrency-knob branch October 1, 2026 21:17
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