Re: Automate backend registration

2011-08-06 Thread Malcolm Turnbull
EC2 auto registration Common practice is to do this the right scale / IBM way. When a backend server is launched via autoscaling then it makes an ssh remote command call to the loadbalancer calling an api script that adds the backend to the running haproxy configuration. By all means steal t

Re: Automate backend registration

2011-08-04 Thread Jens Bräuer
Hi Holger, thanks for the answer. I already assemble HA-Proxy configuration with the help of Puppet. Now things require a bit more logic fe. I dont want to restart HA-Proxy if the config that ships with the RPM does not change. I'll definitely have a look at your script - thanks for the pointer

Re: Automate backend registration

2011-08-03 Thread Holger Just
Jens, Many people have a script that builds a working configuration file from various bits and pieces. As the actual needed configuration typically isn't something which follows a common path but depends on the environment and the actual applications and a thousand other bits, there isn't a standa

Re: Automate backend registration

2011-08-03 Thread Jens Bräuer
Hi Baptiste, sorry for my wording. But you are right, with "registration" I mean - add ACL - add use_backend - add backend section so to sum it up "make haproxy aware of a new application". There might be cases there I want to "only" add a server to existing backend, but that would be the second

Re: Automate backend registration

2011-08-03 Thread Baptiste
Hi Jens, What do you mean by "registration"? Is that "make haproxy aware of the freshly deployed application" ? cheers On Wed, Aug 3, 2011 at 5:46 PM, Jens Bräuer wrote: > Hi HA-Proxy guys, > > I wonder whats the current state of the art to automate the registration of > backend. My setup run

Automate backend registration

2011-08-03 Thread Jens Bräuer
Hi HA-Proxy guys, I wonder whats the current state of the art to automate the registration of backend. My setup runs in on EC2 and I run HA-Proxy in front of local applications to easy administration. So a typical config file would be like this. frontend http bind *:8080 acl is-auth