Enable configuration to run primary node and synchronous replication on same subnet #4220
Unanswered
fdolsky321
asked this question in
Q&A
Replies: 2 comments
-
Reffering to @gbartolini comment how to achieve actually anti-desired state: spec:
instances: 3
postgresql:
syncReplicaElectionConstraint:
enabled: true
nodeLabelsAntiAffinity:
- topology.kubernetes.io/zone By this, I achieve that my synchronous replication is in different zone than my primary one. What I would need is to have option to use |
Beta Was this translation helpful? Give feedback.
0 replies
-
This looks like more a discussion than an issue and is stale, I'm converting into a discusison |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there any way to easily configure synchronous replication and primary node to be running on the node with the same topology key?
Let's say I have 3 zones:
topology.kubernetes.io/zone
: zone-1, zone-2, zone-3To make the network latency as small as possible, I wanna run synchronous replication in the same zone like primary (e.g. zone-1) and then other asynchronous replicas on zone-2 and zone-3.
If there is existing smooth solution, sorry for this question.
Beta Was this translation helpful? Give feedback.
All reactions