HAProxy Enterprise Documentation 1.8r2
set maxconn server
Change a server's maximum concurrent connections (
You can define a
maxconn setting on each
server line in a
backend section of your configuration. This limits the number of concurrent connections that HAProxy Enterprise will relay to that server. When this limit is reached, connections queue up in the backend until a server slot becomes free.
server s1 192.168.0.10:80 maxconn 30
server s2 192.168.0.11:80 maxconn 30
server s3 192.168.0.12:80 maxconn 30
set maxconn server command to change this limit dynamically. A value of zero is allowed.
Below, we set the server s1 in the backend webservers to have a
maxconn of 20:
$ echo "set maxconn server webservers/s1 20" | sudo socat stdio /var/run/hapee-1.8/hapee-lb.sock
Next up Lua scripts