Re: Graceful configuration changes?

2011-10-19 Thread Vivek Malik
haproxy -f /etc/haproxy.cfg -sf $(cat $PIDFILE) would do it

haproxy -h
HA-Proxy version 1.4.18 2011/09/16
Copyright 2000-2011 Willy Tarreau w...@1wt.eu

Usage : haproxy [-f cfgfile]* [ -vdVD ] [ -n maxconn ] [ -N maxpconn ]
[ -p pidfile ] [ -m max megs ]
-v displays version ; -vv shows known build options.
-d enters debug mode ; -db only disables background mode.
-V enters verbose mode (disables quiet mode)
-D goes daemon
-q quiet mode : don't display messages
-c check mode : only check config files and exit
-n sets the maximum total # of connections (4)
-m limits the usable amount of memory (in MB)
-N sets the default, per-proxy maximum # of connections (4)
-p writes pids of all children to this file
-de disables epoll() usage even when available
-ds disables speculative epoll() usage even when available
-dp disables poll() usage even when available
-dS disables splice usage (broken on old kernels)
-sf/-st [pid ]* finishes/terminates old pids. Must be last
arguments.


Also see http://haproxy.1wt.eu/download/1.2/doc/haproxy-en.txt

Vivek


On Wed, Oct 19, 2011 at 9:00 PM, John Singleton jsing...@gmail.com wrote:

 Hi Kevin,

 I believe you can just send it a -HUP signal. eg: kill -HUP pid

 Best,
 JLS


 On Wed, Oct 19, 2011 at 4:37 PM, Kevin Lindsay ke...@trakker.ca wrote:

 Can HA Proxy make graceful configuration changes? Or does the entire proxy
 need to be restarted leaving space for downtime?

 Thanks,
 Kevin








Re: Graceful configuration changes?

2011-10-19 Thread Adam Kocoloski
Yes, that works, but there's a window during which neither the old process nor 
the new process is listening on the socket.

Simon Horman implemented a master/worker model to avoid that downtime, but I 
guess it's not quite ready to be integrated into the mainline yet.  I believe 
you can find his work at 
http://haproxy.1wt.eu/git?p=haproxy.git;a=shortlog;h=refs/heads/horms-rebased7

Best, Adam

On Oct 19, 2011, at 9:00 PM, John Singleton wrote:

 Hi Kevin,
 
 I believe you can just send it a -HUP signal. eg: kill -HUP pid
 
 Best,
 JLS
 
 On Wed, Oct 19, 2011 at 4:37 PM, Kevin Lindsay ke...@trakker.ca wrote:
 Can HA Proxy make graceful configuration changes? Or does the entire proxy 
 need to be restarted leaving space for downtime?
 
 Thanks,
 Kevin