-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Add max_sessions_per_event_loop to quic protocol options. #41371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Ting Pan <[email protected]>
CC @envoyproxy/api-shepherds: Your approval is needed for changes made to |
Signed-off-by: Ting Pan <[email protected]>
/assign @RyanTheOptimist
|
Signed-off-by: Ting Pan <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great
initialize(); | ||
const uint32_t max_sessions_per_event_loop_for_test = | ||
ActiveQuicListener::kNumSessionsToCreatePerLoop; | ||
EXPECT_EQ(max_sessions_per_event_loop_for_test, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Just inline ActiveQuicListener::kNumSessionsToCreatePerLoop directly into the EXPECT_EQ.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
// During hot restart, an optional handler for packets that weren't for existing connections. | ||
OptRef<Network::NonDispatchedUdpPacketHandler> non_dispatched_udp_packet_handler_; | ||
Network::IoHandle::UdpSaveCmsgConfig udp_save_cmsg_config_; | ||
uint32_t max_sessions_per_event_loop_; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: brief comment (particularly if there are any special semantics attached to particular values)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm api
Waiting for addressing Ryan's comments. /wait |
Signed-off-by: Ting Pan <[email protected]>
Signed-off-by: Ting Pan <[email protected]>
Signed-off-by: Ting Pan <[email protected]>
Signed-off-by: Ting Pan <[email protected]>
Signed-off-by: Ting Pan <[email protected]>
Signed-off-by: Ting Pan <[email protected]>
Signed-off-by: Ting Pan <[email protected]>
Signed-off-by: Ting Pan <[email protected]>
…rloop-om Signed-off-by: Ting Pan <[email protected]>
/retest |
1 similar comment
/retest |
@RyanTheOptimist all tests pass now, pls merge, thank you |
Summarizing offline discussion, let's try to figure out of the test failure happens on main or if it's an issue with this PR first. |
/retest |
/retest Envoy/Checks |
Signed-off-by: Ting Pan <[email protected]>
failed //test/extensions/filters/http/oauth2:oauth_integration_test |
@RyanTheOptimist |
Commit Message: Add a new quic configuration field, 'max_sessions_per_event_loop', to QuicProtocolOptions in Envoy listener.
Additional Description: This change allows tuning the maximum number of new QUIC sessions created within a single event loop. The default value is 16, preserving the previous hardcoded limit.
Risk Level: low
Testing: unit tests
Docs Changes:
Release Notes: Add max_sessions_per_event_loop to quic protocol options.
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]