Databases

Designing a planned switchover for minimum disruption

Neki describes how it performs planned PostgreSQL shard switchovers while limiting disruption to applications. Each shard has one write-accepting primary and multiple read-only replicas; a switchover can move primary duties during work such as replacing a Kubernetes pod, upgrading a kernel or relocating the primary. The process covers preflight checks, catching a replica up before promotion, and directing client queries to the new primary. Neki also discusses handling a switchover that cannot complete.

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

Image: PlanetScale

Primary source

Designing a planned switchover for minimum disruption PlanetScale

Coverage 2 publishers

  1. PlanetScaleFirst reportPrimary source

    Designing a planned switchover for minimum disruption

    A Neki shard consists of one Postgres primary and multiple replicas. The primary accepts writes; the replicas do not. From time to time, we need one of those replicas to take over as the primary. We may be replacing a (Kubernetes) pod…

  2. Lobsters

    Designing a planned switchover for minimum disruption

    A Neki shard consists of one Postgres primary and multiple replicas. The primary accepts writes; the replicas do not. From time to time, we need one of those replicas to take over as the primary. We may be replacing a (Kubernetes) pod…

Earliest report first. Articles stay on their publishers’ sites; each link opens the original.