Skip to content

Commit a3a90ee

Browse files
authored
Merge pull request #50 from fly-apps/priority-fix
Ensure priority is reset in the event the primary region changes
2 parents 3e7466b + 2d7b5d0 commit a3a90ee

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)