Hi,

we have a component that is exactly doing this.

I will see if we can opensource it.

It's written in Golang using gozk.

I was planning to give a glimpse at etcd doing the same thing.


On Wed, Jul 9, 2014 at 4:38 PM, Зайцев Сергей Александрович
<[email protected]> wrote:
> Thanks a lot!
>
> Seems to be exactly what I was looking for )
>
> Gonna check it up
>
> С уважением,
>
> Зайцев Сергей Александрович,
> <Департамент Реализации Интеграционных Решений>
>
> Т.   +7 (495) 514 1410 (доб. 4236)
> M. +7 (926) 143-4858
>
> [email protected]
> www.r-style.com
>
>
>
>
> -----Original Message-----
> From: Vincent Bernat [mailto:[email protected]]
> Sent: Wednesday, July 09, 2014 6:36 PM
> To: Зайцев Сергей Александрович
> Cc: [email protected]
> Subject: Re: how to sync HaProxy config with ZooKeeper
>
>  ❦  9 juillet 2014 14:28 GMT, Зайцев Сергей Александрович 
> <[email protected]> :
>
>> I want to automatically udpate HaProxy's configuration depending on my
>> app's state. I mean, that when I have a number of components running,
>> I update my ZooKeeper configuration as soon as new node joins the
>> cluster ( an leaves it also ). But what I also need - is a way
>> ZooKeeper's watcher being able to udpate HaProxy configuraion in order
>> to provide actual information for the load balance to avoid balance
>> for absent cluster nodes.
>>
>> So the question is - is the a way to synchronized HaProxy's
>> configuration with ZooKeeper ( somehow ).
>
> It is unlikely that someone has integrated Zookeeper into HAProxy but you can 
> rely on an external process to watch zookeeper, update HAProxy state and 
> reload.
>
>  https://github.com/rs/zkfarmer
>  https://github.com/twitter/twitcher
>
> The first one needs some additional glue to watch file changes and rebuild 
> HAProxy configuration.
> --
> printk("Entering UltraSMPenguin Mode...\n");
>         2.2.16 /usr/src/linux/arch/sparc64/kernel/smp.c



-- 
Steven Le Roux
Jabber-ID : [email protected]
0x39494CCB <[email protected]>
2FF7 226B 552E 4709 03F0  6281 72D7 A010 3949 4CCB

Reply via email to