The api patch I have been working on at https://github.com/jbuchbinder/haproxy 
has that functionality, but needs more testing.

Willy has said that he has no plans to include this patch, primarily due to the 
potential for configuration issues in dynamically configured frontends, 
backends, etc.

Thanks,
Jeff

Ivan Ator <[email protected]> wrote:


Going from the documentation, there doesn't appear to be functionality
for creating/destroying backends.

Personally, I have accomplished your task by creating a series of
scripts for maintaining the configuration file and reloading it while live.

On 2/6/2012 3:21 PM, Dziuba, Ted wrote:
> Hi,
>
> I am wondering if it possible to create an haproxy backend
> programmatically, using the unix socket facility. I see that you can
> enable and disable existing back-ends, but I want to add a new one. This
> is my use case:
>
> HTTP server starts on a host, binding to port 0
>
> HTTP server announces itself to a load balancer, asking to be put into
> the pool
>
> Load balancer acknowledges HTTP server and starts sending it traffic
>
> Thanks,
>
> Ted
>
> ---
>
> Ted Dziuba
>
> Co-Founder, Milo.com
>
> [email protected]
>


Reply via email to