Shutdown port when all backends are offline

2015-05-20 Thread info
Hi, I'm currently dabbling with additional round-robin DNS load balancing as addition to the normal HTTP lb with HAProxy. Now the problem seems to be, when one of the servers has a backend that is completely down, it will show an error page. Best case would be, the client shows only the

Re: Shutdown port when all backends are offline

2015-05-20 Thread Baptiste
Is there any way to control the frontend in that kind of way, that it does not listen on the assigned interface/port, when all backends are down? you can write your own script which reads haproxy stats socket and then stop/disable the frontend if all the backends are down. Baptiste