Tweaked check on ha changed relation to be cluster focussed
This commit is contained in:
parent
f621b4354c
commit
a560bc3d69
|
@ -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))
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue