]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http: add option prefer-last-server
authorWilly Tarreau <w@1wt.eu>
Sun, 15 Dec 2013 17:58:25 +0000 (18:58 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 16 Dec 2013 01:23:54 +0000 (02:23 +0100)
commit9420b1271d3c800033e8af20c8fcad4258ac27ee
tree4a5662b7bb31512b552648df489aefe641713d80
parent34601a8f986480b944fa1debb0e8cff97cbd5dc4
MINOR: http: add option prefer-last-server

When the load balancing algorithm in use is not deterministic, and a previous
request was sent to a server to which haproxy still holds a connection, it is
sometimes desirable that subsequent requests on a same session go to the same
server as much as possible. Note that this is different from persistence, as
we only indicate a preference which haproxy tries to apply without any form
of warranty. The real use is for keep-alive connections sent to servers. When
this option is used, haproxy will try to reuse the same connection that is
attached to the server instead of rebalancing to another server, causing a
close of the connection. This can make sense for static file servers. It does
not make much sense to use this in combination with hashing algorithms.
doc/configuration.txt
include/types/proxy.h
src/backend.c
src/cfgparse.c