]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: Clarify behavior of server maxconn in HTTP mode
authorTim Duesterhus <tim@bastelstu.be>
Wed, 27 Nov 2019 21:35:27 +0000 (22:35 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 28 Nov 2019 04:16:45 +0000 (05:16 +0100)
In HTTP mode the number of concurrent requests is limited, not the
number of actual connections.

doc/configuration.txt

index 2fadc433611bacd9092b150d1fbde3e319a6a72e..1e15ba4ecba001df362f363fdbee8f171b19b474 100644 (file)
@@ -11646,13 +11646,19 @@ downinter <delay>
 maxconn <maxconn>
   The "maxconn" parameter specifies the maximal number of concurrent
   connections that will be sent to this server. If the number of incoming
-  concurrent requests goes higher than this value, they will be queued, waiting
-  for a connection to be released. This parameter is very important as it can
+  concurrent connections goes higher than this value, they will be queued,
+  waiting for a slot to be released. This parameter is very important as it can
   save fragile servers from going down under extreme loads. If a "minconn"
   parameter is specified, the limit becomes dynamic. The default value is "0"
   which means unlimited. See also the "minconn" and "maxqueue" parameters, and
   the backend's "fullconn" keyword.
 
+  In HTTP mode this parameter limits the number of concurrent requests instead
+  of the number of connections. Multiple requests might be multiplexed over a
+  single TCP connection to the server. As an example if you specify a maxconn
+  of 50 you might see between 1 and 50 actual server connections, but no more
+  than 50 concurrent requests.
+
 maxqueue <maxqueue>
   The "maxqueue" parameter specifies the maximal number of connections which
   will wait in the queue for this server. If this limit is reached, next