I can't get dynamic reconfiguration to work. I want to add a
webserver to the haproxy load-balancer, so I edit the config file, and
issue a -st command. However, haproxy doesn't bring the new server
into the rotation, no messages are logged, and essentially nothing
happens. An exit code of 1 is returned. If I kill haproxy and
relaunch it, the new webserver does enter the rotation, so I don't
believe the config is to blame.
I've experimented with all sorts of combinations, but I've included some attempts demonstrating what I'm doing at the end here - haproxy just seems to exit.
The OS is Fedora 4 running on Xen, I'm using haproxy version 1.3.14,
from http://haproxy.1wt.eu/download/1.3/bin/haproxy-1.3.14-pcre-40kses-splice-linux-i586.notstripped.gz
# /opt/haproxy/haproxy -v
HA-Proxy version 1.3.14 2007/12/06
Copyright 2000-2007 Willy Tarreau <w#1wt.eu>
Any help or pointers would be greatly appreciated.
Justin SB
--- ResultsReceived on 2007/12/20 21:35
# /opt/haproxy/haproxy -f /etc/haproxy.cfg -p /var/run/haproxy.pid -V -
d -st $(</var/run/haproxy.pid) ; echo "EXIT CODE= $?" Available polling systems : sepoll : pref=400, test result OK epoll : pref=300, test result OK poll : pref=200, test result OK select : pref=150, test result OK Total: 4 (4 usable), will use sepoll. Using sepoll() as the polling mechanism. EXIT CODE= 1 # more /var/run/haproxy.pid 2985
# /opt/haproxy/haproxy -f /etc/haproxy.cfg -p /var/run/haproxy.pid -V -
d -st 2985 ; echo "EXIT CODE= $?" Available polling systems : sepoll : pref=400, test result OK epoll : pref=300, test result OK poll : pref=200, test result OK select : pref=150, test result OK Total: 4 (4 usable), will use sepoll. Using sepoll() as the polling mechanism. EXIT CODE= 1
This archive was generated by hypermail 2.2.0 : 2007/12/20 21:45 CET