Files
mtusi2026lab3/evidence/availability-checks.txt
T

181 lines
5.4 KiB
Plaintext

.venv/bin/python student-tests/availability_tests.py --base-url "http://127.0.0.1:18080"
Testing graceful stop of 532e774b3f3a
Testing immediate stop of 154be9bc5b03
Building replacement image
Testing sequential replacement under mixed traffic
{
"verified_at": "2026-11-01T22:57:16Z",
"failures": [
{
"duration_seconds": 16.0791,
"requested_seconds": 16,
"concurrency": 8,
"successful_requests": 5002,
"failed_requests": 16,
"successful_rps": 311.088,
"error_ratio": 0.003189,
"successful_latency_ms": {
"p50": 7.92,
"p95": 80.79,
"p99": 91.746
},
"all_attempt_latency_ms": {
"p50": 7.931,
"p95": 81.213,
"p99": 94.761
},
"status_counts": {
"200": 2494,
"201": 2508,
"503": 16
},
"instance_counts": {
"8dd6e05328154854818c0526596de617": 328,
"7247c997acc94e32854eecea90b64f19": 4674
},
"actions": [
{
"started_after_seconds": 2.00741333301994,
"finished_after_seconds": 2.9904547500191256,
"result": {
"container": "532e774b3f3a7b5f39e88e27486c67d61ae738abbe59c245537f038334cc6b00",
"instance": "8dd6e05328154854818c0526596de617",
"running_after_action": false
}
}
],
"mode": "graceful",
"recovery_seconds": 1.579,
"integrity": {
"confirmed_writes": 2508,
"stored_messages": 2508,
"no_duplicate_text": true
}
},
{
"duration_seconds": 16.0226,
"requested_seconds": 16,
"concurrency": 8,
"successful_requests": 2954,
"failed_requests": 8,
"successful_rps": 184.365,
"error_ratio": 0.002701,
"successful_latency_ms": {
"p50": 24.682,
"p95": 99.191,
"p99": 291.869
},
"all_attempt_latency_ms": {
"p50": 24.75,
"p95": 100.611,
"p99": 362.389
},
"status_counts": {
"200": 1473,
"201": 1481,
"0": 3,
"503": 5
},
"instance_counts": {
"f4e50cb08dff4b4e912526d109af80a8": 2885,
"7247c997acc94e32854eecea90b64f19": 69
},
"actions": [
{
"started_after_seconds": 2.0046655840124004,
"finished_after_seconds": 4.294007374992361,
"result": {
"container": "154be9bc5b03d841f2e94423e86ede15e1d9d89155f80aebfb6f26939d09ea0b",
"instance": "7247c997acc94e32854eecea90b64f19",
"running_after_action": false
}
}
],
"mode": "immediate",
"recovery_seconds": 2.303,
"integrity": {
"confirmed_writes": 1481,
"stored_messages": 1481,
"no_duplicate_text": true
}
}
],
"rolling_update": {
"duration_seconds": 45.0098,
"requested_seconds": 45,
"concurrency": 8,
"successful_requests": 7800,
"failed_requests": 10,
"successful_rps": 173.296,
"error_ratio": 0.00128,
"successful_latency_ms": {
"p50": 28.192,
"p95": 120.345,
"p99": 208.105
},
"all_attempt_latency_ms": {
"p50": 28.231,
"p95": 121.312,
"p99": 218.139
},
"status_counts": {
"200": 3895,
"201": 3905,
"503": 10
},
"instance_counts": {
"a020d1919aed4cbcab27bd49c3363717": 941,
"f4e50cb08dff4b4e912526d109af80a8": 494,
"9fdec641bc0e42358028fbf02a547750": 3419,
"c23fe78cf209434fb08541058e1fe83a": 2946
},
"actions": [
{
"started_after_seconds": 2.001473125012126,
"finished_after_seconds": 19.158305874996586,
"result": [
{
"old_container": "532e774b3f3a7b5f39e88e27486c67d61ae738abbe59c245537f038334cc6b00",
"old_instance": "f4e50cb08dff4b4e912526d109af80a8",
"old_image": "sha256:d011d9b6d508badefd8ce4d974fba93f2cb5fd16fe2bc22f814b0df2a720b16d",
"new_container": "fd6343f590fd942987e9689d03156de3d376940aae922a48955fd14199deb5d3",
"new_instance": "9fdec641bc0e42358028fbf02a547750",
"new_image": "sha256:7b23b7960daa18fb8416fc5373c808a14dc27975528e5394fa83363f25b4c42c"
},
{
"old_container": "154be9bc5b03d841f2e94423e86ede15e1d9d89155f80aebfb6f26939d09ea0b",
"old_instance": "a020d1919aed4cbcab27bd49c3363717",
"old_image": "sha256:d011d9b6d508badefd8ce4d974fba93f2cb5fd16fe2bc22f814b0df2a720b16d",
"new_container": "8829f09045d9c4e8284dbce533bda78e1bcf4aad605142f4de0a5d1285db7226",
"new_instance": "c23fe78cf209434fb08541058e1fe83a",
"new_image": "sha256:7b23b7960daa18fb8416fc5373c808a14dc27975528e5394fa83363f25b4c42c"
}
]
}
],
"integrity": {
"confirmed_writes": 3905,
"stored_messages": 3905,
"no_duplicate_text": true
}
},
"infrastructure": {
"api_ports_published": false,
"api_containers": [
{
"id": "fd6343f590fd942987e9689d03156de3d376940aae922a48955fd14199deb5d3",
"image": "sha256:7b23b7960daa18fb8416fc5373c808a14dc27975528e5394fa83363f25b4c42c",
"cpu_limit": 1.0,
"memory_limit": 402653184
},
{
"id": "8829f09045d9c4e8284dbce533bda78e1bcf4aad605142f4de0a5d1285db7226",
"image": "sha256:7b23b7960daa18fb8416fc5373c808a14dc27975528e5394fa83363f25b4c42c",
"cpu_limit": 1.0,
"memory_limit": 402653184
}
],
"migrations": "1,2"
}
}