301 lines
11 KiB
Plaintext
301 lines
11 KiB
Plaintext
# Track 1: the price of scaling
|
|
# generated: 2026-10-16T17:58:18Z
|
|
# host: Darwin arm64
|
|
# cpu: Apple M5 Pro
|
|
# ram bytes: 51539607552
|
|
# load: tests/load.py closed loop; postgres/lb budgets are recreated and verified per profile
|
|
# each profile line below records the budget it was run with
|
|
docker engine 29.5.2
|
|
Docker Compose version 5.5.1
|
|
|
|
=== invocation 2026-10-16T17:58:18Z: REPLICAS="1" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 ===
|
|
|
|
=== profile label=r1 replicas=1 cpu=1.00 mem=768M postgres=0.50/384M lb_cpu=0.25 max_conns=10 ===
|
|
=== applied label=r1 replicas=1 postgres=0.50/384M lb_cpu=0.25 (снято с контейнеров)
|
|
{
|
|
"lab": 3,
|
|
"workload": "closed-loop POST messages; no automatic retries",
|
|
"requested_duration_seconds": 60.0,
|
|
"elapsed_seconds": 60.011,
|
|
"concurrency": 8,
|
|
"successful_requests": 103077,
|
|
"failed_requests": 0,
|
|
"error_ratio": 0.0,
|
|
"successful_rps": 1717.626,
|
|
"successful_latency_ms": {
|
|
"p50": 3.85,
|
|
"p95": 7.538,
|
|
"p99": 25.045
|
|
},
|
|
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
|
}
|
|
postgres_connections=18
|
|
postgres_max_connections=100
|
|
messages_rows=1919638
|
|
idempotency_rows=1919638
|
|
|
|
=== invocation 2026-10-16T17:59:40Z: REPLICAS="2" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 ===
|
|
|
|
=== profile label=r2 replicas=2 cpu=0.50 mem=384M postgres=0.50/384M lb_cpu=0.25 max_conns=10 ===
|
|
=== applied label=r2 replicas=2 postgres=0.50/384M lb_cpu=0.25 (снято с контейнеров)
|
|
{
|
|
"lab": 3,
|
|
"workload": "closed-loop POST messages; no automatic retries",
|
|
"requested_duration_seconds": 60.0,
|
|
"elapsed_seconds": 60.014,
|
|
"concurrency": 8,
|
|
"successful_requests": 100215,
|
|
"failed_requests": 4450,
|
|
"error_ratio": 0.042517,
|
|
"successful_rps": 1669.874,
|
|
"successful_latency_ms": {
|
|
"p50": 4.01,
|
|
"p95": 7.699,
|
|
"p99": 22.735
|
|
},
|
|
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
|
}
|
|
postgres_connections=19
|
|
postgres_max_connections=100
|
|
messages_rows=2044175
|
|
idempotency_rows=2044175
|
|
|
|
=== invocation 2026-10-16T18:00:57Z: REPLICAS="4" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 ===
|
|
|
|
=== profile label=r4 replicas=4 cpu=0.25 mem=192M postgres=0.50/384M lb_cpu=0.25 max_conns=10 ===
|
|
=== applied label=r4 replicas=4 postgres=0.50/384M lb_cpu=0.25 (снято с контейнеров)
|
|
{
|
|
"lab": 3,
|
|
"workload": "closed-loop POST messages; no automatic retries",
|
|
"requested_duration_seconds": 60.0,
|
|
"elapsed_seconds": 60.013,
|
|
"concurrency": 8,
|
|
"successful_requests": 92161,
|
|
"failed_requests": 11454,
|
|
"error_ratio": 0.110544,
|
|
"successful_rps": 1535.673,
|
|
"successful_latency_ms": {
|
|
"p50": 4.184,
|
|
"p95": 8.208,
|
|
"p99": 22.167
|
|
},
|
|
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
|
}
|
|
postgres_connections=21
|
|
postgres_max_connections=100
|
|
messages_rows=2161959
|
|
idempotency_rows=2161959
|
|
|
|
=== invocation 2026-10-16T18:02:17Z: REPLICAS="2" TOTAL_CPU=0.5 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 ===
|
|
|
|
=== profile label=g05 replicas=2 cpu=0.25 mem=384M postgres=0.50/384M lb_cpu=0.25 max_conns=10 ===
|
|
=== applied label=g05 replicas=2 postgres=0.50/384M lb_cpu=0.25 (снято с контейнеров)
|
|
{
|
|
"lab": 3,
|
|
"workload": "closed-loop POST messages; no automatic retries",
|
|
"requested_duration_seconds": 60.0,
|
|
"elapsed_seconds": 60.013,
|
|
"concurrency": 8,
|
|
"successful_requests": 95087,
|
|
"failed_requests": 2845,
|
|
"error_ratio": 0.029051,
|
|
"successful_rps": 1584.428,
|
|
"successful_latency_ms": {
|
|
"p50": 4.042,
|
|
"p95": 9.331,
|
|
"p99": 27.665
|
|
},
|
|
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
|
}
|
|
postgres_connections=19
|
|
postgres_max_connections=100
|
|
messages_rows=2282714
|
|
idempotency_rows=2282714
|
|
|
|
=== invocation 2026-10-16T18:03:42Z: REPLICAS="2" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 ===
|
|
|
|
=== profile label=g10 replicas=2 cpu=0.50 mem=384M postgres=0.50/384M lb_cpu=0.25 max_conns=10 ===
|
|
=== applied label=g10 replicas=2 postgres=0.50/384M lb_cpu=0.25 (снято с контейнеров)
|
|
{
|
|
"lab": 3,
|
|
"workload": "closed-loop POST messages; no automatic retries",
|
|
"requested_duration_seconds": 60.0,
|
|
"elapsed_seconds": 60.012,
|
|
"concurrency": 8,
|
|
"successful_requests": 95841,
|
|
"failed_requests": 13795,
|
|
"error_ratio": 0.125825,
|
|
"successful_rps": 1597.028,
|
|
"successful_latency_ms": {
|
|
"p50": 3.927,
|
|
"p95": 7.67,
|
|
"p99": 21.91
|
|
},
|
|
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
|
}
|
|
postgres_connections=19
|
|
postgres_max_connections=100
|
|
messages_rows=2404027
|
|
idempotency_rows=2404027
|
|
|
|
=== invocation 2026-10-16T18:05:00Z: REPLICAS="2" TOTAL_CPU=1.5 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 ===
|
|
|
|
=== profile label=g15 replicas=2 cpu=0.75 mem=384M postgres=0.50/384M lb_cpu=0.25 max_conns=10 ===
|
|
=== applied label=g15 replicas=2 postgres=0.50/384M lb_cpu=0.25 (снято с контейнеров)
|
|
{
|
|
"lab": 3,
|
|
"workload": "closed-loop POST messages; no automatic retries",
|
|
"requested_duration_seconds": 60.0,
|
|
"elapsed_seconds": 60.011,
|
|
"concurrency": 8,
|
|
"successful_requests": 98411,
|
|
"failed_requests": 6960,
|
|
"error_ratio": 0.066052,
|
|
"successful_rps": 1639.884,
|
|
"successful_latency_ms": {
|
|
"p50": 3.963,
|
|
"p95": 7.721,
|
|
"p99": 23.6
|
|
},
|
|
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
|
}
|
|
postgres_connections=19
|
|
postgres_max_connections=100
|
|
messages_rows=2528963
|
|
idempotency_rows=2528963
|
|
|
|
=== invocation 2026-10-16T18:06:17Z: REPLICAS="4" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 ===
|
|
|
|
=== profile label=pool10 replicas=4 cpu=0.25 mem=192M postgres=0.50/384M lb_cpu=0.25 max_conns=10 ===
|
|
=== applied label=pool10 replicas=4 postgres=0.50/384M lb_cpu=0.25 (снято с контейнеров)
|
|
{
|
|
"lab": 3,
|
|
"workload": "closed-loop POST messages; no automatic retries",
|
|
"requested_duration_seconds": 60.0,
|
|
"elapsed_seconds": 60.014,
|
|
"concurrency": 8,
|
|
"successful_requests": 94995,
|
|
"failed_requests": 11008,
|
|
"error_ratio": 0.103846,
|
|
"successful_rps": 1582.872,
|
|
"successful_latency_ms": {
|
|
"p50": 4.156,
|
|
"p95": 7.798,
|
|
"p99": 19.723
|
|
},
|
|
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
|
}
|
|
postgres_connections=23
|
|
postgres_max_connections=100
|
|
messages_rows=2649923
|
|
idempotency_rows=2649923
|
|
|
|
=== invocation 2026-10-16T18:07:37Z: REPLICAS="4" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 ===
|
|
|
|
=== profile label=pool5 replicas=4 cpu=0.25 mem=192M postgres=0.50/384M lb_cpu=0.25 max_conns=5 ===
|
|
=== applied label=pool5 replicas=4 postgres=0.50/384M lb_cpu=0.25 (снято с контейнеров)
|
|
{
|
|
"lab": 3,
|
|
"workload": "closed-loop POST messages; no automatic retries",
|
|
"requested_duration_seconds": 60.0,
|
|
"elapsed_seconds": 60.016,
|
|
"concurrency": 8,
|
|
"successful_requests": 93110,
|
|
"failed_requests": 13051,
|
|
"error_ratio": 0.122936,
|
|
"successful_rps": 1551.419,
|
|
"successful_latency_ms": {
|
|
"p50": 4.125,
|
|
"p95": 7.868,
|
|
"p99": 21.268
|
|
},
|
|
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
|
}
|
|
postgres_connections=23
|
|
postgres_max_connections=100
|
|
messages_rows=2767792
|
|
idempotency_rows=2767792
|
|
|
|
=== invocation 2026-10-16T18:08:57Z: REPLICAS="2" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 ===
|
|
|
|
=== profile label=db1cpu replicas=2 cpu=0.50 mem=384M postgres=1.00/384M lb_cpu=0.25 max_conns=10 ===
|
|
=== PostgreSQL: бюджет 0.50/384M -> 1.00/384M, пересоздаю контейнер ===
|
|
=== applied label=db1cpu replicas=2 postgres=1.00/384M lb_cpu=0.25 (снято с контейнеров)
|
|
{
|
|
"lab": 3,
|
|
"workload": "closed-loop POST messages; no automatic retries",
|
|
"requested_duration_seconds": 60.0,
|
|
"elapsed_seconds": 60.83,
|
|
"concurrency": 8,
|
|
"successful_requests": 96094,
|
|
"failed_requests": 26520,
|
|
"error_ratio": 0.216289,
|
|
"successful_rps": 1579.722,
|
|
"successful_latency_ms": {
|
|
"p50": 4.033,
|
|
"p95": 6.236,
|
|
"p99": 8.668
|
|
},
|
|
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
|
}
|
|
postgres_connections=19
|
|
postgres_max_connections=100
|
|
messages_rows=2894016
|
|
idempotency_rows=2894016
|
|
|
|
=== возвращаю PostgreSQL к бюджету 0.50/384M ===
|
|
=== invocation 2026-10-16T18:10:21Z: REPLICAS="2" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 ===
|
|
|
|
=== profile label=lb1cpu replicas=2 cpu=0.50 mem=384M postgres=0.50/384M lb_cpu=1.00 max_conns=10 ===
|
|
=== LB: бюджет CPU 0.25 -> 1.00, пересоздаю контейнер ===
|
|
=== applied label=lb1cpu replicas=2 postgres=0.50/384M lb_cpu=1.00 (снято с контейнеров)
|
|
{
|
|
"lab": 3,
|
|
"workload": "closed-loop POST messages; no automatic retries",
|
|
"requested_duration_seconds": 60.0,
|
|
"elapsed_seconds": 60.01,
|
|
"concurrency": 8,
|
|
"successful_requests": 97901,
|
|
"failed_requests": 15652,
|
|
"error_ratio": 0.137839,
|
|
"successful_rps": 1631.408,
|
|
"successful_latency_ms": {
|
|
"p50": 3.894,
|
|
"p95": 6.989,
|
|
"p99": 20.148
|
|
},
|
|
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
|
}
|
|
postgres_connections=19
|
|
postgres_max_connections=100
|
|
messages_rows=3019112
|
|
idempotency_rows=3019112
|
|
|
|
=== возвращаю LB к бюджету CPU 0.25 ===
|
|
=== invocation 2026-10-16T18:14:37Z: REPLICAS="2" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 ===
|
|
|
|
=== profile label=r2 replicas=2 cpu=0.50 mem=384M postgres=0.50/384M lb_cpu=0.25 max_conns=10 ===
|
|
=== applied label=r2 replicas=2 postgres=0.50/384M lb_cpu=0.25 (снято с контейнеров)
|
|
{
|
|
"lab": 3,
|
|
"workload": "closed-loop POST messages; no automatic retries",
|
|
"requested_duration_seconds": 60.0,
|
|
"elapsed_seconds": 60.012,
|
|
"concurrency": 8,
|
|
"successful_requests": 97973,
|
|
"failed_requests": 9791,
|
|
"error_ratio": 0.090856,
|
|
"successful_rps": 1632.545,
|
|
"successful_latency_ms": {
|
|
"p50": 3.959,
|
|
"p95": 7.508,
|
|
"p99": 22.12
|
|
},
|
|
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
|
}
|
|
postgres_connections=19
|
|
postgres_max_connections=100
|
|
messages_rows=3252832
|
|
idempotency_rows=3252832
|
|
|