ЛР 5 — БПИ2302 — Щербацевич — на 4

This commit is contained in:
2026-11-20 19:54:38 +03:00
parent 276dbdad8a
commit 1844c21198
88 changed files with 7499 additions and 30 deletions
+10
View File
@@ -0,0 +1,10 @@
mtusi-lab5-gc-1 cpu=0.00% mem=78.45MiB / 128MiB
mtusi-lab5-worker-1 cpu=0.33% mem=94.17MiB / 1GiB
mtusi-lab5-api-1 cpu=41.68% mem=87.46MiB / 512MiB
mtusi-lab5-api-2 cpu=53.60% mem=96.45MiB / 512MiB
mtusi-lab5-relay-1 cpu=0.94% mem=59.28MiB / 256MiB
mtusi-lab5-lb-1 cpu=17.22% mem=24.2MiB / 64MiB
mtusi-lab5-postgres-1 cpu=13.90% mem=49.89MiB / 512MiB
mtusi-lab5-rabbitmq-1 cpu=54.10% mem=185.6MiB / 384MiB
mtusi-lab5-minio-1 cpu=0.40% mem=76.19MiB / 256MiB
mtusi-lab5-redis-1 cpu=1.23% mem=8.191MiB / 128MiB
+10
View File
@@ -0,0 +1,10 @@
{
"date": "2026-11-20T16:50:00Z",
"command": "python student-tests/failover.py",
"hook": "scripts/stop-one.cmd",
"observed_instances_before": 2,
"successful_writes": 91,
"failed_attempts": 1,
"first_recovery_seconds": 4.541,
"result": "PASS: failover preserved confirmed data and existing session."
}
+61
View File
@@ -0,0 +1,61 @@
{
"date": "2026-11-20T16:38:02Z",
"happy_path": {
"attachment_id": "a813b0a0-2bab-404f-aa5f-8850b46db20c",
"job_id": "8277933e-15c9-4347-af58-cfa21c02ee71",
"status": "ready"
},
"worker_stopped": {
"attachment_id": "5886b435-004d-4aed-b8f7-9a288c7bc181",
"job_id": "c6d3c7ff-a181-41f9-a945-e194054b0637",
"content_before_worker": 409,
"status_after_recovery": "ready",
"rabbit_restarted": true,
"api_restarted": true
},
"outbox_gap": {
"attachment_id": "35000ce9-e4d5-4774-a7de-6b717a4cb208",
"job_id": "13488d1a-9f1f-4c30-a573-8dcf36d1beb7",
"unpublished_before_restart": 1,
"status": "ready"
},
"relay_crash": {
"attachment_id": "3f83494d-5756-42ce-b457-29af8bc3e788",
"job_id": "5104d370-c0d6-48f1-916a-6611afb8958f",
"gap_injected": true,
"log_seen": true,
"status": "ready"
},
"crash_before_ack": {
"attachment_id": "a5a24455-f783-4511-90f9-0b17dd43aaf5",
"job_id": "0fdaa8f2-054b-4aa0-a273-e63a425ce8c6",
"log_seen": true,
"status": "ready",
"variant_rows": {
"crop": 1,
"optimized": 1,
"thumbnail": 1
}
},
"expired_lease": {
"attachment_id": "be34abc1-5932-468e-aa2a-d4ebcd6e41ac",
"job_id": "6ebf2c9f-090a-4637-94b2-2eb0a87f356b",
"status": "ready"
},
"retry_and_replay": {
"attachment_id": "d1b86332-5eba-4e3b-a69c-d0c97400fc21",
"job_id": "d118acc1-f4cb-4a6e-8fd3-7f7f74d5cbd3",
"error_code": "retry_exhausted",
"failure_rows": 5,
"first_replay": "enqueued",
"second_replay": "already_ready",
"status": "ready"
},
"timeout": {
"attachment_id": "2a4937cf-0108-40f3-9544-ec42fee9c135",
"job_id": "ec75b92c-2534-4d96-adf5-4a92d252d389",
"error_code": "retry_exhausted",
"status": "ready",
"api_ready_during_stall": true
}
}
+17
View File
@@ -0,0 +1,17 @@
{
"lab": 5,
"workload": "closed-loop POST messages; no automatic retries",
"requested_duration_seconds": 15.0,
"elapsed_seconds": 15.604,
"concurrency": 4,
"successful_requests": 627,
"failed_requests": 0,
"error_ratio": 0.0,
"successful_rps": 40.183,
"successful_latency_ms": {
"p50": 80.292,
"p95": 197.958,
"p99": 302.695
},
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
}
Binary file not shown.