Databases

Designing a reliable unplanned failover

Neki’s engineering team describes how its Admin control plane handles unplanned failover for Postgres shards when a primary becomes unreachable, such as after a network cut or hardware failure. Unlike a planned switchover, Admin cannot confirm whether the primary is dead, choose a promotion target in advance, or obtain the primary’s final WAL position. The failover process must determine whether the primary is effectively unavailable and which replica can safely take over; meanwhile, applications cannot reliably write.

AI-written summary, checked against the cited sources. How summaries work

Image: PlanetScale

Read at PlanetScale