docs: add scaling pool series
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,580 @@
|
||||
{
|
||||
"label": "scaling-pool",
|
||||
"status": "complete",
|
||||
"started_at": "2026-10-11T03:01:57+00:00",
|
||||
"command": "uv run python bench/run.py --profile scaling_pool --label scaling-pool",
|
||||
"git": {
|
||||
"commit": "1320584",
|
||||
"dirty": false
|
||||
},
|
||||
"overrides": {},
|
||||
"host_state": {
|
||||
"start": {
|
||||
"swap_used_mib": 864.31,
|
||||
"swap_total_mib": 2048.0,
|
||||
"swapouts": 6697411,
|
||||
"memory_free_percent": 53,
|
||||
"power": "AC Power",
|
||||
"battery_percent": 80
|
||||
},
|
||||
"end": {
|
||||
"swap_used_mib": 856.31,
|
||||
"swap_total_mib": 2048.0,
|
||||
"swapouts": 6697411,
|
||||
"memory_free_percent": 53,
|
||||
"power": "AC Power",
|
||||
"battery_percent": 80
|
||||
},
|
||||
"swapouts_delta": 0,
|
||||
"slept_seconds": 0
|
||||
},
|
||||
"host_warnings": [],
|
||||
"other_containers": [],
|
||||
"budget": {
|
||||
"4x1": {
|
||||
"cpus": 9.75,
|
||||
"memory_gib": 4.5,
|
||||
"vm_cpus": 12,
|
||||
"vm_memory_gib": 7.75
|
||||
},
|
||||
"4x1-c50": {
|
||||
"cpus": 9.75,
|
||||
"memory_gib": 4.5,
|
||||
"vm_cpus": 12,
|
||||
"vm_memory_gib": 7.75
|
||||
}
|
||||
},
|
||||
"app_image": {
|
||||
"tag": "mtusi-messenger:bench",
|
||||
"id": "sha256:83c97f10a9ff5e0ca17dac78be171187263624f15b87107939fd763cf3ac47e0",
|
||||
"versions": {
|
||||
"python": "3.12.14",
|
||||
"fastapi": "0.141.1",
|
||||
"starlette": "1.7.0",
|
||||
"pydantic": "2.13.5",
|
||||
"uvicorn": "0.54.0",
|
||||
"sqlalchemy": "2.1.1",
|
||||
"asyncpg": "0.31.0",
|
||||
"redis": "8.1.0"
|
||||
}
|
||||
},
|
||||
"generator": {
|
||||
"image": "grafana/k6:2.3.0@sha256:9c2dee7f8ed74d317e4027c06a10f169b625638189de8d4555d0b3486a5aeb34",
|
||||
"version": "k6 v2.3.0 (commit/e088784614, go1.27.1, linux/arm64)"
|
||||
},
|
||||
"docker": {
|
||||
"server": "29.8.2",
|
||||
"vm_os": "Docker Desktop",
|
||||
"vm_cpus": 12,
|
||||
"vm_memory_gib": 7.7,
|
||||
"cgroup": "2",
|
||||
"logging_driver": "local"
|
||||
},
|
||||
"host": {
|
||||
"os": "macOS 26.6.2",
|
||||
"machine": "Apple M3 Pro",
|
||||
"memory_gib": 18.0,
|
||||
"performance_cores": 6,
|
||||
"efficiency_cores": 6
|
||||
},
|
||||
"profile": {
|
||||
"name": "scaling_pool",
|
||||
"sizes": [
|
||||
10000
|
||||
],
|
||||
"concurrency": [],
|
||||
"repeats": 3,
|
||||
"read_warmup_s": 0,
|
||||
"read_measure_s": 0,
|
||||
"write_warmup": 0,
|
||||
"write_measure": 0,
|
||||
"prefill_chunk": 25000,
|
||||
"prefill_vus": 32,
|
||||
"text_length": 64,
|
||||
"page_limit": 50,
|
||||
"walk_limit": 100,
|
||||
"cursor_pool": 1000,
|
||||
"members": 10,
|
||||
"seed": 20260930,
|
||||
"warmup_seed_shift": 1000003,
|
||||
"generator_cpu_limit": 1.8,
|
||||
"cpus": "1",
|
||||
"memory": "512m",
|
||||
"db_cpus": "2",
|
||||
"db_memory": "1g",
|
||||
"cache_cpus": "0.5",
|
||||
"cache_memory": "128m",
|
||||
"session_ttl_seconds": 21600,
|
||||
"background": [],
|
||||
"index_variants": [
|
||||
[
|
||||
"chat_only",
|
||||
"(chat_id)"
|
||||
],
|
||||
[
|
||||
"covering",
|
||||
"(chat_id, created_at, id) INCLUDE (sender_id, text)"
|
||||
]
|
||||
],
|
||||
"write_probe_rows": 20000,
|
||||
"write_probe_repeats": 3,
|
||||
"restore": false,
|
||||
"restore_jobs": 4,
|
||||
"restore_write_load": 5000,
|
||||
"restore_write_vus": 10,
|
||||
"replicas": 1,
|
||||
"lb_cpus": "1",
|
||||
"lb_memory": "256m",
|
||||
"failover_modes": [],
|
||||
"failover_write_rate": 0,
|
||||
"failover_read_rate": 0,
|
||||
"failover_before_s": 0,
|
||||
"failover_down_s": 0,
|
||||
"failover_after_s": 0,
|
||||
"failover_success": 0.99,
|
||||
"failover_pre_vus": 600,
|
||||
"failover_max_vus": 1500,
|
||||
"rollout_from": "",
|
||||
"rollout_before_s": 0,
|
||||
"rollout_budget_s": 0,
|
||||
"rollout_after_s": 0,
|
||||
"db_max_connections": 100,
|
||||
"series": "pool",
|
||||
"configs": [
|
||||
[
|
||||
4,
|
||||
"1",
|
||||
"512m",
|
||||
100
|
||||
],
|
||||
[
|
||||
4,
|
||||
"1",
|
||||
"512m",
|
||||
50
|
||||
]
|
||||
],
|
||||
"write_chats": 10,
|
||||
"mix": [
|
||||
[
|
||||
"read",
|
||||
0.7
|
||||
],
|
||||
[
|
||||
"write",
|
||||
0.2
|
||||
],
|
||||
[
|
||||
"me",
|
||||
0.1
|
||||
]
|
||||
],
|
||||
"fixed_rps": [
|
||||
250,
|
||||
500
|
||||
],
|
||||
"ladder_base": 100,
|
||||
"step_factor": 1.25,
|
||||
"start_rps_per_replica": 300,
|
||||
"bisect_steps": 2,
|
||||
"max_steps": 12,
|
||||
"first_warmup_s": 15,
|
||||
"step_warmup_s": 5,
|
||||
"step_measure_s": 20,
|
||||
"cooldown_s": 10,
|
||||
"slo_p95_ms": 200,
|
||||
"slo_error_ratio": 0.01,
|
||||
"abort_error_ratio": 0.5,
|
||||
"abort_p95_ms": 2000,
|
||||
"request_timeout_s": 15,
|
||||
"prevus_per_rps": 0.2,
|
||||
"vus_per_rps": 0.2,
|
||||
"generator_cpus": "2",
|
||||
"generator_memory": "1g",
|
||||
"sampler_cpus": "0.25",
|
||||
"sampler_memory": "128m",
|
||||
"sample_interval_s": 1.0,
|
||||
"order_seed": 20261011
|
||||
},
|
||||
"sizes": [],
|
||||
"plan": [
|
||||
{
|
||||
"cell": "4x1-r1",
|
||||
"config": "4x1",
|
||||
"replicas": 4,
|
||||
"replica_cpus": "1",
|
||||
"replica_memory": "512m",
|
||||
"db_max_connections": 100,
|
||||
"repeat": 1,
|
||||
"round": 1,
|
||||
"order": 1
|
||||
},
|
||||
{
|
||||
"cell": "4x1-c50-r1",
|
||||
"config": "4x1-c50",
|
||||
"replicas": 4,
|
||||
"replica_cpus": "1",
|
||||
"replica_memory": "512m",
|
||||
"db_max_connections": 50,
|
||||
"repeat": 1,
|
||||
"round": 1,
|
||||
"order": 2
|
||||
},
|
||||
{
|
||||
"cell": "4x1-r2",
|
||||
"config": "4x1",
|
||||
"replicas": 4,
|
||||
"replica_cpus": "1",
|
||||
"replica_memory": "512m",
|
||||
"db_max_connections": 100,
|
||||
"repeat": 2,
|
||||
"round": 2,
|
||||
"order": 3
|
||||
},
|
||||
{
|
||||
"cell": "4x1-c50-r2",
|
||||
"config": "4x1-c50",
|
||||
"replicas": 4,
|
||||
"replica_cpus": "1",
|
||||
"replica_memory": "512m",
|
||||
"db_max_connections": 50,
|
||||
"repeat": 2,
|
||||
"round": 2,
|
||||
"order": 4
|
||||
},
|
||||
{
|
||||
"cell": "4x1-r3",
|
||||
"config": "4x1",
|
||||
"replicas": 4,
|
||||
"replica_cpus": "1",
|
||||
"replica_memory": "512m",
|
||||
"db_max_connections": 100,
|
||||
"repeat": 3,
|
||||
"round": 3,
|
||||
"order": 5
|
||||
},
|
||||
{
|
||||
"cell": "4x1-c50-r3",
|
||||
"config": "4x1-c50",
|
||||
"replicas": 4,
|
||||
"replica_cpus": "1",
|
||||
"replica_memory": "512m",
|
||||
"db_max_connections": 50,
|
||||
"repeat": 3,
|
||||
"round": 3,
|
||||
"order": 6
|
||||
}
|
||||
],
|
||||
"limits": {
|
||||
"4x1": {
|
||||
"api": {
|
||||
"nano_cpus": 1000000000,
|
||||
"memory": 536870912,
|
||||
"memory_swap": 536870912,
|
||||
"published_ports": {},
|
||||
"healthcheck": [
|
||||
"NONE"
|
||||
],
|
||||
"log_driver": "local"
|
||||
},
|
||||
"postgres": {
|
||||
"nano_cpus": 2000000000,
|
||||
"memory": 1073741824,
|
||||
"memory_swap": 1073741824,
|
||||
"published_ports": {},
|
||||
"healthcheck": [
|
||||
"CMD-SHELL",
|
||||
"pg_isready -h 127.0.0.1 -U \"$POSTGRES_USER\" -d \"$POSTGRES_DB\""
|
||||
],
|
||||
"log_driver": "local"
|
||||
},
|
||||
"valkey": {
|
||||
"nano_cpus": 500000000,
|
||||
"memory": 134217728,
|
||||
"memory_swap": 134217728,
|
||||
"published_ports": {},
|
||||
"healthcheck": [
|
||||
"CMD-SHELL",
|
||||
"test \"$(valkey-cli -p \"$VALKEY_PORT\" ping)\" = PONG"
|
||||
],
|
||||
"log_driver": "local"
|
||||
},
|
||||
"haproxy": {
|
||||
"nano_cpus": 1000000000,
|
||||
"memory": 268435456,
|
||||
"memory_swap": 268435456,
|
||||
"published_ports": {},
|
||||
"healthcheck": [
|
||||
"CMD",
|
||||
"bash",
|
||||
"-c",
|
||||
"exec 3<>/dev/tcp/127.0.0.1/8404 && printf 'GET /lb/ready HTTP/1.0\\r\\n\\r\\n' >&3 && head -n 1 <&3 | grep -q ' 200 '"
|
||||
],
|
||||
"log_driver": "local"
|
||||
},
|
||||
"k6": {
|
||||
"nano_cpus": 2000000000,
|
||||
"memory": 1073741824,
|
||||
"memory_swap": 1073741824,
|
||||
"published_ports": {},
|
||||
"healthcheck": null,
|
||||
"log_driver": "local"
|
||||
},
|
||||
"api_replicas": 4,
|
||||
"max_connections": 100
|
||||
},
|
||||
"4x1-c50": {
|
||||
"api": {
|
||||
"nano_cpus": 1000000000,
|
||||
"memory": 536870912,
|
||||
"memory_swap": 536870912,
|
||||
"published_ports": {},
|
||||
"healthcheck": [
|
||||
"NONE"
|
||||
],
|
||||
"log_driver": "local"
|
||||
},
|
||||
"postgres": {
|
||||
"nano_cpus": 2000000000,
|
||||
"memory": 1073741824,
|
||||
"memory_swap": 1073741824,
|
||||
"published_ports": {},
|
||||
"healthcheck": [
|
||||
"CMD-SHELL",
|
||||
"pg_isready -h 127.0.0.1 -U \"$POSTGRES_USER\" -d \"$POSTGRES_DB\""
|
||||
],
|
||||
"log_driver": "local"
|
||||
},
|
||||
"valkey": {
|
||||
"nano_cpus": 500000000,
|
||||
"memory": 134217728,
|
||||
"memory_swap": 134217728,
|
||||
"published_ports": {},
|
||||
"healthcheck": [
|
||||
"CMD-SHELL",
|
||||
"test \"$(valkey-cli -p \"$VALKEY_PORT\" ping)\" = PONG"
|
||||
],
|
||||
"log_driver": "local"
|
||||
},
|
||||
"haproxy": {
|
||||
"nano_cpus": 1000000000,
|
||||
"memory": 268435456,
|
||||
"memory_swap": 268435456,
|
||||
"published_ports": {},
|
||||
"healthcheck": [
|
||||
"CMD",
|
||||
"bash",
|
||||
"-c",
|
||||
"exec 3<>/dev/tcp/127.0.0.1/8404 && printf 'GET /lb/ready HTTP/1.0\\r\\n\\r\\n' >&3 && head -n 1 <&3 | grep -q ' 200 '"
|
||||
],
|
||||
"log_driver": "local"
|
||||
},
|
||||
"k6": {
|
||||
"nano_cpus": 2000000000,
|
||||
"memory": 1073741824,
|
||||
"memory_swap": 1073741824,
|
||||
"published_ports": {},
|
||||
"healthcheck": null,
|
||||
"log_driver": "local"
|
||||
},
|
||||
"api_replicas": 4,
|
||||
"max_connections": 50
|
||||
}
|
||||
},
|
||||
"stand": {
|
||||
"postgres": {
|
||||
"image": "postgres:18.6-trixie@sha256:5a5a84b19854a9ffaa54082c166ff4ec27473a361e496e5ea167f298f2da9722",
|
||||
"id": "sha256:5a5a84b19854a9ffaa54082c166ff4ec27473a361e496e5ea167f298f2da9722",
|
||||
"version": "18.6 (Debian 18.6-1.pgdg13+2)",
|
||||
"settings": {
|
||||
"autovacuum": "on",
|
||||
"checkpoint_timeout": "5min",
|
||||
"effective_cache_size": "4GB",
|
||||
"fsync": "on",
|
||||
"jit": "on",
|
||||
"maintenance_work_mem": "64MB",
|
||||
"max_wal_size": "1GB",
|
||||
"plan_cache_mode": "auto",
|
||||
"random_page_cost": "4",
|
||||
"shared_buffers": "128MB",
|
||||
"shared_preload_libraries": "auto_explain",
|
||||
"synchronous_commit": "on",
|
||||
"wal_level": "replica",
|
||||
"work_mem": "4MB"
|
||||
}
|
||||
},
|
||||
"valkey": {
|
||||
"image": "valkey/valkey:9.1.2-trixie@sha256:418652cfb58ef879d4978c33553735d7147016032d5aefaa14c828e611eb9dfd",
|
||||
"id": "sha256:418652cfb58ef879d4978c33553735d7147016032d5aefaa14c828e611eb9dfd",
|
||||
"version": "9.1.2",
|
||||
"maxmemory": "67108864",
|
||||
"maxmemory-clients": "0",
|
||||
"maxmemory-eviction-tenacity": "10",
|
||||
"maxmemory-policy": "allkeys-lru",
|
||||
"maxmemory-samples": "5"
|
||||
},
|
||||
"haproxy": {
|
||||
"image": "haproxy:3.4.6-trixie@sha256:e273915691a8eab3f105bf3e39fd4c29a4ecf334e33421903b5589d25e14db26",
|
||||
"id": "sha256:e273915691a8eab3f105bf3e39fd4c29a4ecf334e33421903b5589d25e14db26",
|
||||
"version": "HAProxy version 3.4.6-56332c5 2026/09/28 - https://haproxy.org/"
|
||||
},
|
||||
"app_env": {
|
||||
"APP__PORT": "8080",
|
||||
"APP__RUN_MODE": "docker",
|
||||
"AUTH__SESSION_TTL_SECONDS": "21600",
|
||||
"CACHE__HOST": "valkey",
|
||||
"CACHE__PORT": "6379",
|
||||
"DATABASE__HOST": "postgres",
|
||||
"DATABASE__NAME": "bench",
|
||||
"DATABASE__PORT": "5432",
|
||||
"DATABASE__USER": "bench"
|
||||
}
|
||||
},
|
||||
"cells": {
|
||||
"4x1-r1": {
|
||||
"attempt": 1,
|
||||
"status": "complete",
|
||||
"r_star_rps": 1819,
|
||||
"host": {
|
||||
"start": {
|
||||
"swap_used_mib": 864.31,
|
||||
"swap_total_mib": 2048.0,
|
||||
"swapouts": 6697411,
|
||||
"memory_free_percent": 48,
|
||||
"power": "AC Power",
|
||||
"battery_percent": 80
|
||||
},
|
||||
"end": {
|
||||
"swap_used_mib": 864.31,
|
||||
"swap_total_mib": 2048.0,
|
||||
"swapouts": 6697411,
|
||||
"memory_free_percent": 53,
|
||||
"power": "AC Power",
|
||||
"battery_percent": 80
|
||||
}
|
||||
},
|
||||
"other_containers": []
|
||||
},
|
||||
"4x1-c50-r1": {
|
||||
"attempt": 1,
|
||||
"status": "complete",
|
||||
"r_star_rps": 1627,
|
||||
"host": {
|
||||
"start": {
|
||||
"swap_used_mib": 864.31,
|
||||
"swap_total_mib": 2048.0,
|
||||
"swapouts": 6697411,
|
||||
"memory_free_percent": 53,
|
||||
"power": "AC Power",
|
||||
"battery_percent": 80
|
||||
},
|
||||
"end": {
|
||||
"swap_used_mib": 856.31,
|
||||
"swap_total_mib": 2048.0,
|
||||
"swapouts": 6697411,
|
||||
"memory_free_percent": 54,
|
||||
"power": "AC Power",
|
||||
"battery_percent": 80
|
||||
}
|
||||
},
|
||||
"other_containers": []
|
||||
},
|
||||
"4x1-r2": {
|
||||
"attempt": 1,
|
||||
"status": "complete",
|
||||
"r_star_rps": 1720,
|
||||
"host": {
|
||||
"start": {
|
||||
"swap_used_mib": 856.31,
|
||||
"swap_total_mib": 2048.0,
|
||||
"swapouts": 6697411,
|
||||
"memory_free_percent": 54,
|
||||
"power": "AC Power",
|
||||
"battery_percent": 80
|
||||
},
|
||||
"end": {
|
||||
"swap_used_mib": 856.31,
|
||||
"swap_total_mib": 2048.0,
|
||||
"swapouts": 6697411,
|
||||
"memory_free_percent": 52,
|
||||
"power": "AC Power",
|
||||
"battery_percent": 80
|
||||
}
|
||||
},
|
||||
"other_containers": []
|
||||
},
|
||||
"4x1-c50-r2": {
|
||||
"attempt": 1,
|
||||
"status": "complete",
|
||||
"r_star_rps": 1539,
|
||||
"host": {
|
||||
"start": {
|
||||
"swap_used_mib": 856.31,
|
||||
"swap_total_mib": 2048.0,
|
||||
"swapouts": 6697411,
|
||||
"memory_free_percent": 51,
|
||||
"power": "AC Power",
|
||||
"battery_percent": 80
|
||||
},
|
||||
"end": {
|
||||
"swap_used_mib": 856.31,
|
||||
"swap_total_mib": 2048.0,
|
||||
"swapouts": 6697411,
|
||||
"memory_free_percent": 53,
|
||||
"power": "AC Power",
|
||||
"battery_percent": 80
|
||||
}
|
||||
},
|
||||
"other_containers": []
|
||||
},
|
||||
"4x1-r3": {
|
||||
"attempt": 1,
|
||||
"status": "complete",
|
||||
"r_star_rps": 1819,
|
||||
"host": {
|
||||
"start": {
|
||||
"swap_used_mib": 856.31,
|
||||
"swap_total_mib": 2048.0,
|
||||
"swapouts": 6697411,
|
||||
"memory_free_percent": 54,
|
||||
"power": "AC Power",
|
||||
"battery_percent": 80
|
||||
},
|
||||
"end": {
|
||||
"swap_used_mib": 856.31,
|
||||
"swap_total_mib": 2048.0,
|
||||
"swapouts": 6697411,
|
||||
"memory_free_percent": 53,
|
||||
"power": "AC Power",
|
||||
"battery_percent": 80
|
||||
}
|
||||
},
|
||||
"other_containers": []
|
||||
},
|
||||
"4x1-c50-r3": {
|
||||
"attempt": 1,
|
||||
"status": "complete",
|
||||
"r_star_rps": 1539,
|
||||
"host": {
|
||||
"start": {
|
||||
"swap_used_mib": 856.31,
|
||||
"swap_total_mib": 2048.0,
|
||||
"swapouts": 6697411,
|
||||
"memory_free_percent": 53,
|
||||
"power": "AC Power",
|
||||
"battery_percent": 80
|
||||
},
|
||||
"end": {
|
||||
"swap_used_mib": 856.31,
|
||||
"swap_total_mib": 2048.0,
|
||||
"swapouts": 6697411,
|
||||
"memory_free_percent": 53,
|
||||
"power": "AC Power",
|
||||
"battery_percent": 80
|
||||
}
|
||||
},
|
||||
"other_containers": []
|
||||
}
|
||||
},
|
||||
"finished_at": "2026-10-11T03:25:29+00:00"
|
||||
}
|
||||
Reference in New Issue
Block a user