diff options
| author | Jenkins <jenkins@review.openstack.org> | 2014-10-07 04:18:26 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2014-10-07 04:18:26 +0000 |
| commit | 0d544c7130d62e829413a7fa3d495ffecb090972 (patch) | |
| tree | b9a35cb84ad9857c2713e4198c43a73a3c42dae9 /docker/hautoproxy/haproxy.cfg.tmpl | |
| parent | 958e1cc54992548136d9ff4c082804d01e575dbe (diff) | |
| parent | 154e2781d9debe5417bdec14689ace88eb4ea3e3 (diff) | |
| download | kolla-0d544c7130d62e829413a7fa3d495ffecb090972.tar.gz kolla-0d544c7130d62e829413a7fa3d495ffecb090972.zip | |
Merge "added hautoproxy auto-configuring haproxy"
Diffstat (limited to 'docker/hautoproxy/haproxy.cfg.tmpl')
| -rw-r--r-- | docker/hautoproxy/haproxy.cfg.tmpl | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/docker/hautoproxy/haproxy.cfg.tmpl b/docker/hautoproxy/haproxy.cfg.tmpl new file mode 100644 index 000000000..cd1174b21 --- /dev/null +++ b/docker/hautoproxy/haproxy.cfg.tmpl @@ -0,0 +1,26 @@ +global + daemon + maxconn 4096 + pidfile /var/run/haproxy.pid + +defaults + mode tcp + timeout connect 5s + timeout client 1m + timeout server 1m + option redispatch + balance roundrobin + +listen stats :1936 + mode http + stats enable + stats hide-version + #stats realm Haproxy\ Statistics + stats uri / + #stats auth Username:Password + +{% for service in services %} +listen {{ service.service_name }} + bind 127.0.0.1:{{service.local_port}} + server {{ service.remote_name }} {{ service.remote_addr }}:{{ service.remote_port}} check inter 2s rise 3 fall 2 +{% endfor %} |
