summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilly Tarreau <w@1wt.eu>2008-03-17 12:07:56 +0100
committerWilly Tarreau <w@1wt.eu>2008-03-17 12:08:13 +0100
commit2d2a7f8fbc06587e71fe9fbaf74f1f93c0c7a98a (patch)
tree582c52e443e14a73226d14a8312dd791d84e12bc
parentdb5238d3a4698aad7f25dcc1cea381a8ee822cfd (diff)
downloadhaproxy-2d2a7f8fbc06587e71fe9fbaf74f1f93c0c7a98a.tar.gz
[DOC] document the leastconn LB algo
-rw-r--r--doc/configuration.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/configuration.txt b/doc/configuration.txt
index 11360ba46..e79a437f4 100644
--- a/doc/configuration.txt
+++ b/doc/configuration.txt
@@ -711,6 +711,15 @@ balance <algorithm> [ <arguments> ]
is dynamic, which means that server weights may be adjusted
on the fly for slow starts for instance.
+ leastconn The server with the lowest number of connections receives the
+ connection. Round-robin is performed within groups of servers
+ of the same load to ensure that all servers will be used. Use
+ of this algorithm is recommended where very long sessions are
+ expected, such as LDAP, SQL, TSE, etc... but is not very well
+ suited for protocols using short sessions such as HTTP. This
+ algorithm is dynamic, which means that server weights may be
+ adjusted on the fly for slow starts for instance.
+
source The source IP address is hashed and divided by the total
weight of the running servers to designate which server will
receive the request. This ensures that the same client IP