adetante / hadiscover Goto Github PK
View Code? Open in Web Editor NEWAutomatic reload of HAproxy with configuration generated from etcd
Automatic reload of HAproxy with configuration generated from etcd
Hi,
I am seeing a bunch of defunct haproxy processes after configuration is reloaded. Is this expected?
root 3860 0.2 0.7 322952 7132 pts/0 Sl+ 05:27 0:00 /root/go/bin/hadiscover --config /etc/haproxy/haproxy.cfg.tpl --etcd http://localhost:4001 --ha /usr/sbin/haproxy --key service
root 3866 0.0 0.0 0 0 pts/0 Z+ 05:27 0:00 [haproxy]
root 3885 0.0 0.0 0 0 pts/0 Z+ 05:28 0:00 [haproxy]
root 3892 0.0 0.0 0 0 pts/0 Z+ 05:28 0:00 [haproxy]
root 3910 0.0 0.0 0 0 pts/0 Z+ 05:33 0:00 [haproxy]
root 3911 0.0 0.0 0 0 pts/0 Z+ 05:33 0:00 [haproxy]
root 3912 0.0 0.0 0 0 pts/0 Z+ 05:33 0:00 [haproxy]
root 3913 0.0 0.0 0 0 pts/0 Z+ 05:33 0:00 [haproxy]
root 3914 0.0 0.0 0 0 pts/0 Z+ 05:33 0:00 [haproxy]
root 3915 0.0 0.0 0 0 pts/0 Z+ 05:33 0:00 [haproxy]
root 3916 0.0 0.0 0 0 pts/0 Z+ 05:33 0:00 [haproxy]
root 3917 0.0 0.0 0 0 pts/0 Z+ 05:33 0:00 [haproxy]
root 3918 0.0 0.0 0 0 pts/0 Z+ 05:33 0:00 [haproxy]
root 3919 0.0 0.0 0 0 pts/0 Z+ 05:33 0:00 [haproxy]
root 3920 0.0 0.0 0 0 pts/0 Z+ 05:33 0:00 [haproxy]
root 3921 0.0 0.0 0 0 pts/0 Z+ 05:34 0:00 [haproxy]
root 3922 0.0 0.0 0 0 pts/0 Z+ 05:34 0:00 [haproxy]
root 3923 0.0 0.0 0 0 pts/0 Z+ 05:34 0:00 [haproxy]
root 3924 0.0 0.0 0 0 pts/0 Z+ 05:34 0:00 [haproxy]
root 3925 0.0 0.0 0 0 pts/0 Z+ 05:34 0:00 [haproxy]
root 3926 0.0 0.0 0 0 pts/0 Z+ 05:34 0:00 [haproxy]
root 3927 0.0 0.0 0 0 pts/0 Z+ 05:34 0:00 [haproxy]
root 3928 0.0 0.0 0 0 pts/0 Z+ 05:34 0:00 [haproxy]
root 3929 0.0 0.0 0 0 pts/0 Z+ 05:34 0:00 [haproxy]
root 3930 0.0 0.0 0 0 pts/0 Z+ 05:34 0:00 [haproxy]
root 3931 0.0 0.0 0 0 pts/0 Z+ 05:34 0:00 [haproxy]
root 3932 0.0 0.0 0 0 pts/0 Z+ 05:34 0:00 [haproxy]
root 3933 0.0 0.0 0 0 pts/0 Z+ 05:34 0:00 [haproxy]
root 3934 0.0 0.0 0 0 pts/0 Z+ 05:34 0:00 [haproxy]
root 3935 0.0 0.0 0 0 pts/0 Z+ 05:34 0:00 [haproxy]
root 3936 0.0 0.2 12436 2856 pts/0 S+ 05:34 0:00 /usr/sbin/haproxy -f .haproxy.cfg -sf 3935
root 3938 0.0 0.2 11752 2272 pts/3 S+ 05:34 0:00 grep --color=auto haproxy
Hello,
we are trying to configure docker and haproxy using hadiscover and used the same template you provided as example i pasted down
but while running the command sudo ./hadiscover --config /etc/haproxy.cfg.tpl --etcd http://10.193.137.116:8040 --ha /apps/opt/haproxy-1.5.8/haproxy --key services
we are getting error
2015/09/11 17:48:17 Start watching changes in etcd
2015/09/11 17:48:17 Cannot register watcher for changes in etcd: invalid character 'C' looking for beginning of value
[root@sv2lxecxmsdi01 bin]# Cannot register watcher for changes in etcd: invalid character 'C' looking for beginning of value
is there any mistake we are doing ?
the template file is
global
maxconn 4096
defaults
log global
mode http
option httplog
option dontlognull
retries 3
redispatch
maxconn 2000
contimeout 5000
clitimeout 50000
srvtimeout 50000
frontend http-in
bind *:8000
default_backend http
backend http
{{range .}} server {{.Name}} {{.Ip}}:{{.Port}} maxconn 32
{{end}}
In the ba
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.