Repository navigation
feat(chart): proxy.concurrency sets the node proxy's Envoy worker count (#1093) - #1125
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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(default0) incharts/aether/values.yaml, after thehotRestartblock.0passes no flag, so Envoy keeps one worker per core. This is today's behaviour.N > 0passes--concurrency Nto every Envoy epoch through the supervisor. It renders as two adjacent--envoy-argentries after--drain-strategy.aether.proxy.concurrencyvalidates the value. A negative or non-integer value (-1,1.5,abc) fails the render withproxy.concurrency must be a non-negative integer. It follows the same pattern asaether.proxy.drainStrategy.docs/configuration.mdrow 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
ExtraArgscomment inagent/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: withproxy.concurrency=2,--envoy-arg=--concurrencyand--envoy-arg=2render 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 formatproduced 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