HAProxy Enterprise Documentation 2.1r1

set maxconn frontend

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

Description

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.

Examples

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-2.1/hapee-lb.sock

See also


Next up

Lua scripts