Let's estimate queries per second (QPS) for:
- 1x
r6g.xlarge
- 2x
r6g.large (1 primary + 1 async read-replica)
We'll use PostgreSQL Benchmarks, mainly from pgbench, combined with real-world PostgreSQL performance metrics available on Graviton2/3 instances (R6g family), which use ARM-based processors.
⚠️ Disclaimer: These are estimates, and actual QPS depends on:
- Query complexity (simple lookup vs complex join)
- Buffer/cache efficiency
- Storage I/O performance
- Client concurrency level (simulated users in
pgbench)
- Network latency (especially with replicas)
📊 Instance Overview
| Instance | vCPUs | RAM (GiB) | Est. Max QPS (simple reads/writes) |
|---|
r6g.large | 2 | 16 | ~7,000 - 12,000 QPS |
r6g.xlarge | 4 | 32 | ~14,000 - 24,000 QPS |
(Note: Numbers include cached workloads with ~80-95% reads at 64+ concurrent clients based on pgbench.)
🔁 Scenario A: Simple Read/Write (pgbench -S for SELECT-only)
r6g.xlarge (Single-node, 4 vCPUs, 32 GiB RAM)
- PostgreSQL properly tuned with
work_mem, shared_buffers, etc.
- ~20,000 - 24,000 QPS for SELECT
- ~6,000 - 8,000 QPS for balanced (read/write)
2x r6g.large (Primary+Replica)
- Each does ~8,000 - 10,000 QPS depending on load
- Replica is used only for SELECT queries
- Assuming ~80-90% reads and good read-routing:
Total estimated QPS:
- Primary: ~2,000 QPS write, ~5,000 QPS read
- Replica: ~7,000 QPS read
➡️ Combined total QPS: ~12,000 - 14,000, assuming 80–90% reads and efficient load balancing.
🥇 Summary: Estimated Queries/Second (QPS)