Too many connections

Signal 16
VPS · 8 vCPU · 32 GB60 USD/moHTTP/2SQLUsers3,000 req/sAPI serverPostgres2 vCPU · 4 GB
VPS60 USD/moHTTP/2SQLUsers3,000 req/sAPI serverPostgres2 vCPU · 4 GB

Fix the board. Turn every goal green.

Traffic
3,000 req/s · 90% reads
Limit
API server answers about 10,000 req/s
Bill
  • VPS 8 vCPU · 32 GB60 USD/mo
60 of 70 USD/mo

Goals

Not tested yet

The share of requests that fail or get no answer.99 of 100 requests finish faster than this.What the servers and services cost each month.

Twelve API replicas each open 20 database connections. The database allows 200. Remove connection errors and keep p99 below 200 ms with at most five edits.

0:00. The database rejects connections during the API scale-out. Graph: open connections hit 200 and stay flat.

Parts you can add: Connection pooler. At most 12 parts. Budget: 70 USD/mo.

Tap a part to add it, or drag it onto a trace.Click a part to add it, or drag it onto a trace.