255 lines
5.6 KiB
JSON
255 lines
5.6 KiB
JSON
{
|
|
"kind": "scaling",
|
|
"label": "scaling-db",
|
|
"series": "db",
|
|
"started": "2026-10-15T15:17:41Z",
|
|
"profile": {
|
|
"name": "scaling",
|
|
"series": "db",
|
|
"configs": [
|
|
"1x1-pg0.5",
|
|
"2x1-pg0.5",
|
|
"4x1-pg0.5"
|
|
],
|
|
"repeats": 3,
|
|
"users": 20,
|
|
"read_messages": 10000,
|
|
"write_chats": 10,
|
|
"fill_clients": 16,
|
|
"mix": "70,20,10",
|
|
"fixed_rates": [
|
|
250.0,
|
|
500.0
|
|
],
|
|
"ladder_base": 100.0,
|
|
"ladder_factor": 1.25,
|
|
"start_per_replica": 300.0,
|
|
"bisections": 2,
|
|
"rate_cap": 8000.0,
|
|
"warmup_first_s": 10.0,
|
|
"warmup_ramp_s": 5.0,
|
|
"window_s": 15.0,
|
|
"pause_after_fail_s": 10.0,
|
|
"slo_p95_ms": 200.0,
|
|
"slo_fail_share": 0.01,
|
|
"abort_error_share": 0.5,
|
|
"abort_p95_ms": 2000.0,
|
|
"request_timeout_s": 10.0,
|
|
"gen_procs": 4,
|
|
"session_ttl": 21600,
|
|
"order_seed": 20261014,
|
|
"base": {
|
|
"api_replicas": 1,
|
|
"api_cpus": 1.0,
|
|
"api_memory": "512m",
|
|
"db_cpus": 2.0,
|
|
"db_memory": "1g",
|
|
"db_max_connections": 100,
|
|
"cache_cpus": 0.5,
|
|
"cache_memory": "128m",
|
|
"lb_cpus": 1.0,
|
|
"lb_memory": "256m",
|
|
"gen_cpus": 2.0,
|
|
"gen_memory": "1g",
|
|
"sampler_cpus": 0.25,
|
|
"sampler_memory": "256m"
|
|
}
|
|
},
|
|
"configs": {
|
|
"1x1-pg0.5": {
|
|
"api_replicas": 1,
|
|
"api_cpus": 1.0,
|
|
"api_memory": "512m",
|
|
"db_cpus": 0.5,
|
|
"db_memory": "1g",
|
|
"db_max_connections": 100,
|
|
"cache_cpus": 0.5,
|
|
"cache_memory": "128m",
|
|
"lb_cpus": 1.0,
|
|
"lb_memory": "256m",
|
|
"gen_cpus": 2.0,
|
|
"gen_memory": "1g",
|
|
"sampler_cpus": 0.25,
|
|
"sampler_memory": "256m"
|
|
},
|
|
"2x1-pg0.5": {
|
|
"api_replicas": 2,
|
|
"api_cpus": 1.0,
|
|
"api_memory": "512m",
|
|
"db_cpus": 0.5,
|
|
"db_memory": "1g",
|
|
"db_max_connections": 100,
|
|
"cache_cpus": 0.5,
|
|
"cache_memory": "128m",
|
|
"lb_cpus": 1.0,
|
|
"lb_memory": "256m",
|
|
"gen_cpus": 2.0,
|
|
"gen_memory": "1g",
|
|
"sampler_cpus": 0.25,
|
|
"sampler_memory": "256m"
|
|
},
|
|
"4x1-pg0.5": {
|
|
"api_replicas": 4,
|
|
"api_cpus": 1.0,
|
|
"api_memory": "512m",
|
|
"db_cpus": 0.5,
|
|
"db_memory": "1g",
|
|
"db_max_connections": 100,
|
|
"cache_cpus": 0.5,
|
|
"cache_memory": "128m",
|
|
"lb_cpus": 1.0,
|
|
"lb_memory": "256m",
|
|
"gen_cpus": 2.0,
|
|
"gen_memory": "1g",
|
|
"sampler_cpus": 0.25,
|
|
"sampler_memory": "256m"
|
|
}
|
|
},
|
|
"budget": {
|
|
"1x1-pg0.5": {
|
|
"cpus": 5.25,
|
|
"memory_gib": 3.12
|
|
},
|
|
"2x1-pg0.5": {
|
|
"cpus": 6.25,
|
|
"memory_gib": 3.62
|
|
},
|
|
"4x1-pg0.5": {
|
|
"cpus": 8.25,
|
|
"memory_gib": 4.62
|
|
}
|
|
},
|
|
"vm": {
|
|
"limits_cpus": 8.25,
|
|
"limits_memory_gib": 4.62,
|
|
"vm_cpus": 10,
|
|
"vm_memory_gib": 7.65
|
|
},
|
|
"host": {
|
|
"platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
|
|
"machine": "arm64",
|
|
"cpu_model": "Apple M4",
|
|
"cpu_count": 10,
|
|
"ram_gb": 16.0,
|
|
"swap_used_mib": 0.0,
|
|
"power": "AC Power",
|
|
"memory_pressure": null,
|
|
"memory_free_percent": 67,
|
|
"swapouts": 0,
|
|
"loadavg_1m": 1.59
|
|
},
|
|
"docker": {
|
|
"ServerVersion": "28.0.4",
|
|
"OperatingSystem": "Docker Desktop",
|
|
"KernelVersion": "6.10.14-linuxkit",
|
|
"Architecture": "aarch64",
|
|
"NCPU": 10,
|
|
"MemTotal": 8218034176,
|
|
"CgroupVersion": "2",
|
|
"CgroupDriver": "cgroupfs",
|
|
"compose_version": "2.34.0-desktop.1",
|
|
"other_running_containers": []
|
|
},
|
|
"host_warnings": [],
|
|
"image": {
|
|
"tag": "mtusi-messenger-vladimirceva:bench-scaling-db",
|
|
"id": "sha256:ac17d94cda500d4a65418c184deec9428e706ff40a68a7789b068c973c7d4e05",
|
|
"created": "2026-10-15T10:39:12.700675009Z",
|
|
"src_sha256": "0349e9a2701784673391c0ba4bc2eedba7013098d6ff7f871261aab36f78354a",
|
|
"versions": {
|
|
"python": "3.13.15",
|
|
"fastapi": "0.142.1",
|
|
"starlette": "1.7.0",
|
|
"uvicorn": "0.54.0",
|
|
"pydantic": "2.13.5",
|
|
"sqlalchemy": "2.1.1",
|
|
"asyncpg": "0.31.0",
|
|
"alembic": "1.20.0",
|
|
"redis": "8.1.0",
|
|
"argon2-cffi": "25.1.0"
|
|
},
|
|
"app_defaults": {
|
|
"pool_size": 10,
|
|
"pool_overflow": 5,
|
|
"pool_timeout": 5.0,
|
|
"operation_timeout": 6.0,
|
|
"statement_timeout_ms": 5000,
|
|
"kdf_concurrency": 4,
|
|
"keep_alive": 60,
|
|
"shutdown_timeout": 5
|
|
}
|
|
},
|
|
"code": {
|
|
"src_sha256": "0349e9a2701784673391c0ba4bc2eedba7013098d6ff7f871261aab36f78354a",
|
|
"git_commit": "4b051bf2f85428e3824dba4eec858f9579b70475",
|
|
"git_dirty": false
|
|
},
|
|
"thresholds": {
|
|
"app_cpu_share": 0.85,
|
|
"app_throttled_share": 0.2,
|
|
"db_cpu_share": 0.85,
|
|
"db_lock_wait_mean": 1.0,
|
|
"pool_share": 0.9,
|
|
"churn_sessions": 20,
|
|
"lb_cpu_share": 0.85,
|
|
"host_busy_share": 0.9,
|
|
"gen_cpu_share": 0.9,
|
|
"gen_lag_p99_ms": 50.0
|
|
},
|
|
"plan": [
|
|
{
|
|
"cell": 1,
|
|
"config": "2x1-pg0.5",
|
|
"repeat": 1
|
|
},
|
|
{
|
|
"cell": 2,
|
|
"config": "4x1-pg0.5",
|
|
"repeat": 1
|
|
},
|
|
{
|
|
"cell": 3,
|
|
"config": "1x1-pg0.5",
|
|
"repeat": 1
|
|
},
|
|
{
|
|
"cell": 4,
|
|
"config": "4x1-pg0.5",
|
|
"repeat": 2
|
|
},
|
|
{
|
|
"cell": 5,
|
|
"config": "2x1-pg0.5",
|
|
"repeat": 2
|
|
},
|
|
{
|
|
"cell": 6,
|
|
"config": "1x1-pg0.5",
|
|
"repeat": 2
|
|
},
|
|
{
|
|
"cell": 7,
|
|
"config": "4x1-pg0.5",
|
|
"repeat": 3
|
|
},
|
|
{
|
|
"cell": 8,
|
|
"config": "1x1-pg0.5",
|
|
"repeat": 3
|
|
},
|
|
{
|
|
"cell": 9,
|
|
"config": "2x1-pg0.5",
|
|
"repeat": 3
|
|
}
|
|
],
|
|
"finished": "2026-10-15T15:51:03Z",
|
|
"host_state_end": {
|
|
"slept_seconds": 0.0,
|
|
"swapouts_start": 0,
|
|
"swapouts_end": 0,
|
|
"power_end": "AC Power",
|
|
"swapouts_delta": 0
|
|
}
|
|
}
|