Running PostgreSQL on Kubernetes · Day 2 Operations with CloudNativePG

Demo 5 — Replica Cluster for DR

A second Cluster in continuous restore from the same bucket, then promoted.

Beats

  1. 0:0405-replica-cluster.yaml on screen
  2. 0:08Continuous restore mode: bootstrap from the ObjectStore, the
  3. 0:20Read-only on the replica: the harbor data is all here.
  4. 0:27Promote = flip replica.enabled to false. One field.
  5. 0:3105b-promote.yaml on screen
  6. 0:52It is a primary now, so it takes writes. A standby would ref

Replay it locally

asciinema play -i 2 demos/demo5.cast  ·  download the cast