{ "scenario": "sequential failover of each api replica", "resources_under_load": [ "messenger-lab3-api-11 cpu=49.93% mem=130.7MiB / 256MiB", "messenger-lab3-api-12 cpu=49.39% mem=92.76MiB / 256MiB", "messenger-lab3-lb-1 cpu=14.25% mem=12.9MiB / 64MiB", "messenger-lab3-postgres-1 cpu=26.61% mem=70.14MiB / 512MiB", "messenger-lab3-redis-1 cpu=2.03% mem=9.797MiB / 128MiB" ], "replicas": [ { "container": "/messenger-lab3-api-11 running image=be7b642a4d66", "action": "docker stop (SIGTERM, graceful)", "before": { "seconds": 5.0, "successful_writes": 751, "failed_attempts": 0, "error_ratio": 0.0, "successful_rps": 150.2, "latency_ms_successful": { "p50": 11.4, "p95": 80.2, "p99": 163.6 }, "max_write_gap_seconds": 0.085, "instances": [ "229dcf033bdc", "e0c31d893858" ] }, "stop_command_seconds": 3.515, "target_last_success_after_stop_seconds": 1.954, "outage_window": { "seconds": 13.515, "successful_writes": 1585, "failed_attempts": 0, "error_ratio": 0.0, "successful_rps": 117.3, "latency_ms_successful": { "p50": 12.0, "p95": 89.6, "p99": 106.6 }, "max_write_gap_seconds": 0.183, "instances": [ "229dcf033bdc", "e0c31d893858" ] }, "restore_until_healthy_seconds": 5.743, "restore_until_serving_seconds": 3.546, "after_restore": { "seconds": 5.031, "successful_writes": 709, "failed_attempts": 0, "error_ratio": 0.0, "successful_rps": 140.9, "latency_ms_successful": { "p50": 12.7, "p95": 81.5, "p99": 96.2 }, "max_write_gap_seconds": 0.074, "instances": [ "229dcf033bdc", "e0c31d893858" ] } }, { "container": "/messenger-lab3-api-12 running image=be7b642a4d66", "action": "docker stop (SIGTERM, graceful)", "before": { "seconds": 5.0, "successful_writes": 702, "failed_attempts": 0, "error_ratio": 0.0, "successful_rps": 140.4, "latency_ms_successful": { "p50": 12.7, "p95": 81.5, "p99": 96.2 }, "max_write_gap_seconds": 0.074, "instances": [ "229dcf033bdc", "e0c31d893858" ] }, "stop_command_seconds": 3.513, "target_last_success_after_stop_seconds": 1.676, "outage_window": { "seconds": 13.513, "successful_writes": 1348, "failed_attempts": 0, "error_ratio": 0.0, "successful_rps": 99.8, "latency_ms_successful": { "p50": 15.2, "p95": 95.8, "p99": 105.3 }, "max_write_gap_seconds": 0.18, "instances": [ "229dcf033bdc", "e0c31d893858" ] }, "restore_until_healthy_seconds": 5.745, "restore_until_serving_seconds": 3.471, "after_restore": { "seconds": 5.022, "successful_writes": 742, "failed_attempts": 0, "error_ratio": 0.0, "successful_rps": 147.7, "latency_ms_successful": { "p50": 11.9, "p95": 77.6, "p99": 151.5 }, "max_write_gap_seconds": 0.141, "instances": [ "229dcf033bdc", "e0c31d893858" ] } } ], "dataset": { "messages_in_db_before": 93579, "messages_in_db_after": 100524 }, "history": { "confirmed": 6945, "stored": 6945, "lost_confirmed": 0, "duplicates": 0 }, "load": { "workers": 4, "model": "closed loop, POST message", "warmup_seconds": 5, "client_timeout_seconds": 2, "retry": "same Idempotency-Key until success" }, "date": "2026-11-01T14:55:41Z" }