bench: record M4 results and raise queue API memory

This commit is contained in:
2026-12-04 18:23:23 +03:00
parent ee67725074
commit 831e3f7773
115 changed files with 17142 additions and 12 deletions
+428
View File
@@ -0,0 +1,428 @@
{
"kind": "login",
"label": "manual-login-2",
"started": "2026-12-04T13:17:59Z",
"profile": {
"name": "login",
"variants": [
"before",
"budget",
"full"
],
"flood_rates": [
10.0,
40.0
],
"repeats": 3,
"before": "ce96962",
"light_rate": 50.0,
"good_rate": 1.0,
"warmup_s": 15.0,
"window_s": 60.0,
"users": 20,
"good_users": 5,
"seed": 20261127,
"request_timeout_s": 15.0,
"db_cpus": 2.0,
"cache_cpus": 0.5,
"lb_cpus": 0.5,
"gen_cpus": 1.0,
"gen2_cpus": 0.25,
"gen2_memory": "256m",
"session_ttl": 21600,
"budget_env": [
[
"LOGIN_MAX_FAILURES_PER_ACCOUNT",
"0"
],
[
"LOGIN_MAX_FAILURES_PER_ADDRESS",
"0"
]
]
},
"variants": [
"budget",
"full"
],
"variant_env": {},
"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": 4879.44,
"power": "AC Power",
"memory_pressure": null,
"memory_free_percent": 48,
"swapouts": 5906325,
"loadavg_1m": 3.48
},
"docker": {
"ServerVersion": "28.0.4",
"OperatingSystem": "Docker Desktop",
"KernelVersion": "6.10.14-linuxkit",
"Architecture": "aarch64",
"NCPU": 10,
"MemTotal": 10419826688,
"CgroupVersion": "2",
"CgroupDriver": "cgroupfs",
"compose_version": "5.6.1",
"other_running_containers": []
},
"budget": {
"limits_cpus": 6.75,
"limits_memory_gib": 4.12,
"vm_cpus": 10,
"vm_memory_gib": 9.7
},
"host_warnings": [
"host swapped out 30080 pages during the run"
],
"image": {
"tag": "mtusi-messenger-vladimirceva:bench-manual-login-2",
"id": "sha256:33928786ed20056739b443afc7c1e9e331cee300166ee6db257bff63c7915412",
"created": "2026-12-04T10:21:43.484203295Z",
"src_sha256": "9f54713d40ab16487073215427ef36fc2826a073550f825cc5eb0902a5c2ad7e",
"versions": {
"python": "3.13.18",
"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",
"aiobotocore": "3.10.0",
"botocore": "1.43.117",
"aiohttp": "3.14.5"
},
"app_defaults": {
"pool_size": 10,
"pool_overflow": 5,
"pool_timeout": 5.0,
"operation_timeout": 6.0,
"statement_timeout_ms": 5000,
"auth": {
"argon2_memory_kib": 65536,
"argon2_iterations": 2,
"argon2_parallelism": 1,
"kdf_concurrency": 1,
"kdf_max_waiting": 16,
"kdf_wait_timeout": 2.0,
"login_window": 300,
"login_max_failures_per_account": 10,
"login_max_failures_per_address": 200
},
"keep_alive": 60,
"client_tls": true,
"shutdown_timeout": 5,
"s3_timeout": 5.0,
"s3_max_connections": 10,
"uploads": {
"max_concurrent": 4,
"max_waiting": 16,
"wait_timeout": 5.0,
"body_timeout": 30.0,
"max_unfinished": 300
},
"cleaner": {
"interval": 60.0,
"grace": 900,
"batch": 100,
"reconcile_interval": 3600,
"reconcile_page": 1000,
"reconcile_max_changes": 100,
"reconcile_rate": 2000.0,
"staging_retention": 86400
},
"pipeline": {
"concurrency": 2,
"prefetch": 2,
"max_attempts": 5,
"job_timeout": 60.0,
"lease_margin": 20.0,
"retry_base": 2.0,
"retry_max": 120.0,
"render_memory_mb": 768,
"stop_timeout": 8.0,
"fault": ""
},
"relay": {
"interval": 0.5,
"batch": 100,
"republish_after": 120.0,
"fault": ""
},
"malloc_mmap_threshold": "131072"
}
},
"image_before": null,
"code": {
"src_sha256": "9f54713d40ab16487073215427ef36fc2826a073550f825cc5eb0902a5c2ad7e",
"git_commit": "ee6772507433e3d587cde2f1f47390c5fab53b0b",
"git_dirty": true
},
"plan": [
{
"run": "idle-r1",
"variant": "idle",
"flood_rate": 0.0,
"repeat": 1,
"order": 1
},
{
"run": "full-l40-r1",
"variant": "full",
"flood_rate": 40.0,
"repeat": 1,
"order": 2
},
{
"run": "budget-l40-r1",
"variant": "budget",
"flood_rate": 40.0,
"repeat": 1,
"order": 3
},
{
"run": "full-l10-r1",
"variant": "full",
"flood_rate": 10.0,
"repeat": 1,
"order": 4
},
{
"run": "budget-l10-r1",
"variant": "budget",
"flood_rate": 10.0,
"repeat": 1,
"order": 5
},
{
"run": "budget-l40-r2",
"variant": "budget",
"flood_rate": 40.0,
"repeat": 2,
"order": 6
},
{
"run": "budget-l10-r2",
"variant": "budget",
"flood_rate": 10.0,
"repeat": 2,
"order": 7
},
{
"run": "full-l40-r2",
"variant": "full",
"flood_rate": 40.0,
"repeat": 2,
"order": 8
},
{
"run": "full-l10-r2",
"variant": "full",
"flood_rate": 10.0,
"repeat": 2,
"order": 9
},
{
"run": "budget-l10-r3",
"variant": "budget",
"flood_rate": 10.0,
"repeat": 3,
"order": 10
},
{
"run": "full-l10-r3",
"variant": "full",
"flood_rate": 10.0,
"repeat": 3,
"order": 11
},
{
"run": "full-l40-r3",
"variant": "full",
"flood_rate": 40.0,
"repeat": 3,
"order": 12
},
{
"run": "budget-l40-r3",
"variant": "budget",
"flood_rate": 40.0,
"repeat": 3,
"order": 13
}
],
"startup": {
"idle": {
"argon2": "m=65536,t=2,p=1",
"kdf": "1+16",
"kdf_wait": "2s",
"login_window": "300s",
"login_max_account": "10",
"login_max_address": "200"
},
"full": {
"argon2": "m=65536,t=2,p=1",
"kdf": "1+16",
"kdf_wait": "2s",
"login_window": "300s",
"login_max_account": "10",
"login_max_address": "200"
},
"budget": {
"argon2": "m=65536,t=2,p=1",
"kdf": "1+16",
"kdf_wait": "2s",
"login_window": "300s",
"login_max_account": "0",
"login_max_address": "0"
}
},
"storage_transport": {
"budget": "postgres, valkey: tls1.3, per-run CA, name check",
"full": "postgres, valkey: tls1.3, per-run CA, name check",
"before": "postgres: tls without server check (asyncpg prefer); valkey: unreachable (no TLS client), cache bypassed"
},
"stand": {
"postgres": {
"image": "postgres:18.7-trixie@sha256:64c8b0d31e4ab6ea665e8426ea406a94bf52de3c05b3a4a8bf713704eefa9328",
"version": "18.7 (Debian 18.7-1.pgdg13+5)",
"settings": {
"checkpoint_timeout": "5min",
"fsync": "on",
"jit": "on",
"max_connections": "100",
"max_wal_size": "1GB",
"password_encryption": "scram-sha-256",
"shared_buffers": "128MB",
"synchronous_commit": "on",
"wal_level": "replica"
}
},
"valkey": {
"image": "valkey/valkey:9.1.4-trixie@sha256:3ab0eca823ebbf0fe352476ebac330ac9e5f14b592b9a954eab296d341e81b0e",
"version": "9.1.4"
},
"haproxy": {
"image": "haproxy:3.4.8-trixie@sha256:3e4e390ccc7208326607be371f4d14f6296af5cdb414315fadff50c5d785a478"
},
"tls": {
"ingress": "https",
"lb_to_api": "mtls",
"pki": "per-run CA",
"generator_url": "https://ingress:8443",
"storages": "tls1.3, per-run CA, name check"
},
"storage_auth": {
"postgres": {
"api": "role api",
"worker": "role worker",
"relay": "role relay",
"cleaner": "role cleaner",
"migrate": "role migrate (schema owner)",
"bootstrap": "superuser (postgres-bootstrap)",
"orchestrator": "superuser via the container socket"
},
"valkey": {
"api": "acl user api",
"orchestrator": "acl user operator",
"default": "off"
},
"login_before": "postgres: role api; valkey: no username (default is off)"
},
"secrets": {
"store": "per-run openbao (raft, mtls1.3, per-run CA)",
"login": "cert auth by the process certificate, a policy per process",
"token": "600 s, max 3600 s",
"login_before": "environment of the replicas (the code before openbao)",
"operator": "the run itself (scripts/lab7.py bao-ready, init on every fresh stand); materials in the per-run temporary directory 0700, removed at the end",
"image": "openbao/openbao:2.7.3@sha256:ba4b133eb9586630024e71a617e66f37f29cc3534cdd46a6233e098ceded8dc9"
},
"limits": {
"api": {
"nano_cpus": 1000000000,
"memory": 536870912,
"memory_swap": 536870912,
"published_ports": {}
},
"postgres": {
"nano_cpus": 2000000000,
"memory": 1073741824,
"memory_swap": 1073741824,
"published_ports": {}
},
"valkey": {
"nano_cpus": 500000000,
"memory": 134217728,
"memory_swap": 134217728,
"published_ports": {}
},
"haproxy": {
"nano_cpus": 500000000,
"memory": 268435456,
"memory_swap": 268435456,
"published_ports": {}
},
"openbao": {
"nano_cpus": 250000000,
"memory": 268435456,
"memory_swap": 268435456,
"published_ports": {
"8200/tcp": [
{
"HostIp": "127.0.0.1",
"HostPort": "58488"
}
]
}
}
},
"api_replicas": 2,
"app_env": {
"APP_HOST": "0.0.0.0",
"APP_PORT": "8080",
"BAO_ADDR": "https://openbao:8200",
"BAO_CERT_FILE": "/run/secrets/api-client.crt",
"BAO_CRL_FILE": "/run/secrets/crl.pem",
"BAO_KEY_FILE": "/run/secrets/api-client.key",
"CACHE_HOST": "valkey",
"CACHE_PORT": "6379",
"CACHE_USER": "api",
"CLIENT_TLS_CA_FILE": "/run/secrets/ca.crt",
"DB_HOST": "postgres",
"DB_NAME": "bench",
"DB_PORT": "5432",
"DB_USER": "api",
"IDEMPOTENCY_TTL_SECONDS": "86400",
"LOG_LEVEL": "INFO",
"MALLOC_MMAP_THRESHOLD_": "131072",
"S3_BUCKET": "bench",
"S3_ENDPOINT": "https://s3:8333",
"SESSION_TTL_SECONDS": "21600",
"SHUTDOWN_TIMEOUT": "5",
"TLS_ALLOWED_CLIENTS": "haproxy",
"TLS_CA_FILE": "/run/secrets/ca.crt",
"TLS_CERT_FILE": "/run/secrets/api.crt",
"TLS_CLIENT_AUTH": "true",
"TLS_CRL_FILE": "/run/secrets/crl.pem",
"TLS_KEY_FILE": "/run/secrets/api.key",
"UPLOAD_MAX_UNFINISHED": "0"
},
"api_tcp_rmem": "4096 131072 524288"
},
"finished": "2026-12-04T13:37:07Z",
"host_state_end": {
"slept_seconds": 0.0,
"swapouts_start": 5906325,
"swapouts_end": 5936405,
"power_end": "AC Power",
"swapouts_delta": 30080
}
}