*From: *Gabriel Sosa <[email protected]>
*Sent: * 2013-12-26 09:41:21 E
*To: *Patrick Hemmer <[email protected]>
*CC: *[email protected]
*Subject: *Re: disable backend through socket

>
>
>
> On Mon, Dec 23, 2013 at 12:21 PM, Patrick Hemmer
> <[email protected] <mailto:[email protected]>> wrote:
>
>>     On Sun, Dec 22, 2013 at 05:05:16PM -0500, Patrick Hemmer wrote:
>>>     No. As I said, I want to disable the backend.
>>>     
>>> http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#4.2-disabled
>>     That doesn't really work for backends since they don't decide to get
>>     traffic. At least if a config accepts to start with the "disabled"
>>     keyword in a backend and this backend is referenced in a frontend, I
>>     have no idea what it does behind the scenes. I'm not even sure the
>>     backend is completely initialized.
>
>     Ah, ok. I can live with that :-)
>
>
>>     What do you want to do exactly ? Do you just want to disable the
>>     health checks ? It's unclear what result you're seeking in fact.
>
>     I was just looking to disable backends without restarting the
>     service. Nothing more. Nothing less.
>     Currenly when I want to disable a backend I just update the config
>     and reload haproxy. Not a big deal. Was just hoping that since
>     frontends and servers could both be enabled/disabled through the
>     socket, that backends could too.
>
>     The reason why I don't want to disable individual servers is that
>     we have an automated process which enables & disables servers. If
>     a backend is disabled, then I don't want a server to automatically
>     get enabled and start taking traffic. By disabling the backend, we
>     prevent this scenario.
>
>>     Willy
>
>     Thank you
>
>     -Patrick
>
>
>
> Patrick,
>
> did you take a look to the load balancer feedback feature? [1] I think
> this might help you.
>
> Saludos
>
> [1]
> http://blog.loadbalancer.org/open-source-windows-service-for-reporting-server-load-back-to-haproxy-load-balancer-feedback-agent/
>

I have seen this yes, but unfortunately it still operates on a
per-server basis. I would have to reach out to every server and tell the
feedback agent to advertise itself as "in maintenance". The goal is to
be able to put the entire backend in maintenance, regardless of what the
status of the individual servers are.

This isn't that big of a deal. I currently have a haproxy controller
daemon which adjusts the haproxy.cfg (sets backend disable) and reloads.
I just like to avoid reloading as much as possible.

-Patrick

Reply via email to