412 lines
15 KiB
Plaintext
412 lines
15 KiB
Plaintext
# Track 1: the price of scaling
|
|
# generated: 2026-10-16T18:23:17Z
|
|
# 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-16T18:23:17Z: 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 client=vm ===
|
|
=== 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.075,
|
|
"concurrency": 8,
|
|
"successful_requests": 92690,
|
|
"failed_requests": 0,
|
|
"error_ratio": 0.0,
|
|
"successful_rps": 1542.892,
|
|
"successful_latency_ms": {
|
|
"p50": 5.047,
|
|
"p95": 8.006,
|
|
"p99": 10.239
|
|
},
|
|
"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=3599617
|
|
idempotency_rows=3599617
|
|
|
|
=== invocation 2026-10-16T18:24: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 client=vm ===
|
|
=== 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.073,
|
|
"concurrency": 8,
|
|
"successful_requests": 89588,
|
|
"failed_requests": 0,
|
|
"error_ratio": 0.0,
|
|
"successful_rps": 1491.325,
|
|
"successful_latency_ms": {
|
|
"p50": 5.245,
|
|
"p95": 8.225,
|
|
"p99": 10.303
|
|
},
|
|
"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=3712180
|
|
idempotency_rows=3712180
|
|
|
|
=== invocation 2026-10-16T18:25:56Z: 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 client=vm ===
|
|
=== 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.069,
|
|
"concurrency": 8,
|
|
"successful_requests": 85041,
|
|
"failed_requests": 0,
|
|
"error_ratio": 0.0,
|
|
"successful_rps": 1415.713,
|
|
"successful_latency_ms": {
|
|
"p50": 5.538,
|
|
"p95": 8.614,
|
|
"p99": 10.749
|
|
},
|
|
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
|
}
|
|
postgres_connections=22
|
|
postgres_max_connections=100
|
|
messages_rows=3818387
|
|
idempotency_rows=3818387
|
|
|
|
=== invocation 2026-10-16T18:27:15Z: 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 client=vm ===
|
|
=== invocation 2026-10-16T18:27:48Z: 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 client=vm ===
|
|
=== 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.064,
|
|
"concurrency": 8,
|
|
"successful_requests": 89486,
|
|
"failed_requests": 0,
|
|
"error_ratio": 0.0,
|
|
"successful_rps": 1489.856,
|
|
"successful_latency_ms": {
|
|
"p50": 5.238,
|
|
"p95": 8.245,
|
|
"p99": 10.54
|
|
},
|
|
"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=3938460
|
|
idempotency_rows=3938460
|
|
|
|
=== invocation 2026-10-16T18:29:13Z: 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 client=vm ===
|
|
=== 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.071,
|
|
"concurrency": 8,
|
|
"successful_requests": 89886,
|
|
"failed_requests": 0,
|
|
"error_ratio": 0.0,
|
|
"successful_rps": 1496.325,
|
|
"successful_latency_ms": {
|
|
"p50": 5.207,
|
|
"p95": 8.221,
|
|
"p99": 10.508
|
|
},
|
|
"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=4050874
|
|
idempotency_rows=4050874
|
|
|
|
=== invocation 2026-10-16T18:30:31Z: 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 client=vm ===
|
|
=== 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.061,
|
|
"concurrency": 8,
|
|
"successful_requests": 89566,
|
|
"failed_requests": 0,
|
|
"error_ratio": 0.0,
|
|
"successful_rps": 1491.252,
|
|
"successful_latency_ms": {
|
|
"p50": 5.251,
|
|
"p95": 8.176,
|
|
"p99": 10.209
|
|
},
|
|
"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=4163465
|
|
idempotency_rows=4163465
|
|
|
|
=== invocation 2026-10-16T18:31:50Z: 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 client=vm ===
|
|
=== 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.074,
|
|
"concurrency": 8,
|
|
"successful_requests": 84040,
|
|
"failed_requests": 4,
|
|
"error_ratio": 4.8e-05,
|
|
"successful_rps": 1398.951,
|
|
"successful_latency_ms": {
|
|
"p50": 5.556,
|
|
"p95": 8.741,
|
|
"p99": 11.048
|
|
},
|
|
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
|
}
|
|
postgres_connections=22
|
|
postgres_max_connections=100
|
|
messages_rows=4269081
|
|
idempotency_rows=4269081
|
|
|
|
=== invocation 2026-10-16T18:33:10Z: 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 client=vm ===
|
|
=== 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.078,
|
|
"concurrency": 8,
|
|
"successful_requests": 78078,
|
|
"failed_requests": 4,
|
|
"error_ratio": 5.1e-05,
|
|
"successful_rps": 1299.617,
|
|
"successful_latency_ms": {
|
|
"p50": 5.957,
|
|
"p95": 9.594,
|
|
"p99": 12.386
|
|
},
|
|
"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=4367896
|
|
idempotency_rows=4367896
|
|
|
|
=== invocation 2026-10-16T18:34:29Z: 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 client=vm ===
|
|
=== 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.077,
|
|
"concurrency": 8,
|
|
"successful_requests": 76301,
|
|
"failed_requests": 0,
|
|
"error_ratio": 0.0,
|
|
"successful_rps": 1270.045,
|
|
"successful_latency_ms": {
|
|
"p50": 6.057,
|
|
"p95": 10.141,
|
|
"p99": 13.724
|
|
},
|
|
"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=4463395
|
|
idempotency_rows=4463395
|
|
|
|
=== возвращаю PostgreSQL к бюджету 0.50/384M ===
|
|
=== invocation 2026-10-16T18:35:53Z: 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 client=vm ===
|
|
=== 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.071,
|
|
"concurrency": 8,
|
|
"successful_requests": 82138,
|
|
"failed_requests": 0,
|
|
"error_ratio": 0.0,
|
|
"successful_rps": 1367.357,
|
|
"successful_latency_ms": {
|
|
"p50": 5.67,
|
|
"p95": 9.26,
|
|
"p99": 12.055
|
|
},
|
|
"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=4566754
|
|
idempotency_rows=4566754
|
|
|
|
=== возвращаю LB к бюджету CPU 0.25 ===
|
|
=== invocation 2026-10-16T18:37:30Z: REPLICAS="2" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 ===
|
|
|
|
=== profile label=d2 replicas=2 cpu=0.50 mem=384M postgres=0.50/384M lb_cpu=0.25 max_conns=10 client=vm ===
|
|
=== applied label=d2 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.068,
|
|
"concurrency": 8,
|
|
"successful_requests": 83445,
|
|
"failed_requests": 0,
|
|
"error_ratio": 0.0,
|
|
"successful_rps": 1389.179,
|
|
"successful_latency_ms": {
|
|
"p50": 5.585,
|
|
"p95": 9.054,
|
|
"p99": 11.711
|
|
},
|
|
"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=4671368
|
|
idempotency_rows=4671368
|
|
|
|
=== invocation 2026-10-16T18:38:55Z: REPLICAS="2" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 ===
|
|
|
|
=== profile label=ctl1base replicas=2 cpu=0.50 mem=384M postgres=0.50/384M lb_cpu=0.25 max_conns=10 client=vm ===
|
|
=== applied label=ctl1base 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.082,
|
|
"concurrency": 8,
|
|
"successful_requests": 83581,
|
|
"failed_requests": 0,
|
|
"error_ratio": 0.0,
|
|
"successful_rps": 1391.108,
|
|
"successful_latency_ms": {
|
|
"p50": 5.571,
|
|
"p95": 9.03,
|
|
"p99": 11.692
|
|
},
|
|
"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=4776213
|
|
idempotency_rows=4776213
|
|
|
|
=== invocation 2026-10-16T18:40:14Z: REPLICAS="2" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 ===
|
|
|
|
=== profile label=ctl2pg replicas=2 cpu=0.50 mem=384M postgres=1.00/384M lb_cpu=0.25 max_conns=10 client=vm ===
|
|
=== PostgreSQL: бюджет 0.50/384M -> 1.00/384M, пересоздаю контейнер ===
|
|
=== applied label=ctl2pg 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.072,
|
|
"concurrency": 8,
|
|
"successful_requests": 83599,
|
|
"failed_requests": 0,
|
|
"error_ratio": 0.0,
|
|
"successful_rps": 1391.647,
|
|
"successful_latency_ms": {
|
|
"p50": 5.575,
|
|
"p95": 8.994,
|
|
"p99": 11.512
|
|
},
|
|
"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=4881024
|
|
idempotency_rows=4881024
|
|
|
|
=== возвращаю PostgreSQL к бюджету 0.50/384M ===
|
|
=== invocation 2026-10-16T18:41:33Z: REPLICAS="2" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 ===
|
|
|
|
=== profile label=ctl3base replicas=2 cpu=0.50 mem=384M postgres=0.50/384M lb_cpu=0.25 max_conns=10 client=vm ===
|
|
=== applied label=ctl3base 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.078,
|
|
"concurrency": 8,
|
|
"successful_requests": 81711,
|
|
"failed_requests": 0,
|
|
"error_ratio": 0.0,
|
|
"successful_rps": 1360.087,
|
|
"successful_latency_ms": {
|
|
"p50": 5.664,
|
|
"p95": 9.482,
|
|
"p99": 12.322
|
|
},
|
|
"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=4983558
|
|
idempotency_rows=4983558
|
|
|
|
=== invocation 2026-10-16T18:42:51Z: REPLICAS="2" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 ===
|
|
|
|
=== profile label=ctl4lb replicas=2 cpu=0.50 mem=384M postgres=0.50/384M lb_cpu=1.00 max_conns=10 client=vm ===
|
|
=== LB: бюджет CPU 0.25 -> 1.00, пересоздаю контейнер ===
|
|
=== applied label=ctl4lb 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.074,
|
|
"concurrency": 8,
|
|
"successful_requests": 81688,
|
|
"failed_requests": 0,
|
|
"error_ratio": 0.0,
|
|
"successful_rps": 1359.794,
|
|
"successful_latency_ms": {
|
|
"p50": 5.688,
|
|
"p95": 9.37,
|
|
"p99": 12.032
|
|
},
|
|
"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=5086444
|
|
idempotency_rows=5086444
|
|
|
|
=== возвращаю LB к бюджету CPU 0.25 ===
|