mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-05 22:56:57 +02:00
When using hash-based load balancing, requests are always assigned to the server corresponding to the hash bucket for the balancing key, without taking maxconn or maxqueue into account, unlike in other load balancing methods like 'first'. This adds a new backend directive that can be used to take maxconn and possibly maxqueue in that context. This can be used when hashing is desired to achieve cache locality, but sending requests to a different server is preferable to queuing for a long time or failing requests when the initial server is saturated. By default, affinity is preserved as was the case previously. When 'hash-preserve-affinity' is set to 'maxqueue', servers are considered successively in the order of the hash ring until a server that does not have a full queue is found. When 'maxconn' is set on a server, queueing cannot be disabled, as 'maxqueue=0' means unlimited. To support picking a different server when a server is at 'maxconn' irrespective of the queue, 'hash-preserve-affinity' can be set to 'maxconn'. |
||
---|---|---|
.. | ||
basic-check.cfg | ||
ext-check.cfg | ||
ports.cfg | ||
setstatus.lua | ||
tcp-check.cfg | ||
test-acl-args.cfg | ||
test-address-syntax.cfg | ||
test-backlog.cfg | ||
test-check-expect.cfg | ||
test-connection.cfg | ||
test-cookie-indirect.cfg | ||
test-cookie-insert.cfg | ||
test-cookie-passive.cfg | ||
test-cookie-prefix.cfg | ||
test-cookie-rewrite.cfg | ||
test-disable-404.cfg | ||
test-fsm.cfg | ||
test-fwlc.cfg | ||
test-fwrr.cfg | ||
test-handshakes-chk.cfg | ||
test-handshakes.cfg | ||
test-hash-preseve-affinity.cfg | ||
test-http-send-name-hdr.cfg | ||
test-http-set-status-lua.cfg | ||
test-http-set-status.cfg | ||
test-inspect-smtp.cfg | ||
test-inspect-ssl.cfg | ||
test-map-ports.cfg | ||
test-param-hash.cfg | ||
test-pollers.cfg | ||
test-redirect.cfg | ||
test-sample-fetch-args.cfg | ||
test-sample-fetch-conv.cfg | ||
test-sql.cfg | ||
test-srv-verify.cfg | ||
test-stats.cfg | ||
test-str2sa.cfg | ||
test-time.cfg | ||
test-timeout.cfg | ||
test-url-hash.cfg | ||
test-valid-names.cfg |