mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-09-30 14:01:46 +02:00
Avoid switchover after migrating a single-pod cluster (#3187)
Leave the replica candidate unset for single-pod clusters so migration returns after recreating the master instead of contacting its stale IP. Add migration regressions and document the recreate-only path. Signed-off-by: Shubham Padkonde <shubhampadkonde12@gmail.com> Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
This commit is contained in:
co-authored by
Felix Kunde
parent
5cfb26f8b9
commit
c8e0225f8f
@@ -556,10 +556,11 @@ configuration they are grouped under the `kubernetes` key.
|
||||
* **master_pod_move_timeout**
|
||||
The period of time to wait for the success of migration of master pods from
|
||||
an unschedulable node. The migration includes Patroni switchovers to
|
||||
respective replicas on healthy nodes. A failed migration attempt is retried
|
||||
every minute until this timeout expires. The situation where master pods
|
||||
still exist on the old node after this timeout expires has to be fixed
|
||||
manually. The default is 20 minutes.
|
||||
respective replicas on healthy nodes. For a single-pod cluster, the operator
|
||||
instead recreates the master on another node and waits for its role label,
|
||||
without attempting a switchover. This causes downtime until the pod returns.
|
||||
The situation where master pods still exist on the old node after this
|
||||
timeout expires has to be fixed manually. The default is 20 minutes.
|
||||
|
||||
* **enable_pod_antiaffinity**
|
||||
toggles [pod anti affinity](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/)
|
||||
|
||||
Reference in New Issue
Block a user