117 lines
3.3 KiB
INI
117 lines
3.3 KiB
INI
#---------------------------------------------------------------------
|
|
# Example configuration for a possible web application. See the
|
|
# full configuration options online.
|
|
#
|
|
# http://haproxy.1wt.eu/download/1.4/doc/configuration.txt
|
|
#
|
|
#---------------------------------------------------------------------
|
|
|
|
#---------------------------------------------------------------------
|
|
# Global settings
|
|
#---------------------------------------------------------------------
|
|
global
|
|
# to have these messages end up in /var/log/haproxy.log you will
|
|
# need to:
|
|
#
|
|
# 1) configure syslog to accept network log events. This is done
|
|
# by adding the '-r' option to the SYSLOGD_OPTIONS in
|
|
# /etc/sysconfig/syslog
|
|
#
|
|
# 2) configure local2 events to go to the /var/log/haproxy.log
|
|
# file. A line like the following can be added to
|
|
# /etc/sysconfig/syslog
|
|
#
|
|
# local2.* /var/log/haproxy.log
|
|
#
|
|
log 127.0.0.1 local2
|
|
|
|
chroot /var/lib/haproxy
|
|
pidfile /var/run/haproxy.pid
|
|
maxconn 4000
|
|
user haproxy
|
|
group haproxy
|
|
daemon
|
|
|
|
# turn on stats unix socket
|
|
stats socket /var/lib/haproxy/stats
|
|
|
|
#---------------------------------------------------------------------
|
|
# common defaults that all the 'listen' and 'backend' sections will
|
|
# use if not designated in their block
|
|
#---------------------------------------------------------------------
|
|
defaults
|
|
mode http
|
|
log global
|
|
option httplog
|
|
option dontlognull
|
|
option http-server-close
|
|
option forwardfor except 127.0.0.0/8
|
|
option redispatch
|
|
retries 3
|
|
timeout http-request 10s
|
|
timeout queue 1m
|
|
timeout connect 10s
|
|
timeout client 1m
|
|
timeout server 1m
|
|
timeout http-keep-alive 10s
|
|
timeout check 10s
|
|
maxconn 3000
|
|
|
|
#frontend keystone_public *:5000
|
|
# default_backend keystone_public
|
|
#frontend keystone_admin *:35357
|
|
# default_backend keystone_admin
|
|
frontend neutron
|
|
bind 0.0.0.0:9696 ssl crt /etc/haproxy/fed-cloud09.combined
|
|
default_backend neutron
|
|
|
|
frontend cinder
|
|
bind 0.0.0.0:8776 ssl crt /etc/haproxy/fed-cloud09.combined
|
|
default_backend cinder
|
|
|
|
frontend swift
|
|
bind 0.0.0.0:8080 ssl crt /etc/haproxy/fed-cloud09.combined
|
|
default_backend swift
|
|
|
|
frontend nova
|
|
bind 0.0.0.0:8774 ssl crt /etc/haproxy/fed-cloud09.combined
|
|
default_backend nova
|
|
|
|
frontend ceilometer
|
|
bind 0.0.0.0:8777 ssl crt /etc/haproxy/fed-cloud09.combined
|
|
default_backend ceilometer
|
|
|
|
frontend ec2
|
|
bind 0.0.0.0:8773 ssl crt /etc/haproxy/fed-cloud09.combined
|
|
default_backend ec2
|
|
|
|
frontend glance
|
|
bind 0.0.0.0:9292 ssl crt /etc/haproxy/fed-cloud09.combined
|
|
default_backend glance
|
|
|
|
backend neutron
|
|
server neutron 127.0.0.1:8696 check
|
|
|
|
backend cinder
|
|
server cinder 127.0.0.1:6776 check
|
|
|
|
backend swift
|
|
server swift 127.0.0.1:7080 check
|
|
|
|
backend nova
|
|
server nova 127.0.0.1:6774 check
|
|
|
|
backend ceilometer
|
|
server ceilometer 127.0.0.1:6777 check
|
|
|
|
backend ec2
|
|
server ec2 127.0.0.1:6773 check
|
|
|
|
backend glance
|
|
server glance 127.0.0.1:7292 check
|
|
|
|
backend keystone_public
|
|
server keystone_public 127.0.0.1:5000 check
|
|
|
|
backend keystone_admin
|
|
server keystone_admin 127.0.0.1:35357 check
|