diff --git a/postgresql/cutover/cutover.sh b/postgresql/cutover/cutover.sh index 0936af1..4bbc25a 100644 --- a/postgresql/cutover/cutover.sh +++ b/postgresql/cutover/cutover.sh @@ -354,7 +354,7 @@ fi log "Confirming standby_leader bootstrap completes (winner is nondeterministic — polling BOTH patroni-0 and patroni-1; a full ~42GB basebackup has been observed to take 8-11 minutes, so this window is generous)..." LEADER_HOST="" REPLICA_HOST="" -PHASE1_MAX_WAIT=1200 +PHASE1_MAX_WAIT=3600 PHASE1_POLL_INTERVAL=15 waited=0 ROLE0="" @@ -395,7 +395,7 @@ log "--- Phase 2: confirm streaming lag = 0 (cascade replica: ${REPLICA_HOST}) - # and requires literal state=streaming AND (lag=0 or lag absent). log "Note: ${REPLICA_HOST} is bootstrapping via a full basebackup from ${LEADER_HOST} — an extra hop beyond Phase 1's basebackup, so this window is deliberately longer than Phase 1's." CONSECUTIVE_ZERO=0 -PHASE2_MAX_WAIT=2100 +PHASE2_MAX_WAIT=6000 PHASE2_POLL_INTERVAL=15 waited=0 REPLICA_ROLE=""