Keystone 高可靠性部署與效能測試
阿新 • • 發佈:2019-02-20
daemon
log 127.0.0.1 local3
defaults
maxconn 4000
log global
timeout server 10s
timeout connect 10s
timeout client 10s
mode http
option forwardfor
option http-server-close
log global
listen stats
mode http
bind public_ip:8000
stats enable
stats hide-version
stats uri /
stats realm Haproxy\ Statistics
stats auth lecloud:openstack
stats admin if TRUE
frontend keystone_frontend
bind public_ip:443 ssl crt /etc/haproxy/keystone_https.pem
reqadd X-Forwarded-Proto:\ https
acl admin_path path_beg /admin
acl main_path path_beg /main
use_backend admin_backend if admin_path
use_backend main_backend if main_path
backend admin_backend
balance roundrobin
redirect scheme https if !{ ssl_fc }
server keystone-server-01 internal_ip01:35357 check inter 10s
server keystone-server-02 internal_ip02:35357 check inter 10s
backend main_backend
balance roundrobin
redirect scheme https if !{ ssl_fc }
server keystone-server-01 internal_ip01:5000 check inter 10s
server keystone-server-02 internal_ip02:5000 check inter 10s
log 127.0.0.1 local3
defaults
maxconn 4000
log global
timeout server 10s
timeout connect 10s
timeout client 10s
mode http
option forwardfor
option http-server-close
log global
listen stats
mode http
bind public_ip:8000
stats enable
stats hide-version
stats uri /
stats realm Haproxy\ Statistics
stats auth lecloud:openstack
stats admin if TRUE
frontend keystone_frontend
bind public_ip:443 ssl crt /etc/haproxy/keystone_https.pem
reqadd X-Forwarded-Proto:\ https
acl admin_path path_beg /admin
acl main_path path_beg /main
use_backend admin_backend if admin_path
use_backend main_backend if main_path
backend admin_backend
balance roundrobin
redirect scheme https if !{ ssl_fc }
server keystone-server-01 internal_ip01:35357 check inter 10s
server keystone-server-02 internal_ip02:35357 check inter 10s
backend main_backend
balance roundrobin
redirect scheme https if !{ ssl_fc }
server keystone-server-01 internal_ip01:5000 check inter 10s
server keystone-server-02 internal_ip02:5000 check inter 10s