forked from mtusi2026/mtusi2026lab4
fix(lab4): preserve error contract and verify storage consistency
This commit is contained in:
@@ -0,0 +1,167 @@
|
||||
$ 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: lab4 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.711s
|
||||
|
||||
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.920s
|
||||
|
||||
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 4.285s
|
||||
|
||||
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.649s
|
||||
|
||||
OK
|
||||
exit=0
|
||||
|
||||
$ python -m unittest discover -s student-tests -p test_s3_failures.py -v
|
||||
test_db_failure_after_s3_write_is_compensated (test_s3_failures.S3FailureTest.test_db_failure_after_s3_write_is_compensated) ... ok
|
||||
test_missing_object_is_reported_and_attachment_marked_failed (test_s3_failures.S3FailureTest.test_missing_object_is_reported_and_attachment_marked_failed) ... ok
|
||||
test_orphan_left_by_failed_compensation_is_found_and_cleaned_safely (test_s3_failures.S3FailureTest.test_orphan_left_by_failed_compensation_is_found_and_cleaned_safely) ... ok
|
||||
test_s3_down_gives_503_text_path_keeps_working (test_s3_failures.S3FailureTest.test_s3_down_gives_503_text_path_keeps_working) ... ok
|
||||
|
||||
----------------------------------------------------------------------
|
||||
Ran 4 tests in 189.512s
|
||||
|
||||
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": 105, "failed_attempts": 0, "first_recovery_seconds": 2.329}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
exit=0
|
||||
|
||||
$ docker compose --env-file .env start api
|
||||
Container mtusi-lab4-postgres-1 Waiting
|
||||
Container mtusi-lab4-seaweedfs-1 Waiting
|
||||
Container mtusi-lab4-seaweedfs-1 Healthy
|
||||
Container mtusi-lab4-s3-init-1 Starting
|
||||
Container mtusi-lab4-postgres-1 Healthy
|
||||
Container mtusi-lab4-migrate-1 Starting
|
||||
Container mtusi-lab4-migrate-1 Started
|
||||
Container mtusi-lab4-s3-init-1 Started
|
||||
Container mtusi-lab4-s3-init-1 Waiting
|
||||
Container mtusi-lab4-valkey-1 Waiting
|
||||
Container mtusi-lab4-migrate-1 Waiting
|
||||
Container mtusi-lab4-valkey-1 Healthy
|
||||
Container mtusi-lab4-migrate-1 Exited
|
||||
Container mtusi-lab4-s3-init-1 Exited
|
||||
Container mtusi-lab4-api-5 Starting
|
||||
Container mtusi-lab4-api-5 Started
|
||||
exit=0
|
||||
|
||||
$ python student-tests/test_expiry.py
|
||||
..
|
||||
----------------------------------------------------------------------
|
||||
Ran 2 tests in 19.361s
|
||||
|
||||
OK
|
||||
exit=0
|
||||
|
||||
$ python student-tests/test_dependencies.py
|
||||
..
|
||||
----------------------------------------------------------------------
|
||||
Ran 2 tests in 19.594s
|
||||
|
||||
OK
|
||||
exit=0
|
||||
|
||||
$ docker compose --env-file .env run --rm -T s3-init
|
||||
Container mtusi-lab4-seaweedfs-1 Running
|
||||
Container mtusi-lab4-seaweedfs-1 Waiting
|
||||
Container mtusi-lab4-seaweedfs-1 Healthy
|
||||
Container mtusi-lab4-s3-init-run-da275e60a199 Creating
|
||||
Container mtusi-lab4-s3-init-run-da275e60a199 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-lab4-seaweedfs-1 Running
|
||||
Container mtusi-lab4-seaweedfs-1 Waiting
|
||||
Container mtusi-lab4-seaweedfs-1 Healthy
|
||||
Container mtusi-lab4-s3-init-run-cc1f19e0054b Creating
|
||||
Container mtusi-lab4-s3-init-run-cc1f19e0054b 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: lab4 public API scenario; infrastructure and grading evidence remain separate.
|
||||
exit=0
|
||||
@@ -0,0 +1,159 @@
|
||||
$ 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: lab4 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.524s
|
||||
|
||||
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.769s
|
||||
|
||||
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 4.352s
|
||||
|
||||
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.580s
|
||||
|
||||
OK
|
||||
exit=0
|
||||
|
||||
$ python -m unittest discover -s student-tests -p test_s3_failures.py -v
|
||||
test_db_failure_after_s3_write_is_compensated (test_s3_failures.S3FailureTest.test_db_failure_after_s3_write_is_compensated) ... ok
|
||||
test_missing_object_is_reported_and_attachment_marked_failed (test_s3_failures.S3FailureTest.test_missing_object_is_reported_and_attachment_marked_failed) ... ok
|
||||
test_orphan_left_by_failed_compensation_is_found_and_cleaned_safely (test_s3_failures.S3FailureTest.test_orphan_left_by_failed_compensation_is_found_and_cleaned_safely) ... ok
|
||||
test_s3_down_gives_503_text_path_keeps_working (test_s3_failures.S3FailureTest.test_s3_down_gives_503_text_path_keeps_working) ... ok
|
||||
|
||||
----------------------------------------------------------------------
|
||||
Ran 4 tests in 193.833s
|
||||
|
||||
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": 115, "failed_attempts": 0, "first_recovery_seconds": 2.328}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
exit=0
|
||||
|
||||
$ docker compose --env-file .env start api
|
||||
Container mtusi-lab4-postgres-1 Waiting
|
||||
Container mtusi-lab4-seaweedfs-1 Waiting
|
||||
Container mtusi-lab4-seaweedfs-1 Healthy
|
||||
Container mtusi-lab4-postgres-1 Healthy
|
||||
Container mtusi-lab4-s3-init-1 Starting
|
||||
Container mtusi-lab4-migrate-1 Starting
|
||||
Container mtusi-lab4-migrate-1 Started
|
||||
Container mtusi-lab4-s3-init-1 Started
|
||||
Container mtusi-lab4-s3-init-1 Waiting
|
||||
Container mtusi-lab4-valkey-1 Waiting
|
||||
Container mtusi-lab4-migrate-1 Waiting
|
||||
Container mtusi-lab4-valkey-1 Healthy
|
||||
Container mtusi-lab4-migrate-1 Exited
|
||||
Container mtusi-lab4-s3-init-1 Exited
|
||||
Container mtusi-lab4-api-4 Starting
|
||||
Container mtusi-lab4-api-4 Started
|
||||
exit=0
|
||||
|
||||
$ python student-tests/test_expiry.py
|
||||
..
|
||||
----------------------------------------------------------------------
|
||||
Ran 2 tests in 23.614s
|
||||
|
||||
OK
|
||||
exit=0
|
||||
|
||||
$ python student-tests/test_dependencies.py
|
||||
E.
|
||||
======================================================================
|
||||
ERROR: test_postgres_down_gives_bounded_503_never_anonymous_access (__main__.DependencyTest.test_postgres_down_gives_bounded_503_never_anonymous_access)
|
||||
----------------------------------------------------------------------
|
||||
Traceback (most recent call last):
|
||||
File "C:\Users\kolya5544\source\repos\vmdMTUCI\mtusi2026lab4\student-tests\test_dependencies.py", line 64, in test_postgres_down_gives_bounded_503_never_anonymous_access
|
||||
r = call(method, path, body, token)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\kolya5544\source\repos\vmdMTUCI\mtusi2026lab4\student-tests\test_api.py", line 38, in call
|
||||
return status, hdrs, (json.loads(payload) if payload else None)
|
||||
^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\kolya5544\AppData\Local\Programs\Python\Python311\Lib\json\__init__.py", line 346, in loads
|
||||
return _default_decoder.decode(s)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\kolya5544\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 337, in decode
|
||||
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\kolya5544\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 355, in raw_decode
|
||||
raise JSONDecodeError("Expecting value", s, err.value) from None
|
||||
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
|
||||
|
||||
----------------------------------------------------------------------
|
||||
Ran 2 tests in 9.323s
|
||||
|
||||
FAILED (errors=1)
|
||||
exit=1
|
||||
@@ -0,0 +1,116 @@
|
||||
$ python -u research/upload_memory.py --out evidence\recheck_2026-11-11
|
||||
размер файла: 8.7 MiB, sha256 9fcc26eea979
|
||||
{"UPLOAD_CONCURRENCY": 1, "statuses": {"201": 12}, "wall_seconds": 1.31, "peak_rss_mib": 99.2, "resource_limits": {"memory_bytes": 268435456, "nano_cpus": 1000000000}, "rss_before_mib": 93.3, "rss_after_mib": 99.2, "oom_killed": "false", "accepted_files_intact": "12/12", "p50_s": 0.83, "max_s": 1.3}
|
||||
{"UPLOAD_CONCURRENCY": 4, "statuses": {"201": 12}, "wall_seconds": 1.18, "peak_rss_mib": 119.0, "resource_limits": {"memory_bytes": 268435456, "nano_cpus": 1000000000}, "rss_before_mib": 93.5, "rss_after_mib": 119.0, "oom_killed": "false", "accepted_files_intact": "12/12", "p50_s": 0.87, "max_s": 1.17}
|
||||
{"UPLOAD_CONCURRENCY": 12, "statuses": {"201": 12}, "wall_seconds": 1.14, "peak_rss_mib": 121.2, "resource_limits": {"memory_bytes": 268435456, "nano_cpus": 1000000000}, "rss_before_mib": 93.4, "rss_after_mib": 121.2, "oom_killed": "false", "accepted_files_intact": "12/12", "p50_s": 0.94, "max_s": 1.13}
|
||||
exit=0
|
||||
|
||||
# Reconciliation rerun after disabling stale HTTP keep-alive reuse; memory results above retained.
|
||||
$ python -u research/reconcile_bench.py --out evidence\recheck_2026-11-11 --total 3000
|
||||
{"db_rows": 19554, "s3_objects": 19530, "timing_ms": {"db_query": 20.2, "s3_listing": 3540.6, "total": 3649.4}, "upload_batch_seconds": 2.3}
|
||||
{"db_rows": 20554, "s3_objects": 20530, "timing_ms": {"db_query": 19.0, "s3_listing": 3697.2, "total": 3806.4}, "upload_batch_seconds": 2.2}
|
||||
{"db_rows": 21554, "s3_objects": 21530, "timing_ms": {"db_query": 21.2, "s3_listing": 3939.1, "total": 4055.0}, "upload_batch_seconds": 2.1}
|
||||
{
|
||||
"date": "2026-11-11 18:21:28",
|
||||
"cost_of_scan": [
|
||||
{
|
||||
"db_rows": 19554,
|
||||
"s3_objects": 19530,
|
||||
"timing_ms": {
|
||||
"db_query": 20.2,
|
||||
"s3_listing": 3540.6,
|
||||
"total": 3649.4
|
||||
},
|
||||
"upload_batch_seconds": 2.3
|
||||
},
|
||||
{
|
||||
"db_rows": 20554,
|
||||
"s3_objects": 20530,
|
||||
"timing_ms": {
|
||||
"db_query": 19.0,
|
||||
"s3_listing": 3697.2,
|
||||
"total": 3806.4
|
||||
},
|
||||
"upload_batch_seconds": 2.2
|
||||
},
|
||||
{
|
||||
"db_rows": 21554,
|
||||
"s3_objects": 21530,
|
||||
"timing_ms": {
|
||||
"db_query": 21.2,
|
||||
"s3_listing": 3939.1,
|
||||
"total": 4055.0
|
||||
},
|
||||
"upload_batch_seconds": 2.1
|
||||
}
|
||||
],
|
||||
"injected": {
|
||||
"orphan_objects": 20,
|
||||
"missing_objects": 20,
|
||||
"size_mismatch": 5
|
||||
},
|
||||
"dry_run": {
|
||||
"orphan_objects_count": 20,
|
||||
"missing_objects_count": 20,
|
||||
"size_mismatch_count": 5,
|
||||
"orphans_skipped_fresh": 0,
|
||||
"timing_ms": {
|
||||
"db_query": 18.7,
|
||||
"s3_listing": 3652.1,
|
||||
"total": 3761.7
|
||||
},
|
||||
"fixed": {
|
||||
"deleted_orphans": 0,
|
||||
"marked_failed": 0
|
||||
}
|
||||
},
|
||||
"dry_run_repeatable": true,
|
||||
"dry_run_found_exactly_injected": true,
|
||||
"apply": {
|
||||
"fixed": {
|
||||
"deleted_orphans": 20,
|
||||
"marked_failed": 25
|
||||
},
|
||||
"orphans_skipped_fresh": 0,
|
||||
"timing_ms": {
|
||||
"db_query": 19.1,
|
||||
"s3_listing": 3859.1,
|
||||
"total": 4048.6
|
||||
},
|
||||
"orphan_objects_count": 20,
|
||||
"missing_objects_count": 20,
|
||||
"size_mismatch_count": 5
|
||||
},
|
||||
"fresh_uploads_during_apply": {
|
||||
"uploaded": 200,
|
||||
"intact": 200
|
||||
},
|
||||
"in_use_attachments_intact": "200/200",
|
||||
"message_bindings": {
|
||||
"messages": 20,
|
||||
"attachments": 200,
|
||||
"unchanged": true
|
||||
},
|
||||
"second_apply_idempotent": {
|
||||
"fixed": {
|
||||
"deleted_orphans": 0,
|
||||
"marked_failed": 0
|
||||
},
|
||||
"orphan_objects_count": 0,
|
||||
"missing_objects_count": 0
|
||||
},
|
||||
"marked_failed": [
|
||||
"object_missing=20",
|
||||
"size_mismatch=5"
|
||||
]
|
||||
}
|
||||
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/smoke.py --base-url http://127.0.0.1:8080
|
||||
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
|
||||
exit=0
|
||||
@@ -0,0 +1,42 @@
|
||||
$ python -u research/upload_memory.py --out evidence\recheck_2026-11-11
|
||||
размер файла: 8.7 MiB, sha256 9fcc26eea979
|
||||
{"UPLOAD_CONCURRENCY": 1, "statuses": {"201": 12}, "wall_seconds": 1.31, "peak_rss_mib": 99.2, "resource_limits": {"memory_bytes": 268435456, "nano_cpus": 1000000000}, "rss_before_mib": 93.3, "rss_after_mib": 99.2, "oom_killed": "false", "accepted_files_intact": "12/12", "p50_s": 0.83, "max_s": 1.3}
|
||||
{"UPLOAD_CONCURRENCY": 4, "statuses": {"201": 12}, "wall_seconds": 1.18, "peak_rss_mib": 119.0, "resource_limits": {"memory_bytes": 268435456, "nano_cpus": 1000000000}, "rss_before_mib": 93.5, "rss_after_mib": 119.0, "oom_killed": "false", "accepted_files_intact": "12/12", "p50_s": 0.87, "max_s": 1.17}
|
||||
{"UPLOAD_CONCURRENCY": 12, "statuses": {"201": 12}, "wall_seconds": 1.14, "peak_rss_mib": 121.2, "resource_limits": {"memory_bytes": 268435456, "nano_cpus": 1000000000}, "rss_before_mib": 93.4, "rss_after_mib": 121.2, "oom_killed": "false", "accepted_files_intact": "12/12", "p50_s": 0.94, "max_s": 1.13}
|
||||
exit=0
|
||||
|
||||
$ python -u research/reconcile_bench.py --out evidence\recheck_2026-11-11 --total 3000
|
||||
{"db_rows": 16554, "s3_objects": 16530, "timing_ms": {"db_query": 17.7, "s3_listing": 2891.3, "total": 2998.3}, "upload_batch_seconds": 2.6}
|
||||
{"db_rows": 17554, "s3_objects": 17530, "timing_ms": {"db_query": 18.4, "s3_listing": 3280.3, "total": 3383.1}, "upload_batch_seconds": 2.2}
|
||||
{"db_rows": 18554, "s3_objects": 18530, "timing_ms": {"db_query": 16.8, "s3_listing": 3647.2, "total": 3754.3}, "upload_batch_seconds": 2.0}
|
||||
Traceback (most recent call last):
|
||||
File "C:\Users\kolya5544\source\repos\vmdMTUCI\mtusi2026lab4\research\reconcile_bench.py", line 204, in <module>
|
||||
asyncio.run(main(ap.parse_args()))
|
||||
File "C:\Users\kolya5544\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run
|
||||
return runner.run(main)
|
||||
^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\kolya5544\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run
|
||||
return self._loop.run_until_complete(task)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\kolya5544\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 654, in run_until_complete
|
||||
return future.result()
|
||||
^^^^^^^^^^^^^^^
|
||||
File "C:\Users\kolya5544\source\repos\vmdMTUCI\mtusi2026lab4\research\reconcile_bench.py", line 150, in main
|
||||
await bind_to_messages(s, token, chat, used_ids)
|
||||
File "C:\Users\kolya5544\source\repos\vmdMTUCI\mtusi2026lab4\research\reconcile_bench.py", line 114, in bind_to_messages
|
||||
async with s.post("%s/api/v1/chats/%s/messages" % (BASE, chat),
|
||||
File "C:\Users\kolya5544\source\repos\vmdMTUCI\tools\.venv\Lib\site-packages\aiohttp\client.py", line 1693, in __aenter__
|
||||
self._resp: _RetType_co = await self._coro
|
||||
^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\kolya5544\source\repos\vmdMTUCI\tools\.venv\Lib\site-packages\aiohttp\client.py", line 858, in _request
|
||||
resp = await handler(req)
|
||||
^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\kolya5544\source\repos\vmdMTUCI\tools\.venv\Lib\site-packages\aiohttp\client.py", line 836, in _connect_and_send_request
|
||||
await resp.start(conn)
|
||||
File "C:\Users\kolya5544\source\repos\vmdMTUCI\tools\.venv\Lib\site-packages\aiohttp\client_reqrep.py", line 558, in start
|
||||
message, payload = await protocol.read() # type: ignore[union-attr]
|
||||
^^^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\kolya5544\source\repos\vmdMTUCI\tools\.venv\Lib\site-packages\aiohttp\streams.py", line 705, in read
|
||||
await self._waiter
|
||||
aiohttp.client_exceptions.ServerDisconnectedError: Server disconnected
|
||||
exit=1
|
||||
@@ -0,0 +1,116 @@
|
||||
{
|
||||
"before": {
|
||||
"mtusi-lab4-api-4": {
|
||||
"service": "api",
|
||||
"started_at": "2026-11-11T15:19:40.270198114Z",
|
||||
"health": "healthy",
|
||||
"volumes": [],
|
||||
"memory_bytes": 268435456,
|
||||
"nano_cpus": 1000000000
|
||||
},
|
||||
"mtusi-lab4-api-5": {
|
||||
"service": "api",
|
||||
"started_at": "2026-11-11T15:19:40.450834393Z",
|
||||
"health": "healthy",
|
||||
"volumes": [],
|
||||
"memory_bytes": 268435456,
|
||||
"nano_cpus": 1000000000
|
||||
},
|
||||
"mtusi-lab4-lb-1": {
|
||||
"service": "lb",
|
||||
"started_at": "2026-11-11T15:17:05.882305757Z",
|
||||
"health": "healthy",
|
||||
"volumes": [],
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 1000000000
|
||||
},
|
||||
"mtusi-lab4-postgres-1": {
|
||||
"service": "postgres",
|
||||
"started_at": "2026-11-11T15:18:29.832733162Z",
|
||||
"health": "healthy",
|
||||
"volumes": [
|
||||
"mtusi-lab4_pgdata"
|
||||
],
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000
|
||||
},
|
||||
"mtusi-lab4-seaweedfs-1": {
|
||||
"service": "seaweedfs",
|
||||
"started_at": "2026-11-11T15:17:06.948359559Z",
|
||||
"health": "healthy",
|
||||
"volumes": [
|
||||
"mtusi-lab4_seaweeddata"
|
||||
],
|
||||
"memory_bytes": 805306368,
|
||||
"nano_cpus": 1000000000
|
||||
},
|
||||
"mtusi-lab4-valkey-1": {
|
||||
"service": "valkey",
|
||||
"started_at": "2026-11-11T15:18:32.43836843Z",
|
||||
"health": "healthy",
|
||||
"volumes": [
|
||||
"mtusi-lab4_valkeydata"
|
||||
],
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 500000000
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"mtusi-lab4-api-4": {
|
||||
"service": "api",
|
||||
"started_at": "2026-11-11T15:22:57.324421301Z",
|
||||
"health": "healthy",
|
||||
"volumes": [],
|
||||
"memory_bytes": 268435456,
|
||||
"nano_cpus": 1000000000
|
||||
},
|
||||
"mtusi-lab4-api-5": {
|
||||
"service": "api",
|
||||
"started_at": "2026-11-11T15:22:57.482181899Z",
|
||||
"health": "healthy",
|
||||
"volumes": [],
|
||||
"memory_bytes": 268435456,
|
||||
"nano_cpus": 1000000000
|
||||
},
|
||||
"mtusi-lab4-lb-1": {
|
||||
"service": "lb",
|
||||
"started_at": "2026-11-11T15:22:53.438585878Z",
|
||||
"health": "healthy",
|
||||
"volumes": [],
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 1000000000
|
||||
},
|
||||
"mtusi-lab4-postgres-1": {
|
||||
"service": "postgres",
|
||||
"started_at": "2026-11-11T15:22:53.862285534Z",
|
||||
"health": "healthy",
|
||||
"volumes": [
|
||||
"mtusi-lab4_pgdata"
|
||||
],
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000
|
||||
},
|
||||
"mtusi-lab4-seaweedfs-1": {
|
||||
"service": "seaweedfs",
|
||||
"started_at": "2026-11-11T15:22:54.073709276Z",
|
||||
"health": "healthy",
|
||||
"volumes": [
|
||||
"mtusi-lab4_seaweeddata"
|
||||
],
|
||||
"memory_bytes": 805306368,
|
||||
"nano_cpus": 1000000000
|
||||
},
|
||||
"mtusi-lab4-valkey-1": {
|
||||
"service": "valkey",
|
||||
"started_at": "2026-11-11T15:22:53.5998755Z",
|
||||
"health": "healthy",
|
||||
"volumes": [
|
||||
"mtusi-lab4_valkeydata"
|
||||
],
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 500000000
|
||||
}
|
||||
},
|
||||
"all_services_restarted": true,
|
||||
"volumes_preserved": true
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"date": "2026-11-11",
|
||||
"base_solution_commit": "f875e2977f6592e1af6228dfe2138a769c327b08",
|
||||
"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": {
|
||||
"Dockerfile": "f1dc711cacf00e3e2bd6b4a0616c925e357446ebda370e7e5fdb3170eaecd4cb",
|
||||
"compose.yaml": "e7f52308ad5f0f55bf1d61b83275bad2fb80be9f97b695cdd659d0d878cdd6a5",
|
||||
"infra/README.md": "33a4f7b870fd0b2bed98d46daf26d45dd7436176739672925246f8e3fe7c2278",
|
||||
"infra/haproxy/haproxy.cfg": "511fb24b32740c332cd7b6ea42d3f1cf252e1452de754ff97c8e6886f3692061",
|
||||
"requirements.txt": "709710dfd92af5f023ef9909488e9a14a7cacb62c67d67fff261d34ae4b779a0",
|
||||
"research/failover_sequence.py": "5cf120dfc9c79756a7bc913c900702ee597cc89ed4d7e21471a784a75b752ca4",
|
||||
"research/loadgen.py": "ec758237e5c57efe405fddac13ed80aab2ea31ff400761a951f89a31d7769b8b",
|
||||
"research/reconcile_bench.py": "6a6814f925b9e36621f6f7237473ad6b085b94e2717c2be79313cef7c8906a5a",
|
||||
"research/rolling_update.py": "447da4a9e2161bb232669f0558d6cb15ae3f0ef181fdf563e19cd56135b58240",
|
||||
"research/upload_memory.py": "07784bde3bf9cd15f586025adf6a37a2c3413ee756e099034c23cc789fbe7df1",
|
||||
"scripts/check_contract.py": "61e300fe5c1074360418e24b4653b12f96808247a2beaf2a64859aa360f81493",
|
||||
"scripts/init-secrets.sh": "7df8c218002a46ccb545d96051a6b958cf8b4dee14d94299a85984576b483f5b",
|
||||
"scripts/restart.cmd": "78e2689f97b3d0aafa72a0352a4a8cce2f41d78684c34042711e0af38e7cad19",
|
||||
"scripts/restart.example.sh": "0328246ba75defbced992104e986fde973f63e3830d83251eced5953263e944b",
|
||||
"scripts/restart.sh": "c57ad938ecaca510120296e9406918e6ef9ed24eb1b6dff16cf1b4d95c787e41",
|
||||
"scripts/restore-replicas.sh": "f55116712bb7f511bfc756507c3574a411256a41ea7ee6ba473c610ea5d1184b",
|
||||
"scripts/rolling-update.sh": "465791a134b48738a3e8d59819762159cc173d9332c6de9e2afcb583a4674559",
|
||||
"scripts/stop-one.cmd": "1955b8b0c879ea50d8efeb7fb43e8497356bb45482a91f90bd81a9c3fececdbf",
|
||||
"scripts/stop-one.example.sh": "1bcf34394520b89d95b7605ec56675be799eea920e83cfbba306d5dc0a6d9811",
|
||||
"scripts/stop-one.sh": "897cd2b56e6481cca7ac82378a0c071791f1e0e395d6a2e8d2a9f8e8faf50b38",
|
||||
"scripts/validate_openapi.py": "cd7a33221b1860c5d2330e52afa6cb222d375db671ae9ab379ba51a0d3a77946",
|
||||
"src/app/attachments.py": "430cf9672744a2192a72e9a9b64ab968510acb660590fd818b5f6dc6c3128ee0",
|
||||
"src/app/config.py": "2d0eb339e9b9caf9c69c1b497ba233758f9567c79e2edf76eb5facda3314fd38",
|
||||
"src/app/db.py": "7510882b0e8c9f6a24d680a156c285bc1a0fcf021473ca47173aa0744d845a78",
|
||||
"src/app/images.py": "3dc7434cbfbc9d4c01b95eb897c1332b2a2748dd9df88c99a7086f3e4cdf4c41",
|
||||
"src/app/main.py": "355aec75a78eaa7a8696684b251221a16c0828533fe1dbcfb30ab8cd04ca9b5c",
|
||||
"src/app/migrate.py": "cabc192ca4182af780636415a008d2dd4636dad7d3cf0f4a8a2b52a48aedaa7e",
|
||||
"src/app/passwords.py": "836fc282093058f6717eaa6374775251ed655dcd517f325dc60323a88154f261",
|
||||
"src/app/reconcile.py": "dd795a9d53a32bf2c107d2c053c170f7c4c7731b99aff57747af1edf49883a51",
|
||||
"src/app/s3.py": "d31dec589dd96607b3fa7fb5fa6013e3882638eb536a737dc766013209ce6247",
|
||||
"src/app/s3_bootstrap.py": "216d8121d6e7b25d95b845f4deaff18fd31eeb28484e51fe4c463c646a3af0d1",
|
||||
"src/app/serve.py": "3ebe12cf8cb2dddfc7d7234bba9bd190d868cc88d02e61fe640ba51dcf115b55",
|
||||
"src/app/sessions.py": "f975eb27c50c024f3e562f755ee97bb7bfe21cf5e01cc1d347bf107971c30670",
|
||||
"src/app/web.py": "23271be669a19bd7abfd6eaae25e25ce214718f0f623406cb9a2f6e77e365b83",
|
||||
"student-tests/fixtures/sample.jpg": "33a614b40fe6ae25fdbd99af22e7d9d3e5dbea455b36aac750de112c034a6311",
|
||||
"student-tests/fixtures/sample.png": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75",
|
||||
"student-tests/test_api.py": "2635113842a5b26ec1fdd98ea42fc861edb1d10895e8be6c2eff46ed73fdba9d",
|
||||
"student-tests/test_attachments.py": "90128b76736336bb3c37746549c951cbd853b93084b1d1c9605fffb3b77ffbbb",
|
||||
"student-tests/test_dependencies.py": "e152b87441d1374ce9b69d3d441d262e47890313d2ccc798f5e2cff2e3719399",
|
||||
"student-tests/test_expiry.py": "16a374ebe3df15c50c07a9fc3bc801c6c532dde3c4185b164c6aea4605923f83",
|
||||
"student-tests/test_idempotency.py": "4ee985a3ef26fefa816fdb136fa2b0644cca13d73fe3a226d1ba975a55698b5b",
|
||||
"student-tests/test_s3_failures.py": "81f8b7acbde19700c87e8d65af1803c071e9b0549d10788ae1f53729a64be175",
|
||||
"student-tests/test_topology.py": "576ff231fad871fa05cf6f14c6544c32389961f204b9dec8d2ecf250da15e157"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
{
|
||||
"date": "2026-11-11 18:21:28",
|
||||
"cost_of_scan": [
|
||||
{
|
||||
"db_rows": 19554,
|
||||
"s3_objects": 19530,
|
||||
"timing_ms": {
|
||||
"db_query": 20.2,
|
||||
"s3_listing": 3540.6,
|
||||
"total": 3649.4
|
||||
},
|
||||
"upload_batch_seconds": 2.3
|
||||
},
|
||||
{
|
||||
"db_rows": 20554,
|
||||
"s3_objects": 20530,
|
||||
"timing_ms": {
|
||||
"db_query": 19.0,
|
||||
"s3_listing": 3697.2,
|
||||
"total": 3806.4
|
||||
},
|
||||
"upload_batch_seconds": 2.2
|
||||
},
|
||||
{
|
||||
"db_rows": 21554,
|
||||
"s3_objects": 21530,
|
||||
"timing_ms": {
|
||||
"db_query": 21.2,
|
||||
"s3_listing": 3939.1,
|
||||
"total": 4055.0
|
||||
},
|
||||
"upload_batch_seconds": 2.1
|
||||
}
|
||||
],
|
||||
"args": {
|
||||
"out": "evidence\\recheck_2026-11-11",
|
||||
"total": 3000
|
||||
},
|
||||
"injected": {
|
||||
"orphan_objects": 20,
|
||||
"missing_objects": 20,
|
||||
"size_mismatch": 5
|
||||
},
|
||||
"dry_run": {
|
||||
"orphan_objects_count": 20,
|
||||
"missing_objects_count": 20,
|
||||
"size_mismatch_count": 5,
|
||||
"orphans_skipped_fresh": 0,
|
||||
"timing_ms": {
|
||||
"db_query": 18.7,
|
||||
"s3_listing": 3652.1,
|
||||
"total": 3761.7
|
||||
},
|
||||
"fixed": {
|
||||
"deleted_orphans": 0,
|
||||
"marked_failed": 0
|
||||
}
|
||||
},
|
||||
"dry_run_repeatable": true,
|
||||
"dry_run_found_exactly_injected": true,
|
||||
"apply": {
|
||||
"fixed": {
|
||||
"deleted_orphans": 20,
|
||||
"marked_failed": 25
|
||||
},
|
||||
"orphans_skipped_fresh": 0,
|
||||
"timing_ms": {
|
||||
"db_query": 19.1,
|
||||
"s3_listing": 3859.1,
|
||||
"total": 4048.6
|
||||
},
|
||||
"orphan_objects_count": 20,
|
||||
"missing_objects_count": 20,
|
||||
"size_mismatch_count": 5
|
||||
},
|
||||
"fresh_uploads_during_apply": {
|
||||
"uploaded": 200,
|
||||
"intact": 200
|
||||
},
|
||||
"in_use_attachments_intact": "200/200",
|
||||
"message_bindings": {
|
||||
"messages": 20,
|
||||
"attachments": 200,
|
||||
"unchanged": true
|
||||
},
|
||||
"second_apply_idempotent": {
|
||||
"fixed": {
|
||||
"deleted_orphans": 0,
|
||||
"marked_failed": 0
|
||||
},
|
||||
"orphan_objects_count": 0,
|
||||
"missing_objects_count": 0
|
||||
},
|
||||
"marked_failed": [
|
||||
"object_missing=20",
|
||||
"size_mismatch=5"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"date": "2026-11-11 18:18:37",
|
||||
"file_mib": 8.73,
|
||||
"clients": 12,
|
||||
"api_memory_limit": "256m",
|
||||
"runs": [
|
||||
{
|
||||
"UPLOAD_CONCURRENCY": 1,
|
||||
"statuses": {
|
||||
"201": 12
|
||||
},
|
||||
"wall_seconds": 1.31,
|
||||
"peak_rss_mib": 99.2,
|
||||
"resource_limits": {
|
||||
"memory_bytes": 268435456,
|
||||
"nano_cpus": 1000000000
|
||||
},
|
||||
"rss_before_mib": 93.3,
|
||||
"rss_after_mib": 99.2,
|
||||
"oom_killed": "false",
|
||||
"accepted_files_intact": "12/12",
|
||||
"p50_s": 0.83,
|
||||
"max_s": 1.3
|
||||
},
|
||||
{
|
||||
"UPLOAD_CONCURRENCY": 4,
|
||||
"statuses": {
|
||||
"201": 12
|
||||
},
|
||||
"wall_seconds": 1.18,
|
||||
"peak_rss_mib": 119.0,
|
||||
"resource_limits": {
|
||||
"memory_bytes": 268435456,
|
||||
"nano_cpus": 1000000000
|
||||
},
|
||||
"rss_before_mib": 93.5,
|
||||
"rss_after_mib": 119.0,
|
||||
"oom_killed": "false",
|
||||
"accepted_files_intact": "12/12",
|
||||
"p50_s": 0.87,
|
||||
"max_s": 1.17
|
||||
},
|
||||
{
|
||||
"UPLOAD_CONCURRENCY": 12,
|
||||
"statuses": {
|
||||
"201": 12
|
||||
},
|
||||
"wall_seconds": 1.14,
|
||||
"peak_rss_mib": 121.2,
|
||||
"resource_limits": {
|
||||
"memory_bytes": 268435456,
|
||||
"nano_cpus": 1000000000
|
||||
},
|
||||
"rss_before_mib": 93.4,
|
||||
"rss_after_mib": 121.2,
|
||||
"oom_killed": "false",
|
||||
"accepted_files_intact": "12/12",
|
||||
"p50_s": 0.94,
|
||||
"max_s": 1.13
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user