]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: backend: Allow redispatch on retry intervals
authorJoseph Lynch <joe.e.lynch@gmail.com>
Tue, 12 May 2015 06:25:34 +0000 (23:25 -0700)
committerWilly Tarreau <w@1wt.eu>
Fri, 22 May 2015 05:07:40 +0000 (07:07 +0200)
commit726ab7145c069762116dd7c87537634073cd0abc
tree1b094f5e802af28b58613cbbfa067b4ef951ff31
parent9826c7781a25fbf9b84c8a139b28eaa395d16eb4
MEDIUM: backend: Allow redispatch on retry intervals

For backend load balancing it sometimes makes sense to redispatch rather
than retrying against the same server. For example, when machines or routers
fail you may not want to waste time retrying against a dead server and
would instead prefer to immediately redispatch against other servers.

This patch allows backend sections to specify that they want to
redispatch on a particular interval. If the interval N is positive the
redispatch occurs on every Nth retry, and if the interval N is negative then
the redispatch occurs on the Nth retry prior to the last retry (-1 is the
default and maintains backwards compatibility). In low latency environments
tuning this setting can save a few hundred milliseconds when backends fail.
doc/configuration.txt
include/types/proxy.h
src/cfgparse.c
src/stream.c