Hi all,
I'm trying to get haproxy+confd under inside a docker.
Many tutos are talking about :
https://beingasysadmin.wordpress.com/2015/09/07/scaling-ha-proxy-with-docker-confd-serf-etcd/http://ox86.tumblr.com/post/90554410668/easy-scaling-with-docker-haproxy-and-confdTo get haproxy + confd in the same container, I'm using supervisord, here's my conf :
[program:haproxy]
command=/usr/local/sbin/haproxy -V -d -p /var/run/haproxy.pid -f /usr/local/etc/haproxy/haproxy.cfg
autorestart=true
priority=1
[program:confd]
command=/opt/confd/bin/confd -interval=10 -node 'http://192.168.1.242:4001'
autostart=true
autorestart=true (I tried with "-interval 10", and with 'interval = 10' in a confd.toml file)
Here's my haproxy.toml :
[template]
src = "haproxy.cfg.tmpl"
dest = "/usr/local/etc/haproxy/haproxy.cfg"
keys = [
"/app/servers",
]
reload_cmd = "/usr/local/sbin/haproxy -f /usr/local/etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -sf $(pidof haproxy)"
Confd is properly starting, reading keys from my ectl backend, and reloading haproxy with all keys.
HAProxy is properly starting, I can see the HAProxy statistics page with all my http backends.
After that, no automatic pull of etcd backend... i cant have my new or deleted keys trigger confd to reload haproxy... and I dont understand why...
Is there anything I'm missing ? Any known issue ?
Thanks by advance.
H4Mm3r