Skip to content

Commit 2d7b5d0

Browse files
committed
Ensure priority is reset in the event the primary region changes
1 parent 3e7466b commit 2d7b5d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/flypg/repmgr.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ func (r *RepMgr) setDefaults() {
130130
"location": r.Region,
131131
"primary_visibility_consensus": true,
132132
"failover_validation_command": fmt.Sprintf("'/usr/local/bin/failover_validation -visible-nodes %%v -total-nodes %%t'"),
133+
"priority": 100,
133134
}
134135

135136
if !r.eligiblePrimary() {

0 commit comments

Comments
 (0)