Hi, Setting up the weight of a server to 0 means no new connections would be established to the server. If there is persistence enable, it means all sticked users still get routed to this server. When a server is disabled, it means no new connections are routed to this server, for sticked users or not.. but current connections are not shut down, they leave until the client, the server or HAProxy shuts it.
I hope this helps. cheers. On Fri, Jan 4, 2013 at 4:58 PM, Brendon Colby <bren...@newgrounds.com> wrote: > Dusty, > > What I've been doing here is a soft stop on a back-end server, waiting for > current sessions to drop to 0, then doing what I need to do on that server. > This has worked well even for large in progress file transfers. > > Out of curiosity I just issued a disable on a back-end server while > downloading a file and my connection was NOT forcibly closed. I haven't > tested this well but it's possible you could just issue disable and wait for > current sessions to finish. It appears that disable/soft stop do the same > thing where current connections are concerned, however, soft stop only > changes the weight to 0, where disable puts the server in status MAINT and > stops health checks. I suggest testing this in your environment though, > which is pretty easy to do. > > Brendon > > > On Thu, Jan 3, 2013 at 2:36 PM, Dusty Doris <du...@doris.name> wrote: >> >> Could someone help me understand the difference between Soft Stop/Soft >> Start and Disable/Enable? >> >> I can see that when I disable a node in the web UI it is marked as >> MAINT and when I issue a Soft Stop, the weight is changed to 0. >> >> How do those differences impact my connections? >> >> What I working on is automating deployments by disabling a server from >> the proxy, waiting until its connections reach 0, updating the code >> and restarting the process, then re-enabling the server in the proxy. >> >> I'd like to wait until all connections are closed before I begin the >> upgrade (we have some long running file transfers that we don't want >> to cut off by dispatching to a different server) >> >> From what I understand, setting the weight to 0 and then back to 1, >> will accomplish my goal. >> >> What I am curious about is if I can accomplish the same goal by >> disabling the server into MAINT mode or if using both weight and MAINT >> adds anything useful. >> >> Thanks for your help! >> >