Welcome! Log In Create A New Profile

Advanced

Adding new back-end servers without restarting

Posted by Alfredo Ramos 
Alfredo Ramos
Adding new back-end servers without restarting
September 07, 2009 07:20PM
Is it possible to modify the configuration to add a new server without
restarting haproxy?

It seems to me so far, that haproxy always requires a restart whenever a new
server is added or removed, which will bring the whole site down, and if
using session persistence, then all the session information will be lost.
Which will make it useless for high availability sites.

Is this actually the case? Can anyone illuminate me?

Thank you,

Alfredo Ramos.
benoit
Re: Adding new back-end servers without restarting
September 07, 2009 07:20PM
Alfredo Ramos wrote:
> Is it possible to modify the configuration to add a new server without
> restarting haproxy?
>
> It seems to me so far, that haproxy always requires a restart whenever
> a new server is added or removed, which will bring the whole site
> down, and if using session persistence, then all the session
> information will be lost. Which will make it useless for high
> availability sites.
>
> Is this actually the case? Can anyone illuminate me?
>
Like a lot of things, this is true and false :)

Yes, haproxy doesn't support live reconfiguration (yet?),
however the restart/reload mechanism used allow for a live reconfiguration
without downtime iirc
See "4.3 Hot reconfiguration" in
http://haproxy.1wt.eu/download/1.3/doc/architecture.txt
Magnus Hansen @ mingoville
Re: Adding new back-end servers without restarting
September 08, 2009 07:50AM
There is a soft restart option.
You can read about that in the docs..

On Sep 7, 2009, at 7:13 PM, Alfredo Ramos wrote:

> Is it possible to modify the configuration to add a new server
> without restarting haproxy?
>
> It seems to me so far, that haproxy always requires a restart
> whenever a new server is added or removed, which will bring the
> whole site down, and if using session persistence, then all the
> session information will be lost. Which will make it useless for
> high availability sites.
>
> Is this actually the case? Can anyone illuminate me?
>
> Thank you,
>
> Alfredo Ramos.
>
Sorry, only registered users may post in this forum.

Click here to login