pool.acquire
- payload = build_payload(request)
- with pool.acquire() as conn:
- result = query_database(conn, payload)
- admit_per_sec =
- Stage300 lookups a second
- Acquire p952 ms. The bar is 50 ms.
- Rejected0.0 percent. The bar is under 1 percent.
Load-test stages
300 and 400 lookups a second pass both bars. 480 rejects about 2 percent while acquire p95 is still 25 ms. 560 rejects 120 of 560.
now 300/s · limit 560/s
This stage rejects 0.0 percent. Acquire p95 is 2 ms. A pass needs both numbers inside the bars, on the last stage that clears them.
Live metrics
Ready300 a second passes. 400 a second passes. 480 a second does not.
Metric definitions
| Metric | Value | What it means |
|---|---|---|
| Stage | 300/s | The load-test row running now. The ladder is 300, 400, 480, 560. |
| Acquire p95 | 2 ms | Hold this under 50 ms. At 480 it can still be 25 ms. |
| Rejections | 0.0% | Must stay under 1 percent. 480 fails this bar even when p95 looks fine. |
| Limit | 560/s | The highest stage the test is allowed to reach. The last passing stage is 400/s. |
300/s
2 ms
0.0%
560/s