Repository navigation
Conversation
…-out after switchover - Configure peerHost/peerPort/bootstrapSecret on the primary cluster too. With Operator v4.3.4 a standby without peerHost cannot resolve its peer after an operator restart (incl. upgrade); its promotion is never applied and both clusters stay Standby Leader. - Switchover Phase 2 promotes at one instance; new Phase 2b removes the leftover pgdata-<cluster>-1 volume before scaling out. Scaling out onto that stale volume lets it take over as leader during the post-promotion rolling update and discards transactions committed since it went stale. - Troubleshooting: "Promotion never takes effect after an operator restart" with the validated recovery (LSN check, peer secret, single patch). Refs ECO-1852. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Updates the PostgreSQL hot standby guide after a customer DR switchover on Operator v4.3.4 left both clusters as
Standby Leader.peerHost/peerPort/bootstrapSecreton the primary, pointing at the standby. With Operator v4.3.4, a standby withoutpeerHostcannot resolve its peer after an operator restart (including the restart from upgrading the operator). Its promotion is then never applied.pgdata-<cluster>-1volume before scaling out. Scaling out onto that stale volume can let it take over as leader during the post-promotion rolling update, which discards transactions committed since it went stale..), the cause, and a recovery procedure: an LSN check on both sides, then a peer secret and a single patch.Validation
peerHostproduced the exact error, and both sides stayedStandby Leaderafter the switchover.numberOfInstances: 1) promoted the stuck cluster in about 25 s with no data loss. It also resolved the customer incident.cannot perform switch over before re-creating the pod: no replicas, followed by the stale member acquiring the leader lock.EN only; zh is regenerated by the translation pipeline. Tracking: ECO-1852 (internal).
🤖 Generated with Claude Code