Multigres on Amazon EKS · three zones · 11 recorded runs
A zone cut off, a full disk, upgrades under load. Every second, replayed.
Five day-2 operations on a three-zone Multigres cluster (the Vitess-style sharding and high-availability layer for Postgres), each recorded from both sides, what the cluster reported and what the app got.
0of 2,722,526 acknowledged inserts were missing when re-read after the runs
0writes acknowledged by the cut-off zone after the first 67 ms of the cut
160 sof a full disk's write outage while the Shard's phase read Healthy
Gold ring: the primary, the one Postgres that takes writes
Cylinders: Postgres, one per zone. The other two are standbys
Boxes: gateways, where the app connects
Diamonds: etcd, the cluster's topology store, drawn where each member ran
Dots: writes in flight, green when they succeed, red when they fail
Red glass: a zone cut off from the network
Yellow ball: a second writer inside the cut-off zone
Bar beside the primary: how full its disk is
Chips at the top: what the cluster reported, next to what the clients actually saw
The dots are a sample of the recorded counts. Everything else follows the recorded run second by second. Drag to turn the view.
acknowledged writesfailed writes and app errorsShard not Healthywriter inside a cut-off zoneClick the chart to jump to any moment
lab terminal, replay
What the recorded runs showed
Every number below is computed in your browser from the same records the lab replays. A range is the spread across runs of the same operation.
No acknowledged insert went missing
After each run the drill writer re-read every insert it had been told was committed. None was missing, across 11 runs and on both sides of the partition. It checks inserts only, not reads or updates.
The cut-off side stopped acknowledging
Inside the cut-off zone, 8 writes already in flight were acknowledged in the first 67 ms, then nothing until the cut was healed four minutes later. The other zones promoted a new primary after about 20 s, in run 2 while the cut-off zone held 2 of the 3 etcd members.
The Shard phase follows pod readiness
With the primary's disk full, writes failed for 206 s. The pods stayed ready, so the phase read Healthy for about 160 s of it. Alert on the volume's free space as well.
Switchovers held the app's queries
The gateways held and replayed queries, and the 500 app connections saw 0 errors. The drill writer gives up after 2 s, so one write per worker timed out on its side, and most of those committed anyway.
Replacing a gateway ends its connections
The rolling upgrade replaced the gateway pods, which closed each app connection on them once, as any Postgres proxy would. All 500 were open again 25 s after the upgrade started.
Run it more than once
Two node group upgrades gave 6,288 and 158 app errors. In the first, the new primary landed on the zone 1 node, which also ran the load tool and Auth on 2 vCPUs.
More from these drills
The lab replays the day-2 operations. The same cluster and harness also covered these, each written up with every run.
supafirehose, Multigres's own load tool, holds 500 app connections through the gateways: 2,000 reads and 200 writes a second, reconnecting on any error. A second tool writes 400 rows a second and records every attempt, so each acknowledged write can be looked up afterwards.
One clock, started at the operation
The load runs for a minute first. Every time is counted from the moment the operation starts. The Shard's phase and pod readiness are read every few seconds, and the disk every 10 to 40 seconds.
What the picture adds
The dots are a sample drawn from the per-second counts, and the gateway a dot passes through is picked at random. The primary is drawn moving when writes came back, the first moment the record shows clients reaching it.
What this lab cannot tell you
One m7i-flex.large node per zone (2 vCPU), one shard, a free-plan AWS account, one to four runs per operation. The write check covers inserts, not reads. The numbers describe this cluster on 27 November 2026. Run it on yours before you believe any of them about yours.
The same Terraform and scripts that recorded these runs, on your own AWS account. About an afternoon, and about USD 0.50 of credit an hour while the cluster exists.
An AWS account and the tools
A free-plan account is enough. Create a user for Terraform with its own CLI profile, and install Terraform, the AWS CLI v2, kubectl and Git (Git Bash on Windows). Step-by-step guide, with checks.
Fill in the template
git clone https://github.com/shanurwan/multigres-eks-drills
cd multigres-eks-drills
cp terraform/terraform.tfvars.example terraform/terraform.tfvars
# terraform/terraform.tfvars
region = "ap-southeast-2" # any region with 3 zones
profile = "multigres-lab" # your CLI profile
owner = "your-name"
alert_email = "you@example.com" # the budget alarm writes here
admin_cidrs = ["203.0.113.10/32"] # your public IP, for the EKS API
budget_usd = 40
The file is ignored by Git, so your email and IP stay on your machine.
Create the cluster (about 20 minutes)
export AWS_PROFILE=multigres-lab AWS_REGION=ap-southeast-2
terraform -chdir=terraform init
terraform -chdir=terraform apply
aws eks update-kubeconfig --name multigres-lab --region $AWS_REGION
kubectl get nodes -L topology.k8s.aws/zone-id # three nodes, three zones
It builds a VPC across three zones, EKS with one node group per zone, the EBS CSI driver, an S3 bucket for backups with an IAM role for it, and a budget alarm.
Install Multigres (about 6 minutes)
kubectl apply --server-side -f failure-drill/results/_versions/operator-install.yaml # the operator build these runs used
failure-drill/scripts/deploy.sh # the 3-zone MultigresCluster, waits for Healthy
failure-drill/scripts/primary.sh # which zone holds the primary
Start the load
cd production-scenario
scripts/build.sh # supafirehose and the write checker
scripts/setup.sh <zone-id> # the load pod
../failure-drill/scripts/writer.sh <another zone-id>
cd ../day2-operations