Removed fuel from Genesis master since fuel has moved to repo fuel.
[genesis.git] / compass / deploy / ansible / roles / ha / templates / haproxy.cfg
1
2 global
3     #chroot /var/run/haproxy
4     daemon
5     user haproxy
6     group haproxy
7     maxconn 4000
8     pidfile /var/run/haproxy/haproxy.pid
9     #log 127.0.0.1 local0
10     tune.bufsize 1000000
11     stats socket /var/run/haproxy.sock
12     stats timeout 2m
13
14 defaults
15     log global
16     maxconn 8000
17     option redispatch
18     option dontlognull
19     option splice-auto
20     timeout http-request 10s
21     timeout queue 1m
22     timeout connect 10s
23     timeout client 6m
24     timeout server 6m
25     timeout check 10s
26     retries 5
27
28 listen  proxy-glance_registry_cluster
29     bind {{ HA_VIP }}:9191
30     option tcpka
31     option tcplog
32     balance source
33 {% for host in groups['controller'] %}
34     server {{ host }} {{ hostvars[host]['ansible_' + INTERNAL_INTERFACE].ipv4.address }}:9191 weight 1 check inter 2000 rise 2 fall 5
35 {% endfor %}
36
37 listen  proxy-glance_api_cluster
38     bind {{ HA_VIP }}:9292
39     option tcpka
40     option httpchk
41     option tcplog
42     balance source
43 {% for host in groups['controller'] %}
44     server {{ host }} {{ hostvars[host]['ansible_' + INTERNAL_INTERFACE].ipv4.address }}:9292 weight 1 check inter 2000 rise 2 fall 5
45 {% endfor %}
46
47 listen  proxy-nova-novncproxy
48     bind {{ HA_VIP }}:6080
49     option tcpka
50     option tcplog
51     balance source
52 {% for host in groups['controller'] %}
53     server {{ host }} {{ hostvars[host]['ansible_' + INTERNAL_INTERFACE].ipv4.address }}:6080 weight 1 check inter 2000 rise 2 fall 5
54 {% endfor %}
55
56 listen  proxy-network
57     bind {{ HA_VIP }}:9696
58     option tcpka
59     option tcplog
60     balance source
61 {% for host in groups['controller'] %}
62     server {{ host }} {{ hostvars[host]['ansible_' + INTERNAL_INTERFACE].ipv4.address }}:9696 weight 1 check inter 2000 rise 2 fall 5
63 {% endfor %}
64
65 listen  proxy-volume
66     bind {{ HA_VIP }}:8776
67     option tcpka
68     option httpchk
69     option tcplog
70     balance source
71 {% for host in groups['controller'] %}
72     server {{ host }} {{ hostvars[host]['ansible_' + INTERNAL_INTERFACE].ipv4.address }}:8776 weight 1 check inter 2000 rise 2 fall 5
73 {% endfor %}
74
75 listen  proxy-keystone_admin_cluster
76     bind {{ HA_VIP }}:35357
77     option tcpka
78     option httpchk
79     option tcplog
80     balance source
81 {% for host in groups['controller'] %}
82     server {{ host }} {{ hostvars[host]['ansible_' + INTERNAL_INTERFACE].ipv4.address }}:35357 weight 1 check inter 2000 rise 2 fall 5
83 {% endfor %}
84
85 listen  proxy-keystone_public_internal_cluster
86     bind {{ HA_VIP }}:5000
87     option tcpka
88     option httpchk
89     option tcplog
90     balance source
91 {% for host in groups['controller'] %}
92     server {{ host }} {{ hostvars[host]['ansible_' + INTERNAL_INTERFACE].ipv4.address }}:5000 weight 1 check inter 2000 rise 2 fall 5
93 {% endfor %}
94
95 listen  proxy-nova_compute_api_cluster
96     bind {{ HA_VIP }}:8774
97     mode tcp
98     option httpchk
99     option tcplog
100     balance source
101 {% for host in groups['controller'] %}
102     server {{ host }} {{ hostvars[host]['ansible_' + INTERNAL_INTERFACE].ipv4.address }}:8774 weight 1 check inter 2000 rise 2 fall 5
103 {% endfor %}
104
105 listen  proxy-nova_metadata_api_cluster
106     bind {{ HA_VIP }}:8775
107     option tcpka
108     option tcplog
109     balance source
110 {% for host in groups['controller'] %}
111     server {{ host }} {{ hostvars[host]['ansible_' + INTERNAL_INTERFACE].ipv4.address }}:8775 weight 1 check inter 2000 rise 2 fall 5
112 {% endfor %}
113
114 listen  proxy-cinder_api_cluster
115     bind {{ HA_VIP }}:8776
116     mode tcp
117     option httpchk
118     option tcplog
119     balance source
120 {% for host in groups['controller'] %}
121     server {{ host }} {{ hostvars[host]['ansible_' + INTERNAL_INTERFACE].ipv4.address }}:8776 weight 1 check inter 2000 rise 2 fall 5
122 {% endfor %}
123
124 listen stats
125     mode http
126     bind 0.0.0.0:8888
127     stats enable
128     stats refresh 30s
129     stats uri /
130     stats realm Global\ statistics
131     stats auth admin:admin
132
133