Thank you Holger, it worked!
Pedro.
On Jun 26, 2009, at 7:46 PM, Holger Just wrote:
Pedro Mata-Mouros Fonseca wrote:
This is my first post into this mailing list, been following it for a
few days. So, greetings from Portugal. I have a small doubt: I have a
few backend sections defined in my haproxy.conf, one of each is
composed
of server1 to 4 - and all of them using the check keyword. In another
backend I use those servers as backups to the main one, and my
question
is: do I have to explicitely specify check on these backups in
order for
this later backend to be aware of their health? Will this not
double the
healthchecks for them?
Pedro,
You can use the track keyword on backend servers to track the health
status of other servers. You can use it like this:
backend primary
server www1 192.168.1.1:80 check port 80 inter 5s
server www2 192.168.1.2:80 check port 80 inter 5s
backend secondary
server www1_secondary 192.168.1.1:80 track primary/www1
server www2_secondary 192.168.1.2:80 track primary/www2
Health checks will be performed only once every 5 seconds for each of
the servers.
--Holger