从文档中:
maxconn <number>
Sets the maximum per-process number of concurrent connections to <number>. It
is equivalent to the command-line argument "-n". Proxies will stop accepting
connections when this limit is reached. The "ulimit-n" parameter is
automatically adjusted according to this value. See also "ulimit-n". Note:
the "select" poller cannot reliably use more than 1024 file descriptors on
some platforms. If your platform only supports select and reports "select
FAILED" on startup, you need to reduce maxconn until it works (slightly
below 500 in general).
据我了解,当客户端尝试连接到代理并且代理有maxconn
连接时,它不会向客户端发送 SYN+ACK 包,因此客户端最终会超时。
如果到达,我想让 haproxy 向客户端发送 RST maxconn
。可能吗?