From 2d7b5d0654abef5f1055e32f80c5801d14b499b9 Mon Sep 17 00:00:00 2001 From: Shaun Davis Date: Sun, 29 Jan 2023 10:30:32 -0600 Subject: [PATCH] Ensure priority is reset in the event the primary region changes --- pkg/flypg/repmgr.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/flypg/repmgr.go b/pkg/flypg/repmgr.go index 6f2f451d..f1477fc4 100644 --- a/pkg/flypg/repmgr.go +++ b/pkg/flypg/repmgr.go @@ -130,6 +130,7 @@ func (r *RepMgr) setDefaults() { "location": r.Region, "primary_visibility_consensus": true, "failover_validation_command": fmt.Sprintf("'/usr/local/bin/failover_validation -visible-nodes %%v -total-nodes %%t'"), + "priority": 100, } if !r.eligiblePrimary() {