Replicas multiply read capacity, but every replica must replay every write, so they never help with writes and can lag behind the primary.
A shop's pages each make 3 database queries; 90% are reads. At 3,000 pages per second that is 9,000 queries per second, and the one database server can answer about 5,000. All numbers are an illustrative model.
Served
0/s
Errors
0%
p50 latency
0 ms
p95 latency
0 ms
Replica lag
—
Primary busy
0%
Serve the shop without errors
At 3,000 pages/s or more, keep errors under 1%, p95 under 150 ms and the primary under 70% busy for 20 seconds.
A shop's pages each make 3 database queries; 90% are reads. At 3,000 pages per second that is 9,000 queries per second, and the one database server can answer about 5,000. All numbers are an illustrative model.
Illustrative model: rates, queues and latency follow simple queueing rules, not a production benchmark.