]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: dns: runtime resolution can change server admin state
authorBaptiste Assmann <bedis9@gmail.com>
Wed, 2 Nov 2016 21:58:18 +0000 (22:58 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 9 Nov 2016 14:30:47 +0000 (15:30 +0100)
commit3b9fe9f8f4f88ae5f753354d7266048124e1a55a
tree3988422aff3fd7bee669c5813d7aa3efe6a10549
parent987e16d6f4b0cc4614cf87f4b849531d32312a2b
MAJOR: dns: runtime resolution can change server admin state

WARNING: this is a MAJOR (and disruptive) change with previous HAProxy's
behavior: before, HAProxy never ever used to change a server administrative
status when the DNS resolution failed at run time.

This patch gives HAProxy the ability to change the administrative status
of a server to MAINT (RMAINT actually) when an error is encountered for
a period longer than its own allowed by the corresponding 'hold'
parameter.

IE if the configuration sets "hold nx 10s" and a server's hostname
points to a NX for more than 10s, then the server will be set to RMAINT,
hence in MAINTENANCE mode.
src/server.c