Skip to content
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

fix: Limit HAProxy maximum concurrent connections #3115

Merged
merged 1 commit into from
Mar 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions images/haproxy/haproxy.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

# minimal config file to avoid haproxy exiting due to invalid / missing config
# kind will rewrite this config at runtime
global
# limit memory usage to approximately 18 MB
maxconn 100000

frontend controlPlane
bind 0.0.0.0:6443
mode tcp
Expand Down
2 changes: 2 additions & 0 deletions pkg/cluster/internal/loadbalancer/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ global
log /dev/log local0
log /dev/log local1 notice
daemon
# limit memory usage to approximately 18 MB
maxconn 100000

resolvers docker
nameserver dns 127.0.0.11:53
Expand Down