Skip to content

Commit

Permalink
MINOR: global: Add a bunch of new tunables
Browse files Browse the repository at this point in the history
Add support for the new keywords:

- tune.applet.zero-copy-forwarding
- tune.buffers.limit
- tune.buffers.reserve
- tune.h2.be.glitches-threshold
- tune.h2.fe.glitches-threshold
- tune.h2.fe.max-total-streams
- tune.quic.reorder-ratio
- tune.quic.zero-copy-fwd-send
- tune.ring.queues
  • Loading branch information
oliwer authored and oktalz committed Jun 13, 2024
1 parent 00dddab commit a2ee1b5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
11 changes: 9 additions & 2 deletions section-parsers.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ func (p *configParser) getGlobalParser() *Parsers { //nolint: maintidx
addParser(parser, &sequence, &parsers.HTTPClientSSLVerify{})
addParser(parser, &sequence, &simple.Enabled{Name: "limited-quic"})
addParser(parser, &sequence, &simple.Enabled{Name: "prealloc-fd"})
addParser(parser, &sequence, &simple.OnOff{Name: "tune.applet.zero-copy-forwarding"})
addParser(parser, &sequence, &simple.Number{Name: "tune.buffers.limit"})
addParser(parser, &sequence, &simple.Number{Name: "tune.buffers.reserve"})
addParser(parser, &sequence, &simple.Number{Name: "tune.bufsize"})
Expand All @@ -271,12 +272,15 @@ func (p *configParser) getGlobalParser() *Parsers { //nolint: maintidx
addParser(parser, &sequence, &simple.OnOff{Name: "tune.fd.edge-triggered"})
addParser(parser, &sequence, &simple.OnOff{Name: "tune.h1.zero-copy-fwd-recv"})
addParser(parser, &sequence, &simple.OnOff{Name: "tune.h1.zero-copy-fwd-send"})
addParser(parser, &sequence, &simple.Number{Name: "tune.h2.be.glitches-threshold"})
addParser(parser, &sequence, &simple.Number{Name: "tune.h2.be.initial-window-size"})
addParser(parser, &sequence, &simple.Number{Name: "tune.h2.header-table-size"})
addParser(parser, &sequence, &simple.Number{Name: "tune.h2.initial-window-size"})
addParser(parser, &sequence, &simple.Number{Name: "tune.h2.be.max-concurrent-streams"})
addParser(parser, &sequence, &simple.Number{Name: "tune.h2.fe.glitches-threshold"})
addParser(parser, &sequence, &simple.Number{Name: "tune.h2.fe.initial-window-size"})
addParser(parser, &sequence, &simple.Number{Name: "tune.h2.fe.max-concurrent-streams"})
addParser(parser, &sequence, &simple.Number{Name: "tune.h2.fe.max-total-streams"})
addParser(parser, &sequence, &simple.Number{Name: "tune.h2.header-table-size"})
addParser(parser, &sequence, &simple.Number{Name: "tune.h2.initial-window-size"})
addParser(parser, &sequence, &simple.Number{Name: "tune.h2.max-concurrent-streams"})
addParser(parser, &sequence, &simple.Number{Name: "tune.h2.max-frame-size"})
addParser(parser, &sequence, &simple.OnOff{Name: "tune.h2.zero-copy-fwd-send"})
Expand Down Expand Up @@ -311,6 +315,7 @@ func (p *configParser) getGlobalParser() *Parsers { //nolint: maintidx
addParser(parser, &sequence, &simple.Number{Name: "tune.rcvbuf.frontend"})
addParser(parser, &sequence, &simple.Number{Name: "tune.rcvbuf.server"})
addParser(parser, &sequence, &simple.Number{Name: "tune.recv_enough"})
addParser(parser, &sequence, &simple.Number{Name: "tune.ring.queues"})
addParser(parser, &sequence, &simple.Number{Name: "tune.runqueue-depth"})
addParser(parser, &sequence, &simple.OnOff{Name: "tune.sched.low-latency"})
addParser(parser, &sequence, &simple.Number{Name: "tune.sndbuf.backend"})
Expand All @@ -337,7 +342,9 @@ func (p *configParser) getGlobalParser() *Parsers { //nolint: maintidx
addParser(parser, &sequence, &simple.Time{Name: "tune.quic.frontend.max-idle-timeout"})
addParser(parser, &sequence, &simple.Number{Name: "tune.quic.frontend.max-streams-bidi"})
addParser(parser, &sequence, &simple.Number{Name: "tune.quic.max-frame-loss"})
addParser(parser, &sequence, &simple.Number{Name: "tune.quic.reorder-ratio"})
addParser(parser, &sequence, &simple.Number{Name: "tune.quic.retry-threshold"})
addParser(parser, &sequence, &simple.OnOff{Name: "tune.quic.zero-copy-fwd-send"})
addParser(parser, &sequence, &parsers.QuicSocketOwner{})
addParser(parser, &sequence, &simple.Enabled{Name: "no-quic"})
addParser(parser, &sequence, &simple.Word{Name: "cluster-secret"})
Expand Down
11 changes: 10 additions & 1 deletion tests/configs/haproxy.cfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,30 @@ global
stats socket $PWD/haproxy-runtime-api.3.sock level admin mode 777 expose-fd listeners process 3
stats timeout 120s
limited-quic
tune.applet.zero-copy-forwarding off
tune.buffers.limit 30
tune.buffers.reserve 3
tune.bufsize 32768
tune.disable-zero-copy-forwarding
tune.events.max-events-at-once 150
tune.h1.zero-copy-fwd-recv on
tune.h1.zero-copy-fwd-send on
tune.h2.be.glitches-threshold 16
tune.h2.fe.glitches-threshold 24
tune.h2.fe.max-total-streams 1048576
tune.h2.zero-copy-fwd-send on
tune.pt.zero-copy-forwarding on
tune.ring.queues 8
tune.ssl.default-dh-param 2048
tune.quic.reorder-ratio 75
tune.quic.zero-copy-fwd-send on
ssl-default-bind-options no-sslv3 no-tls-tickets
ssl-default-bind-ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!3DES:!MD5:!PSK
ssl-load-extra-del-ext
log 127.0.0.1:514 local0 notice
# random comment before snippet
###_config-snippet_### BEGIN
tune.ssl.default-dh-param 2048
tune.bufsize 32768
ssl-default-bind-client-sigalgs RSA+SHA256
ssl-default-bind-sigalgs ECDSA+SHA256:RSA+SHA256
###_config-snippet_### END
Expand Down

0 comments on commit a2ee1b5

Please sign in to comment.