Repository navigation
listener: switch reuse_port default to true - #15818
Closed
mattklein123 wants to merge 2 commits into
Closed
mattklein123 wants to merge 2 commits into
mattklein123 wants to merge 2 commits into
Conversation
1) Deprecate existing reuse_port field 2) Add new enable_reuse_port field which uses a WKT 3) Make the new default hot restart aware so the default is not changed during hot restart. 4) Allow the default to be reverted using the "envoy.reloadable_features.listener_reuse_port_default_enabled" feature flag. Fixes #15794 Signed-off-by: Matt Klein <[email protected]>
Signed-off-by: Matt Klein <[email protected]>
htuch
reviewed
Apr 2, 2021
htuch
left a comment
Member
There was a problem hiding this comment.
/lgtm api
LGTM on API and runtime aspects. Will defer to other reviewers on hot restart aspect.
Member
Author
|
/retest |
|
Retrying Azure Pipelines: |
Member
Author
|
@ggreenway points out that SO_REUSEPORT is still broken for hot restart even in latest kernels because connections can get dropped between accept() and close(). I will take another look at this and think of different solutions including possibly passing across all of the sockets from the old worker and using them for the new workers (we had discussed doing this anyway to catch socket creation issues on the main thread). /wait |
Member
Author
|
Closing this. I will reopen when I revisit. |
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.
not changed during hot restart.
"envoy.reloadable_features.listener_reuse_port_default_enabled"
feature flag.
Fixes #15794
Risk Level: Medium, scary stuff involving hot restart
Testing: New and existing tests. It was hard to get the tests to pass which gives me more confidence.
Docs Changes: N/A
Release Notes: Added
Platform Specific Features: N/A