Tweaked check on ha changed relation to be cluster focussed

This commit is contained in:
James Page 2013-02-07 09:40:49 +00:00
parent f621b4354c
commit a560bc3d69
2 changed files with 3 additions and 2 deletions

View File

@ -231,7 +231,8 @@ function ha_relation_joined() {
}
function ha_relation_changed() {
if eligible_leader 'res_cinder_vip'; then
local clustered=`relation-get clustered`
if [ -n "$clustered" ] && is_leader 'res_cinder_vip'; then
juju-log "Cluster leader, reconfiguring keystone endpoint"
local port=$(config-get api-listening-port)
port=$(($port + 10000))

View File

@ -337,7 +337,7 @@ configure_haproxy() {
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
maxconn 4096
maxconn 20000
user haproxy
group haproxy
spread-checks 0