HAProxy Enterprise Documentation 1.5r2

set maxconn frontend

Change a frontend's maximum concurrent connections (maxconn) setting.


A frontend section may declare a maxconn setting, which limits the number of concurrent connections the frontend will accept. When this limit is reached, connections queue up in the kernel's socket queue.

frontend fe_main
   bind :80
   default_backend webservers
   maxconn 20000

Use the set maxconn frontend command to change this limit dynamically. If the limit goes lower than the current number of connections, new connections will queue until they reach the lower threshold.


Below, we set the frontend fe_main to have a maxconn of 10,000:

$ echo "set maxconn frontend fe_main 10000" | sudo socat stdio /var/run/hapee-1.5/hapee-lb.sock

See also

Next up

set maxconn global