Skip to content

Commit e055dcc

Browse files
committed
Set standby_leader_label_value for Patroni v4 Compatibility
Sets Patroni's 'standby_leader_label_value' setting to 'master' to make standby clusters compatible with Patroni v4. Issue: PGO-2293
1 parent c5665b6 commit e055dcc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/patroni/config.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ func clusterYAML(
5858
"use_endpoints": true,
5959
// To support transitioning to Patroni v4, set the value to 'master'.
6060
// In a future release, this can be removed in favor of the default.
61-
"leader_label_value": naming.RolePatroniLeader,
61+
// Do this for leaders in both primary and standby clusters.
62+
"leader_label_value": naming.RolePatroniLeader,
63+
"standby_leader_label_value": naming.RolePatroniLeader,
6264

6365
// In addition to "scope_label" above, Patroni will add the following to
6466
// every object it creates. It will also use these as filters when doing

0 commit comments

Comments
 (0)