Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global
- log /dev/log local0
- chroot /var/lib/haproxy
- ## ADDS THE HABILITY TO CONTROL SERVER LOCALLY - EG. DISABLE HOSTS DYNAMICALLY ##
- ## FOR REMOTE ADMIN WOULD BE > http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#3.1-stats%20socket ##
- ## REMOTE SOCKET COMMANDS > http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#9.2 ##
- stats socket /etc/haproxy/haproxysock level admin
- user haproxy
- group haproxy
- daemon
- tune.ssl.default-dh-param 2048
- defaults
- log global
- mode http
- maxconn 300000
- option dontlognull
- option redispatch
- option tcplog
- timeout connect 10s
- timeout client 70m
- timeout server 70m
- timeout check 10s
- timeout queue 1m
- timeout http-request 10s
- errorfile 400 /usr/share/haproxy/400.http
- errorfile 403 /usr/share/haproxy/403.http
- errorfile 408 /usr/share/haproxy/408.http
- errorfile 500 /usr/share/haproxy/500.http
- errorfile 502 /usr/share/haproxy/502.http
- errorfile 503 /usr/share/haproxy/503.http
- errorfile 504 /usr/share/haproxy/504.http
- ## KEYSTONE SERVICES ##
- listen keystone_admin_backend
- bind 192.168.90.200:35357 ssl crt /etc/ssl/certs/openstack.nubeliucloud.com.pem
- balance roundrobin
- mode http
- http-request add-header X-ipn-forwarded-for %[src]
- option forwardfor
- option httpchk
- option httpclose
- reqadd X-Forwarded-Proto:\ https
- server sm01 192.168.90.10:35357 check inter 2000 rise 2 fall 5
- server sm02 192.168.90.11:35357 check inter 2000 rise 2 fall 5
- listen keystone_auth_backend
- bind 192.168.90.200:5000 ssl crt /etc/ssl/certs/openstack.nubeliucloud.com.pem
- balance roundrobin
- mode http
- http-request add-header X-ipn-forwarded-for %[src]
- option forwardfor
- option httpchk
- option httpclose
- reqadd X-Forwarded-Proto:\ https
- server sm01 192.168.90.10:5000 check inter 2000 rise 2 fall 5
- server sm02 192.168.90.11:5000 check inter 2000 rise 2 fall 5
- ## NEUTRON SERVICES ##
- listen neutron_server_backend
- bind 192.168.90.200:9696 ssl crt /etc/ssl/certs/openstack.nubeliucloud.com.pem
- mode http
- http-request add-header X-ipn-forwarded-for %[src]
- option forwardfor
- option httpchk
- option httpclose
- reqadd X-Forwarded-Proto:\ https
- server sm01 192.168.90.10:9696 check inter 2000 rise 2 fall 5
- server sm02 192.168.90.11:9696 check inter 2000 rise 2 fall 5
- ## GLANCE SERVICES ##
- listen glance_api_backend
- bind 192.168.90.200:9292 ssl crt /etc/ssl/certs/openstack.nubeliucloud.com.pem
- balance roundrobin
- mode http
- http-request add-header X-ipn-forwarded-for %[src]
- option forwardfor
- option httpchk
- option httpclose
- reqadd X-Forwarded-Proto:\ https
- server sm01 192.168.90.10:9292 check inter 2000 rise 2 fall 5
- server sm02 192.168.90.11:9292 check inter 2000 rise 2 fall 5
- listen glance_registry_backend
- bind 192.168.90.200:9191 ssl crt /etc/ssl/certs/openstack.com.pem
- mode tcp
- option tcpka
- balance roundrobin
- server sm01 192.168.90.10:9191 check inter 2000 rise 2 fall 5
- server sm02 192.168.90.11:9191 check inter 2000 rise 2 fall 5
- ## NOVA SERVICES ##
- listen nova_VNC
- bind 192.168.90.200:6080 ssl crt /etc/ssl/certs/openstack.com.pem
- option tcpka
- mode tcp
- balance roundrobin
- server sm01 192.168.90.10:6080 check inter 2000 rise 2 fall 5
- server sm02 192.168.90.11:6080 check inter 2000 rise 2 fall 5
- listen nova_placement_backend
- bind 192.168.90.200:8778 ssl crt /etc/ssl/certs/openstack.com.pem
- option tcpka
- mode tcp
- balance roundrobin
- server sm01 192.168.90.10:8778 check inter 2000 rise 2 fall 5
- server sm02 192.168.90.11:8778 check inter 2000 rise 2 fall 5
- listen nova_api_backend
- bind 192.168.90.200:8774 ssl crt /etc/ssl/certs/openstack.com.pem
- balance roundrobin
- mode http
- http-request add-header X-ipn-forwarded-for %[src]
- option forwardfor
- option httpchk
- option httpclose
- reqadd X-Forwarded-Proto:\ https
- server sm01 192.168.90.10:8774 check inter 2000 rise 2 fall 5
- server sm02 192.168.90.11:8774 check inter 2000 rise 2 fall 5
- listen nova_metadata_api_backend
- bind 192.168.90.200:8775 ssl crt /etc/ssl/certs/openstack.com.pem
- balance roundrobin
- mode http
- http-request add-header X-ipn-forwarded-for %[src]
- option forwardfor
- option httpchk
- option httpclose
- reqadd X-Forwarded-Proto:\ https
- server sm01 192.168.90.10:8775 check inter 2000 rise 2 fall 5
- server sm02 192.168.90.11:8775 check inter 2000 rise 2 fall 5
- ## CINDER SERVICE ##
- listen cinder_api_backend
- bind 192.168.90.200:8776 ssl crt /etc/ssl/certs/openstack.com.pem
- balance roundrobin
- mode http
- http-request add-header X-ipn-forwarded-for %[src]
- option forwardfor
- option httpchk
- option httpclose
- reqadd X-Forwarded-Proto:\ https
- server sm01 192.168.90.10:8776 check inter 2000 rise 2 fall 5
- server sm02 192.168.90.11:8776 check inter 2000 rise 2 fall 5
- ## GALERA SERVICE ##
- listen galera
- bind 192.168.90.200:3306
- mode tcp
- option tcpka
- balance source
- option mysql-check user haproxy_check
- server sm01 192.168.90.10:3306 check inter 2000 rise 2 fall 5
- server sm02 192.168.90.11:3306 backup check inter 2000 rise 2 fall 5
- server sm03 192.168.90.12:3306 backup check inter 2000 rise 2 fall 5
- ## MEMCACHED SERVICE ##
- listen memcached
- bind 192.168.90.200:11211
- mode tcp
- option tcpka
- balance source
- maxconn 10000
- server sm01 192.168.90.10:11211 check inter 2000 rise 2 fall 5
- server sm02 192.168.90.11:11211 check inter 2000 rise 2 fall 5
- server sm03 192.168.90.12:11211 check inter 2000 rise 2 fall 5
- ## REDIS SERVICE ##
- ## HORIZON SERVICES ##
- listen horizon
- bind 192.168.90.200:443 ssl crt /etc/ssl/certs/openstack.com.pem
- balance source
- mode http
- http-request add-header X-ipn-forwarded-for %[src]
- option forwardfor
- option httpchk
- option httpclose
- reqadd X-Forwarded-Proto:\ https
- server sm01 192.168.90.10:80 cookie sm01 check inter 2000 rise 2 fall 5
- server sm02 192.168.90.11:80 cookie sm02 check inter 2000 rise 2 fall 5
- ## MURANO SERVICES ##
- listen murano
- bind 192.168.90.200:8082
- option tcpka
- option httpchk
- balance roundrobin
- server sm01 192.168.90.10:8082 check inter 2000 rise 2 fall 5
- server sm02 192.168.90.11:8082 check inter 2000 rise 2 fall 5
- ## CEILOMETER ##
- ## HEAT ##
- listen heat
- bind 192.168.90.200:8000
- balance roundrobin
- mode http
- option httpchk
- option httpclose
- server sm01 192.168.90.10:8000 check inter 2000 rise 2 fall 5
- server sm02 192.168.90.11:8000 check inter 2000 rise 2 fall 5
- listen heat_engine
- bind 192.168.90.200:8004
- balance roundrobin
- mode http
- option httpchk
- option httpclose
- server sm01 192.168.90.10:8004 check inter 2000 rise 2 fall 5
- server sm02 192.168.90.11:8004 check inter 2000 rise 2 fall 5
- ## BILLING API
- ## MONITORING API
- ## CAPACITY API
- ## GNOCCHI API
- listen gnocchi_api
- bind 192.168.90.200:8041
- mode tcp
- option tcpka
- balance roundrobin
- maxconn 10000
- server sm01 192.168.90.10:8042 check inter 2000 rise 2 fall 5
- server sm02 192.168.90.11:8042 check inter 2000 rise 2 fall 5
Advertisement
Add Comment
Please, Sign In to add comment