Allow failover so that nodes can be disabled.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
13
main.go
13
main.go
@@ -550,12 +550,13 @@ func configure(state *global, messageSnapshot []pgpoolConfigMessage) {
|
||||
weight = j.Weight
|
||||
}
|
||||
|
||||
var flag string
|
||||
if isPrimary {
|
||||
flag = "DISALLOW_TO_FAILOVER" //"ALWAYS_PRIMARY|DISALLOW_TO_FAILOVER"
|
||||
} else {
|
||||
flag = "DISALLOW_TO_FAILOVER"
|
||||
}
|
||||
//var flag string
|
||||
//if isPrimary {
|
||||
// flag = "DISALLOW_TO_FAILOVER" //"ALWAYS_PRIMARY|DISALLOW_TO_FAILOVER"
|
||||
//} else {
|
||||
// flag = "DISALLOW_TO_FAILOVER"
|
||||
//}
|
||||
flag := "ALLOW_TO_FAILOVER"
|
||||
|
||||
suffix := strconv.Itoa(num)
|
||||
conf["backend_hostname"+suffix] = j.IpAddress.String()
|
||||
|
||||
Reference in New Issue
Block a user