fix(lab5): protect pipeline objects and verify overload recovery

This commit is contained in:
kolya5544
2026-11-12 04:02:23 +03:00
parent 518c98fd3e
commit 5dbb905364
30 changed files with 2094 additions and 66 deletions
+209
View File
@@ -0,0 +1,209 @@
$ python scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
exit=0
$ python scripts/validate_openapi.py
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
exit=0
$ python tests/smoke.py --base-url http://127.0.0.1:8080
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
exit=0
$ python -m unittest discover -s student-tests -p test_api.py -v
test_bearer_rules (test_api.AuthTest.test_bearer_rules) ... ok
test_concurrent_registration_of_same_username (test_api.AuthTest.test_concurrent_registration_of_same_username) ... ok
test_logout_revokes_in_database_and_cache (test_api.AuthTest.test_logout_revokes_in_database_and_cache) ... ok
test_password_is_not_exposed_or_stored_plain (test_api.AuthTest.test_password_is_not_exposed_or_stored_plain) ... ok
test_register_validation (test_api.AuthTest.test_register_validation) ... ok
test_session_shape_entropy_and_logout (test_api.AuthTest.test_session_shape_entropy_and_logout) ... ok
test_token_only_stored_as_hash (test_api.AuthTest.test_token_only_stored_as_hash) ... ok
test_wrong_password_and_unknown_user_are_indistinguishable (test_api.AuthTest.test_wrong_password_and_unknown_user_are_indistinguishable) ... ok
test_chat_creation_is_atomic (test_api.DataTest.test_chat_creation_is_atomic) ... ok
test_foreign_chat_empty_message_bad_json (test_api.DataTest.test_foreign_chat_empty_message_bad_json) ... ok
test_multi_page_history_and_cursor_binding (test_api.DataTest.test_multi_page_history_and_cursor_binding) ... ok
test_parallel_writes_from_many_clients (test_api.DataTest.test_parallel_writes_from_many_clients) ... ok
----------------------------------------------------------------------
Ran 12 tests in 2.559s
OK
exit=0
$ python -m unittest discover -s student-tests -p test_idempotency.py -v
test_concurrent_same_key_creates_exactly_one_message_across_replicas (test_idempotency.IdempotencyTest.test_concurrent_same_key_creates_exactly_one_message_across_replicas) ... ok
test_different_body_same_key_is_409 (test_idempotency.IdempotencyTest.test_different_body_same_key_is_409) ... ok
test_expired_key_is_reusable_after_ttl (test_idempotency.IdempotencyTest.test_expired_key_is_reusable_after_ttl) ... ok
test_key_validation (test_idempotency.IdempotencyTest.test_key_validation) ... ok
test_replay_rechecks_session_and_membership (test_idempotency.IdempotencyTest.test_replay_rechecks_session_and_membership) ... ok
test_replay_returns_same_message_and_creates_no_duplicate (test_idempotency.IdempotencyTest.test_replay_returns_same_message_and_creates_no_duplicate) ... ok
test_scope_is_user_and_chat (test_idempotency.IdempotencyTest.test_scope_is_user_and_chat) ... ok
test_semantically_equal_body_is_replayed (test_idempotency.IdempotencyTest.test_semantically_equal_body_is_replayed) ... ok
test_session_is_shared_between_replicas_without_relogin (test_idempotency.IdempotencyTest.test_session_is_shared_between_replicas_without_relogin) ... ok
----------------------------------------------------------------------
Ran 9 tests in 1.806s
OK
exit=0
$ python -m unittest discover -s student-tests -p test_attachments.py -v
test_aborted_upload_leaves_nothing (test_attachments.AttachmentTest.test_aborted_upload_leaves_nothing) ... ok
test_bucket_is_private_outside_the_api (test_attachments.AttachmentTest.test_bucket_is_private_outside_the_api) ... ok
test_corrupted_and_spoofed_files_are_415_not_500 (test_attachments.AttachmentTest.test_corrupted_and_spoofed_files_are_415_not_500) ... ok
test_dangerous_filenames_are_400 (test_attachments.AttachmentTest.test_dangerous_filenames_are_400) ... ok
test_decompression_bomb_header_is_413 (test_attachments.AttachmentTest.test_decompression_bomb_header_is_413) ... ok
test_empty_body_is_400 (test_attachments.AttachmentTest.test_empty_body_is_400) ... ok
test_foreign_user_cannot_upload_read_or_download (test_attachments.AttachmentTest.test_foreign_user_cannot_upload_read_or_download) ... ok
test_idempotent_replay_with_attachments (test_attachments.AttachmentTest.test_idempotent_replay_with_attachments) ... ok
test_message_with_attachments_and_chat_binding (test_attachments.AttachmentTest.test_message_with_attachments_and_chat_binding) ... ok
test_png_and_jpeg_roundtrip_with_checksum (test_attachments.AttachmentTest.test_png_and_jpeg_roundtrip_with_checksum) ... ok
test_too_large_is_413_and_nothing_is_stored (test_attachments.AttachmentTest.test_too_large_is_413_and_nothing_is_stored) ... ok
----------------------------------------------------------------------
Ran 11 tests in 5.441s
OK
exit=0
$ python -m unittest discover -s student-tests -p test_topology.py -v
test_api_runs_as_non_root (test_topology.TopologyTest.test_api_runs_as_non_root) ... ok
test_at_least_two_api_replicas_without_published_ports (test_topology.TopologyTest.test_at_least_two_api_replicas_without_published_ports) ... ok
test_no_fixed_container_names (test_topology.TopologyTest.test_no_fixed_container_names) ... ok
test_only_lb_is_published_and_only_on_localhost (test_topology.TopologyTest.test_only_lb_is_published_and_only_on_localhost) ... ok
test_resource_limits_are_set (test_topology.TopologyTest.test_resource_limits_are_set) ... ok
test_stop_grace_period_covers_drain (test_topology.TopologyTest.test_stop_grace_period_covers_drain) ... ok
----------------------------------------------------------------------
Ran 6 tests in 1.582s
OK
exit=0
$ python -m unittest discover -s student-tests -p test_pipeline.py -v
test_alpha_is_composited_on_white (test_pipeline.PipelineTest.test_alpha_is_composited_on_white) ... C:\Users\kolya5544\source\repos\vmdMTUCI\mtusi2026lab5\student-tests\test_pipeline.py:25: ResourceWarning: unclosed file <_io.BufferedReader name='C:\\Users\\kolya5544\\source\\repos\\vmdMTUCI\\mtusi2026lab5\\student-tests\\fixtures\\alpha.png'>
return open(os.path.join(FIX, name), "rb").read()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_content_is_409_while_not_ready_and_original_is_untouched (test_pipeline.PipelineTest.test_content_is_409_while_not_ready_and_original_is_untouched) ... ok
test_exif_orientation_is_applied (test_pipeline.PipelineTest.test_exif_orientation_is_applied) ... C:\Users\kolya5544\source\repos\vmdMTUCI\mtusi2026lab5\student-tests\test_pipeline.py:25: ResourceWarning: unclosed file <_io.BufferedReader name='C:\\Users\\kolya5544\\source\\repos\\vmdMTUCI\\mtusi2026lab5\\student-tests\\fixtures\\exif_rot6.jpg'>
return open(os.path.join(FIX, name), "rb").read()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_message_can_reference_attachment_before_ready_and_failed_cannot (test_pipeline.PipelineTest.test_message_can_reference_attachment_before_ready_and_failed_cannot) ... C:\Users\kolya5544\source\repos\vmdMTUCI\mtusi2026lab5\student-tests\test_pipeline.py:25: ResourceWarning: unclosed file <_io.BufferedReader name='C:\\Users\\kolya5544\\source\\repos\\vmdMTUCI\\mtusi2026lab5\\student-tests\\fixtures\\poison.png'>
return open(os.path.join(FIX, name), "rb").read()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_other_variants_visible_only_to_chat_members (test_pipeline.PipelineTest.test_other_variants_visible_only_to_chat_members) ... ok
test_ready_job_redelivery_does_not_duplicate_variants (test_pipeline.PipelineTest.test_ready_job_redelivery_does_not_duplicate_variants) ... ok
test_sample_png_produces_all_variants_per_contract (test_pipeline.PipelineTest.test_sample_png_produces_all_variants_per_contract) ... ok
test_small_image_is_not_upscaled_but_crop_is_128 (test_pipeline.PipelineTest.test_small_image_is_not_upscaled_but_crop_is_128) ... C:\Users\kolya5544\source\repos\vmdMTUCI\mtusi2026lab5\student-tests\test_pipeline.py:25: ResourceWarning: unclosed file <_io.BufferedReader name='C:\\Users\\kolya5544\\source\\repos\\vmdMTUCI\\mtusi2026lab5\\student-tests\\fixtures\\small.png'>
return open(os.path.join(FIX, name), "rb").read()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_staging_is_cleaned_after_ready_and_kept_for_failed (test_pipeline.PipelineTest.test_staging_is_cleaned_after_ready_and_kept_for_failed) ... ok
----------------------------------------------------------------------
Ran 9 tests in 10.719s
OK
exit=0
$ python -m unittest discover -s student-tests -p test_reconcile5.py -v
test_ready_variants_and_uncommitted_side_effect_are_preserved (test_reconcile5.ReconcilePipelineTest.test_ready_variants_and_uncommitted_side_effect_are_preserved) ... ok
test_staging_is_protected_and_unowned_orphan_obeys_grace (test_reconcile5.ReconcilePipelineTest.test_staging_is_protected_and_unowned_orphan_obeys_grace) ... ok
----------------------------------------------------------------------
Ran 2 tests in 28.990s
OK
exit=0
$ python -m unittest discover -s student-tests -p test_resilience5.py -v
test_1_worker_down_upload_api_restart_worker_up (test_resilience5.ResilienceTest.test_1_worker_down_upload_api_restart_worker_up) ... ok
test_2_broker_restart_keeps_accepted_jobs (test_resilience5.ResilienceTest.test_2_broker_restart_keeps_accepted_jobs) ... ok
test_3_broker_down_during_acceptance_outbox_delivers_later (test_resilience5.ResilienceTest.test_3_broker_down_during_acceptance_outbox_delivers_later) ... ok
test_4_api_crash_between_commit_and_publish (test_resilience5.ResilienceTest.test_4_api_crash_between_commit_and_publish) ... ok
test_5_worker_crash_after_s3_before_commit_lease_recovery (test_resilience5.ResilienceTest.test_5_worker_crash_after_s3_before_commit_lease_recovery) ... ok
test_6_worker_crash_after_commit_before_ack_redelivery_is_noop (test_resilience5.ResilienceTest.test_6_worker_crash_after_commit_before_ack_redelivery_is_noop) ... ok
test_7_retry_exhaustion_registry_and_operator_replay (test_resilience5.ResilienceTest.test_7_retry_exhaustion_registry_and_operator_replay) ... ok
----------------------------------------------------------------------
Ran 7 tests in 141.784s
OK
exit=0
$ python tests/resilience.py --mode persistence --action-script scripts/restart.cmd --base-url http://127.0.0.1:8080
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
exit=0
$ python tests/resilience.py --mode failover --action-script scripts/stop-one.cmd --base-url http://127.0.0.1:8080
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 121, "failed_attempts": 0, "first_recovery_seconds": 2.344}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
exit=0
$ docker compose --env-file .env start api
Container mtusi-lab5-seaweedfs-1 Waiting
Container mtusi-lab5-postgres-1 Waiting
Container mtusi-lab5-postgres-1 Healthy
Container mtusi-lab5-seaweedfs-1 Healthy
Container mtusi-lab5-migrate-1 Starting
Container mtusi-lab5-s3-init-1 Starting
Container mtusi-lab5-migrate-1 Started
Container mtusi-lab5-s3-init-1 Started
Container mtusi-lab5-migrate-1 Waiting
Container mtusi-lab5-s3-init-1 Waiting
Container mtusi-lab5-valkey-1 Waiting
Container mtusi-lab5-valkey-1 Healthy
Container mtusi-lab5-migrate-1 Exited
Container mtusi-lab5-s3-init-1 Exited
Container mtusi-lab5-api-1 Starting
Container mtusi-lab5-api-1 Started
exit=0
$ python student-tests/test_expiry.py
..
----------------------------------------------------------------------
Ran 2 tests in 19.786s
OK
exit=0
$ python student-tests/test_dependencies.py
..
----------------------------------------------------------------------
Ran 2 tests in 20.171s
OK
exit=0
$ docker compose --env-file .env run --rm -T s3-init
Container mtusi-lab5-seaweedfs-1 Running
Container mtusi-lab5-seaweedfs-1 Waiting
Container mtusi-lab5-seaweedfs-1 Healthy
Container mtusi-lab5-s3-init-run-54461bd2fe34 Creating
Container mtusi-lab5-s3-init-run-54461bd2fe34 Created
bucket messenger-attachments уже существует
анонимный доступ запрещён (HTTP 403)
ключ API ограничен одним bucket (create_bucket отклонён: AccessDenied)
bootstrap завершён
exit=0
$ docker compose --env-file .env run --rm -T s3-init
Container mtusi-lab5-seaweedfs-1 Running
Container mtusi-lab5-seaweedfs-1 Waiting
Container mtusi-lab5-seaweedfs-1 Healthy
Container mtusi-lab5-s3-init-run-84c641a11c75 Creating
Container mtusi-lab5-s3-init-run-84c641a11c75 Created
bucket messenger-attachments уже существует
анонимный доступ запрещён (HTTP 403)
ключ API ограничен одним bucket (create_bucket отклонён: AccessDenied)
bootstrap завершён
exit=0
$ python tests/smoke.py --base-url http://127.0.0.1:8080
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
exit=0
@@ -0,0 +1,24 @@
{
"MAX_QUEUED_JOBS": 30,
"burst": 200,
"attempt_statuses": {
"202": 54,
"503": 146
},
"accepted": 54,
"peak_queue_depth": 48,
"all_accepted_finished": true,
"accepted_in_s": 0.5,
"drained_after_s": 2.7,
"retry_after_header_seen": true,
"retry_after_values": [
"5"
],
"transport_errors": [],
"recovered_new_uploads_accepted": true,
"recovered_new_uploads_ready": true,
"no_accepted_job_lost": true,
"ready": 54,
"failed": 0,
"p95_s": 1.88
}
+18
View File
@@ -0,0 +1,18 @@
$ python -u research/queue_overload.py --out evidence\recheck_2026-11-12
{'small': '109 KiB', 'medium': '1961 KiB', 'large': '3100 KiB'}
{"concurrency": 1, "image": "small", "image_kib": 109, "uploads": 80, "accepted": 80, "resource_limits": {"memory_bytes": 805306368, "nano_cpus": 1000000000}, "attempt_statuses": {"202": 80}, "transport_errors": [], "accepted_in_s": 0.5, "all_finished": true, "peak_queue_depth": 67, "peak_oldest_age_s": 2.7, "worker_peak_rss_mib": 72.5, "worker_oom_killed": "false", "ready": 80, "failed": 0, "p50_s": 1.55, "p95_s": 2.84, "max_s": 3.0, "throughput_per_s": 23.84, "span_s": 3.4}
{"concurrency": 1, "image": "medium", "image_kib": 1961, "uploads": 24, "accepted": 24, "resource_limits": {"memory_bytes": 805306368, "nano_cpus": 1000000000}, "attempt_statuses": {"202": 24}, "transport_errors": [], "accepted_in_s": 0.5, "all_finished": true, "peak_queue_depth": 22, "peak_oldest_age_s": 5.4, "worker_peak_rss_mib": 133.2, "worker_oom_killed": "false", "ready": 24, "failed": 0, "p50_s": 2.83, "p95_s": 5.21, "max_s": 5.44, "throughput_per_s": 4.09, "span_s": 5.9}
{"concurrency": 1, "image": "large", "image_kib": 3100, "uploads": 12, "accepted": 12, "resource_limits": {"memory_bytes": 805306368, "nano_cpus": 1000000000}, "attempt_statuses": {"202": 12}, "transport_errors": [], "accepted_in_s": 0.3, "all_finished": true, "peak_queue_depth": 11, "peak_oldest_age_s": 3.3, "worker_peak_rss_mib": 160.4, "worker_oom_killed": "false", "ready": 12, "failed": 0, "p50_s": 1.74, "p95_s": 3.35, "max_s": 3.35, "throughput_per_s": 3.38, "span_s": 3.6}
{"concurrency": 2, "image": "small", "image_kib": 109, "uploads": 80, "accepted": 80, "resource_limits": {"memory_bytes": 805306368, "nano_cpus": 1000000000}, "attempt_statuses": {"202": 80}, "transport_errors": [], "accepted_in_s": 0.3, "all_finished": true, "peak_queue_depth": 56, "peak_oldest_age_s": 1.1, "worker_peak_rss_mib": 75.4, "worker_oom_killed": "false", "ready": 80, "failed": 0, "p50_s": 0.89, "p95_s": 1.48, "max_s": 1.55, "throughput_per_s": 44.13, "span_s": 1.8}
{"concurrency": 2, "image": "medium", "image_kib": 1961, "uploads": 24, "accepted": 24, "resource_limits": {"memory_bytes": 805306368, "nano_cpus": 1000000000}, "attempt_statuses": {"202": 24}, "transport_errors": [], "accepted_in_s": 0.5, "all_finished": true, "peak_queue_depth": 22, "peak_oldest_age_s": 4.3, "worker_peak_rss_mib": 194.9, "worker_oom_killed": "false", "ready": 24, "failed": 0, "p50_s": 2.43, "p95_s": 4.78, "max_s": 4.8, "throughput_per_s": 4.6, "span_s": 5.2}
{"concurrency": 2, "image": "large", "image_kib": 3100, "uploads": 12, "accepted": 12, "resource_limits": {"memory_bytes": 805306368, "nano_cpus": 1000000000}, "attempt_statuses": {"202": 12}, "transport_errors": [], "accepted_in_s": 0.4, "all_finished": true, "peak_queue_depth": 12, "peak_oldest_age_s": 2.7, "worker_peak_rss_mib": 250.9, "worker_oom_killed": "false", "ready": 12, "failed": 0, "p50_s": 1.59, "p95_s": 2.98, "max_s": 2.98, "throughput_per_s": 3.84, "span_s": 3.1}
{"concurrency": 4, "image": "small", "image_kib": 109, "uploads": 80, "accepted": 80, "resource_limits": {"memory_bytes": 805306368, "nano_cpus": 1000000000}, "attempt_statuses": {"202": 80}, "transport_errors": [], "accepted_in_s": 0.3, "all_finished": true, "peak_queue_depth": 50, "peak_oldest_age_s": 1.1, "worker_peak_rss_mib": 79.9, "worker_oom_killed": "false", "ready": 80, "failed": 0, "p50_s": 0.7, "p95_s": 1.25, "max_s": 1.29, "throughput_per_s": 52.3, "span_s": 1.5}
{"concurrency": 4, "image": "medium", "image_kib": 1961, "uploads": 24, "accepted": 24, "resource_limits": {"memory_bytes": 805306368, "nano_cpus": 1000000000}, "attempt_statuses": {"202": 24}, "transport_errors": [], "accepted_in_s": 0.5, "all_finished": true, "peak_queue_depth": 24, "peak_oldest_age_s": 4.8, "worker_peak_rss_mib": 318.9, "worker_oom_killed": "false", "ready": 24, "failed": 0, "p50_s": 2.59, "p95_s": 4.82, "max_s": 4.86, "throughput_per_s": 4.56, "span_s": 5.3}
{"concurrency": 4, "image": "large", "image_kib": 3100, "uploads": 12, "accepted": 12, "resource_limits": {"memory_bytes": 805306368, "nano_cpus": 1000000000}, "attempt_statuses": {"202": 12}, "transport_errors": [], "accepted_in_s": 0.4, "all_finished": true, "peak_queue_depth": 12, "peak_oldest_age_s": 2.8, "worker_peak_rss_mib": 430.0, "worker_oom_killed": "false", "ready": 12, "failed": 0, "p50_s": 2.32, "p95_s": 3.36, "max_s": 3.36, "throughput_per_s": 3.39, "span_s": 3.5}
{"MAX_QUEUED_JOBS": 30, "burst": 200, "attempt_statuses": {"202": 54, "503": 146}, "accepted": 54, "peak_queue_depth": 48, "all_accepted_finished": true, "accepted_in_s": 0.5, "drained_after_s": 2.7, "retry_after_header_seen": true, "retry_after_values": ["5"], "transport_errors": [], "recovered_new_uploads_accepted": true, "recovered_new_uploads_ready": true, "no_accepted_job_lost": true, "ready": 54, "failed": 0, "p95_s": 1.88}
exit=0
$ python tests/resilience.py --mode persistence --action-script scripts/restart.cmd --base-url http://127.0.0.1:8080
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
FAIL: GET /api/v1/attachments/85bcfa7b-e1e8-4bdf-8b95-e1a8b2804fc5/content: expected [200], received 503
exit=1
+482
View File
@@ -0,0 +1,482 @@
{
"before": {
"mtusi-lab5-api-1": {
"service": "api",
"started_at": "2026-11-12T00:59:24.547575282Z",
"health": "healthy",
"volumes": []
},
"mtusi-lab5-api-2": {
"service": "api",
"started_at": "2026-11-12T00:59:24.409530572Z",
"health": "healthy",
"volumes": []
},
"mtusi-lab5-lb-1": {
"service": "lb",
"started_at": "2026-11-12T00:59:20.643619346Z",
"health": "healthy",
"volumes": []
},
"mtusi-lab5-postgres-1": {
"service": "postgres",
"started_at": "2026-11-12T00:59:21.319524713Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_pgdata"
]
},
"mtusi-lab5-rabbitmq-1": {
"service": "rabbitmq",
"started_at": "2026-11-12T00:59:21.501174229Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_rabbitmqdata"
]
},
"mtusi-lab5-seaweedfs-1": {
"service": "seaweedfs",
"started_at": "2026-11-12T00:59:21.638684596Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_seaweeddata"
]
},
"mtusi-lab5-valkey-1": {
"service": "valkey",
"started_at": "2026-11-12T00:59:20.874723039Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_valkeydata"
]
},
"mtusi-lab5-worker-1": {
"service": "worker",
"started_at": "2026-11-12T00:59:21.145794756Z",
"health": "healthy",
"volumes": []
}
},
"after": {
"mtusi-lab5-api-1": {
"service": "api",
"started_at": "2026-11-12T00:59:56.213556685Z",
"health": "healthy",
"volumes": []
},
"mtusi-lab5-api-2": {
"service": "api",
"started_at": "2026-11-12T00:59:57.500333699Z",
"health": "healthy",
"volumes": []
},
"mtusi-lab5-lb-1": {
"service": "lb",
"started_at": "2026-11-12T00:59:52.516283057Z",
"health": "healthy",
"volumes": []
},
"mtusi-lab5-postgres-1": {
"service": "postgres",
"started_at": "2026-11-12T00:59:52.920661248Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_pgdata"
]
},
"mtusi-lab5-rabbitmq-1": {
"service": "rabbitmq",
"started_at": "2026-11-12T00:59:53.435646134Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_rabbitmqdata"
]
},
"mtusi-lab5-seaweedfs-1": {
"service": "seaweedfs",
"started_at": "2026-11-12T00:59:53.598244344Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_seaweeddata"
]
},
"mtusi-lab5-valkey-1": {
"service": "valkey",
"started_at": "2026-11-12T00:59:52.145208673Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_valkeydata"
]
},
"mtusi-lab5-worker-1": {
"service": "worker",
"started_at": "2026-11-12T00:59:53.235224376Z",
"health": "healthy",
"volumes": []
}
},
"all_services_restarted": true,
"volumes_preserved": true,
"repeats": [
{
"before": {
"mtusi-lab5-api-1": {
"service": "api",
"started_at": "2026-11-12T00:58:45.575826913Z",
"health": "healthy",
"volumes": []
},
"mtusi-lab5-api-2": {
"service": "api",
"started_at": "2026-11-12T00:58:45.881190123Z",
"health": "healthy",
"volumes": []
},
"mtusi-lab5-lb-1": {
"service": "lb",
"started_at": "2026-11-12T00:53:10.601145103Z",
"health": "healthy",
"volumes": []
},
"mtusi-lab5-postgres-1": {
"service": "postgres",
"started_at": "2026-11-12T00:53:11.16711263Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_pgdata"
]
},
"mtusi-lab5-rabbitmq-1": {
"service": "rabbitmq",
"started_at": "2026-11-12T00:53:11.484387397Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_rabbitmqdata"
]
},
"mtusi-lab5-seaweedfs-1": {
"service": "seaweedfs",
"started_at": "2026-11-12T00:53:11.643485706Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_seaweeddata"
]
},
"mtusi-lab5-valkey-1": {
"service": "valkey",
"started_at": "2026-11-12T00:53:10.885267441Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_valkeydata"
]
},
"mtusi-lab5-worker-1": {
"service": "worker",
"started_at": "2026-11-12T00:58:45.578958104Z",
"health": "healthy",
"volumes": []
}
},
"after": {
"mtusi-lab5-api-1": {
"service": "api",
"started_at": "2026-11-12T00:58:58.27211915Z",
"health": "healthy",
"volumes": []
},
"mtusi-lab5-api-2": {
"service": "api",
"started_at": "2026-11-12T00:58:57.47079238Z",
"health": "healthy",
"volumes": []
},
"mtusi-lab5-lb-1": {
"service": "lb",
"started_at": "2026-11-12T00:58:53.874340617Z",
"health": "healthy",
"volumes": []
},
"mtusi-lab5-postgres-1": {
"service": "postgres",
"started_at": "2026-11-12T00:58:54.35128221Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_pgdata"
]
},
"mtusi-lab5-rabbitmq-1": {
"service": "rabbitmq",
"started_at": "2026-11-12T00:58:54.980171011Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_rabbitmqdata"
]
},
"mtusi-lab5-seaweedfs-1": {
"service": "seaweedfs",
"started_at": "2026-11-12T00:58:55.259407602Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_seaweeddata"
]
},
"mtusi-lab5-valkey-1": {
"service": "valkey",
"started_at": "2026-11-12T00:58:54.512669953Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_valkeydata"
]
},
"mtusi-lab5-worker-1": {
"service": "worker",
"started_at": "2026-11-12T00:58:54.76173897Z",
"health": "healthy",
"volumes": []
}
},
"all_services_restarted": true,
"volumes_preserved": true
},
{
"before": {
"mtusi-lab5-api-1": {
"service": "api",
"started_at": "2026-11-12T00:58:58.27211915Z",
"health": "healthy",
"volumes": []
},
"mtusi-lab5-api-2": {
"service": "api",
"started_at": "2026-11-12T00:58:57.47079238Z",
"health": "healthy",
"volumes": []
},
"mtusi-lab5-lb-1": {
"service": "lb",
"started_at": "2026-11-12T00:58:53.874340617Z",
"health": "healthy",
"volumes": []
},
"mtusi-lab5-postgres-1": {
"service": "postgres",
"started_at": "2026-11-12T00:58:54.35128221Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_pgdata"
]
},
"mtusi-lab5-rabbitmq-1": {
"service": "rabbitmq",
"started_at": "2026-11-12T00:58:54.980171011Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_rabbitmqdata"
]
},
"mtusi-lab5-seaweedfs-1": {
"service": "seaweedfs",
"started_at": "2026-11-12T00:58:55.259407602Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_seaweeddata"
]
},
"mtusi-lab5-valkey-1": {
"service": "valkey",
"started_at": "2026-11-12T00:58:54.512669953Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_valkeydata"
]
},
"mtusi-lab5-worker-1": {
"service": "worker",
"started_at": "2026-11-12T00:58:54.76173897Z",
"health": "healthy",
"volumes": []
}
},
"after": {
"mtusi-lab5-api-1": {
"service": "api",
"started_at": "2026-11-12T00:59:24.547575282Z",
"health": "healthy",
"volumes": []
},
"mtusi-lab5-api-2": {
"service": "api",
"started_at": "2026-11-12T00:59:24.409530572Z",
"health": "healthy",
"volumes": []
},
"mtusi-lab5-lb-1": {
"service": "lb",
"started_at": "2026-11-12T00:59:20.643619346Z",
"health": "healthy",
"volumes": []
},
"mtusi-lab5-postgres-1": {
"service": "postgres",
"started_at": "2026-11-12T00:59:21.319524713Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_pgdata"
]
},
"mtusi-lab5-rabbitmq-1": {
"service": "rabbitmq",
"started_at": "2026-11-12T00:59:21.501174229Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_rabbitmqdata"
]
},
"mtusi-lab5-seaweedfs-1": {
"service": "seaweedfs",
"started_at": "2026-11-12T00:59:21.638684596Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_seaweeddata"
]
},
"mtusi-lab5-valkey-1": {
"service": "valkey",
"started_at": "2026-11-12T00:59:20.874723039Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_valkeydata"
]
},
"mtusi-lab5-worker-1": {
"service": "worker",
"started_at": "2026-11-12T00:59:21.145794756Z",
"health": "healthy",
"volumes": []
}
},
"all_services_restarted": true,
"volumes_preserved": true
},
{
"before": {
"mtusi-lab5-api-1": {
"service": "api",
"started_at": "2026-11-12T00:59:24.547575282Z",
"health": "healthy",
"volumes": []
},
"mtusi-lab5-api-2": {
"service": "api",
"started_at": "2026-11-12T00:59:24.409530572Z",
"health": "healthy",
"volumes": []
},
"mtusi-lab5-lb-1": {
"service": "lb",
"started_at": "2026-11-12T00:59:20.643619346Z",
"health": "healthy",
"volumes": []
},
"mtusi-lab5-postgres-1": {
"service": "postgres",
"started_at": "2026-11-12T00:59:21.319524713Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_pgdata"
]
},
"mtusi-lab5-rabbitmq-1": {
"service": "rabbitmq",
"started_at": "2026-11-12T00:59:21.501174229Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_rabbitmqdata"
]
},
"mtusi-lab5-seaweedfs-1": {
"service": "seaweedfs",
"started_at": "2026-11-12T00:59:21.638684596Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_seaweeddata"
]
},
"mtusi-lab5-valkey-1": {
"service": "valkey",
"started_at": "2026-11-12T00:59:20.874723039Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_valkeydata"
]
},
"mtusi-lab5-worker-1": {
"service": "worker",
"started_at": "2026-11-12T00:59:21.145794756Z",
"health": "healthy",
"volumes": []
}
},
"after": {
"mtusi-lab5-api-1": {
"service": "api",
"started_at": "2026-11-12T00:59:56.213556685Z",
"health": "healthy",
"volumes": []
},
"mtusi-lab5-api-2": {
"service": "api",
"started_at": "2026-11-12T00:59:57.500333699Z",
"health": "healthy",
"volumes": []
},
"mtusi-lab5-lb-1": {
"service": "lb",
"started_at": "2026-11-12T00:59:52.516283057Z",
"health": "healthy",
"volumes": []
},
"mtusi-lab5-postgres-1": {
"service": "postgres",
"started_at": "2026-11-12T00:59:52.920661248Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_pgdata"
]
},
"mtusi-lab5-rabbitmq-1": {
"service": "rabbitmq",
"started_at": "2026-11-12T00:59:53.435646134Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_rabbitmqdata"
]
},
"mtusi-lab5-seaweedfs-1": {
"service": "seaweedfs",
"started_at": "2026-11-12T00:59:53.598244344Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_seaweeddata"
]
},
"mtusi-lab5-valkey-1": {
"service": "valkey",
"started_at": "2026-11-12T00:59:52.145208673Z",
"health": "healthy",
"volumes": [
"mtusi-lab5_valkeydata"
]
},
"mtusi-lab5-worker-1": {
"service": "worker",
"started_at": "2026-11-12T00:59:53.235224376Z",
"health": "healthy",
"volumes": []
}
},
"all_services_restarted": true,
"volumes_preserved": true
}
]
}
@@ -0,0 +1,254 @@
[
{
"concurrency": 1,
"image": "small",
"image_kib": 109,
"uploads": 80,
"accepted": 80,
"resource_limits": {
"memory_bytes": 805306368,
"nano_cpus": 1000000000
},
"attempt_statuses": {
"202": 80
},
"transport_errors": [],
"accepted_in_s": 0.5,
"all_finished": true,
"peak_queue_depth": 67,
"peak_oldest_age_s": 2.7,
"worker_peak_rss_mib": 72.5,
"worker_oom_killed": "false",
"ready": 80,
"failed": 0,
"p50_s": 1.55,
"p95_s": 2.84,
"max_s": 3.0,
"throughput_per_s": 23.84,
"span_s": 3.4
},
{
"concurrency": 1,
"image": "medium",
"image_kib": 1961,
"uploads": 24,
"accepted": 24,
"resource_limits": {
"memory_bytes": 805306368,
"nano_cpus": 1000000000
},
"attempt_statuses": {
"202": 24
},
"transport_errors": [],
"accepted_in_s": 0.5,
"all_finished": true,
"peak_queue_depth": 22,
"peak_oldest_age_s": 5.4,
"worker_peak_rss_mib": 133.2,
"worker_oom_killed": "false",
"ready": 24,
"failed": 0,
"p50_s": 2.83,
"p95_s": 5.21,
"max_s": 5.44,
"throughput_per_s": 4.09,
"span_s": 5.9
},
{
"concurrency": 1,
"image": "large",
"image_kib": 3100,
"uploads": 12,
"accepted": 12,
"resource_limits": {
"memory_bytes": 805306368,
"nano_cpus": 1000000000
},
"attempt_statuses": {
"202": 12
},
"transport_errors": [],
"accepted_in_s": 0.3,
"all_finished": true,
"peak_queue_depth": 11,
"peak_oldest_age_s": 3.3,
"worker_peak_rss_mib": 160.4,
"worker_oom_killed": "false",
"ready": 12,
"failed": 0,
"p50_s": 1.74,
"p95_s": 3.35,
"max_s": 3.35,
"throughput_per_s": 3.38,
"span_s": 3.6
},
{
"concurrency": 2,
"image": "small",
"image_kib": 109,
"uploads": 80,
"accepted": 80,
"resource_limits": {
"memory_bytes": 805306368,
"nano_cpus": 1000000000
},
"attempt_statuses": {
"202": 80
},
"transport_errors": [],
"accepted_in_s": 0.3,
"all_finished": true,
"peak_queue_depth": 56,
"peak_oldest_age_s": 1.1,
"worker_peak_rss_mib": 75.4,
"worker_oom_killed": "false",
"ready": 80,
"failed": 0,
"p50_s": 0.89,
"p95_s": 1.48,
"max_s": 1.55,
"throughput_per_s": 44.13,
"span_s": 1.8
},
{
"concurrency": 2,
"image": "medium",
"image_kib": 1961,
"uploads": 24,
"accepted": 24,
"resource_limits": {
"memory_bytes": 805306368,
"nano_cpus": 1000000000
},
"attempt_statuses": {
"202": 24
},
"transport_errors": [],
"accepted_in_s": 0.5,
"all_finished": true,
"peak_queue_depth": 22,
"peak_oldest_age_s": 4.3,
"worker_peak_rss_mib": 194.9,
"worker_oom_killed": "false",
"ready": 24,
"failed": 0,
"p50_s": 2.43,
"p95_s": 4.78,
"max_s": 4.8,
"throughput_per_s": 4.6,
"span_s": 5.2
},
{
"concurrency": 2,
"image": "large",
"image_kib": 3100,
"uploads": 12,
"accepted": 12,
"resource_limits": {
"memory_bytes": 805306368,
"nano_cpus": 1000000000
},
"attempt_statuses": {
"202": 12
},
"transport_errors": [],
"accepted_in_s": 0.4,
"all_finished": true,
"peak_queue_depth": 12,
"peak_oldest_age_s": 2.7,
"worker_peak_rss_mib": 250.9,
"worker_oom_killed": "false",
"ready": 12,
"failed": 0,
"p50_s": 1.59,
"p95_s": 2.98,
"max_s": 2.98,
"throughput_per_s": 3.84,
"span_s": 3.1
},
{
"concurrency": 4,
"image": "small",
"image_kib": 109,
"uploads": 80,
"accepted": 80,
"resource_limits": {
"memory_bytes": 805306368,
"nano_cpus": 1000000000
},
"attempt_statuses": {
"202": 80
},
"transport_errors": [],
"accepted_in_s": 0.3,
"all_finished": true,
"peak_queue_depth": 50,
"peak_oldest_age_s": 1.1,
"worker_peak_rss_mib": 79.9,
"worker_oom_killed": "false",
"ready": 80,
"failed": 0,
"p50_s": 0.7,
"p95_s": 1.25,
"max_s": 1.29,
"throughput_per_s": 52.3,
"span_s": 1.5
},
{
"concurrency": 4,
"image": "medium",
"image_kib": 1961,
"uploads": 24,
"accepted": 24,
"resource_limits": {
"memory_bytes": 805306368,
"nano_cpus": 1000000000
},
"attempt_statuses": {
"202": 24
},
"transport_errors": [],
"accepted_in_s": 0.5,
"all_finished": true,
"peak_queue_depth": 24,
"peak_oldest_age_s": 4.8,
"worker_peak_rss_mib": 318.9,
"worker_oom_killed": "false",
"ready": 24,
"failed": 0,
"p50_s": 2.59,
"p95_s": 4.82,
"max_s": 4.86,
"throughput_per_s": 4.56,
"span_s": 5.3
},
{
"concurrency": 4,
"image": "large",
"image_kib": 3100,
"uploads": 12,
"accepted": 12,
"resource_limits": {
"memory_bytes": 805306368,
"nano_cpus": 1000000000
},
"attempt_statuses": {
"202": 12
},
"transport_errors": [],
"accepted_in_s": 0.4,
"all_finished": true,
"peak_queue_depth": 12,
"peak_oldest_age_s": 2.8,
"worker_peak_rss_mib": 430.0,
"worker_oom_killed": "false",
"ready": 12,
"failed": 0,
"p50_s": 2.32,
"p95_s": 3.36,
"max_s": 3.36,
"throughput_per_s": 3.39,
"span_s": 3.5
}
]
@@ -0,0 +1,331 @@
{
"date": "2026-11-12 03:49:47",
"args": {
"out": "evidence\\recheck_2026-11-12",
"concurrency": [
1,
2,
4
],
"n_small": 80,
"n_medium": 24,
"n_large": 12,
"limit": 30,
"burst": 200,
"b_medium": false
},
"worker_limits": {
"cpus": 1.0,
"memory": "768m"
},
"image_kib": {
"small": 109,
"medium": 1961,
"large": 3100
},
"matrix": [
{
"concurrency": 1,
"image": "small",
"image_kib": 109,
"uploads": 80,
"accepted": 80,
"resource_limits": {
"memory_bytes": 805306368,
"nano_cpus": 1000000000
},
"attempt_statuses": {
"202": 80
},
"transport_errors": [],
"accepted_in_s": 0.5,
"all_finished": true,
"peak_queue_depth": 67,
"peak_oldest_age_s": 2.7,
"worker_peak_rss_mib": 72.5,
"worker_oom_killed": "false",
"ready": 80,
"failed": 0,
"p50_s": 1.55,
"p95_s": 2.84,
"max_s": 3.0,
"throughput_per_s": 23.84,
"span_s": 3.4
},
{
"concurrency": 1,
"image": "medium",
"image_kib": 1961,
"uploads": 24,
"accepted": 24,
"resource_limits": {
"memory_bytes": 805306368,
"nano_cpus": 1000000000
},
"attempt_statuses": {
"202": 24
},
"transport_errors": [],
"accepted_in_s": 0.5,
"all_finished": true,
"peak_queue_depth": 22,
"peak_oldest_age_s": 5.4,
"worker_peak_rss_mib": 133.2,
"worker_oom_killed": "false",
"ready": 24,
"failed": 0,
"p50_s": 2.83,
"p95_s": 5.21,
"max_s": 5.44,
"throughput_per_s": 4.09,
"span_s": 5.9
},
{
"concurrency": 1,
"image": "large",
"image_kib": 3100,
"uploads": 12,
"accepted": 12,
"resource_limits": {
"memory_bytes": 805306368,
"nano_cpus": 1000000000
},
"attempt_statuses": {
"202": 12
},
"transport_errors": [],
"accepted_in_s": 0.3,
"all_finished": true,
"peak_queue_depth": 11,
"peak_oldest_age_s": 3.3,
"worker_peak_rss_mib": 160.4,
"worker_oom_killed": "false",
"ready": 12,
"failed": 0,
"p50_s": 1.74,
"p95_s": 3.35,
"max_s": 3.35,
"throughput_per_s": 3.38,
"span_s": 3.6
},
{
"concurrency": 2,
"image": "small",
"image_kib": 109,
"uploads": 80,
"accepted": 80,
"resource_limits": {
"memory_bytes": 805306368,
"nano_cpus": 1000000000
},
"attempt_statuses": {
"202": 80
},
"transport_errors": [],
"accepted_in_s": 0.3,
"all_finished": true,
"peak_queue_depth": 56,
"peak_oldest_age_s": 1.1,
"worker_peak_rss_mib": 75.4,
"worker_oom_killed": "false",
"ready": 80,
"failed": 0,
"p50_s": 0.89,
"p95_s": 1.48,
"max_s": 1.55,
"throughput_per_s": 44.13,
"span_s": 1.8
},
{
"concurrency": 2,
"image": "medium",
"image_kib": 1961,
"uploads": 24,
"accepted": 24,
"resource_limits": {
"memory_bytes": 805306368,
"nano_cpus": 1000000000
},
"attempt_statuses": {
"202": 24
},
"transport_errors": [],
"accepted_in_s": 0.5,
"all_finished": true,
"peak_queue_depth": 22,
"peak_oldest_age_s": 4.3,
"worker_peak_rss_mib": 194.9,
"worker_oom_killed": "false",
"ready": 24,
"failed": 0,
"p50_s": 2.43,
"p95_s": 4.78,
"max_s": 4.8,
"throughput_per_s": 4.6,
"span_s": 5.2
},
{
"concurrency": 2,
"image": "large",
"image_kib": 3100,
"uploads": 12,
"accepted": 12,
"resource_limits": {
"memory_bytes": 805306368,
"nano_cpus": 1000000000
},
"attempt_statuses": {
"202": 12
},
"transport_errors": [],
"accepted_in_s": 0.4,
"all_finished": true,
"peak_queue_depth": 12,
"peak_oldest_age_s": 2.7,
"worker_peak_rss_mib": 250.9,
"worker_oom_killed": "false",
"ready": 12,
"failed": 0,
"p50_s": 1.59,
"p95_s": 2.98,
"max_s": 2.98,
"throughput_per_s": 3.84,
"span_s": 3.1
},
{
"concurrency": 4,
"image": "small",
"image_kib": 109,
"uploads": 80,
"accepted": 80,
"resource_limits": {
"memory_bytes": 805306368,
"nano_cpus": 1000000000
},
"attempt_statuses": {
"202": 80
},
"transport_errors": [],
"accepted_in_s": 0.3,
"all_finished": true,
"peak_queue_depth": 50,
"peak_oldest_age_s": 1.1,
"worker_peak_rss_mib": 79.9,
"worker_oom_killed": "false",
"ready": 80,
"failed": 0,
"p50_s": 0.7,
"p95_s": 1.25,
"max_s": 1.29,
"throughput_per_s": 52.3,
"span_s": 1.5
},
{
"concurrency": 4,
"image": "medium",
"image_kib": 1961,
"uploads": 24,
"accepted": 24,
"resource_limits": {
"memory_bytes": 805306368,
"nano_cpus": 1000000000
},
"attempt_statuses": {
"202": 24
},
"transport_errors": [],
"accepted_in_s": 0.5,
"all_finished": true,
"peak_queue_depth": 24,
"peak_oldest_age_s": 4.8,
"worker_peak_rss_mib": 318.9,
"worker_oom_killed": "false",
"ready": 24,
"failed": 0,
"p50_s": 2.59,
"p95_s": 4.82,
"max_s": 4.86,
"throughput_per_s": 4.56,
"span_s": 5.3
},
{
"concurrency": 4,
"image": "large",
"image_kib": 3100,
"uploads": 12,
"accepted": 12,
"resource_limits": {
"memory_bytes": 805306368,
"nano_cpus": 1000000000
},
"attempt_statuses": {
"202": 12
},
"transport_errors": [],
"accepted_in_s": 0.4,
"all_finished": true,
"peak_queue_depth": 12,
"peak_oldest_age_s": 2.8,
"worker_peak_rss_mib": 430.0,
"worker_oom_killed": "false",
"ready": 12,
"failed": 0,
"p50_s": 2.32,
"p95_s": 3.36,
"max_s": 3.36,
"throughput_per_s": 3.39,
"span_s": 3.5
}
],
"backpressure": {
"MAX_QUEUED_JOBS": 30,
"burst": 200,
"attempt_statuses": {
"202": 54,
"503": 146
},
"accepted": 54,
"peak_queue_depth": 48,
"all_accepted_finished": true,
"accepted_in_s": 0.5,
"drained_after_s": 2.7,
"retry_after_header_seen": true,
"retry_after_values": [
"5"
],
"transport_errors": [],
"recovered_new_uploads_accepted": true,
"recovered_new_uploads_ready": true,
"no_accepted_job_lost": true,
"ready": 54,
"failed": 0,
"p95_s": 1.88
},
"backpressure_queue_samples": [
[
0.2,
0,
0.0
],
[
0.7,
48,
0.5
],
[
1.3,
33,
1.0
],
[
1.9,
16,
1.4
],
[
2.4,
1,
1.9
]
]
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

@@ -0,0 +1,23 @@
{
"mode": "dry-run",
"grace_seconds": 0,
"db_rows": 923,
"s3_objects": 4,
"orphan_objects": [],
"orphans_skipped_fresh": 0,
"owned_objects_skipped": 0,
"missing_objects": [],
"size_mismatch": [],
"fixed": {
"deleted_orphans": 0,
"marked_failed": 0
},
"timing_ms": {
"db_query": 6.1,
"s3_listing": 24.7,
"total": 127.3
},
"orphan_objects_count": 0,
"missing_objects_count": 0,
"size_mismatch_count": 0
}
@@ -0,0 +1,26 @@
{
"mode": "dry-run",
"grace_seconds": 0,
"db_rows": 481,
"s3_objects": 4,
"orphan_objects": [
"att/e42b205e-2226-4de0-b4c3-9819acb5a53f/v1/crop",
"att/e42b205e-2226-4de0-b4c3-9819acb5a53f/v1/optimized",
"att/e42b205e-2226-4de0-b4c3-9819acb5a53f/v1/thumbnail"
],
"orphans_skipped_fresh": 0,
"missing_objects": [],
"size_mismatch": [],
"fixed": {
"deleted_orphans": 0,
"marked_failed": 0
},
"timing_ms": {
"db_query": 2.8,
"s3_listing": 32.4,
"total": 117.4
},
"orphan_objects_count": 3,
"missing_objects_count": 0,
"size_mismatch_count": 0
}
@@ -0,0 +1,22 @@
$ python tests/resilience.py --mode persistence --action-script scripts/restart.cmd --base-url http://127.0.0.1:8080
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
exit=0
$ python tests/resilience.py --mode persistence --action-script scripts/restart.cmd --base-url http://127.0.0.1:8080
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
exit=0
$ python tests/resilience.py --mode persistence --action-script scripts/restart.cmd --base-url http://127.0.0.1:8080
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
exit=0
$ docker compose exec -T api python -m app.s3_recovery
PASS: S3 recovery, 3670 existing objects readable
exit=0
$ python tests/smoke.py --base-url http://127.0.0.1:8080
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
exit=0
@@ -0,0 +1,8 @@
{
"reason": "Recovery hook now waits for ranged GET of existing S3 objects after volume registration; API/worker processing code unchanged since matrix.",
"source_sha256": {
"scripts/restart.cmd": "d1de857d3544f900de64a36734950b65d272f1ef4533669df411de9b235193cf",
"scripts/restart.sh": "cd0b99b0e981eb00049dc69b438bb21a844c2a318203660c836fd82d9e324d10",
"src/app/s3_recovery.py": "aaabec7f578fb74f150cd80140efaae04b8f84e38358d61d056ccc930158db18"
}
}
@@ -0,0 +1,63 @@
{
"date": "2026-11-12",
"base_solution_commit": "518c98fd3e6bd593bbb22b5bdd07f82ecff65720",
"branch": "solution/bpi2302-kushnarenko",
"python_client": "3.11.9 (tags/v3.11.9:de54cf5, Apr 2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)]",
"source_sha256": {
"research/requirements.txt": "0a0f9ffaa9b56d590cb38c77f9da8dbc64f2d503b69fc27b0116b9a9594b2591",
"student-tests/README.md": "2bfdbe9f72497f6ddb6d4d1cccccedc0c9d9c044f39596a0286fec0eb975dcc0",
"student-tests/test_dependencies.py": "e152b87441d1374ce9b69d3d441d262e47890313d2ccc798f5e2cff2e3719399",
"student-tests/test_expiry.py": "16a374ebe3df15c50c07a9fc3bc801c6c532dde3c4185b164c6aea4605923f83",
"student-tests/test_reconcile5.py": "7df51d06fc6da180fada10d3d6e1233c9462870ec18f6d55753a36e30dca458b",
"Dockerfile": "f1dc711cacf00e3e2bd6b4a0616c925e357446ebda370e7e5fdb3170eaecd4cb",
"compose.yaml": "1562ea10580ea3c58766b9696cf7b59d631ddec68f2d809a3a79d6f48a63a151",
"infra/README.md": "33a4f7b870fd0b2bed98d46daf26d45dd7436176739672925246f8e3fe7c2278",
"infra/haproxy/haproxy.cfg": "511fb24b32740c332cd7b6ea42d3f1cf252e1452de754ff97c8e6886f3692061",
"requirements.txt": "9add304ba15ae74bf5d3658496b8241121f82ab748a1bd163c2763fa1cd57e65",
"research/failover_sequence.py": "c23a0472f54538fd9d7607c017bef4f127269850ca7bf09adc57862fe2b7665b",
"research/loadgen.py": "7e06f5a04a1ec1b187a2fd3af82b0748ed042e1e9d63e350ab2007d21826fe1c",
"research/queue_overload.py": "b0b37aea9fd0c9b00652555724084caa2b9629e9f3e9635fc52203ca3170a6f5",
"research/rolling_update.py": "447da4a9e2161bb232669f0558d6cb15ae3f0ef181fdf563e19cd56135b58240",
"scripts/check_contract.py": "61e300fe5c1074360418e24b4653b12f96808247a2beaf2a64859aa360f81493",
"scripts/init-secrets.sh": "9cbe6b6058769a820b84f61b2076028d97d487ce04fe98e42d38dddf45c97fd8",
"scripts/restart.cmd": "b6bc654fae1b4fcf8b4765ce5ec8082d8b645e8e4cf15bfdf6904b26d860b866",
"scripts/restart.example.sh": "0328246ba75defbced992104e986fde973f63e3830d83251eced5953263e944b",
"scripts/restart.sh": "a00e3d82bc97e34deaa9fa8e7ed24f4386057502cdff7aa750680b96a82e18a7",
"scripts/restore-replicas.sh": "88ba99a10808f211a72b111ce240f7fa7df8dbf796f4c2d81d05b1a95008b46d",
"scripts/rolling-update.sh": "cdeaff25aaf0ae3fc030bf1d8fe8ae6300ac51741b780bfe080ce6bbac959632",
"scripts/stop-one.cmd": "0e6d46bc7abc2f81403422f985ee9d0d2ad02e0cfd9db2db0fccc873020d8997",
"scripts/stop-one.example.sh": "1bcf34394520b89d95b7605ec56675be799eea920e83cfbba306d5dc0a6d9811",
"scripts/stop-one.sh": "c74672836f70c24b44afa2d531f9287e51fb87690e1d0ca5c9e4ed0abaa0b48e",
"scripts/validate_openapi.py": "cd7a33221b1860c5d2330e52afa6cb222d375db671ae9ab379ba51a0d3a77946",
"src/app/attachments.py": "b7ac49012e3e504e069a9a1f7de61b0a73bbf121359c897111cda719a00d60f5",
"src/app/broker.py": "b68f297acd17bbd4d63b140cef06b89f73048da6d35fc6027717d54c5cf3733b",
"src/app/config.py": "854a09110b8f8ce5ca634461a4a402ef37c9a2e9c32169ba388f832066e03b6f",
"src/app/db.py": "7510882b0e8c9f6a24d680a156c285bc1a0fcf021473ca47173aa0744d845a78",
"src/app/images.py": "3dc7434cbfbc9d4c01b95eb897c1332b2a2748dd9df88c99a7086f3e4cdf4c41",
"src/app/main.py": "89745c1b21b87626626d82a1f5a8561441595d476eb90a49ac0d1dc7f11a4a90",
"src/app/migrate.py": "cabc192ca4182af780636415a008d2dd4636dad7d3cf0f4a8a2b52a48aedaa7e",
"src/app/outbox.py": "2326c21e4eb910a10bd2e4613e88b211bea1125b3f452aecc1b5ec7b4e6e0bc8",
"src/app/passwords.py": "836fc282093058f6717eaa6374775251ed655dcd517f325dc60323a88154f261",
"src/app/pipeline.py": "222ac87f275e4607ecdc98cdc5f68d8957fd7f68603af2d2643f3026445a3fe1",
"src/app/reconcile.py": "c7dd35bf40e672ffe15f0e878913e17f6c6d9de3f69922b4edb38d1802330dc4",
"src/app/replay.py": "2669b9e5fa2f6fb83dbe457f0241db166eb3e370e21d81c3e32f922060f52fa5",
"src/app/s3.py": "091ddac8facd4c61f223111b3aaab48efff7d6ef9a30af4ac86d4352024f0727",
"src/app/s3_bootstrap.py": "216d8121d6e7b25d95b845f4deaff18fd31eeb28484e51fe4c463c646a3af0d1",
"src/app/serve.py": "3ebe12cf8cb2dddfc7d7234bba9bd190d868cc88d02e61fe640ba51dcf115b55",
"src/app/sessions.py": "f975eb27c50c024f3e562f755ee97bb7bfe21cf5e01cc1d347bf107971c30670",
"src/app/web.py": "23271be669a19bd7abfd6eaae25e25ce214718f0f623406cb9a2f6e77e365b83",
"src/app/worker.py": "065a7e7e1c67d961452527122f5cc53c18873f0d83a8335aad2278374197a1cb",
"student-tests/fixtures/alpha.png": "1f9d6ee26fa7beb4ba179c7c38ae97f5f31e95ad9d4108267352225e6705882f",
"student-tests/fixtures/exif_rot6.jpg": "62386265960512fd51279e40723331c6c52f81ba2325d82afc3fb14f3b332ddc",
"student-tests/fixtures/poison.png": "2be4bea6355e83da4733b1d7f59dc985dfe22cf5d8283eea9b20871d1f43c252",
"student-tests/fixtures/sample.jpg": "33a614b40fe6ae25fdbd99af22e7d9d3e5dbea455b36aac750de112c034a6311",
"student-tests/fixtures/sample.png": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75",
"student-tests/fixtures/small.png": "001e6b4538ce86cbb0c88a34a2b88c111336b8dc8825af81e0f7d9630b731e32",
"student-tests/test_api.py": "2635113842a5b26ec1fdd98ea42fc861edb1d10895e8be6c2eff46ed73fdba9d",
"student-tests/test_attachments.py": "519bc20867996e03e79121ec461c94a9123faa1d11b2faedbdcf62e556fc0a05",
"student-tests/test_idempotency.py": "4ee985a3ef26fefa816fdb136fa2b0644cca13d73fe3a226d1ba975a55698b5b",
"student-tests/test_pipeline.py": "a322c1c72c5beeef2bb4f0436d36d2a9a005872054c48649c85be23289b84796",
"student-tests/test_resilience5.py": "68f3f297f1068d598cedd9aa1373f63e5d135f3599e0d8bf134ea047e7def30a",
"student-tests/test_topology.py": "58050c5b330d0b290959b95fbd541b25cd966453399fbbbb627c8df906d7ffb6"
}
}