Zero-Downtime Multi-TB Postgres Schema Change

Product family: Expand-and-Contract DB Flow.

Flow: Backend Feature Teams → Backward-Compat DDL Lint → Mask Clone Prod Replay Test → DBA Lock Timeout Dry-Run → Online Index Dual-Write Run → Old Column Clean Cleanup → Live SaaS Cluster

Open this map in the free editor

No account needed. Change any value and the indicators update.

Value stream map

Value stream map: Zero-Downtime Multi-TB Postgres Schema ChangeSupplier on the left, customer on the right, process steps in between with their cycle time, and a stock triangle with days of stock before each step. Backend Feature Teams → Backward-Compat DDL Lint (837 s) → Mask Clone Prod Replay Test (1,134 s) → DBA Lock Timeout Dry-Run (756 s) → Online Index Dual-Write Run (1,445 s) → Old Column Clean Cleanup (567 s) → Live SaaS Cluster.SUPPLIERBackend FeatureTeamsI2.20 d1Backward-CompatDDL LintC/T 837 sI1.80 d2Mask Clone ProdReplay TestC/T 1,134 sI1.40 d3DBA Lock TimeoutDry-RunC/T 756 sI2.40 d4Online IndexDual-Write RunC/T 1,445 sI0.70 d5Old Column CleanCleanupC/T 567 sI0.80 dCUSTOMERLive SaaSCluster20 / tickets

Process steps

StepCycle timeChangeoverUptimeYieldBatchStock beforeCapacity per day
1. Backward-Compat DDL Lint837 s15 min96%91.0%1044 (2.20 d)26
2. Mask Clone Prod Replay Test1,134 s12 min92%88.5%836 (1.80 d)18
3. DBA Lock Timeout Dry-Run756 s5 min95%93.0%428 (1.40 d)30
4. Online Index Dual-Write Run1,445 s35 min88%86.0%2048 (2.40 d)13
5. Old Column Clean Cleanup567 s8 min98%97.5%214 (0.70 d)37

Key figures

Takt time
1,350 s
Lead time
9.48 d
Value-added time
4,739 s
Process cycle efficiency (PCE)
1.9%
Rolled throughput yield (RTY)
62.8%
Customer demand per day
20 tickets
Line capacity per day
13 tickets
Bottleneck
Online Index Dual-Write Run

Reading the bottleneck

The bottleneck is "Online Index Dual-Write Run": it can process 13 tickets per day against a demand of 20 tickets, so it falls short of demand by 34.8%. Once downtime and scrap are counted, its cycle time grows from 1,445 s to 1,909 s, against a takt of 1,350 s. The largest loss at this step is scrap and rework (first-pass yield 86.0%), about 267 s per unit. Reducing that loss is where the first improvement test belongs.

The figures on this page are illustrative starting values to be replaced with your own measurements. They are not industry benchmarks.

Other scenarios in this family

More scenarios of Software Delivery & CI/CD DevOps: Software Delivery & CI/CD DevOps