-
Notifications
You must be signed in to change notification settings - Fork 689
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
feat: add max-connections-per-listener config option #6058
feat: add max-connections-per-listener config option #6058
Conversation
9974ee8
to
e8d5637
Compare
Hi @flawedmatrix! Welcome to our community and thank you for opening your first Pull Request. Someone will review it soon. Thank you for committing to making Contour better. You can also join us on our mailing list and in our channel in the Kubernetes Slack Workspace |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #6058 +/- ##
==========================================
+ Coverage 78.81% 78.82% +0.01%
==========================================
Files 138 138
Lines 19765 19784 +19
==========================================
+ Hits 15577 15595 +18
- Misses 3885 3886 +1
Partials 303 303
|
d91c36f
to
5886377
Compare
breadcrumb to think about when I get a chance to do a full review: think about admin/stats/etc. Listeners |
5886377
to
ad92bf0
Compare
so far my thought is to exclude those Listeners from this change since the shouldn't be at as much risk from a DOS attack (should not be exposed outside of the cluster, or even node), but we could do a follow on to set a reasonable default number of max connections for these listeners (or even make the limit configurable) If we do want to ever set the global connection limit, that applies to all Listeners including the admin one, stats, etc., so we would have to make sure those don't get starved, and maybe set the "ignore global limit" flag for them |
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.
One little changelog nit, otherwise LGTM. I agree with @sunjayBhatia that it should be fine to not apply this setting to the admin/stats listeners.
Setting Max Connections Per Listener sets the limit on the number of active connections to a listener. Co-authored-by: Christian Ang <[email protected]> Signed-off-by: Edwin Xie <[email protected]>
Yeah, that makes sense. If we ever need to set a listener connection limit on the admin and stats endpoint that can be a follow-on change. |
ad92bf0
to
c593eac
Compare
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, will leave for @sunjayBhatia to review as well. Thanks @flawedmatrix and @christianang!
Adds a setting for
max-connections-per-listener
to limit the number of active connections to a listener.fixes #5654