]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: correctly disable servers tracking another disabled servers.
authorWilly Tarreau <w@1wt.eu>
Fri, 20 Jan 2012 12:12:32 +0000 (13:12 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 20 Jan 2012 15:18:30 +0000 (16:18 +0100)
commit62c3be28ed96dce88b93c5857a8a8b3bab083c73
tree9f3be43e1d369eff2fffef48036f8f98d95572f7
parent09a030a9a43380ff1dc6a6b1c59e86bed2dc8f48
BUG/MEDIUM: correctly disable servers tracking another disabled servers.

In a config where server "s1" is marked disabled and "s2" tracks "s1",
s2 appears disabled on the stats but is still inserted into the LB farm
because the tracking is resolved too late in the configuration process.

We now resolve tracked servers before building LB maps and we also mark
the tracking server in maintenance mode, which previously was not done,
causing half of the issue.

Last point is that we also protect srv_is_usable() against electing a
server marked for maintenance. This is not absolutely needed but is a
safe choice and makes a lot of sense.

This fix must be backported to 1.4.
include/proto/backend.h
src/cfgparse.c