Skip to content

reverse_tunnel: add skip_rebalancing config#44835

Open
aakugan wants to merge 2 commits into
envoyproxy:mainfrom
aakugan:rem-lck
Open

reverse_tunnel: add skip_rebalancing config#44835
aakugan wants to merge 2 commits into
envoyproxy:mainfrom
aakugan:rem-lck

Conversation

@aakugan
Copy link
Copy Markdown
Contributor

@aakugan aakugan commented May 4, 2026

Commit Message

reverse_tunnel: add skip_rebalancing config

Additional Description

Adds a skip_rebalancing bool to the reverse tunnel filter config. When enabled, accepted connections skip the pickLeastLoadedSocketManager path and its WriterMutexLock, avoiding cross-worker contention for
deployments that don't need connection rebalancing.

Testing

Unit tests.
Existing integ tests ensure that there are no behaviour regressions.

Signed-off-by: aakugan <aakashganapathy2@gmail.com>
@repokitteh-read-only
Copy link
Copy Markdown

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/).
envoyproxy/api-shepherds assignee is @mattklein123
CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

🐱

Caused by: #44835 was opened by aakugan.

see: more, trace.

@kyessenov
Copy link
Copy Markdown
Contributor

Please merge and fix conflicts.
/wait

Copy link
Copy Markdown
Member

@tyxia tyxia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks!

@agrawroh Do you want to take a look as code owner/maintainer, the other owner @basundhara-c has approved it.

// When true, skip worker-thread rebalancing for accepted reverse tunnel connections.
// This avoids the cross-worker lock in pickLeastLoadedSocketManager.
// Default: false (rebalancing enabled).
bool skip_rebalancing = 8;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this skip_rebalancing ever be default true? Does not seem to be, but just check. If it will be default to true we should use BoolValue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants