Skip to content

Commit

Permalink
bug: diable haproxy zero copy forwarding (#214)
Browse files Browse the repository at this point in the history
haproxy version 2.9.1 is consuming > 100% of cpu. the problem does not
happen in older versions. this commit disables the zero copy forwarding
as per workaround here:

haproxy/haproxy#2402 (comment)

we may want to enable this back in once it is fixed upstream.
  • Loading branch information
ricardomaraschini authored Jan 8, 2024
1 parent fc9bcd1 commit f879a25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/internallb/haproxy.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#---------------------------------------------------------------------
global
log stdout format raw local0 notice
tune.disable-zero-copy-forwarding
daemon

#---------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions pkg/internallb/haproxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func TestGenerateHAProxyConfig(t *testing.T) {
#---------------------------------------------------------------------
global
log stdout format raw local0 notice
tune.disable-zero-copy-forwarding
daemon
#---------------------------------------------------------------------
Expand Down

0 comments on commit f879a25

Please sign in to comment.