Re: Reloading haproxy without dropping connections

2016-01-22 Thread David Martin
We use the iptables syn drop method, works fine; the additional 1 sec in response time for the tiny number of new connections doesn't bother us as we are not restarting multiple time per hour. On Fri, Jan 22, 2016 at 11:01 AM, CJ Ess wrote: > The yelp solution I can't do because it requires a new

Re: Reloading haproxy without dropping connections

2016-01-22 Thread CJ Ess
The yelp solution I can't do because it requires a newer kernel then I have access to, but the unbounce solution is interesting, I may be able to work up something around that. On Fri, Jan 22, 2016 at 4:07 AM, Pedro Mata-Mouros wrote: > Hi, > > Haven’t had the chance to implement this yet, but

Re: Reloading haproxy without dropping connections

2016-01-22 Thread Pedro Mata-Mouros
Hi, Haven’t had the chance to implement this yet, but maybe these links can get you started: http://engineeringblog.yelp.com/2015/04/true-zero-downtime-haproxy-reloads.html http://inside.unbounce.com/product-dev/haproxy-reloads/ It’d be cool to have a sort of “officially endorsed” way of achiev

Re: question about reloading haproxy

2012-02-10 Thread Michele Mazzucco
OK, thanks. On Feb 10, 2012, at 12:00 PM, Baptiste wrote: > On Fri, Feb 10, 2012 at 10:59 AM, "Brane F. Gračnar" > wrote: >> On 02/10/2012 10:53 AM, Michele Mazzucco wrote: >>> Hello Brane, >>> >>> yes, but that is equivalent to running the script as root... the effective >>> user ID is 0. >>>

Re: question about reloading haproxy

2012-02-10 Thread Baptiste
On Fri, Feb 10, 2012 at 10:59 AM, "Brane F. Gračnar" wrote: > On 02/10/2012 10:53 AM, Michele Mazzucco wrote: >> Hello Brane, >> >> yes, but that is equivalent to running the script as root... the effective >> user ID is 0. >> > > Nope, it's not :) You can configure sudo to allow specific user to

Re: question about reloading haproxy

2012-02-10 Thread Brane F. Gračnar
On 02/10/2012 10:53 AM, Michele Mazzucco wrote: > Hello Brane, > > yes, but that is equivalent to running the script as root... the effective > user ID is 0. > Nope, it's not :) You can configure sudo to allow specific user to run only "/etc/init.d/haproxy reload" without entering password. Yo

Re: question about reloading haproxy

2012-02-10 Thread Michele Mazzucco
Hello Brane, yes, but that is equivalent to running the script as root... the effective user ID is 0. Cheers, Michele On Feb 10, 2012, at 11:52 AM, Brane F. Gračnar wrote: > On 02/10/2012 10:35 AM, Michele Mazzucco wrote: >> Currently my script runs as a root. Would it be possible to restart

Re: question about reloading haproxy

2012-02-10 Thread Brane F. Gračnar
On 02/10/2012 10:35 AM, Michele Mazzucco wrote: > Currently my script runs as a root. Would it be possible to restart haproxy > (e.g. by issuing the command "/etc/init.d/haproxy restart") with lower > privileges? > The problem seems to be that I cannot re-bind port 80, unless the script runs > w

question about reloading haproxy

2012-02-10 Thread Michele Mazzucco
Hello, I am trying to control a haproxy instance running as a daemon via python: my script monitors the status of haproxy (e.g., number of queued requests), adds/remove some apache servers and updates the configuration of haproxy. Currently my script runs as a root. Would it be possible to resta

RE: reloading haproxy

2009-05-21 Thread Robert Simmons
uot;chkconfig haproxy on". 5. Then use "service haproxy start" to run HAProxy. Hope this helps! Robert. -Original Message- From: Willy Tarreau [mailto:w...@1wt.eu] Sent: 21 May 2009 05:33 To: Jeremy Cc: haproxy@formilux.org Subject: Re: reloading haproxy On Wed, May 20, 20

Re: reloading haproxy

2009-05-20 Thread Willy Tarreau
On Wed, May 20, 2009 at 05:03:08PM -0500, Jeremy wrote: > While we're on the subject, in case anyone else wants to use it (or knows a > better way of doing this)... I stuck this in my haproxy init.d scrip (using > CentOS/RedHat). I'm not sure how to make it do the fancy green [ OK ] output > like s

Re: reloading haproxy

2009-05-20 Thread Jeremy
While we're on the subject, in case anyone else wants to use it (or knows a better way of doing this)... I stuck this in my haproxy init.d scrip (using CentOS/RedHat). I'm not sure how to make it do the fancy green [ OK ] output like start/stop does but that's ok. reload() { /usr/local/sbin/$BA

Re: reloading haproxy

2009-05-17 Thread Willy Tarreau
Hi Adrian, On Thu, May 14, 2009 at 03:33:39PM +0200, Adrian Moisey wrote: > Hi > > I tried that, also gave the same result. What is happening is that the new haproxy process asks the old one to release the ports so that it can bind to them. So there exists a short period of time (a few hundreds

Re: reloading haproxy

2009-05-14 Thread Adrian Moisey
them. -Original Message- From: Adrian Moisey [mailto:adr...@careerjunction.co.za] Sent: Thursday, May 14, 2009 4:33 AM To: haproxy@formilux.org Subject: reloading haproxy Hi I am currently testing HAProxy for deployment in our live environment. I have HAProxy setup to load balance between

RE: reloading haproxy

2009-05-14 Thread John Lauro
shing them. > -Original Message- > From: Adrian Moisey [mailto:adr...@careerjunction.co.za] > Sent: Thursday, May 14, 2009 4:33 AM > To: haproxy@formilux.org > Subject: reloading haproxy > > Hi > > I am currently testing HAProxy for deployment in our live enviro

reloading haproxy

2009-05-14 Thread Adrian Moisey
Hi I am currently testing HAProxy for deployment in our live environment. I have HAProxy setup to load balance between 4 web servers and I'm using ab (apache bench) for testing throughput. I am trying to get the haproxy reloading working, but it doesn't seem to work. I start up a few ab's a