{ "schema_version": 1, "environment": { "utc_started_at": "2026-10-23T15:23:12.734339+00:00", "git_commit": "5300a1a1e0e5497f2d30097bb1542b2743a8aad5", "working_tree_dirty": true, "logical_cpu_count": 8, "host_memory_mib": 3813.6, "kernel": "6.18.33.2-microsoft-standard-WSL2", "python": "3.14.4", "docker_engine": "29.7.2", "docker_compose": "5.5.0", "images": [ "mtusi2026lab3-api", "mtusi2026lab3-load-balancer", "mtusi2026lab3-web", "postgres:16.15-alpine3.24@sha256:721873c34ceb9f8d8fc265984940dc982404c105f19ad51be9fdc5970a6080ea", "redis:8.10.2-alpine3.23@sha256:3811787313eba226a2ef38658c6ccb91cd5e110edc89c37767de373120a0e5a0", "migrate/migrate:v4.20.1@sha256:76cc2074cb6642631f34a898ced71e6aeaa6b1a4d78c4daa743275a22e0c5be7" ] }, "hypothesis": "API replicas stop improving throughput when shared PostgreSQL CPU saturates; adding PostgreSQL CPU should improve the unchanged four-replica profile.", "methodology": { "workload": "closed-loop POST messages through the public HAProxy gateway; unique idempotency keys; no client retries", "duration_seconds_per_phase": 10, "warmup_seconds_per_profile": 2, "comparison_concurrency": 32, "saturation_concurrency": [ 1, 2, 4, 8, 16, 32 ], "fixed_total_budget": "1.00 API CPU, 512 MiB API RAM, 16 total DB pool connections", "growth_budget": "0.50 API CPU, 256 MiB RAM and 8 DB pool connections per replica", "improvement": "only PostgreSQL CPU changes from 1.00 to 2.00", "saturation_rule": "RPS gain below 10% and p95 growth at least 1.5x versus the previous step", "cpu_bottleneck_rule": "average at least 70% and peak at least 95% of PostgreSQL CPU limit; service-specific threshold for the 0.25 CPU load balancer" }, "profiles": { "fixed-r1": { "postgres_cpu": 1.0, "postgres_memory": "512M", "name": "fixed-r1", "replicas": 1, "api_cpu": 1.0, "api_memory": "512M", "db_max_conns": 16, "db_min_conns": 2 }, "fixed-r2": { "postgres_cpu": 1.0, "postgres_memory": "512M", "name": "fixed-r2", "replicas": 2, "api_cpu": 0.5, "api_memory": "256M", "db_max_conns": 8, "db_min_conns": 1 }, "fixed-r4": { "postgres_cpu": 1.0, "postgres_memory": "512M", "name": "fixed-r4", "replicas": 4, "api_cpu": 0.25, "api_memory": "128M", "db_max_conns": 4, "db_min_conns": 1 }, "growth-r1": { "postgres_cpu": 1.0, "postgres_memory": "512M", "name": "growth-r1", "replicas": 1, "api_cpu": 0.5, "api_memory": "256M", "db_max_conns": 8, "db_min_conns": 1 }, "growth-r2": { "postgres_cpu": 1.0, "postgres_memory": "512M", "name": "growth-r2", "replicas": 2, "api_cpu": 0.5, "api_memory": "256M", "db_max_conns": 8, "db_min_conns": 1 }, "growth-r4": { "postgres_cpu": 1.0, "postgres_memory": "512M", "name": "growth-r4", "replicas": 4, "api_cpu": 0.5, "api_memory": "256M", "db_max_conns": 8, "db_min_conns": 1 }, "improved-db-cpu-r4": { "postgres_cpu": 2.0, "postgres_memory": "512M", "name": "improved-db-cpu-r4", "replicas": 4, "api_cpu": 0.5, "api_memory": "256M", "db_max_conns": 8, "db_min_conns": 1 } }, "applied_limits": { "growth-r2": { "api": [ { "instance": "3849349fa312", "cpu_limit": 0.5, "memory_limit_mib": 256.0, "db_max_conns": 8 }, { "instance": "bbcb5c0a1b19", "cpu_limit": 0.5, "memory_limit_mib": 256.0, "db_max_conns": 8 } ], "postgres_cpu_limit": 1.0, "postgres_memory_limit_mib": 512.0 }, "fixed-r1": { "api": [ { "instance": "f5b4c0a90be9", "cpu_limit": 1.0, "memory_limit_mib": 512.0, "db_max_conns": 16 } ], "postgres_cpu_limit": 1.0, "postgres_memory_limit_mib": 512.0 }, "fixed-r2": { "api": [ { "instance": "71e7fe08b5fe", "cpu_limit": 0.5, "memory_limit_mib": 256.0, "db_max_conns": 8 }, { "instance": "b072d13bfd31", "cpu_limit": 0.5, "memory_limit_mib": 256.0, "db_max_conns": 8 } ], "postgres_cpu_limit": 1.0, "postgres_memory_limit_mib": 512.0 }, "fixed-r4": { "api": [ { "instance": "0cc2174bf528", "cpu_limit": 0.25, "memory_limit_mib": 128.0, "db_max_conns": 4 }, { "instance": "295ab9e0814c", "cpu_limit": 0.25, "memory_limit_mib": 128.0, "db_max_conns": 4 }, { "instance": "76432e4c3707", "cpu_limit": 0.25, "memory_limit_mib": 128.0, "db_max_conns": 4 }, { "instance": "e24ef15f043e", "cpu_limit": 0.25, "memory_limit_mib": 128.0, "db_max_conns": 4 } ], "postgres_cpu_limit": 1.0, "postgres_memory_limit_mib": 512.0 }, "growth-r1": { "api": [ { "instance": "15f62705e72d", "cpu_limit": 0.5, "memory_limit_mib": 256.0, "db_max_conns": 8 } ], "postgres_cpu_limit": 1.0, "postgres_memory_limit_mib": 512.0 }, "growth-r4": { "api": [ { "instance": "4cdd1d3ba154", "cpu_limit": 0.5, "memory_limit_mib": 256.0, "db_max_conns": 8 }, { "instance": "5e6a432825a9", "cpu_limit": 0.5, "memory_limit_mib": 256.0, "db_max_conns": 8 }, { "instance": "98727dbbd98f", "cpu_limit": 0.5, "memory_limit_mib": 256.0, "db_max_conns": 8 }, { "instance": "9a0b50ef6c5a", "cpu_limit": 0.5, "memory_limit_mib": 256.0, "db_max_conns": 8 } ], "postgres_cpu_limit": 1.0, "postgres_memory_limit_mib": 512.0 }, "improved-db-cpu-r4": { "api": [ { "instance": "3078d9394686", "cpu_limit": 0.5, "memory_limit_mib": 256.0, "db_max_conns": 8 }, { "instance": "950a06115bc5", "cpu_limit": 0.5, "memory_limit_mib": 256.0, "db_max_conns": 8 }, { "instance": "b04f6abe9ea1", "cpu_limit": 0.5, "memory_limit_mib": 256.0, "db_max_conns": 8 }, { "instance": "b4c3bdf282a0", "cpu_limit": 0.5, "memory_limit_mib": 256.0, "db_max_conns": 8 } ], "postgres_cpu_limit": 2.0, "postgres_memory_limit_mib": 512.0 } }, "phases": [ { "name": "saturation-c1", "kind": "saturation", "profile": "growth-r2", "replicas": 2, "concurrency": 1, "elapsed_seconds": 10.731, "successful_requests": 2472, "failed_requests": 0, "error_ratio": 0.0, "errors": {}, "successful_rps": 230.369, "successful_latency_ms": { "p50": 3.839, "p95": 5.065, "p99": 6.282 }, "instances": [ "442f0f041187", "c0e4b7903cdc" ], "per_second": { "0": { "successful": 252, "failed": 0 }, "1": { "successful": 266, "failed": 0 }, "2": { "successful": 257, "failed": 0 }, "3": { "successful": 262, "failed": 0 }, "4": { "successful": 253, "failed": 0 }, "5": { "successful": 249, "failed": 0 }, "6": { "successful": 228, "failed": 0 }, "7": { "successful": 240, "failed": 0 }, "8": { "successful": 219, "failed": 0 }, "9": { "successful": 244, "failed": 0 }, "10": { "successful": 2, "failed": 0 } }, "resource_samples": [ { "t": 0.0, "services": { "api": { "cpu_percent": 26.09, "memory_mib": 17.976, "containers": 2 }, "frontend": { "cpu_percent": 1.61, "memory_mib": 7.578, "containers": 1 }, "load-balancer": { "cpu_percent": 13.0, "memory_mib": 17.18, "containers": 1 }, "postgres": { "cpu_percent": 28.57, "memory_mib": 169.0, "containers": 1 }, "redis": { "cpu_percent": 0.15, "memory_mib": 15.28, "containers": 1 } } }, { "t": 2.356, "services": { "api": { "cpu_percent": 32.65, "memory_mib": 16.886, "containers": 2 }, "frontend": { "cpu_percent": 0.02, "memory_mib": 7.617, "containers": 1 }, "load-balancer": { "cpu_percent": 13.32, "memory_mib": 17.23, "containers": 1 }, "postgres": { "cpu_percent": 28.96, "memory_mib": 169.5, "containers": 1 }, "redis": { "cpu_percent": 2.75, "memory_mib": 15.4, "containers": 1 } } }, { "t": 5.485, "services": { "api": { "cpu_percent": 27.72, "memory_mib": 17.586, "containers": 2 }, "frontend": { "cpu_percent": 0.0, "memory_mib": 7.383, "containers": 1 }, "load-balancer": { "cpu_percent": 13.69, "memory_mib": 17.41, "containers": 1 }, "postgres": { "cpu_percent": 29.41, "memory_mib": 170.1, "containers": 1 }, "redis": { "cpu_percent": 0.15, "memory_mib": 15.28, "containers": 1 } } }, { "t": 8.605, "services": { "api": { "cpu_percent": 20.94, "memory_mib": 17.41, "containers": 2 }, "frontend": { "cpu_percent": 1.12, "memory_mib": 12.06, "containers": 1 }, "load-balancer": { "cpu_percent": 6.64, "memory_mib": 17.24, "containers": 1 }, "postgres": { "cpu_percent": 8.66, "memory_mib": 170.5, "containers": 1 }, "redis": { "cpu_percent": 0.15, "memory_mib": 15.53, "containers": 1 } } } ], "resources": { "api": { "cpu_percent_avg": 26.85, "cpu_percent_max": 32.65, "memory_mib_avg": 17.465, "memory_mib_max": 17.976, "containers": 2 }, "frontend": { "cpu_percent_avg": 0.688, "cpu_percent_max": 1.61, "memory_mib_avg": 8.659, "memory_mib_max": 12.06, "containers": 1 }, "load-balancer": { "cpu_percent_avg": 11.662, "cpu_percent_max": 13.69, "memory_mib_avg": 17.265, "memory_mib_max": 17.41, "containers": 1 }, "postgres": { "cpu_percent_avg": 23.9, "cpu_percent_max": 29.41, "memory_mib_avg": 169.775, "memory_mib_max": 170.5, "containers": 1 }, "redis": { "cpu_percent_avg": 0.8, "cpu_percent_max": 2.75, "memory_mib_avg": 15.372, "memory_mib_max": 15.53, "containers": 1 } } }, { "name": "saturation-c2", "kind": "saturation", "profile": "growth-r2", "replicas": 2, "concurrency": 2, "elapsed_seconds": 10.915, "successful_requests": 3495, "failed_requests": 0, "error_ratio": 0.0, "errors": {}, "successful_rps": 320.19, "successful_latency_ms": { "p50": 5.192, "p95": 7.196, "p99": 15.11 }, "instances": [ "442f0f041187", "c0e4b7903cdc" ], "per_second": { "0": { "successful": 444, "failed": 0 }, "1": { "successful": 377, "failed": 0 }, "2": { "successful": 352, "failed": 0 }, "3": { "successful": 297, "failed": 0 }, "4": { "successful": 383, "failed": 0 }, "5": { "successful": 324, "failed": 0 }, "6": { "successful": 275, "failed": 0 }, "7": { "successful": 323, "failed": 0 }, "8": { "successful": 333, "failed": 0 }, "9": { "successful": 381, "failed": 0 }, "10": { "successful": 6, "failed": 0 } }, "resource_samples": [ { "t": 0.001, "services": { "api": { "cpu_percent": 51.0, "memory_mib": 17.761, "containers": 2 }, "frontend": { "cpu_percent": 0.03, "memory_mib": 7.617, "containers": 1 }, "load-balancer": { "cpu_percent": 24.78, "memory_mib": 17.71, "containers": 1 }, "postgres": { "cpu_percent": 57.44, "memory_mib": 171.2, "containers": 1 }, "redis": { "cpu_percent": 0.17, "memory_mib": 16.03, "containers": 1 } } }, { "t": 2.361, "services": { "api": { "cpu_percent": 45.61, "memory_mib": 17.516, "containers": 2 }, "frontend": { "cpu_percent": 0.03, "memory_mib": 7.367, "containers": 1 }, "load-balancer": { "cpu_percent": 24.6, "memory_mib": 17.41, "containers": 1 }, "postgres": { "cpu_percent": 49.85, "memory_mib": 172.6, "containers": 1 }, "redis": { "cpu_percent": 0.18, "memory_mib": 15.28, "containers": 1 } } }, { "t": 5.543, "services": { "api": { "cpu_percent": 51.19, "memory_mib": 16.258, "containers": 2 }, "frontend": { "cpu_percent": 0.02, "memory_mib": 7.367, "containers": 1 }, "load-balancer": { "cpu_percent": 24.27, "memory_mib": 17.91, "containers": 1 }, "postgres": { "cpu_percent": 62.6, "memory_mib": 173.0, "containers": 1 }, "redis": { "cpu_percent": 0.21, "memory_mib": 15.28, "containers": 1 } } }, { "t": 8.736, "services": { "api": { "cpu_percent": 45.4, "memory_mib": 17.082, "containers": 2 }, "frontend": { "cpu_percent": 1.22, "memory_mib": 8.121, "containers": 1 }, "load-balancer": { "cpu_percent": 2.87, "memory_mib": 17.2, "containers": 1 }, "postgres": { "cpu_percent": 50.06, "memory_mib": 173.8, "containers": 1 }, "redis": { "cpu_percent": 0.21, "memory_mib": 15.78, "containers": 1 } } } ], "resources": { "api": { "cpu_percent_avg": 48.3, "cpu_percent_max": 51.19, "memory_mib_avg": 17.154, "memory_mib_max": 17.761, "containers": 2 }, "frontend": { "cpu_percent_avg": 0.325, "cpu_percent_max": 1.22, "memory_mib_avg": 7.618, "memory_mib_max": 8.121, "containers": 1 }, "load-balancer": { "cpu_percent_avg": 19.13, "cpu_percent_max": 24.78, "memory_mib_avg": 17.558, "memory_mib_max": 17.91, "containers": 1 }, "postgres": { "cpu_percent_avg": 54.987, "cpu_percent_max": 62.6, "memory_mib_avg": 172.65, "memory_mib_max": 173.8, "containers": 1 }, "redis": { "cpu_percent_avg": 0.193, "cpu_percent_max": 0.21, "memory_mib_avg": 15.592, "memory_mib_max": 16.03, "containers": 1 } } }, { "name": "saturation-c4", "kind": "saturation", "profile": "growth-r2", "replicas": 2, "concurrency": 4, "elapsed_seconds": 10.832, "successful_requests": 4721, "failed_requests": 0, "error_ratio": 0.0, "errors": {}, "successful_rps": 435.822, "successful_latency_ms": { "p50": 6.171, "p95": 29.304, "p99": 47.665 }, "instances": [ "442f0f041187", "c0e4b7903cdc" ], "per_second": { "0": { "successful": 526, "failed": 0 }, "1": { "successful": 453, "failed": 0 }, "2": { "successful": 425, "failed": 0 }, "3": { "successful": 478, "failed": 0 }, "4": { "successful": 510, "failed": 0 }, "5": { "successful": 468, "failed": 0 }, "6": { "successful": 458, "failed": 0 }, "7": { "successful": 428, "failed": 0 }, "8": { "successful": 490, "failed": 0 }, "9": { "successful": 474, "failed": 0 }, "10": { "successful": 11, "failed": 0 } }, "resource_samples": [ { "t": 0.001, "services": { "api": { "cpu_percent": 65.41, "memory_mib": 17.297, "containers": 2 }, "frontend": { "cpu_percent": 0.03, "memory_mib": 7.367, "containers": 1 }, "load-balancer": { "cpu_percent": 25.95, "memory_mib": 17.71, "containers": 1 }, "postgres": { "cpu_percent": 81.8, "memory_mib": 174.4, "containers": 1 }, "redis": { "cpu_percent": 0.19, "memory_mib": 15.28, "containers": 1 } } }, { "t": 2.372, "services": { "api": { "cpu_percent": 60.01, "memory_mib": 18.188, "containers": 2 }, "frontend": { "cpu_percent": 3.75, "memory_mib": 7.965, "containers": 1 }, "load-balancer": { "cpu_percent": 26.04, "memory_mib": 17.46, "containers": 1 }, "postgres": { "cpu_percent": 79.42, "memory_mib": 175.4, "containers": 1 }, "redis": { "cpu_percent": 0.16, "memory_mib": 15.53, "containers": 1 } } }, { "t": 5.501, "services": { "api": { "cpu_percent": 56.53, "memory_mib": 17.433, "containers": 2 }, "frontend": { "cpu_percent": 0.02, "memory_mib": 7.367, "containers": 1 }, "load-balancer": { "cpu_percent": 25.9, "memory_mib": 21.22, "containers": 1 }, "postgres": { "cpu_percent": 73.71, "memory_mib": 175.7, "containers": 1 }, "redis": { "cpu_percent": 0.18, "memory_mib": 15.28, "containers": 1 } } }, { "t": 8.662, "services": { "api": { "cpu_percent": 35.86, "memory_mib": 16.699, "containers": 2 }, "frontend": { "cpu_percent": 0.0, "memory_mib": 7.367, "containers": 1 }, "load-balancer": { "cpu_percent": 5.48, "memory_mib": 17.53, "containers": 1 }, "postgres": { "cpu_percent": 17.44, "memory_mib": 177.2, "containers": 1 }, "redis": { "cpu_percent": 2.71, "memory_mib": 16.1, "containers": 1 } } } ], "resources": { "api": { "cpu_percent_avg": 54.453, "cpu_percent_max": 65.41, "memory_mib_avg": 17.404, "memory_mib_max": 18.188, "containers": 2 }, "frontend": { "cpu_percent_avg": 0.95, "cpu_percent_max": 3.75, "memory_mib_avg": 7.516, "memory_mib_max": 7.965, "containers": 1 }, "load-balancer": { "cpu_percent_avg": 20.843, "cpu_percent_max": 26.04, "memory_mib_avg": 18.48, "memory_mib_max": 21.22, "containers": 1 }, "postgres": { "cpu_percent_avg": 63.093, "cpu_percent_max": 81.8, "memory_mib_avg": 175.675, "memory_mib_max": 177.2, "containers": 1 }, "redis": { "cpu_percent_avg": 0.81, "cpu_percent_max": 2.71, "memory_mib_avg": 15.547, "memory_mib_max": 16.1, "containers": 1 } } }, { "name": "saturation-c8", "kind": "saturation", "profile": "growth-r2", "replicas": 2, "concurrency": 8, "elapsed_seconds": 10.821, "successful_requests": 5095, "failed_requests": 0, "error_ratio": 0.0, "errors": {}, "successful_rps": 470.828, "successful_latency_ms": { "p50": 9.159, "p95": 56.23, "p99": 70.71 }, "instances": [ "442f0f041187", "c0e4b7903cdc" ], "per_second": { "0": { "successful": 532, "failed": 0 }, "1": { "successful": 476, "failed": 0 }, "2": { "successful": 530, "failed": 0 }, "3": { "successful": 529, "failed": 0 }, "4": { "successful": 490, "failed": 0 }, "5": { "successful": 527, "failed": 0 }, "6": { "successful": 445, "failed": 0 }, "7": { "successful": 524, "failed": 0 }, "8": { "successful": 507, "failed": 0 }, "9": { "successful": 519, "failed": 0 }, "10": { "successful": 16, "failed": 0 } }, "resource_samples": [ { "t": 0.006, "services": { "api": { "cpu_percent": 48.34, "memory_mib": 17.403, "containers": 2 }, "frontend": { "cpu_percent": 0.0, "memory_mib": 7.367, "containers": 1 }, "load-balancer": { "cpu_percent": 25.42, "memory_mib": 20.12, "containers": 1 }, "postgres": { "cpu_percent": 77.51, "memory_mib": 185.1, "containers": 1 }, "redis": { "cpu_percent": 0.18, "memory_mib": 15.28, "containers": 1 } } }, { "t": 2.372, "services": { "api": { "cpu_percent": 57.14, "memory_mib": 18.602, "containers": 2 }, "frontend": { "cpu_percent": 3.44, "memory_mib": 7.734, "containers": 1 }, "load-balancer": { "cpu_percent": 26.83, "memory_mib": 17.14, "containers": 1 }, "postgres": { "cpu_percent": 92.98, "memory_mib": 188.5, "containers": 1 }, "redis": { "cpu_percent": 3.34, "memory_mib": 15.28, "containers": 1 } } }, { "t": 5.527, "services": { "api": { "cpu_percent": 48.26, "memory_mib": 18.192, "containers": 2 }, "frontend": { "cpu_percent": 0.0, "memory_mib": 7.363, "containers": 1 }, "load-balancer": { "cpu_percent": 25.47, "memory_mib": 17.28, "containers": 1 }, "postgres": { "cpu_percent": 76.05, "memory_mib": 189.4, "containers": 1 }, "redis": { "cpu_percent": 0.15, "memory_mib": 15.28, "containers": 1 } } }, { "t": 8.685, "services": { "api": { "cpu_percent": 40.28, "memory_mib": 21.813, "containers": 2 }, "frontend": { "cpu_percent": 0.0, "memory_mib": 7.363, "containers": 1 }, "load-balancer": { "cpu_percent": 5.75, "memory_mib": 17.64, "containers": 1 }, "postgres": { "cpu_percent": 17.24, "memory_mib": 190.4, "containers": 1 }, "redis": { "cpu_percent": 0.14, "memory_mib": 15.28, "containers": 1 } } } ], "resources": { "api": { "cpu_percent_avg": 48.505, "cpu_percent_max": 57.14, "memory_mib_avg": 19.002, "memory_mib_max": 21.813, "containers": 2 }, "frontend": { "cpu_percent_avg": 0.86, "cpu_percent_max": 3.44, "memory_mib_avg": 7.457, "memory_mib_max": 7.734, "containers": 1 }, "load-balancer": { "cpu_percent_avg": 20.867, "cpu_percent_max": 26.83, "memory_mib_avg": 18.045, "memory_mib_max": 20.12, "containers": 1 }, "postgres": { "cpu_percent_avg": 65.945, "cpu_percent_max": 92.98, "memory_mib_avg": 188.35, "memory_mib_max": 190.4, "containers": 1 }, "redis": { "cpu_percent_avg": 0.953, "cpu_percent_max": 3.34, "memory_mib_avg": 15.28, "memory_mib_max": 15.28, "containers": 1 } } }, { "name": "saturation-c16", "kind": "saturation", "profile": "growth-r2", "replicas": 2, "concurrency": 16, "elapsed_seconds": 10.876, "successful_requests": 5143, "failed_requests": 0, "error_ratio": 0.0, "errors": {}, "successful_rps": 472.892, "successful_latency_ms": { "p50": 19.862, "p95": 73.628, "p99": 98.773 }, "instances": [ "442f0f041187", "c0e4b7903cdc" ], "per_second": { "0": { "successful": 349, "failed": 0 }, "1": { "successful": 592, "failed": 0 }, "2": { "successful": 541, "failed": 0 }, "3": { "successful": 491, "failed": 0 }, "4": { "successful": 545, "failed": 0 }, "5": { "successful": 420, "failed": 0 }, "6": { "successful": 499, "failed": 0 }, "7": { "successful": 529, "failed": 0 }, "8": { "successful": 548, "failed": 0 }, "9": { "successful": 601, "failed": 0 }, "10": { "successful": 28, "failed": 0 } }, "resource_samples": [ { "t": 0.015, "services": { "api": { "cpu_percent": 44.39, "memory_mib": 18.796, "containers": 2 }, "frontend": { "cpu_percent": 0.0, "memory_mib": 7.363, "containers": 1 }, "load-balancer": { "cpu_percent": 26.92, "memory_mib": 17.44, "containers": 1 }, "postgres": { "cpu_percent": 82.81, "memory_mib": 205.9, "containers": 1 }, "redis": { "cpu_percent": 0.17, "memory_mib": 15.28, "containers": 1 } } }, { "t": 2.354, "services": { "api": { "cpu_percent": 56.54, "memory_mib": 17.856, "containers": 2 }, "frontend": { "cpu_percent": 0.03, "memory_mib": 7.375, "containers": 1 }, "load-balancer": { "cpu_percent": 26.66, "memory_mib": 17.69, "containers": 1 }, "postgres": { "cpu_percent": 88.93, "memory_mib": 207.7, "containers": 1 }, "redis": { "cpu_percent": 0.19, "memory_mib": 15.75, "containers": 1 } } }, { "t": 5.525, "services": { "api": { "cpu_percent": 41.39, "memory_mib": 17.73, "containers": 2 }, "frontend": { "cpu_percent": 4.4, "memory_mib": 7.379, "containers": 1 }, "load-balancer": { "cpu_percent": 25.76, "memory_mib": 17.7, "containers": 1 }, "postgres": { "cpu_percent": 72.49, "memory_mib": 208.6, "containers": 1 }, "redis": { "cpu_percent": 0.18, "memory_mib": 15.25, "containers": 1 } } }, { "t": 8.731, "services": { "api": { "cpu_percent": 9.79, "memory_mib": 18.257, "containers": 2 }, "frontend": { "cpu_percent": 0.02, "memory_mib": 7.375, "containers": 1 }, "load-balancer": { "cpu_percent": 4.58, "memory_mib": 17.55, "containers": 1 }, "postgres": { "cpu_percent": 16.09, "memory_mib": 209.7, "containers": 1 }, "redis": { "cpu_percent": 0.15, "memory_mib": 15.33, "containers": 1 } } } ], "resources": { "api": { "cpu_percent_avg": 38.028, "cpu_percent_max": 56.54, "memory_mib_avg": 18.16, "memory_mib_max": 18.796, "containers": 2 }, "frontend": { "cpu_percent_avg": 1.113, "cpu_percent_max": 4.4, "memory_mib_avg": 7.373, "memory_mib_max": 7.379, "containers": 1 }, "load-balancer": { "cpu_percent_avg": 20.98, "cpu_percent_max": 26.92, "memory_mib_avg": 17.595, "memory_mib_max": 17.7, "containers": 1 }, "postgres": { "cpu_percent_avg": 65.08, "cpu_percent_max": 88.93, "memory_mib_avg": 207.975, "memory_mib_max": 209.7, "containers": 1 }, "redis": { "cpu_percent_avg": 0.172, "cpu_percent_max": 0.19, "memory_mib_avg": 15.402, "memory_mib_max": 15.75, "containers": 1 } } }, { "name": "saturation-c32", "kind": "saturation", "profile": "growth-r2", "replicas": 2, "concurrency": 32, "elapsed_seconds": 10.808, "successful_requests": 6096, "failed_requests": 0, "error_ratio": 0.0, "errors": {}, "successful_rps": 564.012, "successful_latency_ms": { "p50": 51.089, "p95": 94.785, "p99": 109.138 }, "instances": [ "442f0f041187", "c0e4b7903cdc" ], "per_second": { "0": { "successful": 661, "failed": 0 }, "1": { "successful": 604, "failed": 0 }, "2": { "successful": 610, "failed": 0 }, "3": { "successful": 589, "failed": 0 }, "4": { "successful": 571, "failed": 0 }, "5": { "successful": 627, "failed": 0 }, "6": { "successful": 587, "failed": 0 }, "7": { "successful": 619, "failed": 0 }, "8": { "successful": 629, "failed": 0 }, "9": { "successful": 548, "failed": 0 }, "10": { "successful": 51, "failed": 0 } }, "resource_samples": [ { "t": 0.039, "services": { "api": { "cpu_percent": 55.84, "memory_mib": 18.75, "containers": 2 }, "frontend": { "cpu_percent": 6.63, "memory_mib": 8.125, "containers": 1 }, "load-balancer": { "cpu_percent": 25.97, "memory_mib": 18.0, "containers": 1 }, "postgres": { "cpu_percent": 104.2, "memory_mib": 210.6, "containers": 1 }, "redis": { "cpu_percent": 5.85, "memory_mib": 15.05, "containers": 1 } } }, { "t": 2.29, "services": { "api": { "cpu_percent": 56.87, "memory_mib": 18.933, "containers": 2 }, "frontend": { "cpu_percent": 0.0, "memory_mib": 7.625, "containers": 1 }, "load-balancer": { "cpu_percent": 27.03, "memory_mib": 19.23, "containers": 1 }, "postgres": { "cpu_percent": 105.41, "memory_mib": 212.1, "containers": 1 }, "redis": { "cpu_percent": 0.19, "memory_mib": 15.55, "containers": 1 } } }, { "t": 5.446, "services": { "api": { "cpu_percent": 64.13, "memory_mib": 19.003, "containers": 2 }, "frontend": { "cpu_percent": 0.7, "memory_mib": 7.375, "containers": 1 }, "load-balancer": { "cpu_percent": 26.33, "memory_mib": 18.27, "containers": 1 }, "postgres": { "cpu_percent": 107.62, "memory_mib": 213.1, "containers": 1 }, "redis": { "cpu_percent": 3.7, "memory_mib": 15.27, "containers": 1 } } }, { "t": 8.653, "services": { "api": { "cpu_percent": 31.02, "memory_mib": 19.379, "containers": 2 }, "frontend": { "cpu_percent": 0.02, "memory_mib": 7.625, "containers": 1 }, "load-balancer": { "cpu_percent": 5.32, "memory_mib": 18.36, "containers": 1 }, "postgres": { "cpu_percent": 18.07, "memory_mib": 213.5, "containers": 1 }, "redis": { "cpu_percent": 0.16, "memory_mib": 15.26, "containers": 1 } } } ], "resources": { "api": { "cpu_percent_avg": 51.965, "cpu_percent_max": 64.13, "memory_mib_avg": 19.016, "memory_mib_max": 19.379, "containers": 2 }, "frontend": { "cpu_percent_avg": 1.837, "cpu_percent_max": 6.63, "memory_mib_avg": 7.688, "memory_mib_max": 8.125, "containers": 1 }, "load-balancer": { "cpu_percent_avg": 21.163, "cpu_percent_max": 27.03, "memory_mib_avg": 18.465, "memory_mib_max": 19.23, "containers": 1 }, "postgres": { "cpu_percent_avg": 83.825, "cpu_percent_max": 107.62, "memory_mib_avg": 212.325, "memory_mib_max": 213.5, "containers": 1 }, "redis": { "cpu_percent_avg": 2.475, "cpu_percent_max": 5.85, "memory_mib_avg": 15.283, "memory_mib_max": 15.55, "containers": 1 } } }, { "name": "fixed-r1", "kind": "fixed", "profile": "fixed-r1", "replicas": 1, "concurrency": 32, "elapsed_seconds": 10.88, "successful_requests": 6291, "failed_requests": 0, "error_ratio": 0.0, "errors": {}, "successful_rps": 578.242, "successful_latency_ms": { "p50": 48.579, "p95": 95.757, "p99": 115.549 }, "instances": [ "f5b4c0a90be9" ], "per_second": { "0": { "successful": 511, "failed": 0 }, "1": { "successful": 580, "failed": 0 }, "2": { "successful": 659, "failed": 0 }, "3": { "successful": 687, "failed": 0 }, "4": { "successful": 588, "failed": 0 }, "5": { "successful": 675, "failed": 0 }, "6": { "successful": 647, "failed": 0 }, "7": { "successful": 701, "failed": 0 }, "8": { "successful": 690, "failed": 0 }, "9": { "successful": 521, "failed": 0 }, "10": { "successful": 32, "failed": 0 } }, "resource_samples": [ { "t": 0.034, "services": { "api": { "cpu_percent": 45.68, "memory_mib": 10.61, "containers": 1 }, "frontend": { "cpu_percent": 0.02, "memory_mib": 7.359, "containers": 1 }, "load-balancer": { "cpu_percent": 25.97, "memory_mib": 18.08, "containers": 1 }, "postgres": { "cpu_percent": 106.86, "memory_mib": 214.7, "containers": 1 }, "redis": { "cpu_percent": 4.41, "memory_mib": 15.3, "containers": 1 } } }, { "t": 2.424, "services": { "api": { "cpu_percent": 48.23, "memory_mib": 11.36, "containers": 1 }, "frontend": { "cpu_percent": 0.0, "memory_mib": 7.699, "containers": 1 }, "load-balancer": { "cpu_percent": 27.02, "memory_mib": 22.21, "containers": 1 }, "postgres": { "cpu_percent": 96.33, "memory_mib": 215.7, "containers": 1 }, "redis": { "cpu_percent": 0.14, "memory_mib": 15.44, "containers": 1 } } }, { "t": 5.588, "services": { "api": { "cpu_percent": 48.84, "memory_mib": 12.07, "containers": 1 }, "frontend": { "cpu_percent": 0.0, "memory_mib": 7.359, "containers": 1 }, "load-balancer": { "cpu_percent": 26.38, "memory_mib": 18.43, "containers": 1 }, "postgres": { "cpu_percent": 104.71, "memory_mib": 217.4, "containers": 1 }, "redis": { "cpu_percent": 0.19, "memory_mib": 15.92, "containers": 1 } } }, { "t": 8.743, "services": { "api": { "cpu_percent": 3.55, "memory_mib": 11.93, "containers": 1 }, "frontend": { "cpu_percent": 0.0, "memory_mib": 7.508, "containers": 1 }, "load-balancer": { "cpu_percent": 3.56, "memory_mib": 17.96, "containers": 1 }, "postgres": { "cpu_percent": 8.33, "memory_mib": 218.1, "containers": 1 }, "redis": { "cpu_percent": 0.19, "memory_mib": 16.07, "containers": 1 } } } ], "resources": { "api": { "cpu_percent_avg": 36.575, "cpu_percent_max": 48.84, "memory_mib_avg": 11.492, "memory_mib_max": 12.07, "containers": 1 }, "frontend": { "cpu_percent_avg": 0.005, "cpu_percent_max": 0.02, "memory_mib_avg": 7.481, "memory_mib_max": 7.699, "containers": 1 }, "load-balancer": { "cpu_percent_avg": 20.732, "cpu_percent_max": 27.02, "memory_mib_avg": 19.17, "memory_mib_max": 22.21, "containers": 1 }, "postgres": { "cpu_percent_avg": 79.058, "cpu_percent_max": 106.86, "memory_mib_avg": 216.475, "memory_mib_max": 218.1, "containers": 1 }, "redis": { "cpu_percent_avg": 1.232, "cpu_percent_max": 4.41, "memory_mib_avg": 15.683, "memory_mib_max": 16.07, "containers": 1 } } }, { "name": "fixed-r2", "kind": "fixed", "profile": "fixed-r2", "replicas": 2, "concurrency": 32, "elapsed_seconds": 10.905, "successful_requests": 5774, "failed_requests": 0, "error_ratio": 0.0, "errors": {}, "successful_rps": 529.499, "successful_latency_ms": { "p50": 53.316, "p95": 100.145, "p99": 129.953 }, "instances": [ "71e7fe08b5fe", "b072d13bfd31" ], "per_second": { "0": { "successful": 452, "failed": 0 }, "1": { "successful": 545, "failed": 0 }, "2": { "successful": 604, "failed": 0 }, "3": { "successful": 652, "failed": 0 }, "4": { "successful": 521, "failed": 0 }, "5": { "successful": 627, "failed": 0 }, "6": { "successful": 571, "failed": 0 }, "7": { "successful": 611, "failed": 0 }, "8": { "successful": 573, "failed": 0 }, "9": { "successful": 586, "failed": 0 }, "10": { "successful": 32, "failed": 0 } }, "resource_samples": [ { "t": 0.041, "services": { "api": { "cpu_percent": 52.24, "memory_mib": 18.086, "containers": 2 }, "frontend": { "cpu_percent": 0.0, "memory_mib": 7.359, "containers": 1 }, "load-balancer": { "cpu_percent": 26.74, "memory_mib": 18.2, "containers": 1 }, "postgres": { "cpu_percent": 100.69, "memory_mib": 219.4, "containers": 1 }, "redis": { "cpu_percent": 3.81, "memory_mib": 15.18, "containers": 1 } } }, { "t": 2.379, "services": { "api": { "cpu_percent": 65.39, "memory_mib": 18.801, "containers": 2 }, "frontend": { "cpu_percent": 1.92, "memory_mib": 7.859, "containers": 1 }, "load-balancer": { "cpu_percent": 26.23, "memory_mib": 18.61, "containers": 1 }, "postgres": { "cpu_percent": 106.33, "memory_mib": 221.3, "containers": 1 }, "redis": { "cpu_percent": 0.16, "memory_mib": 15.16, "containers": 1 } } }, { "t": 5.564, "services": { "api": { "cpu_percent": 54.12, "memory_mib": 18.379, "containers": 2 }, "frontend": { "cpu_percent": 1.37, "memory_mib": 10.54, "containers": 1 }, "load-balancer": { "cpu_percent": 25.33, "memory_mib": 18.35, "containers": 1 }, "postgres": { "cpu_percent": 103.06, "memory_mib": 222.7, "containers": 1 }, "redis": { "cpu_percent": 0.2, "memory_mib": 14.93, "containers": 1 } } }, { "t": 8.728, "services": { "api": { "cpu_percent": 7.05, "memory_mib": 18.086, "containers": 2 }, "frontend": { "cpu_percent": 0.0, "memory_mib": 7.363, "containers": 1 }, "load-balancer": { "cpu_percent": 6.3, "memory_mib": 17.82, "containers": 1 }, "postgres": { "cpu_percent": 14.18, "memory_mib": 223.3, "containers": 1 }, "redis": { "cpu_percent": 0.2, "memory_mib": 15.43, "containers": 1 } } } ], "resources": { "api": { "cpu_percent_avg": 44.7, "cpu_percent_max": 65.39, "memory_mib_avg": 18.338, "memory_mib_max": 18.801, "containers": 2 }, "frontend": { "cpu_percent_avg": 0.823, "cpu_percent_max": 1.92, "memory_mib_avg": 8.28, "memory_mib_max": 10.54, "containers": 1 }, "load-balancer": { "cpu_percent_avg": 21.15, "cpu_percent_max": 26.74, "memory_mib_avg": 18.245, "memory_mib_max": 18.61, "containers": 1 }, "postgres": { "cpu_percent_avg": 81.065, "cpu_percent_max": 106.33, "memory_mib_avg": 221.675, "memory_mib_max": 223.3, "containers": 1 }, "redis": { "cpu_percent_avg": 1.093, "cpu_percent_max": 3.81, "memory_mib_avg": 15.175, "memory_mib_max": 15.43, "containers": 1 } } }, { "name": "fixed-r4", "kind": "fixed", "profile": "fixed-r4", "replicas": 4, "concurrency": 32, "elapsed_seconds": 11.917, "successful_requests": 4218, "failed_requests": 0, "error_ratio": 0.0, "errors": {}, "successful_rps": 353.955, "successful_latency_ms": { "p50": 69.354, "p95": 139.408, "p99": 291.312 }, "instances": [ "0cc2174bf528", "295ab9e0814c", "76432e4c3707", "e24ef15f043e" ], "per_second": { "0": { "successful": 133, "failed": 0 }, "1": { "successful": 276, "failed": 0 }, "2": { "successful": 461, "failed": 0 }, "3": { "successful": 406, "failed": 0 }, "4": { "successful": 503, "failed": 0 }, "5": { "successful": 487, "failed": 0 }, "6": { "successful": 377, "failed": 0 }, "7": { "successful": 427, "failed": 0 }, "8": { "successful": 551, "failed": 0 }, "9": { "successful": 547, "failed": 0 }, "10": { "successful": 50, "failed": 0 } }, "resource_samples": [ { "t": 0.095, "services": { "api": { "cpu_percent": 51.98, "memory_mib": 27.492, "containers": 4 }, "frontend": { "cpu_percent": 0.0, "memory_mib": 7.363, "containers": 1 }, "load-balancer": { "cpu_percent": 27.15, "memory_mib": 19.06, "containers": 1 }, "postgres": { "cpu_percent": 90.1, "memory_mib": 223.1, "containers": 1 }, "redis": { "cpu_percent": 5.94, "memory_mib": 16.87, "containers": 1 } } }, { "t": 3.244, "services": { "api": { "cpu_percent": 64.6, "memory_mib": 33.144, "containers": 4 }, "frontend": { "cpu_percent": 0.02, "memory_mib": 7.359, "containers": 1 }, "load-balancer": { "cpu_percent": 26.34, "memory_mib": 18.58, "containers": 1 }, "postgres": { "cpu_percent": 101.51, "memory_mib": 225.1, "containers": 1 }, "redis": { "cpu_percent": 0.2, "memory_mib": 16.96, "containers": 1 } } }, { "t": 6.45, "services": { "api": { "cpu_percent": 65.35, "memory_mib": 34.281, "containers": 4 }, "frontend": { "cpu_percent": 0.02, "memory_mib": 7.359, "containers": 1 }, "load-balancer": { "cpu_percent": 26.27, "memory_mib": 18.56, "containers": 1 }, "postgres": { "cpu_percent": 106.68, "memory_mib": 225.7, "containers": 1 }, "redis": { "cpu_percent": 4.55, "memory_mib": 16.7, "containers": 1 } } }, { "t": 9.725, "services": { "api": { "cpu_percent": 3.07, "memory_mib": 32.867, "containers": 4 }, "frontend": { "cpu_percent": 2.51, "memory_mib": 7.762, "containers": 1 }, "load-balancer": { "cpu_percent": 4.96, "memory_mib": 17.89, "containers": 1 }, "postgres": { "cpu_percent": 0.42, "memory_mib": 226.7, "containers": 1 }, "redis": { "cpu_percent": 0.17, "memory_mib": 16.95, "containers": 1 } } } ], "resources": { "api": { "cpu_percent_avg": 46.25, "cpu_percent_max": 65.35, "memory_mib_avg": 31.946, "memory_mib_max": 34.281, "containers": 4 }, "frontend": { "cpu_percent_avg": 0.637, "cpu_percent_max": 2.51, "memory_mib_avg": 7.461, "memory_mib_max": 7.762, "containers": 1 }, "load-balancer": { "cpu_percent_avg": 21.18, "cpu_percent_max": 27.15, "memory_mib_avg": 18.523, "memory_mib_max": 19.06, "containers": 1 }, "postgres": { "cpu_percent_avg": 74.677, "cpu_percent_max": 106.68, "memory_mib_avg": 225.15, "memory_mib_max": 226.7, "containers": 1 }, "redis": { "cpu_percent_avg": 2.715, "cpu_percent_max": 5.94, "memory_mib_avg": 16.87, "memory_mib_max": 16.96, "containers": 1 } } }, { "name": "growth-r1", "kind": "growth", "profile": "growth-r1", "replicas": 1, "concurrency": 32, "elapsed_seconds": 10.951, "successful_requests": 5844, "failed_requests": 0, "error_ratio": 0.0, "errors": {}, "successful_rps": 533.656, "successful_latency_ms": { "p50": 53.378, "p95": 93.541, "p99": 115.58 }, "instances": [ "15f62705e72d" ], "per_second": { "0": { "successful": 527, "failed": 0 }, "1": { "successful": 596, "failed": 0 }, "2": { "successful": 604, "failed": 0 }, "3": { "successful": 616, "failed": 0 }, "4": { "successful": 516, "failed": 0 }, "5": { "successful": 508, "failed": 0 }, "6": { "successful": 606, "failed": 0 }, "7": { "successful": 620, "failed": 0 }, "8": { "successful": 628, "failed": 0 }, "9": { "successful": 591, "failed": 0 }, "10": { "successful": 32, "failed": 0 } }, "resource_samples": [ { "t": 0.045, "services": { "api": { "cpu_percent": 44.44, "memory_mib": 9.355, "containers": 1 }, "frontend": { "cpu_percent": 0.0, "memory_mib": 7.359, "containers": 1 }, "load-balancer": { "cpu_percent": 25.9, "memory_mib": 18.3, "containers": 1 }, "postgres": { "cpu_percent": 93.36, "memory_mib": 207.6, "containers": 1 }, "redis": { "cpu_percent": 3.22, "memory_mib": 18.55, "containers": 1 } } }, { "t": 2.404, "services": { "api": { "cpu_percent": 50.32, "memory_mib": 9.379, "containers": 1 }, "frontend": { "cpu_percent": 0.0, "memory_mib": 7.363, "containers": 1 }, "load-balancer": { "cpu_percent": 25.42, "memory_mib": 18.36, "containers": 1 }, "postgres": { "cpu_percent": 96.7, "memory_mib": 209.4, "containers": 1 }, "redis": { "cpu_percent": 0.22, "memory_mib": 18.11, "containers": 1 } } }, { "t": 5.579, "services": { "api": { "cpu_percent": 50.68, "memory_mib": 9.66, "containers": 1 }, "frontend": { "cpu_percent": 0.03, "memory_mib": 7.613, "containers": 1 }, "load-balancer": { "cpu_percent": 25.44, "memory_mib": 18.67, "containers": 1 }, "postgres": { "cpu_percent": 105.06, "memory_mib": 210.9, "containers": 1 }, "redis": { "cpu_percent": 0.22, "memory_mib": 17.84, "containers": 1 } } }, { "t": 8.767, "services": { "api": { "cpu_percent": 7.65, "memory_mib": 9.262, "containers": 1 }, "frontend": { "cpu_percent": 2.74, "memory_mib": 8.02, "containers": 1 }, "load-balancer": { "cpu_percent": 3.49, "memory_mib": 17.86, "containers": 1 }, "postgres": { "cpu_percent": 13.89, "memory_mib": 211.8, "containers": 1 }, "redis": { "cpu_percent": 0.17, "memory_mib": 17.93, "containers": 1 } } } ], "resources": { "api": { "cpu_percent_avg": 38.273, "cpu_percent_max": 50.68, "memory_mib_avg": 9.414, "memory_mib_max": 9.66, "containers": 1 }, "frontend": { "cpu_percent_avg": 0.693, "cpu_percent_max": 2.74, "memory_mib_avg": 7.589, "memory_mib_max": 8.02, "containers": 1 }, "load-balancer": { "cpu_percent_avg": 20.062, "cpu_percent_max": 25.9, "memory_mib_avg": 18.297, "memory_mib_max": 18.67, "containers": 1 }, "postgres": { "cpu_percent_avg": 77.252, "cpu_percent_max": 105.06, "memory_mib_avg": 209.925, "memory_mib_max": 211.8, "containers": 1 }, "redis": { "cpu_percent_avg": 0.958, "cpu_percent_max": 3.22, "memory_mib_avg": 18.108, "memory_mib_max": 18.55, "containers": 1 } } }, { "name": "growth-r2", "kind": "growth", "profile": "growth-r2", "replicas": 2, "concurrency": 32, "elapsed_seconds": 10.796, "successful_requests": 6083, "failed_requests": 0, "error_ratio": 0.0, "errors": {}, "successful_rps": 563.46, "successful_latency_ms": { "p50": 50.516, "p95": 96.428, "p99": 129.46 }, "instances": [ "3849349fa312", "bbcb5c0a1b19" ], "per_second": { "0": { "successful": 461, "failed": 0 }, "1": { "successful": 662, "failed": 0 }, "2": { "successful": 670, "failed": 0 }, "3": { "successful": 655, "failed": 0 }, "4": { "successful": 640, "failed": 0 }, "5": { "successful": 495, "failed": 0 }, "6": { "successful": 635, "failed": 0 }, "7": { "successful": 626, "failed": 0 }, "8": { "successful": 598, "failed": 0 }, "9": { "successful": 609, "failed": 0 }, "10": { "successful": 32, "failed": 0 } }, "resource_samples": [ { "t": 0.047, "services": { "api": { "cpu_percent": 52.25, "memory_mib": 17.629, "containers": 2 }, "frontend": { "cpu_percent": 0.02, "memory_mib": 7.363, "containers": 1 }, "load-balancer": { "cpu_percent": 24.23, "memory_mib": 18.59, "containers": 1 }, "postgres": { "cpu_percent": 100.9, "memory_mib": 233.3, "containers": 1 }, "redis": { "cpu_percent": 0.14, "memory_mib": 17.16, "containers": 1 } } }, { "t": 2.292, "services": { "api": { "cpu_percent": 62.86, "memory_mib": 17.606, "containers": 2 }, "frontend": { "cpu_percent": 0.0, "memory_mib": 7.355, "containers": 1 }, "load-balancer": { "cpu_percent": 25.57, "memory_mib": 18.19, "containers": 1 }, "postgres": { "cpu_percent": 105.07, "memory_mib": 235.3, "containers": 1 }, "redis": { "cpu_percent": 0.16, "memory_mib": 17.16, "containers": 1 } } }, { "t": 5.459, "services": { "api": { "cpu_percent": 57.29, "memory_mib": 18.789, "containers": 2 }, "frontend": { "cpu_percent": 0.04, "memory_mib": 7.363, "containers": 1 }, "load-balancer": { "cpu_percent": 25.89, "memory_mib": 18.43, "containers": 1 }, "postgres": { "cpu_percent": 104.58, "memory_mib": 235.1, "containers": 1 }, "redis": { "cpu_percent": 0.17, "memory_mib": 17.73, "containers": 1 } } }, { "t": 8.628, "services": { "api": { "cpu_percent": 14.21, "memory_mib": 17.832, "containers": 2 }, "frontend": { "cpu_percent": 3.0, "memory_mib": 8.062, "containers": 1 }, "load-balancer": { "cpu_percent": 9.08, "memory_mib": 18.0, "containers": 1 }, "postgres": { "cpu_percent": 31.84, "memory_mib": 234.3, "containers": 1 }, "redis": { "cpu_percent": 2.99, "memory_mib": 22.08, "containers": 1 } } } ], "resources": { "api": { "cpu_percent_avg": 46.653, "cpu_percent_max": 62.86, "memory_mib_avg": 17.964, "memory_mib_max": 18.789, "containers": 2 }, "frontend": { "cpu_percent_avg": 0.765, "cpu_percent_max": 3.0, "memory_mib_avg": 7.536, "memory_mib_max": 8.062, "containers": 1 }, "load-balancer": { "cpu_percent_avg": 21.192, "cpu_percent_max": 25.89, "memory_mib_avg": 18.303, "memory_mib_max": 18.59, "containers": 1 }, "postgres": { "cpu_percent_avg": 85.597, "cpu_percent_max": 105.07, "memory_mib_avg": 234.5, "memory_mib_max": 235.3, "containers": 1 }, "redis": { "cpu_percent_avg": 0.865, "cpu_percent_max": 2.99, "memory_mib_avg": 18.532, "memory_mib_max": 22.08, "containers": 1 } } }, { "name": "growth-r4", "kind": "growth", "profile": "growth-r4", "replicas": 4, "concurrency": 32, "elapsed_seconds": 10.682, "successful_requests": 4688, "failed_requests": 0, "error_ratio": 0.0, "errors": {}, "successful_rps": 438.868, "successful_latency_ms": { "p50": 68.331, "p95": 109.446, "p99": 199.616 }, "instances": [ "4cdd1d3ba154", "5e6a432825a9", "98727dbbd98f", "9a0b50ef6c5a" ], "per_second": { "0": { "successful": 106, "failed": 0 }, "1": { "successful": 514, "failed": 0 }, "2": { "successful": 587, "failed": 0 }, "3": { "successful": 506, "failed": 0 }, "4": { "successful": 423, "failed": 0 }, "5": { "successful": 409, "failed": 0 }, "6": { "successful": 459, "failed": 0 }, "7": { "successful": 462, "failed": 0 }, "8": { "successful": 618, "failed": 0 }, "9": { "successful": 549, "failed": 0 }, "10": { "successful": 55, "failed": 0 } }, "resource_samples": [ { "t": 0.043, "services": { "api": { "cpu_percent": 25.03, "memory_mib": 29.672, "containers": 4 }, "frontend": { "cpu_percent": 0.02, "memory_mib": 7.316, "containers": 1 }, "load-balancer": { "cpu_percent": 9.16, "memory_mib": 18.25, "containers": 1 }, "postgres": { "cpu_percent": 99.03, "memory_mib": 269.2, "containers": 1 }, "redis": { "cpu_percent": 0.15, "memory_mib": 16.5, "containers": 1 } } }, { "t": 2.197, "services": { "api": { "cpu_percent": 48.89, "memory_mib": 31.184, "containers": 4 }, "frontend": { "cpu_percent": 2.63, "memory_mib": 7.305, "containers": 1 }, "load-balancer": { "cpu_percent": 23.31, "memory_mib": 18.25, "containers": 1 }, "postgres": { "cpu_percent": 100.3, "memory_mib": 284.5, "containers": 1 }, "redis": { "cpu_percent": 2.97, "memory_mib": 20.3, "containers": 1 } } }, { "t": 5.406, "services": { "api": { "cpu_percent": 43.96, "memory_mib": 32.164, "containers": 4 }, "frontend": { "cpu_percent": 0.0, "memory_mib": 7.305, "containers": 1 }, "load-balancer": { "cpu_percent": 19.48, "memory_mib": 17.79, "containers": 1 }, "postgres": { "cpu_percent": 101.91, "memory_mib": 290.1, "containers": 1 }, "redis": { "cpu_percent": 0.19, "memory_mib": 16.68, "containers": 1 } } }, { "t": 8.538, "services": { "api": { "cpu_percent": 24.88, "memory_mib": 32.855, "containers": 4 }, "frontend": { "cpu_percent": 0.02, "memory_mib": 7.551, "containers": 1 }, "load-balancer": { "cpu_percent": 10.43, "memory_mib": 17.5, "containers": 1 }, "postgres": { "cpu_percent": 38.15, "memory_mib": 279.9, "containers": 1 }, "redis": { "cpu_percent": 0.18, "memory_mib": 16.91, "containers": 1 } } } ], "resources": { "api": { "cpu_percent_avg": 35.69, "cpu_percent_max": 48.89, "memory_mib_avg": 31.469, "memory_mib_max": 32.855, "containers": 4 }, "frontend": { "cpu_percent_avg": 0.667, "cpu_percent_max": 2.63, "memory_mib_avg": 7.369, "memory_mib_max": 7.551, "containers": 1 }, "load-balancer": { "cpu_percent_avg": 15.595, "cpu_percent_max": 23.31, "memory_mib_avg": 17.947, "memory_mib_max": 18.25, "containers": 1 }, "postgres": { "cpu_percent_avg": 84.847, "cpu_percent_max": 101.91, "memory_mib_avg": 280.925, "memory_mib_max": 290.1, "containers": 1 }, "redis": { "cpu_percent_avg": 0.873, "cpu_percent_max": 2.97, "memory_mib_avg": 17.598, "memory_mib_max": 20.3, "containers": 1 } } }, { "name": "improved-db-cpu-r4", "kind": "improvement", "profile": "improved-db-cpu-r4", "replicas": 4, "concurrency": 32, "elapsed_seconds": 10.601, "successful_requests": 6229, "failed_requests": 0, "error_ratio": 0.0, "errors": {}, "successful_rps": 587.574, "successful_latency_ms": { "p50": 49.466, "p95": 93.991, "p99": 112.002 }, "instances": [ "3078d9394686", "950a06115bc5", "b04f6abe9ea1", "b4c3bdf282a0" ], "per_second": { "0": { "successful": 492, "failed": 0 }, "1": { "successful": 583, "failed": 0 }, "2": { "successful": 629, "failed": 0 }, "3": { "successful": 681, "failed": 0 }, "4": { "successful": 667, "failed": 0 }, "5": { "successful": 632, "failed": 0 }, "6": { "successful": 585, "failed": 0 }, "7": { "successful": 677, "failed": 0 }, "8": { "successful": 602, "failed": 0 }, "9": { "successful": 629, "failed": 0 }, "10": { "successful": 52, "failed": 0 } }, "resource_samples": [ { "t": 0.054, "services": { "api": { "cpu_percent": 52.63, "memory_mib": 30.188, "containers": 4 }, "frontend": { "cpu_percent": 0.03, "memory_mib": 7.301, "containers": 1 }, "load-balancer": { "cpu_percent": 24.59, "memory_mib": 18.03, "containers": 1 }, "postgres": { "cpu_percent": 121.18, "memory_mib": 130.1, "containers": 1 }, "redis": { "cpu_percent": 1.35, "memory_mib": 16.63, "containers": 1 } } }, { "t": 2.129, "services": { "api": { "cpu_percent": 70.26, "memory_mib": 36.812, "containers": 4 }, "frontend": { "cpu_percent": 0.0, "memory_mib": 7.301, "containers": 1 }, "load-balancer": { "cpu_percent": 25.64, "memory_mib": 18.99, "containers": 1 }, "postgres": { "cpu_percent": 106.99, "memory_mib": 141.4, "containers": 1 }, "redis": { "cpu_percent": 0.16, "memory_mib": 16.88, "containers": 1 } } }, { "t": 5.271, "services": { "api": { "cpu_percent": 65.05, "memory_mib": 33.652, "containers": 4 }, "frontend": { "cpu_percent": 3.29, "memory_mib": 7.43, "containers": 1 }, "load-balancer": { "cpu_percent": 26.73, "memory_mib": 18.41, "containers": 1 }, "postgres": { "cpu_percent": 102.2, "memory_mib": 145.9, "containers": 1 }, "redis": { "cpu_percent": 0.14, "memory_mib": 16.63, "containers": 1 } } }, { "t": 8.446, "services": { "api": { "cpu_percent": 32.86, "memory_mib": 34.023, "containers": 4 }, "frontend": { "cpu_percent": 0.0, "memory_mib": 7.301, "containers": 1 }, "load-balancer": { "cpu_percent": 12.44, "memory_mib": 18.0, "containers": 1 }, "postgres": { "cpu_percent": 51.92, "memory_mib": 147.6, "containers": 1 }, "redis": { "cpu_percent": 0.18, "memory_mib": 16.88, "containers": 1 } } } ], "resources": { "api": { "cpu_percent_avg": 55.2, "cpu_percent_max": 70.26, "memory_mib_avg": 33.669, "memory_mib_max": 36.812, "containers": 4 }, "frontend": { "cpu_percent_avg": 0.83, "cpu_percent_max": 3.29, "memory_mib_avg": 7.333, "memory_mib_max": 7.43, "containers": 1 }, "load-balancer": { "cpu_percent_avg": 22.35, "cpu_percent_max": 26.73, "memory_mib_avg": 18.358, "memory_mib_max": 18.99, "containers": 1 }, "postgres": { "cpu_percent_avg": 95.573, "cpu_percent_max": 121.18, "memory_mib_avg": 141.25, "memory_mib_max": 147.6, "containers": 1 }, "redis": { "cpu_percent_avg": 0.458, "cpu_percent_max": 1.35, "memory_mib_avg": 16.755, "memory_mib_max": 16.88, "containers": 1 } } } ], "analysis": { "saturation_point": { "concurrency": 8, "previous_concurrency": 4, "rps_gain_percent": 8.03, "p95_growth_ratio": 1.919 }, "observed_bottleneck": "postgres_cpu", "baseline_resource_snapshot": { "api": { "cpu_percent_avg": 35.69, "cpu_percent_max": 48.89, "memory_mib_avg": 31.469, "memory_mib_max": 32.855, "containers": 4 }, "frontend": { "cpu_percent_avg": 0.667, "cpu_percent_max": 2.63, "memory_mib_avg": 7.369, "memory_mib_max": 7.551, "containers": 1 }, "load-balancer": { "cpu_percent_avg": 15.595, "cpu_percent_max": 23.31, "memory_mib_avg": 17.947, "memory_mib_max": 18.25, "containers": 1 }, "postgres": { "cpu_percent_avg": 84.847, "cpu_percent_max": 101.91, "memory_mib_avg": 280.925, "memory_mib_max": 290.1, "containers": 1 }, "redis": { "cpu_percent_avg": 0.873, "cpu_percent_max": 2.97, "memory_mib_avg": 17.598, "memory_mib_max": 20.3, "containers": 1 } }, "improved_resource_snapshot": { "api": { "cpu_percent_avg": 55.2, "cpu_percent_max": 70.26, "memory_mib_avg": 33.669, "memory_mib_max": 36.812, "containers": 4 }, "frontend": { "cpu_percent_avg": 0.83, "cpu_percent_max": 3.29, "memory_mib_avg": 7.333, "memory_mib_max": 7.43, "containers": 1 }, "load-balancer": { "cpu_percent_avg": 22.35, "cpu_percent_max": 26.73, "memory_mib_avg": 18.358, "memory_mib_max": 18.99, "containers": 1 }, "postgres": { "cpu_percent_avg": 95.573, "cpu_percent_max": 121.18, "memory_mib_avg": 141.25, "memory_mib_max": 147.6, "containers": 1 }, "redis": { "cpu_percent_avg": 0.458, "cpu_percent_max": 1.35, "memory_mib_avg": 16.755, "memory_mib_max": 16.88, "containers": 1 } }, "remaining_bottleneck_after_improvement": "load_balancer_cpu", "improvement": { "change": "PostgreSQL CPU limit: 1.00 -> 2.00; API profile unchanged", "baseline_phase": "growth-r4", "improved_phase": "improved-db-cpu-r4", "rps_change_percent": 33.88, "p95_change_percent": -14.12, "confirmed": true } }, "dataset": { "before": { "messages": 225626, "database_size_bytes": 175406103 }, "after": { "messages": 299524, "database_size_bytes": 228793367 }, "warmup_successful_requests": 7749 }, "restoration": { "attempted": true, "succeeded": true, "applied": { "api": [ { "instance": "9c029f1ecdff", "cpu_limit": 0.5, "memory_limit_mib": 256.0, "db_max_conns": 10 }, { "instance": "bd53aadefab0", "cpu_limit": 0.5, "memory_limit_mib": 256.0, "db_max_conns": 10 } ], "postgres_cpu_limit": 1.0, "postgres_memory_limit_mib": 512.0 } }, "limitations": [ "single Docker host: replicas do not prove host-level availability", "closed-loop workload has coordinated omission", "successful-response latency percentiles are reported separately from failures", "one measured run per profile; host scheduling noise is possible" ] }