Реализовать лабораторную 6 на 5: SLO и обнаружение инцидентов

This commit is contained in:
Ванек
2026-11-19 18:53:24 +03:00
parent 470d9d6f1e
commit 8dad129edf
127 changed files with 53496 additions and 61 deletions
+66
View File
@@ -0,0 +1,66 @@
UTC: 2026-10-22T11:17:22.562634+00:00
Host: Darwin arm64 Python 3.11.9
Docker: 29.0.1 aarch64 CPUs=10 RAM=8217448448
Commit: 9961362 + working tree
Command: ./scripts/check-docker.sh; project: lab2-check-ae280d00db
PASS: start.sh built and started the stack, readiness reached
api image=sha256:0b3dc5056cced642eea5ade11d235dce9f69f0d9e6d63956ce9479f2deaa10a0 started=2026-10-22T11:17:27.057932632Z memory=268435456 nano_cpus=1000000000
postgres image=sha256:f3bd19c606e442c3d7bdfa8002e03fe260a1023351e0ea4598032022b68dd6e3 started=2026-10-22T11:17:24.411773881Z memory=536870912 nano_cpus=1000000000
valkey image=sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571 started=2026-10-22T11:17:24.406509756Z memory=134217728 nano_cpus=500000000
PASS: non-root UID 10001; Python PID 1; healthcheck; named volumes; no API data volume
Проверяем сервер: http://127.0.0.1:61900
/Users/vanek/Desktop/VNPlabs/VNPlab2/mtusi2026lab2/.venv/bin/python scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
/Users/vanek/Desktop/VNPlabs/VNPlab2/mtusi2026lab2/.venv/bin/python tests/smoke.py --base-url "http://127.0.0.1:61900"
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.
test_chat_access (test_api.ApiTests.test_chat_access) ... ok
test_chat_pagination_and_cursor_owner (test_api.ApiTests.test_chat_pagination_and_cursor_owner) ... ok
test_cursor_cannot_be_used_for_another_chat_or_changed (test_api.ApiTests.test_cursor_cannot_be_used_for_another_chat_or_changed) ... ok
test_default_page_size (test_api.ApiTests.test_default_page_size) ... ok
test_duplicate_username (test_api.ApiTests.test_duplicate_username) ... ok
test_framework_errors_and_request_ids (test_api.ApiTests.test_framework_errors_and_request_ids) ... ok
test_identification_and_authentication_order (test_api.ApiTests.test_identification_and_authentication_order) ... ok
test_invalid_chat_members (test_api.ApiTests.test_invalid_chat_members) ... ok
test_invalid_chat_title (test_api.ApiTests.test_invalid_chat_title) ... ok
test_invalid_limits_and_cursors (test_api.ApiTests.test_invalid_limits_and_cursors) ... ok
test_invalid_message_fields (test_api.ApiTests.test_invalid_message_fields) ... ok
test_invalid_user_fields (test_api.ApiTests.test_invalid_user_fields) ... ok
test_malformed_json_and_encoding (test_api.ApiTests.test_malformed_json_and_encoding) ... ok
test_message_pagination_and_changing_limit (test_api.ApiTests.test_message_pagination_and_changing_limit) ... ok
test_unicode_and_text_preservation (test_api.ApiTests.test_unicode_and_text_preservation) ... ok
test_wrong_content_type (test_api.ApiTests.test_wrong_content_type) ... ok
test_simultaneous_registration_of_one_username (test_concurrency.ConcurrencyTests.test_simultaneous_registration_of_one_username) ... ok
test_ten_clients_send_one_hundred_messages (test_concurrency.ConcurrencyTests.test_ten_clients_send_one_hundred_messages) ... ok
test_logout_revokes_only_one_session (test_sessions.SessionTests.test_logout_revokes_only_one_session) ... ok
test_password_validation (test_sessions.SessionTests.test_password_validation) ... ok
test_sql_like_message_is_plain_text (test_sessions.SessionTests.test_sql_like_message_is_plain_text) ... ok
test_unicode_password_with_colon_and_private_response (test_sessions.SessionTests.test_unicode_password_with_colon_and_private_response) ... ok
test_wrong_password_and_basic_only_for_login (test_sessions.SessionTests.test_wrong_password_and_basic_only_for_login) ... ok
----------------------------------------------------------------------
Ran 23 tests in 5.743s
OK
PASS: 10 clients sent 100 messages; history contains exactly 100 unique messages.
PASS: demo.sh registered users, logged in and read two messages
PASS: Argon2id in PostgreSQL; logs do not contain message text, passwords or session tokens
PASS: failed membership insert rolled back chat; migrations run twice without duplicate data
/Users/vanek/Desktop/VNPlabs/VNPlab2/mtusi2026lab2/.venv/bin/python tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:61900"
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
Restart api 2026-10-22T11:17:27.057932632Z -> 2026-10-22T11:17:45.460071626Z
Restart postgres 2026-10-22T11:17:24.411773881Z -> 2026-10-22T11:17:44.637353001Z
Restart valkey 2026-10-22T11:17:24.406509756Z -> 2026-10-22T11:17:44.670095293Z
PASS: API, PostgreSQL and Valkey really restarted; previous token still works
PASS: valkey unavailable -> 503 in 0.11s; anonymous -> 401; readiness 503, liveness 200
API ready
PASS: valkey recovered without a new login
PASS: postgres unavailable -> 503 in 2.01s; anonymous -> 401; readiness 503, liveness 200
API ready
PASS: postgres recovered without a new login
API ready
PASS: SESSION_TTL_SECONDS=2; valid token expires without logout
PASS: SIGTERM with unfinished request: 5.54s; new requests refused after 0.16s; exit=0; OOM=false
PASS: all lab2 Docker checks completed
PASS: stop.sh removed containers and preserved named volumes
Removed only temporary Compose project and its test volumes: lab2-check-ae280d00db
File diff suppressed because it is too large Load Diff
+403
View File
@@ -0,0 +1,403 @@
Command: ./scripts/check-docker.sh; project: lab3-check-a31f544685
Docker: 29.0.1 aarch64 CPUs=10 RAM=8217448448
Local .env and secrets are ready; values are not printed
#1 [internal] load local bake definitions
#1 reading from stdin 1.05kB done
#1 DONE 0.0s
#2 [migrate internal] load build definition from Dockerfile
#2 transferring dockerfile: 733B done
#2 DONE 0.0s
#3 [api internal] load metadata for docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3
#3 DONE 0.0s
#4 [api internal] load .dockerignore
#4 transferring context: 167B done
#4 DONE 0.0s
#5 [migrate internal] load build context
#5 transferring context: 809B done
#5 DONE 0.0s
#6 [migrate 1/8] FROM docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3
#6 resolve docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3 done
#6 DONE 0.0s
#7 [migrate 2/8] WORKDIR /app
#7 CACHED
#8 [migrate 3/8] COPY requirements.txt .
#8 CACHED
#9 [migrate 4/8] RUN python -m pip install --no-cache-dir -r requirements.txt && python -m pip check
#9 CACHED
#10 [migrate 6/8] COPY src/ ./src/
#10 CACHED
#11 [migrate 7/8] COPY migrations/ ./migrations/
#11 CACHED
#12 [migrate 5/8] RUN groupadd --gid 10001 app && useradd --uid 10001 --gid app --no-create-home app
#12 CACHED
#13 [migrate 8/8] COPY research/ ./research/
#13 CACHED
#14 [api] exporting to image
#14 exporting layers done
#14 exporting manifest sha256:06163e45d3676c7cf4f7a1c7bfe108ed3b98559ebb485c7a09d1e87e6f418d17 done
#14 exporting config sha256:3fed7460e9510eef7b2928f8d600d06d5d65329f74d820beac13809476b11398 done
#14 exporting attestation manifest sha256:352319cde788733f2f237a2a78204630c542e7ca906cff14c902046e8c1d2e5b 0.0s done
#14 exporting manifest list sha256:848e0c76f1678f35dd1b483e7c54552466999551ba7e77c0062bf346671e2902 done
#14 naming to docker.io/library/mtusi-messenger:lab3 done
#14 unpacking to docker.io/library/mtusi-messenger:lab3 done
#14 DONE 0.1s
#15 [migrate] exporting to image
#15 exporting layers done
#15 exporting manifest sha256:a59568d34e2c5e8b4d23308342601fdaf8c07e78ec3065878679a067c082e952 done
#15 exporting config sha256:b67b805ba1b7dd90f0a3e8444455488fe8c7f4118f14d671501dd63e85b59c97 done
#15 exporting attestation manifest sha256:b1853c07ddac46c4b398b475052f334aa2753c2fe971e0e4fb2517b0e3e13656 0.0s done
#15 exporting manifest list sha256:eff1abdd662eb60e2741e6ce6b8f364467d2817dafeef9754518247124a780eb done
#15 naming to docker.io/library/mtusi-messenger:lab3 done
#15 unpacking to docker.io/library/mtusi-messenger:lab3 done
#15 DONE 0.1s
#16 [api] resolving provenance for metadata file
#16 DONE 0.0s
#17 [migrate] resolving provenance for metadata file
#17 DONE 0.0s
mtusi-messenger:lab3 Built
mtusi-messenger:lab3 Built
Network lab3-check-a31f544685_default Creating
Network lab3-check-a31f544685_default Created
Volume lab3-check-a31f544685_postgres_data Creating
Volume lab3-check-a31f544685_postgres_data Created
Volume lab3-check-a31f544685_valkey_data Creating
Volume lab3-check-a31f544685_valkey_data Created
Container lab3-check-a31f544685-valkey-1 Creating
Container lab3-check-a31f544685-postgres-1 Creating
Container lab3-check-a31f544685-valkey-1 Created
Container lab3-check-a31f544685-postgres-1 Created
Container lab3-check-a31f544685-migrate-1 Creating
Container lab3-check-a31f544685-migrate-1 Created
Container lab3-check-a31f544685-api-2 Creating
Container lab3-check-a31f544685-api-1 Creating
Container lab3-check-a31f544685-api-1 Created
Container lab3-check-a31f544685-api-2 Created
Container lab3-check-a31f544685-lb-1 Creating
Container lab3-check-a31f544685-lb-1 Created
Container lab3-check-a31f544685-valkey-1 Starting
Container lab3-check-a31f544685-postgres-1 Starting
Container lab3-check-a31f544685-valkey-1 Started
Container lab3-check-a31f544685-postgres-1 Started
Container lab3-check-a31f544685-postgres-1 Waiting
Container lab3-check-a31f544685-postgres-1 Healthy
Container lab3-check-a31f544685-migrate-1 Starting
Container lab3-check-a31f544685-migrate-1 Started
Container lab3-check-a31f544685-migrate-1 Waiting
Container lab3-check-a31f544685-postgres-1 Waiting
Container lab3-check-a31f544685-valkey-1 Waiting
Container lab3-check-a31f544685-valkey-1 Healthy
Container lab3-check-a31f544685-postgres-1 Healthy
Container lab3-check-a31f544685-migrate-1 Exited
Container lab3-check-a31f544685-api-2 Starting
Container lab3-check-a31f544685-api-2 Started
Container lab3-check-a31f544685-api-1 Starting
Container lab3-check-a31f544685-api-1 Started
Container lab3-check-a31f544685-api-2 Waiting
Container lab3-check-a31f544685-api-1 Waiting
Container lab3-check-a31f544685-api-2 Healthy
Container lab3-check-a31f544685-api-1 Healthy
Container lab3-check-a31f544685-lb-1 Starting
Container lab3-check-a31f544685-lb-1 Started
API ready through LB: 7f6a80b69e32, f973eaec4d52
PASS: 2 real API containers, CPU/RAM limits, API non-root and no public ports; only LB published
Проверяем сервер: http://127.0.0.1:58474
/Users/vanek/Desktop/VNPlabs/VNPlab3/mtusi2026lab3/.venv/bin/python scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
/Users/vanek/Desktop/VNPlabs/VNPlab3/mtusi2026lab3/.venv/bin/python tests/smoke.py --base-url "http://127.0.0.1:58474"
PASS: lab3 public API scenario; infrastructure and grading evidence remain separate.
test_chat_access (test_api.ApiTests.test_chat_access) ... ok
test_chat_pagination_and_cursor_owner (test_api.ApiTests.test_chat_pagination_and_cursor_owner) ... ok
test_cursor_cannot_be_used_for_another_chat_or_changed (test_api.ApiTests.test_cursor_cannot_be_used_for_another_chat_or_changed) ... ok
test_default_page_size (test_api.ApiTests.test_default_page_size) ... ok
test_duplicate_username (test_api.ApiTests.test_duplicate_username) ... ok
test_framework_errors_and_request_ids (test_api.ApiTests.test_framework_errors_and_request_ids) ... ok
test_identification_and_authentication_order (test_api.ApiTests.test_identification_and_authentication_order) ... ok
test_invalid_chat_members (test_api.ApiTests.test_invalid_chat_members) ... ok
test_invalid_chat_title (test_api.ApiTests.test_invalid_chat_title) ... ok
test_invalid_limits_and_cursors (test_api.ApiTests.test_invalid_limits_and_cursors) ... ok
test_invalid_message_fields (test_api.ApiTests.test_invalid_message_fields) ... ok
test_invalid_user_fields (test_api.ApiTests.test_invalid_user_fields) ... ok
test_malformed_json_and_encoding (test_api.ApiTests.test_malformed_json_and_encoding) ... ok
test_message_pagination_and_changing_limit (test_api.ApiTests.test_message_pagination_and_changing_limit) ... ok
test_unicode_and_text_preservation (test_api.ApiTests.test_unicode_and_text_preservation) ... ok
test_wrong_content_type (test_api.ApiTests.test_wrong_content_type) ... ok
test_simultaneous_registration_of_one_username (test_concurrency.ConcurrencyTests.test_simultaneous_registration_of_one_username) ... ok
test_ten_clients_send_one_hundred_messages (test_concurrency.ConcurrencyTests.test_ten_clients_send_one_hundred_messages) ... ok
test_conflict_and_semantic_json_replay (test_idempotency.IdempotencyTests.test_conflict_and_semantic_json_replay) ... ok
test_key_format_and_missing_key (test_idempotency.IdempotencyTests.test_key_format_and_missing_key) ... ok
test_parallel_replay_across_replicas (test_idempotency.IdempotencyTests.test_parallel_replay_across_replicas) ... ok
test_replay_rechecks_session_and_access (test_idempotency.IdempotencyTests.test_replay_rechecks_session_and_access) ... ok
test_scope_is_user_and_chat (test_idempotency.IdempotencyTests.test_scope_is_user_and_chat) ... ok
test_logout_revokes_only_one_session (test_sessions.SessionTests.test_logout_revokes_only_one_session) ... ok
test_password_validation (test_sessions.SessionTests.test_password_validation) ... ok
test_sql_like_message_is_plain_text (test_sessions.SessionTests.test_sql_like_message_is_plain_text) ... ok
test_unicode_password_with_colon_and_private_response (test_sessions.SessionTests.test_unicode_password_with_colon_and_private_response) ... ok
test_wrong_password_and_basic_only_for_login (test_sessions.SessionTests.test_wrong_password_and_basic_only_for_login) ... ok
----------------------------------------------------------------------
Ran 28 tests in 6.783s
OK
PASS: 10 clients sent 100 messages; history contains exactly 100 unique messages.
Container lab3-check-a31f544685-postgres-1 Running
Container lab3-check-a31f544685-postgres-1 Running
PASS: migrations only in one-shot service; repeated execution preserves data
/Users/vanek/Desktop/VNPlabs/VNPlab3/mtusi2026lab3/.venv/bin/python tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:58474"
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
PASS: both API, LB, PostgreSQL, Valkey actually restarted; session and confirmed data preserved
PASS: SIGTERM with unfinished request: {"instance": "7f6a80b69e32", "unfinished_request": true, "shutdown_seconds": 5.393, "new_connections_refused_seconds": 0.167, "exit_code": 0, "oom_killed": false}
Container lab3-check-a31f544685-postgres-1 Waiting
Container lab3-check-a31f544685-postgres-1 Healthy
Container lab3-check-a31f544685-migrate-1 Starting
Container lab3-check-a31f544685-migrate-1 Started
Container lab3-check-a31f544685-valkey-1 Waiting
Container lab3-check-a31f544685-migrate-1 Waiting
Container lab3-check-a31f544685-postgres-1 Waiting
Container lab3-check-a31f544685-valkey-1 Healthy
Container lab3-check-a31f544685-postgres-1 Healthy
Container lab3-check-a31f544685-migrate-1 Exited
Container lab3-check-a31f544685-api-1 Starting
Container lab3-check-a31f544685-api-1 Started
API ready through LB: 7f6a80b69e32, f973eaec4d52
Container lab3-check-a31f544685-valkey-1 Stopping
Container lab3-check-a31f544685-valkey-1 Stopped
PASS: valkey outage: API live=200, ready=503, LB ready=503
Container lab3-check-a31f544685-valkey-1 Starting
Container lab3-check-a31f544685-valkey-1 Started
API ready through LB: 7f6a80b69e32, f973eaec4d52
Container lab3-check-a31f544685-postgres-1 Stopping
Container lab3-check-a31f544685-postgres-1 Stopped
PASS: postgres outage: API live=200, ready=503, LB ready=503
Container lab3-check-a31f544685-postgres-1 Starting
Container lab3-check-a31f544685-postgres-1 Started
API ready through LB: 7f6a80b69e32, f973eaec4d52
/Users/vanek/Desktop/VNPlabs/VNPlab3/mtusi2026lab3/.venv/bin/python tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:58474"
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 113, "failed_attempts": 1, "first_recovery_seconds": 2.452}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
Container lab3-check-a31f544685-postgres-1 Waiting
Container lab3-check-a31f544685-postgres-1 Healthy
Container lab3-check-a31f544685-migrate-1 Starting
Container lab3-check-a31f544685-migrate-1 Started
Container lab3-check-a31f544685-postgres-1 Waiting
Container lab3-check-a31f544685-valkey-1 Waiting
Container lab3-check-a31f544685-migrate-1 Waiting
Container lab3-check-a31f544685-postgres-1 Healthy
Container lab3-check-a31f544685-valkey-1 Healthy
Container lab3-check-a31f544685-migrate-1 Exited
Container lab3-check-a31f544685-api-1 Starting
Container lab3-check-a31f544685-api-1 Started
API ready through LB: 7f6a80b69e32, f973eaec4d52
Stopped API: 7f6a80b69e32 container=7f6a80b69e3297a4de72e756a6c9d867a108930c1ca0e57922b3821c26fd03e6
{"label": "stop 7f6a80b69e32", "duration_seconds": 16.009, "successful_requests": 1576, "successful_writes": 788, "errors": 4, "successful_rps": 98.44, "first_success_after_action_seconds": {"POST": 0.014, "GET": 0.007}, "maximum_success_gap_seconds": {"POST": 1.957, "GET": 2.004}, "action_start_seconds": 1.003, "action_end_seconds": 1.666, "p50_ms": 7.813, "p95_ms": 16.393, "confirmed_data_preserved": true, "duplicate_messages": 0, "instances": ["7f6a80b69e32", "f973eaec4d52"]}
Container lab3-check-a31f544685-postgres-1 Waiting
Container lab3-check-a31f544685-postgres-1 Healthy
Container lab3-check-a31f544685-migrate-1 Starting
Container lab3-check-a31f544685-migrate-1 Started
Container lab3-check-a31f544685-postgres-1 Waiting
Container lab3-check-a31f544685-valkey-1 Waiting
Container lab3-check-a31f544685-migrate-1 Waiting
Container lab3-check-a31f544685-valkey-1 Healthy
Container lab3-check-a31f544685-postgres-1 Healthy
Container lab3-check-a31f544685-migrate-1 Exited
Container lab3-check-a31f544685-api-1 Starting
Container lab3-check-a31f544685-api-1 Started
API ready through LB: 7f6a80b69e32, f973eaec4d52
Stopped API: f973eaec4d52 container=f973eaec4d5290eb73cd96949877ccb8df1213523fce0ec05c6b40c1136bb31b
{"label": "stop f973eaec4d52", "duration_seconds": 16.015, "successful_requests": 1574, "successful_writes": 786, "errors": 4, "successful_rps": 98.28, "first_success_after_action_seconds": {"POST": 0.002, "GET": 0.008}, "maximum_success_gap_seconds": {"POST": 2.006, "GET": 2.006}, "action_start_seconds": 1.005, "action_end_seconds": 1.713, "p50_ms": 7.98, "p95_ms": 17.217, "confirmed_data_preserved": true, "duplicate_messages": 0, "instances": ["7f6a80b69e32", "f973eaec4d52"]}
Container lab3-check-a31f544685-postgres-1 Waiting
Container lab3-check-a31f544685-postgres-1 Healthy
Container lab3-check-a31f544685-migrate-1 Starting
Container lab3-check-a31f544685-migrate-1 Started
Container lab3-check-a31f544685-postgres-1 Waiting
Container lab3-check-a31f544685-valkey-1 Waiting
Container lab3-check-a31f544685-migrate-1 Waiting
Container lab3-check-a31f544685-valkey-1 Healthy
Container lab3-check-a31f544685-postgres-1 Healthy
Container lab3-check-a31f544685-migrate-1 Exited
Container lab3-check-a31f544685-api-2 Starting
Container lab3-check-a31f544685-api-2 Started
API ready through LB: 7f6a80b69e32, f973eaec4d52
Local .env and secrets are ready; values are not printed
#1 [internal] load local bake definitions
#1 reading from stdin 1.03kB done
#1 DONE 0.0s
#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 733B done
#2 DONE 0.0s
#3 [internal] load metadata for docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3
#3 DONE 0.0s
#4 [internal] load .dockerignore
#4 transferring context: 167B done
#4 DONE 0.0s
#5 [internal] load build context
#5 transferring context: 809B done
#5 DONE 0.0s
#6 [1/8] FROM docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3
#6 resolve docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3 0.0s done
#6 DONE 0.0s
#7 [4/8] RUN python -m pip install --no-cache-dir -r requirements.txt && python -m pip check
#7 CACHED
#8 [3/8] COPY requirements.txt .
#8 CACHED
#9 [5/8] RUN groupadd --gid 10001 app && useradd --uid 10001 --gid app --no-create-home app
#9 CACHED
#10 [6/8] COPY src/ ./src/
#10 CACHED
#11 [2/8] WORKDIR /app
#11 CACHED
#12 [7/8] COPY migrations/ ./migrations/
#12 CACHED
#13 [8/8] COPY research/ ./research/
#13 CACHED
#14 exporting to image
#14 exporting layers done
#14 exporting manifest sha256:06163e45d3676c7cf4f7a1c7bfe108ed3b98559ebb485c7a09d1e87e6f418d17 done
#14 exporting config sha256:3fed7460e9510eef7b2928f8d600d06d5d65329f74d820beac13809476b11398 done
#14 exporting attestation manifest sha256:3a88ce0975ddcbab53c3ecb185da08ef114e818e9db952983e997cd47add67bf done
#14 exporting manifest list sha256:433a8a3293202a92f092574052b474e8373c0d58649cbcf1c7ebc1af17933d3c done
#14 naming to docker.io/library/mtusi-messenger:lab3 done
#14 unpacking to docker.io/library/mtusi-messenger:lab3 done
#14 DONE 0.1s
#15 resolving provenance for metadata file
#15 DONE 0.0s
mtusi-messenger:lab3 Built
Local .env and secrets are ready; values are not printed
Container lab3-check-a31f544685-postgres-1 Running
#1 [internal] load local bake definitions
#1 reading from stdin 576B done
#1 DONE 0.0s
#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 733B done
#2 DONE 0.0s
#3 [internal] load metadata for docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3
#3 DONE 0.0s
#4 [internal] load .dockerignore
#4 transferring context: 167B done
#4 DONE 0.0s
#5 [internal] load build context
#5 transferring context: 809B done
#5 DONE 0.0s
#6 [1/8] FROM docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3
#6 resolve docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3 done
#6 DONE 0.0s
#7 [3/8] COPY requirements.txt .
#7 CACHED
#8 [4/8] RUN python -m pip install --no-cache-dir -r requirements.txt && python -m pip check
#8 CACHED
#9 [5/8] RUN groupadd --gid 10001 app && useradd --uid 10001 --gid app --no-create-home app
#9 CACHED
#10 [6/8] COPY src/ ./src/
#10 CACHED
#11 [7/8] COPY migrations/ ./migrations/
#11 CACHED
#12 [2/8] WORKDIR /app
#12 CACHED
#13 [8/8] COPY research/ ./research/
#13 CACHED
#14 exporting to image
#14 exporting layers done
#14 exporting manifest sha256:a59568d34e2c5e8b4d23308342601fdaf8c07e78ec3065878679a067c082e952 done
#14 exporting config sha256:b67b805ba1b7dd90f0a3e8444455488fe8c7f4118f14d671501dd63e85b59c97 done
#14 exporting attestation manifest sha256:25ff7934ca5161da9b6c345af61b6a10b452580e4d349b35939d32feb66664ea done
#14 exporting manifest list sha256:3e102cd9a2c1e81e95aed4a0d4de1ac94352370595fced350257813f7a07bef8 done
#14 naming to docker.io/library/mtusi-messenger:lab3 done
#14 unpacking to docker.io/library/mtusi-messenger:lab3 done
#14 DONE 0.0s
#15 resolving provenance for metadata file
#15 DONE 0.0s
Migrations: already applied
API ready through LB: 7f6a80b69e32, f973eaec4d52
Replacing API: 7f6a80b69e32
Container lab3-check-a31f544685-api-2 Running
Container lab3-check-a31f544685-api-3 Creating
Container lab3-check-a31f544685-api-3 Created
Container lab3-check-a31f544685-api-3 Starting
Container lab3-check-a31f544685-api-3 Started
API ready through LB: ca9c7a52da66, f973eaec4d52
Replacing API: f973eaec4d52
Container lab3-check-a31f544685-api-3 Running
Container lab3-check-a31f544685-api-4 Creating
Container lab3-check-a31f544685-api-4 Created
Container lab3-check-a31f544685-api-4 Starting
Container lab3-check-a31f544685-api-4 Started
API ready through LB: 244bf0b910eb, ca9c7a52da66
PASS: all API containers replaced sequentially; stores and LB kept running
{"label": "sequential API replacement", "duration_seconds": 23.774, "successful_requests": 2131, "successful_writes": 1063, "errors": 11, "successful_rps": 89.64, "first_success_after_action_seconds": {"POST": 0.018, "GET": 0.004}, "maximum_success_gap_seconds": {"POST": 1.059, "GET": 2.034}, "action_start_seconds": 1.005, "action_end_seconds": 19.63, "p50_ms": 7.723, "p95_ms": 13.565, "confirmed_data_preserved": true, "duplicate_messages": 0, "instances": ["244bf0b910eb", "7f6a80b69e32", "ca9c7a52da66", "f973eaec4d52"]}
PASS: all lab3 grade-4 checks completed
Container lab3-check-a31f544685-lb-1 Stopping
Container lab3-check-a31f544685-lb-1 Stopped
Container lab3-check-a31f544685-lb-1 Removing
Container lab3-check-a31f544685-lb-1 Removed
Container lab3-check-a31f544685-api-3 Stopping
Container lab3-check-a31f544685-api-4 Stopping
Container lab3-check-a31f544685-api-4 Stopped
Container lab3-check-a31f544685-api-4 Removing
Container lab3-check-a31f544685-api-4 Removed
Container lab3-check-a31f544685-api-3 Stopped
Container lab3-check-a31f544685-api-3 Removing
Container lab3-check-a31f544685-api-3 Removed
Container lab3-check-a31f544685-migrate-1 Stopping
Container lab3-check-a31f544685-valkey-1 Stopping
Container lab3-check-a31f544685-migrate-1 Stopped
Container lab3-check-a31f544685-migrate-1 Removing
Container lab3-check-a31f544685-migrate-1 Removed
Container lab3-check-a31f544685-postgres-1 Stopping
Container lab3-check-a31f544685-valkey-1 Stopped
Container lab3-check-a31f544685-valkey-1 Removing
Container lab3-check-a31f544685-valkey-1 Removed
Container lab3-check-a31f544685-postgres-1 Stopped
Container lab3-check-a31f544685-postgres-1 Removing
Container lab3-check-a31f544685-postgres-1 Removed
Volume lab3-check-a31f544685_valkey_data Removing
Network lab3-check-a31f544685_default Removing
Volume lab3-check-a31f544685_postgres_data Removing
Volume lab3-check-a31f544685_valkey_data Removed
Volume lab3-check-a31f544685_postgres_data Removed
Network lab3-check-a31f544685_default Removed
Removed only temporary test containers and volumes: lab3-check-a31f544685
File diff suppressed because it is too large Load Diff
+533
View File
@@ -0,0 +1,533 @@
Command: ./scripts/check-docker.sh; project: lab4-check-5aad8e0065
Docker: 29.0.1 aarch64 CPUs=10 RAM=8217448448
Local .env and secrets are ready; values are not printed
#1 [internal] load local bake definitions
#1 reading from stdin 564B done
#1 DONE 0.0s
#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 733B done
#2 DONE 0.0s
#3 [internal] load metadata for docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3
#3 DONE 0.0s
#4 [internal] load .dockerignore
#4 transferring context: 167B done
#4 DONE 0.0s
#5 [internal] load build context
#5 transferring context: 1.01kB done
#5 DONE 0.0s
#6 [1/8] FROM docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3
#6 resolve docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3 done
#6 DONE 0.0s
#7 [4/8] RUN python -m pip install --no-cache-dir -r requirements.txt && python -m pip check
#7 CACHED
#8 [7/8] COPY migrations/ ./migrations/
#8 CACHED
#9 [2/8] WORKDIR /app
#9 CACHED
#10 [6/8] COPY src/ ./src/
#10 CACHED
#11 [3/8] COPY requirements.txt .
#11 CACHED
#12 [5/8] RUN groupadd --gid 10001 app && useradd --uid 10001 --gid app --no-create-home app
#12 CACHED
#13 [8/8] COPY research/ ./research/
#13 CACHED
#14 exporting to image
#14 exporting layers done
#14 exporting manifest sha256:644f5d408505f5982b75f18404860de692ee837b2b2e18f5c92b0b057081b7ec done
#14 exporting config sha256:726011343b32f5b6277348f2f8b38f95b8c31754ae0d21336375124a18aa2e0e done
#14 exporting attestation manifest sha256:1146b210a20471d58663fb48a3a24ba22986971d0cce8777f912886768f43306 done
#14 exporting manifest list sha256:a04b1bfe2aea8391c8f92dd952499559d766cc4b34091963fe57bcbaf6ec015d done
#14 naming to docker.io/library/mtusi-messenger:lab4 done
#14 unpacking to docker.io/library/mtusi-messenger:lab4 done
#14 DONE 0.1s
#15 resolving provenance for metadata file
#15 DONE 0.0s
mtusi-messenger:lab4 Built
Network lab4-check-5aad8e0065_default Creating
Network lab4-check-5aad8e0065_default Created
Network lab4-check-5aad8e0065_s3-internal Creating
Network lab4-check-5aad8e0065_s3-internal Created
Volume lab4-check-5aad8e0065_valkey_data Creating
Volume lab4-check-5aad8e0065_valkey_data Created
Volume lab4-check-5aad8e0065_postgres_data Creating
Volume lab4-check-5aad8e0065_postgres_data Created
Volume lab4-check-5aad8e0065_s3_data Creating
Volume lab4-check-5aad8e0065_s3_data Created
Container lab4-check-5aad8e0065-s3-storage-1 Creating
Container lab4-check-5aad8e0065-valkey-1 Creating
Container lab4-check-5aad8e0065-postgres-1 Creating
Container lab4-check-5aad8e0065-valkey-1 Created
Container lab4-check-5aad8e0065-s3-storage-1 Created
Container lab4-check-5aad8e0065-s3-1 Creating
Container lab4-check-5aad8e0065-postgres-1 Created
Container lab4-check-5aad8e0065-migrate-1 Creating
Container lab4-check-5aad8e0065-s3-1 Created
Container lab4-check-5aad8e0065-s3-bootstrap-1 Creating
Container lab4-check-5aad8e0065-migrate-1 Created
Container lab4-check-5aad8e0065-s3-bootstrap-1 Created
Container lab4-check-5aad8e0065-api-2 Creating
Container lab4-check-5aad8e0065-api-1 Creating
Container lab4-check-5aad8e0065-cleanup-1 Creating
Container lab4-check-5aad8e0065-api-1 Created
Container lab4-check-5aad8e0065-cleanup-1 Created
Container lab4-check-5aad8e0065-api-2 Created
Container lab4-check-5aad8e0065-lb-1 Creating
Container lab4-check-5aad8e0065-lb-1 Created
Container lab4-check-5aad8e0065-postgres-1 Starting
Container lab4-check-5aad8e0065-valkey-1 Starting
Container lab4-check-5aad8e0065-s3-storage-1 Starting
Container lab4-check-5aad8e0065-s3-storage-1 Started
Container lab4-check-5aad8e0065-s3-storage-1 Waiting
Container lab4-check-5aad8e0065-valkey-1 Started
Container lab4-check-5aad8e0065-postgres-1 Started
Container lab4-check-5aad8e0065-postgres-1 Waiting
Container lab4-check-5aad8e0065-postgres-1 Healthy
Container lab4-check-5aad8e0065-migrate-1 Starting
Container lab4-check-5aad8e0065-migrate-1 Started
Container lab4-check-5aad8e0065-s3-storage-1 Healthy
Container lab4-check-5aad8e0065-s3-1 Starting
Container lab4-check-5aad8e0065-s3-1 Started
Container lab4-check-5aad8e0065-s3-1 Waiting
Container lab4-check-5aad8e0065-s3-1 Healthy
Container lab4-check-5aad8e0065-s3-bootstrap-1 Starting
Container lab4-check-5aad8e0065-s3-bootstrap-1 Started
Container lab4-check-5aad8e0065-migrate-1 Waiting
Container lab4-check-5aad8e0065-s3-bootstrap-1 Waiting
Container lab4-check-5aad8e0065-valkey-1 Waiting
Container lab4-check-5aad8e0065-migrate-1 Waiting
Container lab4-check-5aad8e0065-s3-1 Waiting
Container lab4-check-5aad8e0065-s3-bootstrap-1 Waiting
Container lab4-check-5aad8e0065-postgres-1 Waiting
Container lab4-check-5aad8e0065-s3-1 Healthy
Container lab4-check-5aad8e0065-migrate-1 Exited
Container lab4-check-5aad8e0065-postgres-1 Healthy
Container lab4-check-5aad8e0065-migrate-1 Exited
Container lab4-check-5aad8e0065-valkey-1 Healthy
Container lab4-check-5aad8e0065-s3-bootstrap-1 Exited
Container lab4-check-5aad8e0065-api-2 Starting
Container lab4-check-5aad8e0065-s3-bootstrap-1 Exited
Container lab4-check-5aad8e0065-cleanup-1 Starting
Container lab4-check-5aad8e0065-cleanup-1 Started
Container lab4-check-5aad8e0065-api-2 Started
Container lab4-check-5aad8e0065-api-1 Starting
Container lab4-check-5aad8e0065-api-1 Started
Container lab4-check-5aad8e0065-api-2 Waiting
Container lab4-check-5aad8e0065-api-1 Waiting
Container lab4-check-5aad8e0065-api-2 Healthy
Container lab4-check-5aad8e0065-api-1 Healthy
Container lab4-check-5aad8e0065-lb-1 Starting
Container lab4-check-5aad8e0065-lb-1 Started
API ready through LB: 19a474c69210, ca1f62dfc015
PASS: 2 real API containers, CPU/RAM limits, API non-root and no public ports; only LB published
Проверяем сервер: http://127.0.0.1:57722
/Users/vanek/Desktop/VNPlabs/VNPlab4/mtusi2026lab4/.venv/bin/python scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
/Users/vanek/Desktop/VNPlabs/VNPlab4/mtusi2026lab4/.venv/bin/python tests/smoke.py --base-url "http://127.0.0.1:57722"
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
test_chat_access (test_api.ApiTests.test_chat_access) ... ok
test_chat_pagination_and_cursor_owner (test_api.ApiTests.test_chat_pagination_and_cursor_owner) ... ok
test_cursor_cannot_be_used_for_another_chat_or_changed (test_api.ApiTests.test_cursor_cannot_be_used_for_another_chat_or_changed) ... ok
test_default_page_size (test_api.ApiTests.test_default_page_size) ... ok
test_duplicate_username (test_api.ApiTests.test_duplicate_username) ... ok
test_framework_errors_and_request_ids (test_api.ApiTests.test_framework_errors_and_request_ids) ... ok
test_identification_and_authentication_order (test_api.ApiTests.test_identification_and_authentication_order) ... ok
test_invalid_chat_members (test_api.ApiTests.test_invalid_chat_members) ... ok
test_invalid_chat_title (test_api.ApiTests.test_invalid_chat_title) ... ok
test_invalid_limits_and_cursors (test_api.ApiTests.test_invalid_limits_and_cursors) ... ok
test_invalid_message_fields (test_api.ApiTests.test_invalid_message_fields) ... ok
test_invalid_user_fields (test_api.ApiTests.test_invalid_user_fields) ... ok
test_malformed_json_and_encoding (test_api.ApiTests.test_malformed_json_and_encoding) ... ok
test_message_pagination_and_changing_limit (test_api.ApiTests.test_message_pagination_and_changing_limit) ... ok
test_unicode_and_text_preservation (test_api.ApiTests.test_unicode_and_text_preservation) ... ok
test_wrong_content_type (test_api.ApiTests.test_wrong_content_type) ... ok
test_access_and_authentication (test_attachments.AttachmentTests.test_access_and_authentication) ... ok
test_attachment_only_message_and_other_member (test_attachments.AttachmentTests.test_attachment_only_message_and_other_member) ... ok
test_chunked_limit_without_content_length (test_attachments.AttachmentTests.test_chunked_limit_without_content_length) ... ok
test_content_length_limit_before_body (test_attachments.AttachmentTests.test_content_length_limit_before_body) ... ok
test_corruption_and_mime_spoof (test_attachments.AttachmentTests.test_corruption_and_mime_spoof) ... ok
test_filename_rejected_before_storage (test_attachments.AttachmentTests.test_filename_rejected_before_storage) ... ok
test_foreign_and_unknown_attachment_ids (test_attachments.AttachmentTests.test_foreign_and_unknown_attachment_ids) ... ok
test_idempotency_includes_ordered_attachment_ids (test_attachments.AttachmentTests.test_idempotency_includes_ordered_attachment_ids) ... ok
test_invalid_attachment_lists (test_attachments.AttachmentTests.test_invalid_attachment_lists) ... ok
test_pixel_limit_before_decode (test_attachments.AttachmentTests.test_pixel_limit_before_decode) ... ok
test_png_and_jpeg_originals (test_attachments.AttachmentTests.test_png_and_jpeg_originals) ... ok
test_simultaneous_registration_of_one_username (test_concurrency.ConcurrencyTests.test_simultaneous_registration_of_one_username) ... ok
test_ten_clients_send_one_hundred_messages (test_concurrency.ConcurrencyTests.test_ten_clients_send_one_hundred_messages) ... ok
test_conflict_and_semantic_json_replay (test_idempotency.IdempotencyTests.test_conflict_and_semantic_json_replay) ... ok
test_key_format_and_missing_key (test_idempotency.IdempotencyTests.test_key_format_and_missing_key) ... ok
test_parallel_replay_across_replicas (test_idempotency.IdempotencyTests.test_parallel_replay_across_replicas) ... ok
test_replay_rechecks_session_and_access (test_idempotency.IdempotencyTests.test_replay_rechecks_session_and_access) ... ok
test_scope_is_user_and_chat (test_idempotency.IdempotencyTests.test_scope_is_user_and_chat) ... ok
test_logout_revokes_only_one_session (test_sessions.SessionTests.test_logout_revokes_only_one_session) ... ok
test_password_validation (test_sessions.SessionTests.test_password_validation) ... ok
test_sql_like_message_is_plain_text (test_sessions.SessionTests.test_sql_like_message_is_plain_text) ... ok
test_unicode_password_with_colon_and_private_response (test_sessions.SessionTests.test_unicode_password_with_colon_and_private_response) ... ok
test_wrong_password_and_basic_only_for_login (test_sessions.SessionTests.test_wrong_password_and_basic_only_for_login) ... ok
----------------------------------------------------------------------
Ran 39 tests in 9.593s
OK
PASS: 10 clients sent 100 messages; history contains exactly 100 unique messages.
Container lab4-check-5aad8e0065-postgres-1 Running
Container lab4-check-5aad8e0065-postgres-1 Running
PASS: migrations only in one-shot service; repeated execution preserves data
Container lab4-check-5aad8e0065-cleanup-1 Stopping
Container lab4-check-5aad8e0065-cleanup-1 Stopped
Container lab4-check-5aad8e0065-s3-storage-1 Running
Container lab4-check-5aad8e0065-s3-1 Running
Container lab4-check-5aad8e0065-s3-storage-1 Waiting
Container lab4-check-5aad8e0065-s3-storage-1 Healthy
Container lab4-check-5aad8e0065-s3-storage-1 Running
Container lab4-check-5aad8e0065-s3-1 Running
Container lab4-check-5aad8e0065-s3-storage-1 Waiting
Container lab4-check-5aad8e0065-s3-storage-1 Healthy
PASS: private S3, limited credentials, isolated administration, repeated bootstrap
Stopped API: ca1f62dfc015 container=ca1f62dfc0156fc235dbcd2f52b58eec2282e6ba8d3e056de11ca92758c69df0
API ready through LB: 19a474c69210
Container lab4-check-5aad8e0065-postgres-1 Waiting
Container lab4-check-5aad8e0065-s3-storage-1 Waiting
Container lab4-check-5aad8e0065-postgres-1 Healthy
Container lab4-check-5aad8e0065-s3-storage-1 Healthy
Container lab4-check-5aad8e0065-migrate-1 Starting
Container lab4-check-5aad8e0065-s3-1 Waiting
Container lab4-check-5aad8e0065-migrate-1 Started
Container lab4-check-5aad8e0065-s3-1 Healthy
Container lab4-check-5aad8e0065-s3-bootstrap-1 Starting
Container lab4-check-5aad8e0065-s3-bootstrap-1 Started
Container lab4-check-5aad8e0065-s3-1 Waiting
Container lab4-check-5aad8e0065-s3-bootstrap-1 Waiting
Container lab4-check-5aad8e0065-postgres-1 Waiting
Container lab4-check-5aad8e0065-valkey-1 Waiting
Container lab4-check-5aad8e0065-migrate-1 Waiting
Container lab4-check-5aad8e0065-migrate-1 Exited
Container lab4-check-5aad8e0065-valkey-1 Healthy
Container lab4-check-5aad8e0065-postgres-1 Healthy
Container lab4-check-5aad8e0065-s3-1 Healthy
Container lab4-check-5aad8e0065-s3-bootstrap-1 Exited
Container lab4-check-5aad8e0065-api-2 Starting
Container lab4-check-5aad8e0065-api-2 Started
API ready through LB: 19a474c69210, ca1f62dfc015
PASS: original downloaded through another replica after stopping uploader
PASS: post-PUT DB failure recorded; cleanup protects fresh, active and ready uploads
Container lab4-check-5aad8e0065-s3-1 Stopping
Container lab4-check-5aad8e0065-s3-1 Stopped
Container lab4-check-5aad8e0065-s3-storage-1 Waiting
Container lab4-check-5aad8e0065-s3-storage-1 Healthy
Container lab4-check-5aad8e0065-s3-1 Starting
Container lab4-check-5aad8e0065-s3-1 Started
API ready through LB: 19a474c69210, ca1f62dfc015
PASS: S3 outage gives API 503; recovery preserves original and session
Container lab4-check-5aad8e0065-postgres-1 Waiting
Container lab4-check-5aad8e0065-s3-storage-1 Waiting
Container lab4-check-5aad8e0065-s3-storage-1 Healthy
Container lab4-check-5aad8e0065-postgres-1 Healthy
Container lab4-check-5aad8e0065-migrate-1 Starting
Container lab4-check-5aad8e0065-s3-1 Waiting
Container lab4-check-5aad8e0065-migrate-1 Started
Container lab4-check-5aad8e0065-s3-1 Healthy
Container lab4-check-5aad8e0065-s3-bootstrap-1 Starting
Container lab4-check-5aad8e0065-s3-bootstrap-1 Started
Container lab4-check-5aad8e0065-migrate-1 Waiting
Container lab4-check-5aad8e0065-s3-bootstrap-1 Waiting
Container lab4-check-5aad8e0065-migrate-1 Exited
Container lab4-check-5aad8e0065-s3-bootstrap-1 Exited
Container lab4-check-5aad8e0065-cleanup-1 Starting
Container lab4-check-5aad8e0065-cleanup-1 Started
PASS: 10 concurrent real PNG uploads; all checksums match; memory peaks: [215191552, 103378944]
Container lab4-check-5aad8e0065-postgres-1 Waiting
Container lab4-check-5aad8e0065-s3-storage-1 Waiting
Container lab4-check-5aad8e0065-postgres-1 Healthy
Container lab4-check-5aad8e0065-s3-storage-1 Healthy
Container lab4-check-5aad8e0065-migrate-1 Starting
Container lab4-check-5aad8e0065-s3-1 Waiting
Container lab4-check-5aad8e0065-migrate-1 Started
Container lab4-check-5aad8e0065-s3-1 Healthy
Container lab4-check-5aad8e0065-s3-bootstrap-1 Starting
Container lab4-check-5aad8e0065-s3-bootstrap-1 Started
Container lab4-check-5aad8e0065-valkey-1 Waiting
Container lab4-check-5aad8e0065-migrate-1 Waiting
Container lab4-check-5aad8e0065-migrate-1 Waiting
Container lab4-check-5aad8e0065-s3-1 Waiting
Container lab4-check-5aad8e0065-s3-bootstrap-1 Waiting
Container lab4-check-5aad8e0065-s3-bootstrap-1 Waiting
Container lab4-check-5aad8e0065-postgres-1 Waiting
Container lab4-check-5aad8e0065-migrate-1 Exited
Container lab4-check-5aad8e0065-valkey-1 Healthy
Container lab4-check-5aad8e0065-migrate-1 Exited
Container lab4-check-5aad8e0065-s3-1 Healthy
Container lab4-check-5aad8e0065-postgres-1 Healthy
Container lab4-check-5aad8e0065-s3-bootstrap-1 Exited
Container lab4-check-5aad8e0065-s3-bootstrap-1 Exited
/Users/vanek/Desktop/VNPlabs/VNPlab4/mtusi2026lab4/.venv/bin/python tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:57722"
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
PASS: both API, LB, PostgreSQL, Valkey, S3 and cleaner actually restarted; data and session preserved
PASS: SIGTERM with unfinished request: {"instance": "19a474c69210", "unfinished_request": true, "shutdown_seconds": 5.523, "new_connections_refused_seconds": 0.185, "exit_code": 0, "oom_killed": false}
Container lab4-check-5aad8e0065-s3-storage-1 Waiting
Container lab4-check-5aad8e0065-postgres-1 Waiting
Container lab4-check-5aad8e0065-postgres-1 Healthy
Container lab4-check-5aad8e0065-s3-storage-1 Healthy
Container lab4-check-5aad8e0065-migrate-1 Starting
Container lab4-check-5aad8e0065-s3-1 Waiting
Container lab4-check-5aad8e0065-migrate-1 Started
Container lab4-check-5aad8e0065-s3-1 Healthy
Container lab4-check-5aad8e0065-s3-bootstrap-1 Starting
Container lab4-check-5aad8e0065-s3-bootstrap-1 Started
Container lab4-check-5aad8e0065-postgres-1 Waiting
Container lab4-check-5aad8e0065-valkey-1 Waiting
Container lab4-check-5aad8e0065-migrate-1 Waiting
Container lab4-check-5aad8e0065-s3-1 Waiting
Container lab4-check-5aad8e0065-s3-bootstrap-1 Waiting
Container lab4-check-5aad8e0065-valkey-1 Healthy
Container lab4-check-5aad8e0065-migrate-1 Exited
Container lab4-check-5aad8e0065-s3-1 Healthy
Container lab4-check-5aad8e0065-postgres-1 Healthy
Container lab4-check-5aad8e0065-s3-bootstrap-1 Exited
Container lab4-check-5aad8e0065-api-1 Starting
Container lab4-check-5aad8e0065-api-1 Started
API ready through LB: 19a474c69210, ca1f62dfc015
Container lab4-check-5aad8e0065-valkey-1 Stopping
Container lab4-check-5aad8e0065-valkey-1 Stopped
PASS: valkey outage: API live=200, ready=503, LB ready=503
Container lab4-check-5aad8e0065-valkey-1 Starting
Container lab4-check-5aad8e0065-valkey-1 Started
API ready through LB: 19a474c69210, ca1f62dfc015
Container lab4-check-5aad8e0065-postgres-1 Stopping
Container lab4-check-5aad8e0065-postgres-1 Stopped
PASS: postgres outage: API live=200, ready=503, LB ready=503
Container lab4-check-5aad8e0065-postgres-1 Starting
Container lab4-check-5aad8e0065-postgres-1 Started
API ready through LB: 19a474c69210, ca1f62dfc015
Container lab4-check-5aad8e0065-s3-1 Stopping
Container lab4-check-5aad8e0065-s3-1 Stopped
PASS: s3 outage: API live=200, ready=503, LB ready=503
Container lab4-check-5aad8e0065-s3-storage-1 Waiting
Container lab4-check-5aad8e0065-s3-storage-1 Healthy
Container lab4-check-5aad8e0065-s3-1 Starting
Container lab4-check-5aad8e0065-s3-1 Started
API ready through LB: 19a474c69210, ca1f62dfc015
Container lab4-check-5aad8e0065-postgres-1 Paused
Container lab4-check-5aad8e0065-postgres-1 Unpaused
PASS: paused PostgreSQL: SQL and direct readiness bounded; live works; unpause restores API without restart
/Users/vanek/Desktop/VNPlabs/VNPlab4/mtusi2026lab4/.venv/bin/python tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:57722"
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 110, "failed_attempts": 1, "first_recovery_seconds": 2.467}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
Container lab4-check-5aad8e0065-s3-storage-1 Waiting
Container lab4-check-5aad8e0065-postgres-1 Waiting
Container lab4-check-5aad8e0065-s3-storage-1 Healthy
Container lab4-check-5aad8e0065-s3-1 Waiting
Container lab4-check-5aad8e0065-postgres-1 Healthy
Container lab4-check-5aad8e0065-migrate-1 Starting
Container lab4-check-5aad8e0065-migrate-1 Started
Container lab4-check-5aad8e0065-s3-1 Healthy
Container lab4-check-5aad8e0065-s3-bootstrap-1 Starting
Container lab4-check-5aad8e0065-s3-bootstrap-1 Started
Container lab4-check-5aad8e0065-postgres-1 Waiting
Container lab4-check-5aad8e0065-valkey-1 Waiting
Container lab4-check-5aad8e0065-migrate-1 Waiting
Container lab4-check-5aad8e0065-s3-1 Waiting
Container lab4-check-5aad8e0065-s3-bootstrap-1 Waiting
Container lab4-check-5aad8e0065-valkey-1 Healthy
Container lab4-check-5aad8e0065-migrate-1 Exited
Container lab4-check-5aad8e0065-postgres-1 Healthy
Container lab4-check-5aad8e0065-s3-1 Healthy
Container lab4-check-5aad8e0065-s3-bootstrap-1 Exited
Container lab4-check-5aad8e0065-api-1 Starting
Container lab4-check-5aad8e0065-api-1 Started
API ready through LB: 19a474c69210, ca1f62dfc015
Stopped API: 19a474c69210 container=19a474c69210a7be1c6631830e8fa7f251cf6dd3890c7407843090383543ee75
{"label": "stop 19a474c69210", "duration_seconds": 16.012, "successful_requests": 1420, "successful_writes": 709, "errors": 4, "successful_rps": 88.68, "first_success_after_action_seconds": {"POST": 0.051, "GET": 0.004}, "maximum_success_gap_seconds": {"POST": 2.002, "GET": 1.995}, "action_start_seconds": 1.006, "action_end_seconds": 1.77, "p50_ms": 10.62, "p95_ms": 24.67, "confirmed_data_preserved": true, "duplicate_messages": 0, "instances": ["19a474c69210", "ca1f62dfc015"]}
Container lab4-check-5aad8e0065-postgres-1 Waiting
Container lab4-check-5aad8e0065-s3-storage-1 Waiting
Container lab4-check-5aad8e0065-s3-storage-1 Healthy
Container lab4-check-5aad8e0065-postgres-1 Healthy
Container lab4-check-5aad8e0065-s3-1 Waiting
Container lab4-check-5aad8e0065-migrate-1 Starting
Container lab4-check-5aad8e0065-migrate-1 Started
Container lab4-check-5aad8e0065-s3-1 Healthy
Container lab4-check-5aad8e0065-s3-bootstrap-1 Starting
Container lab4-check-5aad8e0065-s3-bootstrap-1 Started
Container lab4-check-5aad8e0065-s3-1 Waiting
Container lab4-check-5aad8e0065-s3-bootstrap-1 Waiting
Container lab4-check-5aad8e0065-postgres-1 Waiting
Container lab4-check-5aad8e0065-valkey-1 Waiting
Container lab4-check-5aad8e0065-migrate-1 Waiting
Container lab4-check-5aad8e0065-valkey-1 Healthy
Container lab4-check-5aad8e0065-postgres-1 Healthy
Container lab4-check-5aad8e0065-migrate-1 Exited
Container lab4-check-5aad8e0065-s3-1 Healthy
Container lab4-check-5aad8e0065-s3-bootstrap-1 Exited
Container lab4-check-5aad8e0065-api-1 Starting
Container lab4-check-5aad8e0065-api-1 Started
API ready through LB: 19a474c69210, ca1f62dfc015
Stopped API: ca1f62dfc015 container=ca1f62dfc0156fc235dbcd2f52b58eec2282e6ba8d3e056de11ca92758c69df0
{"label": "stop ca1f62dfc015", "duration_seconds": 16.008, "successful_requests": 1466, "successful_writes": 732, "errors": 4, "successful_rps": 91.58, "first_success_after_action_seconds": {"POST": 0.018, "GET": 0.028}, "maximum_success_gap_seconds": {"POST": 2.002, "GET": 1.999}, "action_start_seconds": 1.002, "action_end_seconds": 1.832, "p50_ms": 9.397, "p95_ms": 18.616, "confirmed_data_preserved": true, "duplicate_messages": 0, "instances": ["19a474c69210", "ca1f62dfc015"]}
Container lab4-check-5aad8e0065-s3-storage-1 Waiting
Container lab4-check-5aad8e0065-postgres-1 Waiting
Container lab4-check-5aad8e0065-postgres-1 Healthy
Container lab4-check-5aad8e0065-s3-storage-1 Healthy
Container lab4-check-5aad8e0065-migrate-1 Starting
Container lab4-check-5aad8e0065-s3-1 Waiting
Container lab4-check-5aad8e0065-migrate-1 Started
Container lab4-check-5aad8e0065-s3-1 Healthy
Container lab4-check-5aad8e0065-s3-bootstrap-1 Starting
Container lab4-check-5aad8e0065-s3-bootstrap-1 Started
Container lab4-check-5aad8e0065-postgres-1 Waiting
Container lab4-check-5aad8e0065-valkey-1 Waiting
Container lab4-check-5aad8e0065-migrate-1 Waiting
Container lab4-check-5aad8e0065-s3-1 Waiting
Container lab4-check-5aad8e0065-s3-bootstrap-1 Waiting
Container lab4-check-5aad8e0065-valkey-1 Healthy
Container lab4-check-5aad8e0065-postgres-1 Healthy
Container lab4-check-5aad8e0065-s3-1 Healthy
Container lab4-check-5aad8e0065-migrate-1 Exited
Container lab4-check-5aad8e0065-s3-bootstrap-1 Exited
Container lab4-check-5aad8e0065-api-2 Starting
Container lab4-check-5aad8e0065-api-2 Started
API ready through LB: 19a474c69210, ca1f62dfc015
Local .env and secrets are ready; values are not printed
#1 [internal] load local bake definitions
#1 reading from stdin 564B done
#1 DONE 0.0s
#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 733B done
#2 DONE 0.0s
#3 [internal] load metadata for docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3
#3 DONE 0.0s
#4 [internal] load .dockerignore
#4 transferring context: 167B done
#4 DONE 0.0s
#5 [internal] load build context
#5 transferring context: 1.01kB done
#5 DONE 0.0s
#6 [1/8] FROM docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3
#6 resolve docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3 0.0s done
#6 DONE 0.0s
#7 [3/8] COPY requirements.txt .
#7 CACHED
#8 [6/8] COPY src/ ./src/
#8 CACHED
#9 [2/8] WORKDIR /app
#9 CACHED
#10 [7/8] COPY migrations/ ./migrations/
#10 CACHED
#11 [5/8] RUN groupadd --gid 10001 app && useradd --uid 10001 --gid app --no-create-home app
#11 CACHED
#12 [4/8] RUN python -m pip install --no-cache-dir -r requirements.txt && python -m pip check
#12 CACHED
#13 [8/8] COPY research/ ./research/
#13 CACHED
#14 exporting to image
#14 exporting layers done
#14 exporting manifest sha256:644f5d408505f5982b75f18404860de692ee837b2b2e18f5c92b0b057081b7ec done
#14 exporting config sha256:726011343b32f5b6277348f2f8b38f95b8c31754ae0d21336375124a18aa2e0e done
#14 exporting attestation manifest sha256:f4a5559518ea1ef0e3747d6084c8ad8dbc8b16dc41cb00062303d0f895b9a235 0.0s done
#14 exporting manifest list sha256:93c838d55d79a0001346ecab28f72621d9540ba5c52eaeb1ca6020286dd05fd6 done
#14 naming to docker.io/library/mtusi-messenger:lab4 done
#14 unpacking to docker.io/library/mtusi-messenger:lab4 done
#14 DONE 0.1s
#15 resolving provenance for metadata file
#15 DONE 0.0s
mtusi-messenger:lab4 Built
Container lab4-check-5aad8e0065-postgres-1 Running
Migrations: already applied
API ready through LB: 19a474c69210, ca1f62dfc015
Replacing API: 19a474c69210
Container lab4-check-5aad8e0065-api-2 Running
Container lab4-check-5aad8e0065-api-3 Creating
Container lab4-check-5aad8e0065-api-3 Created
Container lab4-check-5aad8e0065-api-3 Starting
Container lab4-check-5aad8e0065-api-3 Started
API ready through LB: ca1f62dfc015, ed4f3c64a9f6
Replacing API: ca1f62dfc015
Container lab4-check-5aad8e0065-api-3 Running
Container lab4-check-5aad8e0065-api-4 Creating
Container lab4-check-5aad8e0065-api-4 Created
Container lab4-check-5aad8e0065-api-4 Starting
Container lab4-check-5aad8e0065-api-4 Started
API ready through LB: 63549c0d63ba, ed4f3c64a9f6
PASS: all API containers replaced sequentially; stores and LB kept running
{"label": "sequential API replacement", "duration_seconds": 24.869, "successful_requests": 2254, "successful_writes": 1128, "errors": 8, "successful_rps": 90.63, "first_success_after_action_seconds": {"POST": 0.01, "GET": 0.021}, "maximum_success_gap_seconds": {"POST": 1.04, "GET": 1.04}, "action_start_seconds": 1.009, "action_end_seconds": 21.862, "p50_ms": 8.907, "p95_ms": 16.321, "confirmed_data_preserved": true, "duplicate_messages": 0, "instances": ["19a474c69210", "63549c0d63ba", "ca1f62dfc015", "ed4f3c64a9f6"]}
PASS: all lab4 grade-4 checks completed
Container lab4-check-5aad8e0065-lb-1 Stopping
Container lab4-check-5aad8e0065-cleanup-1 Stopping
Container lab4-check-5aad8e0065-lb-1 Stopped
Container lab4-check-5aad8e0065-lb-1 Removing
Container lab4-check-5aad8e0065-lb-1 Removed
Container lab4-check-5aad8e0065-api-3 Stopping
Container lab4-check-5aad8e0065-api-4 Stopping
Container lab4-check-5aad8e0065-api-3 Stopped
Container lab4-check-5aad8e0065-api-3 Removing
Container lab4-check-5aad8e0065-api-3 Removed
Container lab4-check-5aad8e0065-api-4 Stopped
Container lab4-check-5aad8e0065-api-4 Removing
Container lab4-check-5aad8e0065-api-4 Removed
Container lab4-check-5aad8e0065-valkey-1 Stopping
Container lab4-check-5aad8e0065-valkey-1 Stopped
Container lab4-check-5aad8e0065-valkey-1 Removing
Container lab4-check-5aad8e0065-valkey-1 Removed
Container lab4-check-5aad8e0065-cleanup-1 Stopped
Container lab4-check-5aad8e0065-cleanup-1 Removing
Container lab4-check-5aad8e0065-cleanup-1 Removed
Container lab4-check-5aad8e0065-s3-bootstrap-1 Stopping
Container lab4-check-5aad8e0065-migrate-1 Stopping
Container lab4-check-5aad8e0065-migrate-1 Stopped
Container lab4-check-5aad8e0065-migrate-1 Removing
Container lab4-check-5aad8e0065-s3-bootstrap-1 Stopped
Container lab4-check-5aad8e0065-s3-bootstrap-1 Removing
Container lab4-check-5aad8e0065-s3-bootstrap-1 Removed
Container lab4-check-5aad8e0065-s3-1 Stopping
Container lab4-check-5aad8e0065-migrate-1 Removed
Container lab4-check-5aad8e0065-postgres-1 Stopping
Container lab4-check-5aad8e0065-postgres-1 Stopped
Container lab4-check-5aad8e0065-postgres-1 Removing
Container lab4-check-5aad8e0065-postgres-1 Removed
Container lab4-check-5aad8e0065-s3-1 Stopped
Container lab4-check-5aad8e0065-s3-1 Removing
Container lab4-check-5aad8e0065-s3-1 Removed
Container lab4-check-5aad8e0065-s3-storage-1 Stopping
Container lab4-check-5aad8e0065-s3-storage-1 Stopped
Container lab4-check-5aad8e0065-s3-storage-1 Removing
Container lab4-check-5aad8e0065-s3-storage-1 Removed
Volume lab4-check-5aad8e0065_valkey_data Removing
Network lab4-check-5aad8e0065_s3-internal Removing
Volume lab4-check-5aad8e0065_postgres_data Removing
Volume lab4-check-5aad8e0065_s3_data Removing
Network lab4-check-5aad8e0065_default Removing
Volume lab4-check-5aad8e0065_valkey_data Removed
Volume lab4-check-5aad8e0065_s3_data Removed
Volume lab4-check-5aad8e0065_postgres_data Removed
Network lab4-check-5aad8e0065_s3-internal Removed
Network lab4-check-5aad8e0065_default Removed
Removed only temporary test containers and volumes: lab4-check-5aad8e0065
+502
View File
@@ -0,0 +1,502 @@
{
"utc": "2026-11-12T15:23:27.573351+00:00",
"command": "./scripts/check-docker.sh",
"project": "lab5-check-d233766d34",
"host": "Darwin arm64",
"source_commit": "276dbdad8a34da4c5b57fbf1879ca169b581d75b",
"working_tree": true,
"configuration": {
"concurrency": 2,
"prefetch": 1,
"attempts": 5,
"timeout_seconds": 5,
"lease_seconds": 15,
"backoff_base_seconds": 0.15
},
"checks": {
"topology_and_limits": {
"passed": true,
"api_replicas": 2,
"broker": "Valkey Streams with AOF fsync always",
"worker_processes": 2
},
"public_smoke_and_schema": {
"passed": true
},
"student_api_regressions": {
"passed": true
},
"worker_offline_api_broker_restart": {
"passed": true,
"attachment_id": "63406ab0-cc3c-4fa2-a0aa-e5e3353d5ae3",
"job_id": "7f450ff7-cb2d-4189-a668-f1967dbd94e8",
"message_id": "bc37bafb-efe1-4481-b304-c725c6e8368d",
"variants": {
"thumbnail": {
"size": [
256,
160
],
"bytes": 5813
},
"crop": {
"size": [
128,
128
],
"bytes": 2462
},
"optimized": {
"size": [
320,
200
],
"bytes": 2462
}
}
},
"outbox_crash_before_publish": {
"passed": true,
"job_id": "a3973e2b-ff73-4bca-bc41-394f2b875d13",
"automatic_recovery": true
},
"outbox_crash_after_publish": {
"passed": true,
"job_id": "007cb1d1-4b3b-4d12-9b2b-91a4682e8b08",
"automatic_recovery": true
},
"worker_crash_after_objects": {
"passed": true,
"job_id": "21129707-7dd0-4a72-ac33-5691dae3194e",
"attempt": 2,
"canonical_objects": 4,
"duplicate_noop": true
},
"worker_crash_before_ack": {
"passed": true,
"job_id": "2eeba68e-3fc7-42e0-adf9-13ac01c6c982",
"attempt": 1,
"canonical_objects": 4,
"duplicate_noop": true
},
"bounded_retry_failed_registry_replay": {
"passed": true,
"job_id": "bf756bf3-c3ca-45d2-acdd-3e67eb882d4d",
"max_automatic_attempts": 5,
"audit": [
{
"event": "processing",
"attempt": 1,
"error_code": null,
"at": "2026-11-12T15:25:18.431558+00:00"
},
{
"event": "retry",
"attempt": 1,
"error_code": "storage_unavailable",
"at": "2026-11-12T15:25:18.432821+00:00"
},
{
"event": "processing",
"attempt": 2,
"error_code": null,
"at": "2026-11-12T15:25:18.692895+00:00"
},
{
"event": "retry",
"attempt": 2,
"error_code": "storage_unavailable",
"at": "2026-11-12T15:25:18.69618+00:00"
},
{
"event": "processing",
"attempt": 3,
"error_code": null,
"at": "2026-11-12T15:25:19.206061+00:00"
},
{
"event": "retry",
"attempt": 3,
"error_code": "storage_unavailable",
"at": "2026-11-12T15:25:19.208065+00:00"
},
{
"event": "processing",
"attempt": 4,
"error_code": null,
"at": "2026-11-12T15:25:19.97778+00:00"
},
{
"event": "retry",
"attempt": 4,
"error_code": "storage_unavailable",
"at": "2026-11-12T15:25:19.978984+00:00"
},
{
"event": "processing",
"attempt": 5,
"error_code": null,
"at": "2026-11-12T15:25:21.777757+00:00"
},
{
"event": "failed",
"attempt": 5,
"error_code": "retry_exhausted",
"at": "2026-11-12T15:25:21.78129+00:00"
},
{
"event": "operator_replay",
"attempt": 5,
"error_code": null,
"at": "2026-11-12T15:25:22.680791+00:00"
},
{
"event": "processing",
"attempt": 6,
"error_code": null,
"at": "2026-11-12T15:25:22.802027+00:00"
},
{
"event": "ready",
"attempt": 6,
"error_code": null,
"at": "2026-11-12T15:25:23.151043+00:00"
}
],
"ready_replay_rejected": true
},
"permanent_error": {
"passed": true,
"job_id": "c2056d32-08bf-4c8a-8980-2f8b6c2511c9",
"attempt": 1,
"error_code": "invalid_image"
},
"image_subprocess_timeout": {
"passed": true,
"job_id": "6e8efff5-d82d-45f4-af12-3b05dcdb0076",
"timeout_seconds": 5,
"task_memory_mb": 640,
"recovered": true
},
"image_subprocess_memory": {
"passed": true,
"job_id": "ff1e7e76-b82d-4ba1-8ca9-79f3d78a4dfe",
"timeout_seconds": 5,
"task_memory_mb": 640,
"recovered": true
},
"image_semantics": {
"passed": true,
"cases": [
{
"case": "small_alpha_on_white",
"variants": {
"thumbnail": {
"size": [
17,
9
],
"bytes": 635
},
"crop": {
"size": [
128,
128
],
"bytes": 883
},
"optimized": {
"size": [
17,
9
],
"bytes": 56
}
}
},
{
"case": "exif_orientation_6_and_floor",
"variants": {
"thumbnail": {
"size": [
160,
256
],
"bytes": 1270
},
"crop": {
"size": [
128,
128
],
"bytes": 886
},
"optimized": {
"size": [
201,
321
],
"bytes": 210
}
}
}
]
},
"staging_cleanup": {
"passed": true,
"active_preserved": true,
"orphan_removed": true,
"ready_removed": true,
"expired_failed_removed": true,
"expired_replay_rejected": true
},
"broker_offline_outbox": {
"passed": true,
"attachment_id": "3b3d3600-efcc-4840-ab76-07868501c21d",
"recovered": true
},
"public_persistence": {
"passed": true
},
"public_api_failover": {
"passed": true
}
},
"docker": "29.0.1 aarch64 CPUs=10 RAM=8217448448",
"containers": [
{
"id": "9fbe552bf1bd8c2be76b3434cc5662479ca8d328ca698813ac9a785bcafc0cfd",
"service": "api",
"image": "mtusi-messenger:lab5",
"memory_bytes": 402653184,
"nano_cpus": 1000000000,
"mounts": [
{
"destination": "/run/secrets/s3_secret_access_key",
"name": null
},
{
"destination": "/run/secrets/database_url",
"name": null
},
{
"destination": "/run/secrets/cache_url",
"name": null
},
{
"destination": "/run/secrets/s3_access_key_id",
"name": null
}
]
},
{
"id": "ebc82ed28847cbaf6f474088c68005f05d49469010b45ff3767fb0a944ead6e0",
"service": "api",
"image": "mtusi-messenger:lab5",
"memory_bytes": 402653184,
"nano_cpus": 1000000000,
"mounts": [
{
"destination": "/run/secrets/s3_access_key_id",
"name": null
},
{
"destination": "/run/secrets/s3_secret_access_key",
"name": null
},
{
"destination": "/run/secrets/database_url",
"name": null
},
{
"destination": "/run/secrets/cache_url",
"name": null
}
]
},
{
"id": "26a48bd7b3390a4cd99667d4d99d6342edce8e26accaee3b181a4d842203261a",
"service": "broker",
"image": "valkey/valkey:8.1.3",
"memory_bytes": 268435456,
"nano_cpus": 500000000,
"mounts": [
{
"destination": "/data",
"name": "lab5-check-d233766d34_broker_data"
},
{
"destination": "/run/secrets/broker_password",
"name": null
}
]
},
{
"id": "232fdc281b939bf905b4123102a6a6eb609a4ffcb730f6d03707beb07283d69c",
"service": "cleanup",
"image": "mtusi-messenger:lab5",
"memory_bytes": 402653184,
"nano_cpus": 1000000000,
"mounts": [
{
"destination": "/run/secrets/database_url",
"name": null
},
{
"destination": "/run/secrets/s3_access_key_id",
"name": null
},
{
"destination": "/run/secrets/s3_secret_access_key",
"name": null
}
]
},
{
"id": "e722801286bb112062f1da59af65dc21eddf5059ca086022e0d52f85a0f26154",
"service": "lb",
"image": "haproxy:3.2.6-alpine",
"memory_bytes": 67108864,
"nano_cpus": 500000000,
"mounts": [
{
"destination": "/usr/local/etc/haproxy/haproxy.cfg",
"name": null
}
]
},
{
"id": "ba806a4ce014a516ea867a516743de64bef0d449726bb544d265bf31b4055b1b",
"service": "migrate",
"image": "mtusi-messenger:lab5",
"memory_bytes": 402653184,
"nano_cpus": 1000000000,
"mounts": [
{
"destination": "/run/secrets/database_url",
"name": null
}
]
},
{
"id": "0fd62d960020290ba4089d05fdcc8da2bb0e2faf7528fc6ed3384e35236d4290",
"service": "postgres",
"image": "postgres:17.6-bookworm",
"memory_bytes": 536870912,
"nano_cpus": 1000000000,
"mounts": [
{
"destination": "/var/lib/postgresql/data",
"name": "lab5-check-d233766d34_postgres_data"
},
{
"destination": "/run/secrets/postgres_password",
"name": null
}
]
},
{
"id": "c658ec3ef1e14ca2f1ca8f1530e6f13b37b99ce8389fafeae84e841e65daa2fc",
"service": "publisher",
"image": "mtusi-messenger:lab5",
"memory_bytes": 402653184,
"nano_cpus": 1000000000,
"mounts": [
{
"destination": "/run/secrets/database_url",
"name": null
},
{
"destination": "/run/secrets/broker_url",
"name": null
}
]
},
{
"id": "bc944a3a03374052aba43f42767c253755a921090fd15ead92fa2a924507c941",
"service": "s3",
"image": "chrislusf/seaweedfs:3.85@sha256:49312939c00c01e5ee6afbd7d728b18027821d3764c35a797a72acd4fdf3296a",
"memory_bytes": 268435456,
"nano_cpus": 500000000,
"mounts": [
{
"destination": "/run/secrets/s3_config",
"name": null
},
{
"destination": "/data",
"name": "0496c4617fd5cac2843b4c391fc1eb42e15c90c4d9a35d092e71a6fd8815960f"
}
]
},
{
"id": "9e7382c34331cb65974fa3feb248105c8055fa25c251151f0f004b65fc388923",
"service": "s3-bootstrap",
"image": "mtusi-messenger:lab5",
"memory_bytes": 134217728,
"nano_cpus": 500000000,
"mounts": [
{
"destination": "/run/secrets/s3_root_password",
"name": null
},
{
"destination": "/run/secrets/s3_root_user",
"name": null
}
]
},
{
"id": "b9821d3ec48ce18b8255a446cf99b02d6ea9658de406a15cc0ace7ccf7d7350e",
"service": "s3-storage",
"image": "chrislusf/seaweedfs:3.85@sha256:49312939c00c01e5ee6afbd7d728b18027821d3764c35a797a72acd4fdf3296a",
"memory_bytes": 536870912,
"nano_cpus": 1000000000,
"mounts": [
{
"destination": "/data",
"name": "lab5-check-d233766d34_s3_data"
}
]
},
{
"id": "c8ddc9fede2be42d05e79147dfc7dd87efede3b67f3226afeee1161fcaa49428",
"service": "valkey",
"image": "valkey/valkey:8.1.3",
"memory_bytes": 134217728,
"nano_cpus": 500000000,
"mounts": [
{
"destination": "/data",
"name": "lab5-check-d233766d34_valkey_data"
}
]
},
{
"id": "9fee2e7832c5c11e81bb56df9d435ad090fdb1fddb85efbf014ea6019559ed75",
"service": "worker",
"image": "mtusi-messenger:lab5",
"memory_bytes": 1610612736,
"nano_cpus": 2000000000,
"mounts": [
{
"destination": "/run/secrets/broker_url",
"name": null
},
{
"destination": "/run/secrets/s3_access_key_id",
"name": null
},
{
"destination": "/run/secrets/s3_secret_access_key",
"name": null
},
{
"destination": "/run/secrets/database_url",
"name": null
}
]
}
],
"passed": true
}
+77
View File
@@ -0,0 +1,77 @@
PASS: topology_and_limits {"api_replicas": 2, "broker": "Valkey Streams with AOF fsync always", "worker_processes": 2}
/Users/vanek/Desktop/VNPlabs/VNPlab5/mtusi2026lab5/.venv/bin/python scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
/Users/vanek/Desktop/VNPlabs/VNPlab5/mtusi2026lab5/.venv/bin/python scripts/validate_openapi.py
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
/Users/vanek/Desktop/VNPlabs/VNPlab5/mtusi2026lab5/.venv/bin/python tests/smoke.py --base-url "http://127.0.0.1:57277"
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
PASS: public_smoke_and_schema {}
PASS: 10 clients sent 100 messages; history contains exactly 100 unique messages.
test_chat_access (test_api.ApiTests.test_chat_access) ... ok
test_chat_pagination_and_cursor_owner (test_api.ApiTests.test_chat_pagination_and_cursor_owner) ... ok
test_cursor_cannot_be_used_for_another_chat_or_changed (test_api.ApiTests.test_cursor_cannot_be_used_for_another_chat_or_changed) ... ok
test_default_page_size (test_api.ApiTests.test_default_page_size) ... ok
test_duplicate_username (test_api.ApiTests.test_duplicate_username) ... ok
test_framework_errors_and_request_ids (test_api.ApiTests.test_framework_errors_and_request_ids) ... ok
test_identification_and_authentication_order (test_api.ApiTests.test_identification_and_authentication_order) ... ok
test_invalid_chat_members (test_api.ApiTests.test_invalid_chat_members) ... ok
test_invalid_chat_title (test_api.ApiTests.test_invalid_chat_title) ... ok
test_invalid_limits_and_cursors (test_api.ApiTests.test_invalid_limits_and_cursors) ... ok
test_invalid_message_fields (test_api.ApiTests.test_invalid_message_fields) ... ok
test_invalid_user_fields (test_api.ApiTests.test_invalid_user_fields) ... ok
test_malformed_json_and_encoding (test_api.ApiTests.test_malformed_json_and_encoding) ... ok
test_message_pagination_and_changing_limit (test_api.ApiTests.test_message_pagination_and_changing_limit) ... ok
test_unicode_and_text_preservation (test_api.ApiTests.test_unicode_and_text_preservation) ... ok
test_wrong_content_type (test_api.ApiTests.test_wrong_content_type) ... ok
test_access_and_authentication (test_attachments.AttachmentTests.test_access_and_authentication) ... ok
test_attachment_only_message_and_other_member (test_attachments.AttachmentTests.test_attachment_only_message_and_other_member) ... ok
test_chunked_limit_without_content_length (test_attachments.AttachmentTests.test_chunked_limit_without_content_length) ... ok
test_content_length_limit_before_body (test_attachments.AttachmentTests.test_content_length_limit_before_body) ... ok
test_corruption_and_mime_spoof (test_attachments.AttachmentTests.test_corruption_and_mime_spoof) ... ok
test_filename_rejected_before_storage (test_attachments.AttachmentTests.test_filename_rejected_before_storage) ... ok
test_foreign_and_unknown_attachment_ids (test_attachments.AttachmentTests.test_foreign_and_unknown_attachment_ids) ... ok
test_idempotency_includes_ordered_attachment_ids (test_attachments.AttachmentTests.test_idempotency_includes_ordered_attachment_ids) ... ok
test_invalid_attachment_lists (test_attachments.AttachmentTests.test_invalid_attachment_lists) ... ok
test_pixel_limit_before_decode (test_attachments.AttachmentTests.test_pixel_limit_before_decode) ... ok
test_png_and_jpeg_originals (test_attachments.AttachmentTests.test_png_and_jpeg_originals) ... ok
test_simultaneous_registration_of_one_username (test_concurrency.ConcurrencyTests.test_simultaneous_registration_of_one_username) ... ok
test_ten_clients_send_one_hundred_messages (test_concurrency.ConcurrencyTests.test_ten_clients_send_one_hundred_messages) ... ok
test_conflict_and_semantic_json_replay (test_idempotency.IdempotencyTests.test_conflict_and_semantic_json_replay) ... ok
test_key_format_and_missing_key (test_idempotency.IdempotencyTests.test_key_format_and_missing_key) ... ok
test_parallel_replay_across_replicas (test_idempotency.IdempotencyTests.test_parallel_replay_across_replicas) ... ok
test_replay_rechecks_session_and_access (test_idempotency.IdempotencyTests.test_replay_rechecks_session_and_access) ... ok
test_scope_is_user_and_chat (test_idempotency.IdempotencyTests.test_scope_is_user_and_chat) ... ok
test_logout_revokes_only_one_session (test_sessions.SessionTests.test_logout_revokes_only_one_session) ... ok
test_password_validation (test_sessions.SessionTests.test_password_validation) ... ok
test_sql_like_message_is_plain_text (test_sessions.SessionTests.test_sql_like_message_is_plain_text) ... ok
test_unicode_password_with_colon_and_private_response (test_sessions.SessionTests.test_unicode_password_with_colon_and_private_response) ... ok
test_wrong_password_and_basic_only_for_login (test_sessions.SessionTests.test_wrong_password_and_basic_only_for_login) ... ok
----------------------------------------------------------------------
Ran 39 tests in 6.981s
OK
PASS: student_api_regressions {}
PASS: worker_offline_api_broker_restart {"attachment_id": "63406ab0-cc3c-4fa2-a0aa-e5e3353d5ae3", "job_id": "7f450ff7-cb2d-4189-a668-f1967dbd94e8", "message_id": "bc37bafb-efe1-4481-b304-c725c6e8368d", "variants": {"thumbnail": {"size": [256, 160], "bytes": 5813}, "crop": {"size": [128, 128], "bytes": 2462}, "optimized": {"size": [320, 200], "bytes": 2462}}}
PASS: outbox_crash_before_publish {"job_id": "a3973e2b-ff73-4bca-bc41-394f2b875d13", "automatic_recovery": true}
PASS: outbox_crash_after_publish {"job_id": "007cb1d1-4b3b-4d12-9b2b-91a4682e8b08", "automatic_recovery": true}
PASS: worker_crash_after_objects {"job_id": "21129707-7dd0-4a72-ac33-5691dae3194e", "attempt": 2, "canonical_objects": 4, "duplicate_noop": true}
PASS: worker_crash_before_ack {"job_id": "2eeba68e-3fc7-42e0-adf9-13ac01c6c982", "attempt": 1, "canonical_objects": 4, "duplicate_noop": true}
PASS: bounded_retry_failed_registry_replay {"job_id": "bf756bf3-c3ca-45d2-acdd-3e67eb882d4d", "max_automatic_attempts": 5, "audit": [{"event": "processing", "attempt": 1, "error_code": null, "at": "2026-11-12T15:25:18.431558+00:00"}, {"event": "retry", "attempt": 1, "error_code": "storage_unavailable", "at": "2026-11-12T15:25:18.432821+00:00"}, {"event": "processing", "attempt": 2, "error_code": null, "at": "2026-11-12T15:25:18.692895+00:00"}, {"event": "retry", "attempt": 2, "error_code": "storage_unavailable", "at": "2026-11-12T15:25:18.69618+00:00"}, {"event": "processing", "attempt": 3, "error_code": null, "at": "2026-11-12T15:25:19.206061+00:00"}, {"event": "retry", "attempt": 3, "error_code": "storage_unavailable", "at": "2026-11-12T15:25:19.208065+00:00"}, {"event": "processing", "attempt": 4, "error_code": null, "at": "2026-11-12T15:25:19.97778+00:00"}, {"event": "retry", "attempt": 4, "error_code": "storage_unavailable", "at": "2026-11-12T15:25:19.978984+00:00"}, {"event": "processing", "attempt": 5, "error_code": null, "at": "2026-11-12T15:25:21.777757+00:00"}, {"event": "failed", "attempt": 5, "error_code": "retry_exhausted", "at": "2026-11-12T15:25:21.78129+00:00"}, {"event": "operator_replay", "attempt": 5, "error_code": null, "at": "2026-11-12T15:25:22.680791+00:00"}, {"event": "processing", "attempt": 6, "error_code": null, "at": "2026-11-12T15:25:22.802027+00:00"}, {"event": "ready", "attempt": 6, "error_code": null, "at": "2026-11-12T15:25:23.151043+00:00"}], "ready_replay_rejected": true}
PASS: permanent_error {"job_id": "c2056d32-08bf-4c8a-8980-2f8b6c2511c9", "attempt": 1, "error_code": "invalid_image"}
PASS: image_subprocess_timeout {"job_id": "6e8efff5-d82d-45f4-af12-3b05dcdb0076", "timeout_seconds": 5, "task_memory_mb": 640, "recovered": true}
PASS: image_subprocess_memory {"job_id": "ff1e7e76-b82d-4ba1-8ca9-79f3d78a4dfe", "timeout_seconds": 5, "task_memory_mb": 640, "recovered": true}
PASS: image_semantics {"cases": [{"case": "small_alpha_on_white", "variants": {"thumbnail": {"size": [17, 9], "bytes": 635}, "crop": {"size": [128, 128], "bytes": 883}, "optimized": {"size": [17, 9], "bytes": 56}}}, {"case": "exif_orientation_6_and_floor", "variants": {"thumbnail": {"size": [160, 256], "bytes": 1270}, "crop": {"size": [128, 128], "bytes": 886}, "optimized": {"size": [201, 321], "bytes": 210}}}]}
PASS: staging_cleanup {"active_preserved": true, "orphan_removed": true, "ready_removed": true, "expired_failed_removed": true, "expired_replay_rejected": true}
PASS: broker_offline_outbox {"attachment_id": "3b3d3600-efcc-4840-ab76-07868501c21d", "recovered": true}
/Users/vanek/Desktop/VNPlabs/VNPlab5/mtusi2026lab5/.venv/bin/python tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:57277"
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
PASS: public_persistence {}
/Users/vanek/Desktop/VNPlabs/VNPlab5/mtusi2026lab5/.venv/bin/python tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:57277"
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 110, "failed_attempts": 1, "first_recovery_seconds": 2.797}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
PASS: public_api_failover {}
PASS: all lab5 grade-4 criteria completed
Removed isolated test stack: lab5-check-d233766d34
+140
View File
@@ -0,0 +1,140 @@
{
"utc": "2026-11-12T15:28:31.543303+00:00",
"command": ".venv/bin/python student-tests/verify_restart.py",
"passed": true,
"before": {
"9e5a9d3d2bf0b2e47ee6d85b40b1899881db0d4d91d9ec09e50fb36aca67833c": {
"service": "api",
"started_at": "2026-11-12T15:28:13.153166256Z",
"volumes": []
},
"83bab824b05accd2aa8829e83e272d72d4105644f8270cf3dc15f3412d569f5b": {
"service": "api",
"started_at": "2026-11-12T15:28:13.038450506Z",
"volumes": []
},
"6f72735cbaed44f82555dcd550199764ab53a8c61a63c88f25c612fd39b6baba": {
"service": "broker",
"started_at": "2026-11-12T15:27:46.698266716Z",
"volumes": [
"mtusi-lab5_broker_data"
]
},
"0f9060c7dc8473fa926c5affc560b3478b90c77771de9810ebba7858a30838d5": {
"service": "cleanup",
"started_at": "2026-11-12T15:28:13.036348173Z",
"volumes": []
},
"d381adfb7273a5dd2f22d361a6e1ff490e5c2cf44ff147a8253f7f940cd01de4": {
"service": "lb",
"started_at": "2026-11-12T15:28:18.76757655Z",
"volumes": []
},
"9906c3edca610723e6f09b64867fa71a543f18ef4b474804414e9f818a803115": {
"service": "postgres",
"started_at": "2026-11-12T15:27:46.700095216Z",
"volumes": [
"mtusi-lab5_postgres_data"
]
},
"d705dceffd740900bbad04ee520bb96247f286c7c5381734a28bc1c9e30f27e4": {
"service": "publisher",
"started_at": "2026-11-12T15:27:49.924416218Z",
"volumes": []
},
"cbe9063ff82960d9db58bc5713af90e4be3e72fdd1c08b0a92a93849dc6ad1aa": {
"service": "s3",
"started_at": "2026-11-12T15:28:09.808290754Z",
"volumes": [
"fe34bef7724beefe41335cd197f83aae91b16df70766cee6321bff12f765bc66"
]
},
"6d1b6c402e19a068a0f2f4b9c06d5abbec7e41b5d778a883e6d045be409f6d4c": {
"service": "s3-storage",
"started_at": "2026-11-12T15:27:46.699445508Z",
"volumes": [
"mtusi-lab5_s3_data"
]
},
"6d8c3e69c4b60acaf42e0259d367a0a3f2c06081a6349c284ddf9f2e9b5ba399": {
"service": "valkey",
"started_at": "2026-11-12T15:27:46.697619716Z",
"volumes": [
"mtusi-lab5_valkey_data"
]
},
"28fabe35a9a5b57e0a3a96bb4ae5308fbd2fa825470799180a2471b55400206e": {
"service": "worker",
"started_at": "2026-11-12T15:28:13.037172673Z",
"volumes": []
}
},
"after": {
"9e5a9d3d2bf0b2e47ee6d85b40b1899881db0d4d91d9ec09e50fb36aca67833c": {
"service": "api",
"started_at": "2026-11-12T15:28:33.373854585Z",
"volumes": []
},
"83bab824b05accd2aa8829e83e272d72d4105644f8270cf3dc15f3412d569f5b": {
"service": "api",
"started_at": "2026-11-12T15:28:33.338416001Z",
"volumes": []
},
"6f72735cbaed44f82555dcd550199764ab53a8c61a63c88f25c612fd39b6baba": {
"service": "broker",
"started_at": "2026-11-12T15:28:33.257433543Z",
"volumes": [
"mtusi-lab5_broker_data"
]
},
"0f9060c7dc8473fa926c5affc560b3478b90c77771de9810ebba7858a30838d5": {
"service": "cleanup",
"started_at": "2026-11-12T15:28:40.990298547Z",
"volumes": []
},
"d381adfb7273a5dd2f22d361a6e1ff490e5c2cf44ff147a8253f7f940cd01de4": {
"service": "lb",
"started_at": "2026-11-12T15:28:33.069501668Z",
"volumes": []
},
"9906c3edca610723e6f09b64867fa71a543f18ef4b474804414e9f818a803115": {
"service": "postgres",
"started_at": "2026-11-12T15:28:33.134879876Z",
"volumes": [
"mtusi-lab5_postgres_data"
]
},
"d705dceffd740900bbad04ee520bb96247f286c7c5381734a28bc1c9e30f27e4": {
"service": "publisher",
"started_at": "2026-11-12T15:28:40.90857463Z",
"volumes": []
},
"cbe9063ff82960d9db58bc5713af90e4be3e72fdd1c08b0a92a93849dc6ad1aa": {
"service": "s3",
"started_at": "2026-11-12T15:28:33.167460626Z",
"volumes": [
"fe34bef7724beefe41335cd197f83aae91b16df70766cee6321bff12f765bc66"
]
},
"6d1b6c402e19a068a0f2f4b9c06d5abbec7e41b5d778a883e6d045be409f6d4c": {
"service": "s3-storage",
"started_at": "2026-11-12T15:28:40.950084172Z",
"volumes": [
"mtusi-lab5_s3_data"
]
},
"6d8c3e69c4b60acaf42e0259d367a0a3f2c06081a6349c284ddf9f2e9b5ba399": {
"service": "valkey",
"started_at": "2026-11-12T15:28:33.205284001Z",
"volumes": [
"mtusi-lab5_valkey_data"
]
},
"28fabe35a9a5b57e0a3a96bb4ae5308fbd2fa825470799180a2471b55400206e": {
"service": "worker",
"started_at": "2026-11-12T15:28:33.299354043Z",
"volumes": []
}
},
"same_containers_and_volumes": true
}
+4
View File
@@ -0,0 +1,4 @@
/Users/vanek/Desktop/VNPlabs/VNPlab5/mtusi2026lab5/.venv/bin/python tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost: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.
PASS: all persistent services actually restarted; container IDs and volumes preserved
+51
View File
@@ -0,0 +1,51 @@
.venv/bin/python scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
.venv/bin/python scripts/validate_openapi.py
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
.venv/bin/python tests/smoke.py --base-url "http://localhost:8080"
PASS: lab6 public API scenario; infrastructure and grading evidence remain separate.
test_chat_access (test_api.ApiTests.test_chat_access) ... ok
test_chat_pagination_and_cursor_owner (test_api.ApiTests.test_chat_pagination_and_cursor_owner) ... ok
test_cursor_cannot_be_used_for_another_chat_or_changed (test_api.ApiTests.test_cursor_cannot_be_used_for_another_chat_or_changed) ... ok
test_default_page_size (test_api.ApiTests.test_default_page_size) ... ok
test_duplicate_username (test_api.ApiTests.test_duplicate_username) ... ok
test_framework_errors_and_request_ids (test_api.ApiTests.test_framework_errors_and_request_ids) ... ok
test_identification_and_authentication_order (test_api.ApiTests.test_identification_and_authentication_order) ... ok
test_invalid_chat_members (test_api.ApiTests.test_invalid_chat_members) ... ok
test_invalid_chat_title (test_api.ApiTests.test_invalid_chat_title) ... ok
test_invalid_limits_and_cursors (test_api.ApiTests.test_invalid_limits_and_cursors) ... ok
test_invalid_message_fields (test_api.ApiTests.test_invalid_message_fields) ... ok
test_invalid_user_fields (test_api.ApiTests.test_invalid_user_fields) ... ok
test_malformed_json_and_encoding (test_api.ApiTests.test_malformed_json_and_encoding) ... ok
test_message_pagination_and_changing_limit (test_api.ApiTests.test_message_pagination_and_changing_limit) ... ok
test_unicode_and_text_preservation (test_api.ApiTests.test_unicode_and_text_preservation) ... ok
test_wrong_content_type (test_api.ApiTests.test_wrong_content_type) ... ok
test_access_and_authentication (test_attachments.AttachmentTests.test_access_and_authentication) ... ok
test_attachment_only_message_and_other_member (test_attachments.AttachmentTests.test_attachment_only_message_and_other_member) ... ok
test_chunked_limit_without_content_length (test_attachments.AttachmentTests.test_chunked_limit_without_content_length) ... ok
test_content_length_limit_before_body (test_attachments.AttachmentTests.test_content_length_limit_before_body) ... ok
test_corruption_and_mime_spoof (test_attachments.AttachmentTests.test_corruption_and_mime_spoof) ... ok
test_filename_rejected_before_storage (test_attachments.AttachmentTests.test_filename_rejected_before_storage) ... ok
test_foreign_and_unknown_attachment_ids (test_attachments.AttachmentTests.test_foreign_and_unknown_attachment_ids) ... ok
test_idempotency_includes_ordered_attachment_ids (test_attachments.AttachmentTests.test_idempotency_includes_ordered_attachment_ids) ... ok
test_invalid_attachment_lists (test_attachments.AttachmentTests.test_invalid_attachment_lists) ... ok
test_pixel_limit_before_decode (test_attachments.AttachmentTests.test_pixel_limit_before_decode) ... ok
test_png_and_jpeg_originals (test_attachments.AttachmentTests.test_png_and_jpeg_originals) ... ok
test_simultaneous_registration_of_one_username (test_concurrency.ConcurrencyTests.test_simultaneous_registration_of_one_username) ... ok
test_ten_clients_send_one_hundred_messages (test_concurrency.ConcurrencyTests.test_ten_clients_send_one_hundred_messages) ... ok
test_conflict_and_semantic_json_replay (test_idempotency.IdempotencyTests.test_conflict_and_semantic_json_replay) ... ok
test_key_format_and_missing_key (test_idempotency.IdempotencyTests.test_key_format_and_missing_key) ... ok
test_parallel_replay_across_replicas (test_idempotency.IdempotencyTests.test_parallel_replay_across_replicas) ... ok
test_replay_rechecks_session_and_access (test_idempotency.IdempotencyTests.test_replay_rechecks_session_and_access) ... ok
test_scope_is_user_and_chat (test_idempotency.IdempotencyTests.test_scope_is_user_and_chat) ... ok
test_logout_revokes_only_one_session (test_sessions.SessionTests.test_logout_revokes_only_one_session) ... ok
test_password_validation (test_sessions.SessionTests.test_password_validation) ... ok
test_sql_like_message_is_plain_text (test_sessions.SessionTests.test_sql_like_message_is_plain_text) ... ok
test_unicode_password_with_colon_and_private_response (test_sessions.SessionTests.test_unicode_password_with_colon_and_private_response) ... ok
test_wrong_password_and_basic_only_for_login (test_sessions.SessionTests.test_wrong_password_and_basic_only_for_login) ... ok
----------------------------------------------------------------------
Ran 39 tests in 7.518s
OK
PASS: 10 clients sent 100 messages; history contains exactly 100 unique messages.
+102
View File
@@ -0,0 +1,102 @@
{
"utc": "2026-11-19T15:09:33.967862+00:00",
"checks": {
"retry_trace_and_logs": {
"passed": true,
"trace_id": "93e1177f9568f5bbfc0b6967a1324a84",
"request_id": "422b23e9-c8f9-4810-ad09-1cb99b6c9576",
"job_id": "fd4d7cce-b0dc-4edd-9938-61230afa7370",
"span_count": 59
},
"metrics_and_cardinality": {
"passed": true,
"series": 1192
},
"backend_outage": {
"passed": true,
"backend": "loki",
"successful_writes": 24,
"outage_seconds": 51.39,
"missing_request_logs": 6,
"tested_request_ids": [
"a5835a4b-40b6-4383-90a3-82d07b5bdcfb",
"ee8b61c0-9acc-4ff4-a0fd-f4a7d84e29a2",
"bb492157-8ffd-49a6-84ef-c2b17379bc8e",
"6a076038-13e0-415d-b961-254cb7d48194",
"59ab7cdd-f319-4828-a0b2-4bb9ecef9464",
"0b472396-a1f4-453c-aff2-0a8e2650f3e3",
"b0916ed0-b218-423a-ac39-1c6e904300e6",
"bcd32c58-953b-4759-ac8b-e87fc66c4fd4",
"0a065b55-3fac-46fc-9d92-c67f8ba6e409",
"11d46ead-2941-4279-aa86-0abf111bcaba",
"f6807acd-4e5f-4bef-9f35-93b2ac581390",
"fec97823-5700-4fab-a18a-8a98f11f5c4e",
"a03b0d52-34ea-4b0a-86f2-ac408a0a107c",
"6d44ee0d-f039-406b-b0f7-4ceb7743d020",
"efc0b1d3-e889-4ab4-a169-0369c4cb260b",
"0ae460c2-6b26-4f5c-8959-ecb48a61ca92",
"0f59b3eb-2187-412b-b569-c2373748020e",
"086464d0-5b79-4c9d-aa95-e08af7858c43",
"4c42e246-b973-4e79-8a37-be114b255b80",
"2065d6ba-c0f8-43a5-999f-55ec5299d855",
"8ccb2503-c32f-4b3d-9763-2d9455f13a99",
"979ef391-bc49-42af-95b8-194e028dd796",
"fe3a4f81-114e-4055-b160-7f47a15acfff",
"e6019f30-5b26-4bc1-a630-bcfbbeb6ba96"
],
"missing_request_ids": [
"a5835a4b-40b6-4383-90a3-82d07b5bdcfb",
"ee8b61c0-9acc-4ff4-a0fd-f4a7d84e29a2",
"bb492157-8ffd-49a6-84ef-c2b17379bc8e",
"6a076038-13e0-415d-b961-254cb7d48194",
"59ab7cdd-f319-4828-a0b2-4bb9ecef9464",
"0b472396-a1f4-453c-aff2-0a8e2650f3e3"
],
"collector_memory_samples": [
"{\"BlockIO\":\"0B / 0B\",\"CPUPerc\":\"0.12%\",\"Container\":\"6e21c63012d160a406e28a342d668de0be55107aa16228ed9d5dc15c34b447be\",\"ID\":\"6e21c63012d1\",\"MemPerc\":\"28.44%\",\"MemUsage\":\"72.8MiB / 256MiB\",\"Name\":\"mtusi-lab6-otel-collector-1\",\"NetIO\":\"7.32MB / 2.49MB\",\"PIDs\":\"15\"}",
"{\"BlockIO\":\"0B / 0B\",\"CPUPerc\":\"0.43%\",\"Container\":\"6e21c63012d160a406e28a342d668de0be55107aa16228ed9d5dc15c34b447be\",\"ID\":\"6e21c63012d1\",\"MemPerc\":\"27.52%\",\"MemUsage\":\"70.46MiB / 256MiB\",\"Name\":\"mtusi-lab6-otel-collector-1\",\"NetIO\":\"7.48MB / 2.53MB\",\"PIDs\":\"15\"}",
"{\"BlockIO\":\"0B / 0B\",\"CPUPerc\":\"0.42%\",\"Container\":\"6e21c63012d160a406e28a342d668de0be55107aa16228ed9d5dc15c34b447be\",\"ID\":\"6e21c63012d1\",\"MemPerc\":\"27.95%\",\"MemUsage\":\"71.56MiB / 256MiB\",\"Name\":\"mtusi-lab6-otel-collector-1\",\"NetIO\":\"7.64MB / 2.58MB\",\"PIDs\":\"15\"}",
"{\"BlockIO\":\"0B / 0B\",\"CPUPerc\":\"0.20%\",\"Container\":\"6e21c63012d160a406e28a342d668de0be55107aa16228ed9d5dc15c34b447be\",\"ID\":\"6e21c63012d1\",\"MemPerc\":\"27.96%\",\"MemUsage\":\"71.57MiB / 256MiB\",\"Name\":\"mtusi-lab6-otel-collector-1\",\"NetIO\":\"7.81MB / 2.62MB\",\"PIDs\":\"15\"}"
],
"collector_limit_bytes": 268435456,
"oom_killed": false,
"failed_exports_before": [
{
"metric": {
"__name__": "otelcol_exporter_send_failed_log_records_total",
"exporter": "otlphttp/loki",
"instance": "otel-collector:8888",
"job": "collector",
"otel_scope_name": "go.opentelemetry.io/collector/exporter/exporterhelper"
},
"value": [
1795100986.923,
"6"
]
}
],
"failed_exports_after": [
{
"metric": {
"__name__": "otelcol_exporter_send_failed_log_records_total",
"exporter": "otlphttp/loki",
"instance": "otel-collector:8888",
"job": "collector",
"otel_scope_name": "go.opentelemetry.io/collector/exporter/exporterhelper"
},
"value": [
1795101059.133,
"12"
]
}
]
},
"provisioned_dashboard_queries": {
"passed": true,
"panels": 19
}
},
"dashboard": "messenger-lab6",
"passed": true,
"duration_seconds": 85.23
}
+102
View File
@@ -0,0 +1,102 @@
{
"utc": "2026-11-19T15:09:33.967862+00:00",
"checks": {
"retry_trace_and_logs": {
"passed": true,
"trace_id": "93e1177f9568f5bbfc0b6967a1324a84",
"request_id": "422b23e9-c8f9-4810-ad09-1cb99b6c9576",
"job_id": "fd4d7cce-b0dc-4edd-9938-61230afa7370",
"span_count": 59
},
"metrics_and_cardinality": {
"passed": true,
"series": 1192
},
"backend_outage": {
"passed": true,
"backend": "loki",
"successful_writes": 24,
"outage_seconds": 51.39,
"missing_request_logs": 6,
"tested_request_ids": [
"a5835a4b-40b6-4383-90a3-82d07b5bdcfb",
"ee8b61c0-9acc-4ff4-a0fd-f4a7d84e29a2",
"bb492157-8ffd-49a6-84ef-c2b17379bc8e",
"6a076038-13e0-415d-b961-254cb7d48194",
"59ab7cdd-f319-4828-a0b2-4bb9ecef9464",
"0b472396-a1f4-453c-aff2-0a8e2650f3e3",
"b0916ed0-b218-423a-ac39-1c6e904300e6",
"bcd32c58-953b-4759-ac8b-e87fc66c4fd4",
"0a065b55-3fac-46fc-9d92-c67f8ba6e409",
"11d46ead-2941-4279-aa86-0abf111bcaba",
"f6807acd-4e5f-4bef-9f35-93b2ac581390",
"fec97823-5700-4fab-a18a-8a98f11f5c4e",
"a03b0d52-34ea-4b0a-86f2-ac408a0a107c",
"6d44ee0d-f039-406b-b0f7-4ceb7743d020",
"efc0b1d3-e889-4ab4-a169-0369c4cb260b",
"0ae460c2-6b26-4f5c-8959-ecb48a61ca92",
"0f59b3eb-2187-412b-b569-c2373748020e",
"086464d0-5b79-4c9d-aa95-e08af7858c43",
"4c42e246-b973-4e79-8a37-be114b255b80",
"2065d6ba-c0f8-43a5-999f-55ec5299d855",
"8ccb2503-c32f-4b3d-9763-2d9455f13a99",
"979ef391-bc49-42af-95b8-194e028dd796",
"fe3a4f81-114e-4055-b160-7f47a15acfff",
"e6019f30-5b26-4bc1-a630-bcfbbeb6ba96"
],
"missing_request_ids": [
"a5835a4b-40b6-4383-90a3-82d07b5bdcfb",
"ee8b61c0-9acc-4ff4-a0fd-f4a7d84e29a2",
"bb492157-8ffd-49a6-84ef-c2b17379bc8e",
"6a076038-13e0-415d-b961-254cb7d48194",
"59ab7cdd-f319-4828-a0b2-4bb9ecef9464",
"0b472396-a1f4-453c-aff2-0a8e2650f3e3"
],
"collector_memory_samples": [
"{\"BlockIO\":\"0B / 0B\",\"CPUPerc\":\"0.12%\",\"Container\":\"6e21c63012d160a406e28a342d668de0be55107aa16228ed9d5dc15c34b447be\",\"ID\":\"6e21c63012d1\",\"MemPerc\":\"28.44%\",\"MemUsage\":\"72.8MiB / 256MiB\",\"Name\":\"mtusi-lab6-otel-collector-1\",\"NetIO\":\"7.32MB / 2.49MB\",\"PIDs\":\"15\"}",
"{\"BlockIO\":\"0B / 0B\",\"CPUPerc\":\"0.43%\",\"Container\":\"6e21c63012d160a406e28a342d668de0be55107aa16228ed9d5dc15c34b447be\",\"ID\":\"6e21c63012d1\",\"MemPerc\":\"27.52%\",\"MemUsage\":\"70.46MiB / 256MiB\",\"Name\":\"mtusi-lab6-otel-collector-1\",\"NetIO\":\"7.48MB / 2.53MB\",\"PIDs\":\"15\"}",
"{\"BlockIO\":\"0B / 0B\",\"CPUPerc\":\"0.42%\",\"Container\":\"6e21c63012d160a406e28a342d668de0be55107aa16228ed9d5dc15c34b447be\",\"ID\":\"6e21c63012d1\",\"MemPerc\":\"27.95%\",\"MemUsage\":\"71.56MiB / 256MiB\",\"Name\":\"mtusi-lab6-otel-collector-1\",\"NetIO\":\"7.64MB / 2.58MB\",\"PIDs\":\"15\"}",
"{\"BlockIO\":\"0B / 0B\",\"CPUPerc\":\"0.20%\",\"Container\":\"6e21c63012d160a406e28a342d668de0be55107aa16228ed9d5dc15c34b447be\",\"ID\":\"6e21c63012d1\",\"MemPerc\":\"27.96%\",\"MemUsage\":\"71.57MiB / 256MiB\",\"Name\":\"mtusi-lab6-otel-collector-1\",\"NetIO\":\"7.81MB / 2.62MB\",\"PIDs\":\"15\"}"
],
"collector_limit_bytes": 268435456,
"oom_killed": false,
"failed_exports_before": [
{
"metric": {
"__name__": "otelcol_exporter_send_failed_log_records_total",
"exporter": "otlphttp/loki",
"instance": "otel-collector:8888",
"job": "collector",
"otel_scope_name": "go.opentelemetry.io/collector/exporter/exporterhelper"
},
"value": [
1795100986.923,
"6"
]
}
],
"failed_exports_after": [
{
"metric": {
"__name__": "otelcol_exporter_send_failed_log_records_total",
"exporter": "otlphttp/loki",
"instance": "otel-collector:8888",
"job": "collector",
"otel_scope_name": "go.opentelemetry.io/collector/exporter/exporterhelper"
},
"value": [
1795101059.133,
"12"
]
}
]
},
"provisioned_dashboard_queries": {
"passed": true,
"panels": 19
}
},
"dashboard": "messenger-lab6",
"passed": true,
"duration_seconds": 85.23
}
+306
View File
@@ -0,0 +1,306 @@
{
"status": "success",
"data": {
"resultType": "streams",
"result": [
{
"stream": {
"attachment_id": "0eb04e8c-8e7b-42a9-ad63-8fca3390d11c",
"deployment_environment_name": "lab",
"detected_level": "INFO",
"event": "attachment.accepted",
"flags": "3",
"job_id": "fd4d7cce-b0dc-4edd-9938-61230afa7370",
"scope_name": "messenger",
"scope_version": "6.0.0",
"service_instance_id": "166e3f521d4f:1",
"service_name": "messenger-api",
"service_version": "6.0.0",
"severity_number": "9",
"severity_text": "INFO",
"span_id": "e04c2c74d09fa066",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1",
"trace_id": "93e1177f9568f5bbfc0b6967a1324a84"
},
"values": [
[
"1795100974767540043",
"{\"timestamp\": \"2026-11-19T15:09:34.767497+00:00\", \"severity\": \"INFO\", \"service.name\": \"messenger-api\", \"event\": \"attachment.accepted\", \"trace_id\": \"93e1177f9568f5bbfc0b6967a1324a84\", \"span_id\": \"e04c2c74d09fa066\", \"job_id\": \"fd4d7cce-b0dc-4edd-9938-61230afa7370\", \"attachment_id\": \"0eb04e8c-8e7b-42a9-ad63-8fca3390d11c\"}"
]
]
},
{
"stream": {
"attempt": "1",
"deployment_environment_name": "lab",
"detected_level": "ERROR",
"error_code": "storage_unavailable",
"event": "job.retry",
"flags": "3",
"job_id": "fd4d7cce-b0dc-4edd-9938-61230afa7370",
"scope_name": "messenger",
"scope_version": "6.0.0",
"service_instance_id": "4a4dd93b6332:8",
"service_name": "messenger-worker",
"service_version": "6.0.0",
"severity_number": "17",
"severity_text": "ERROR",
"span_id": "f9ff281d3dbfaedd",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1",
"trace_id": "93e1177f9568f5bbfc0b6967a1324a84"
},
"values": [
[
"1795100977543203752",
"{\"timestamp\": \"2026-11-19T15:09:37.543167+00:00\", \"severity\": \"ERROR\", \"service.name\": \"messenger-worker\", \"event\": \"job.retry\", \"trace_id\": \"93e1177f9568f5bbfc0b6967a1324a84\", \"span_id\": \"f9ff281d3dbfaedd\", \"job_id\": \"fd4d7cce-b0dc-4edd-9938-61230afa7370\", \"attempt\": 1, \"error_code\": \"storage_unavailable\"}"
]
]
},
{
"stream": {
"attempt": "1",
"deployment_environment_name": "lab",
"detected_level": "ERROR",
"event": "job.finished",
"flags": "3",
"job_id": "fd4d7cce-b0dc-4edd-9938-61230afa7370",
"outcome": "retry",
"scope_name": "messenger",
"scope_version": "6.0.0",
"service_instance_id": "4a4dd93b6332:8",
"service_name": "messenger-worker",
"service_version": "6.0.0",
"severity_number": "17",
"severity_text": "ERROR",
"span_id": "2bb32cd3759889ae",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1",
"trace_id": "93e1177f9568f5bbfc0b6967a1324a84"
},
"values": [
[
"1795100977544205419",
"{\"timestamp\": \"2026-11-19T15:09:37.544179+00:00\", \"severity\": \"ERROR\", \"service.name\": \"messenger-worker\", \"event\": \"job.finished\", \"trace_id\": \"93e1177f9568f5bbfc0b6967a1324a84\", \"span_id\": \"2bb32cd3759889ae\", \"job_id\": \"fd4d7cce-b0dc-4edd-9938-61230afa7370\", \"attempt\": 1, \"outcome\": \"retry\"}"
]
]
},
{
"stream": {
"attempt": "2",
"deployment_environment_name": "lab",
"detected_level": "INFO",
"event": "job.finished",
"flags": "3",
"job_id": "fd4d7cce-b0dc-4edd-9938-61230afa7370",
"outcome": "ready",
"scope_name": "messenger",
"scope_version": "6.0.0",
"service_instance_id": "4a4dd93b6332:9",
"service_name": "messenger-worker",
"service_version": "6.0.0",
"severity_number": "9",
"severity_text": "INFO",
"span_id": "26b0193c185f8761",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1",
"trace_id": "93e1177f9568f5bbfc0b6967a1324a84"
},
"values": [
[
"1795100979222424711",
"{\"timestamp\": \"2026-11-19T15:09:39.222385+00:00\", \"severity\": \"INFO\", \"service.name\": \"messenger-worker\", \"event\": \"job.finished\", \"trace_id\": \"93e1177f9568f5bbfc0b6967a1324a84\", \"span_id\": \"26b0193c185f8761\", \"job_id\": \"fd4d7cce-b0dc-4edd-9938-61230afa7370\", \"attempt\": 2, \"outcome\": \"ready\"}"
]
]
},
{
"stream": {
"deployment_environment_name": "lab",
"detected_level": "INFO",
"duration_seconds": "0.009846",
"event": "http.request",
"flags": "3",
"method": "POST",
"request_id": "422b23e9-c8f9-4810-ad09-1cb99b6c9576",
"route": "/api/v1/chats/{chat_id}/attachments",
"scope_name": "messenger",
"scope_version": "6.0.0",
"service_instance_id": "166e3f521d4f:1",
"service_name": "messenger-api",
"service_version": "6.0.0",
"severity_number": "9",
"severity_text": "INFO",
"span_id": "e04c2c74d09fa066",
"status": "202",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1",
"trace_id": "93e1177f9568f5bbfc0b6967a1324a84"
},
"values": [
[
"1795100974767795501",
"{\"timestamp\": \"2026-11-19T15:09:34.767775+00:00\", \"severity\": \"INFO\", \"service.name\": \"messenger-api\", \"event\": \"http.request\", \"trace_id\": \"93e1177f9568f5bbfc0b6967a1324a84\", \"span_id\": \"e04c2c74d09fa066\", \"method\": \"POST\", \"route\": \"/api/v1/chats/{chat_id}/attachments\", \"status\": 202, \"duration_seconds\": 0.009846, \"request_id\": \"422b23e9-c8f9-4810-ad09-1cb99b6c9576\"}"
]
]
}
],
"stats": {
"summary": {
"bytesProcessedPerSecond": 80485548,
"linesProcessedPerSecond": 110946,
"totalBytesProcessed": 1706250,
"totalLinesProcessed": 2352,
"execTime": 0.021199,
"queueTime": 0.000413,
"subqueries": 0,
"totalEntriesReturned": 5,
"splits": 2,
"shards": 2,
"totalPostFilterLines": 5,
"totalStructuredMetadataBytesProcessed": 853184
},
"querier": {
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"queryReferencedStructuredMetadata": false,
"chunk": {
"headChunkBytes": 0,
"headChunkLines": 0,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0,
"postFilterLines": 0,
"headChunkStructuredMetadataBytes": 0,
"decompressedStructuredMetadataBytes": 0
},
"chunkRefsFetchTime": 0,
"congestionControlLatency": 0,
"pipelineWrapperFilteredLines": 0
}
},
"ingester": {
"totalReached": 2,
"totalChunksMatched": 2,
"totalBatches": 3,
"totalLinesSent": 5,
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"queryReferencedStructuredMetadata": false,
"chunk": {
"headChunkBytes": 114091,
"headChunkLines": 228,
"decompressedBytes": 1592159,
"decompressedLines": 2124,
"compressedBytes": 190062,
"totalDuplicates": 0,
"postFilterLines": 5,
"headChunkStructuredMetadataBytes": 34104,
"decompressedStructuredMetadataBytes": 819080
},
"chunkRefsFetchTime": 180667,
"congestionControlLatency": 0,
"pipelineWrapperFilteredLines": 0
}
},
"cache": {
"chunk": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"index": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"result": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"statsResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"volumeResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"seriesResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"labelResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"instantMetricResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
}
},
"index": {
"totalChunks": 0,
"postFilterChunks": 0,
"shardsDuration": 0,
"usedBloomFilters": false
}
}
}
}
+100
View File
@@ -0,0 +1,100 @@
{
"passed": true,
"panels": [
{
"panel": "Business API RPS",
"source": "prometheus",
"passed": true
},
{
"panel": "API 5xx / all business requests",
"source": "prometheus",
"passed": true
},
{
"panel": "API latency: aggregated histogram",
"source": "prometheus",
"passed": true
},
{
"panel": "Time from acceptance to ready: completed jobs",
"source": "prometheus",
"passed": true
},
{
"panel": "Job attempts by outcome",
"source": "prometheus",
"passed": true
},
{
"panel": "Worker processing p95",
"source": "prometheus",
"passed": true
},
{
"panel": "Outstanding jobs (DB source of truth)",
"source": "prometheus",
"passed": true
},
{
"panel": "Oldest unfinished job age",
"source": "prometheus",
"passed": true
},
{
"panel": "DB pool used / waiting",
"source": "prometheus",
"passed": true
},
{
"panel": "Worker busy / capacity",
"source": "prometheus",
"passed": true
},
{
"panel": "Process CPU: cores consumed",
"source": "prometheus",
"passed": true
},
{
"panel": "Process RSS",
"source": "prometheus",
"passed": true
},
{
"panel": "API availability SLO: >= 99% / 1h",
"source": "prometheus",
"passed": true
},
{
"panel": "Ready SLO: >= 95% within 30s / 1h",
"source": "prometheus",
"passed": true
},
{
"panel": "API burn rate (budget / hour)",
"source": "prometheus",
"passed": true
},
{
"panel": "Ready burn rate (budget / hour)",
"source": "prometheus",
"passed": true
},
{
"panel": "Local alert states",
"source": "prometheus",
"passed": true
},
{
"panel": "API / worker structured logs (click TraceID)",
"source": "loki",
"passed": true
},
{
"panel": "Recent real worker traces",
"source": "tempo",
"passed": true
}
]
}
+191
View File
@@ -0,0 +1,191 @@
{
"status": "success",
"data": {
"resultType": "streams",
"result": [
{
"stream": {
"deployment_environment_name": "lab",
"detected_level": "ERROR",
"duration_seconds": "2.003678",
"event": "http.request",
"flags": "3",
"method": "POST",
"request_id": "3c5e5b14-5825-41b8-a227-93cba420a532",
"route": "/api/v1/chats/{chat_id}/messages",
"scope_name": "messenger",
"scope_version": "6.0.0",
"service_instance_id": "2a50b728ce10:1",
"service_name": "messenger-api",
"service_version": "6.0.0",
"severity_number": "17",
"severity_text": "ERROR",
"span_id": "3cec0bb07faa77ff",
"status": "503",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1",
"trace_id": "f124d93f84dd25c5af978e78e2028646"
},
"values": [
[
"1795102249376144341",
"{\"timestamp\": \"2026-11-19T15:30:49.376082+00:00\", \"severity\": \"ERROR\", \"service.name\": \"messenger-api\", \"event\": \"http.request\", \"trace_id\": \"f124d93f84dd25c5af978e78e2028646\", \"span_id\": \"3cec0bb07faa77ff\", \"method\": \"POST\", \"route\": \"/api/v1/chats/{chat_id}/messages\", \"status\": 503, \"duration_seconds\": 2.003678, \"request_id\": \"3c5e5b14-5825-41b8-a227-93cba420a532\"}"
]
]
}
],
"stats": {
"summary": {
"bytesProcessedPerSecond": 61790648,
"linesProcessedPerSecond": 82173,
"totalBytesProcessed": 809854,
"totalLinesProcessed": 1077,
"execTime": 0.013106,
"queueTime": 0.000136,
"subqueries": 0,
"totalEntriesReturned": 1,
"splits": 0,
"shards": 1,
"totalPostFilterLines": 1,
"totalStructuredMetadataBytesProcessed": 400756
},
"querier": {
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"queryReferencedStructuredMetadata": false,
"chunk": {
"headChunkBytes": 0,
"headChunkLines": 0,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0,
"postFilterLines": 0,
"headChunkStructuredMetadataBytes": 0,
"decompressedStructuredMetadataBytes": 0
},
"chunkRefsFetchTime": 0,
"congestionControlLatency": 0,
"pipelineWrapperFilteredLines": 0
}
},
"ingester": {
"totalReached": 1,
"totalChunksMatched": 1,
"totalBatches": 2,
"totalLinesSent": 1,
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"queryReferencedStructuredMetadata": false,
"chunk": {
"headChunkBytes": 23978,
"headChunkLines": 47,
"decompressedBytes": 785876,
"decompressedLines": 1030,
"compressedBytes": 95894,
"totalDuplicates": 0,
"postFilterLines": 1,
"headChunkStructuredMetadataBytes": 6976,
"decompressedStructuredMetadataBytes": 393780
},
"chunkRefsFetchTime": 72000,
"congestionControlLatency": 0,
"pipelineWrapperFilteredLines": 0
}
},
"cache": {
"chunk": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"index": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"result": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"statsResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"volumeResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"seriesResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"labelResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"instantMetricResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
}
},
"index": {
"totalChunks": 0,
"postFilterChunks": 0,
"shardsDuration": 0,
"usedBloomFilters": false
}
}
}
}
+275
View File
@@ -0,0 +1,275 @@
{
"batches": [
{
"resource": {
"attributes": [
{
"key": "deployment.environment.name",
"value": {
"stringValue": "lab"
}
},
{
"key": "service.instance.id",
"value": {
"stringValue": "2a50b728ce10:1"
}
},
{
"key": "service.version",
"value": {
"stringValue": "6.0.0"
}
},
{
"key": "telemetry.sdk.language",
"value": {
"stringValue": "python"
}
},
{
"key": "telemetry.sdk.name",
"value": {
"stringValue": "opentelemetry"
}
},
{
"key": "telemetry.sdk.version",
"value": {
"stringValue": "1.45.1"
}
},
{
"key": "service.name",
"value": {
"stringValue": "messenger-api"
}
}
]
},
"scopeSpans": [
{
"scope": {
"name": "messenger",
"version": "6.0.0"
},
"spans": [
{
"traceId": "8STZP4TdJcWvl4544gKGRg==",
"spanId": "6YhkxV7CY4k=",
"parentSpanId": "zAWgCBMyg3I=",
"name": "postgresql.QUERY",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1795102247372852382",
"endTimeUnixNano": "1795102247372984882",
"attributes": [
{
"key": "db.system.name",
"value": {
"stringValue": "postgresql"
}
},
{
"key": "db.operation.name",
"value": {
"stringValue": "QUERY"
}
}
],
"status": {}
},
{
"traceId": "8STZP4TdJcWvl4544gKGRg==",
"spanId": "9dARsClEhgI=",
"parentSpanId": "zAWgCBMyg3I=",
"name": "postgresql.SELECT",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1795102247373056215",
"endTimeUnixNano": "1795102247373325590",
"attributes": [
{
"key": "db.system.name",
"value": {
"stringValue": "postgresql"
}
},
{
"key": "db.operation.name",
"value": {
"stringValue": "SELECT"
}
}
],
"status": {}
},
{
"traceId": "8STZP4TdJcWvl4544gKGRg==",
"spanId": "zAWgCBMyg3I=",
"parentSpanId": "POwLsH+qd/8=",
"name": "postgresql.transaction",
"kind": "SPAN_KIND_INTERNAL",
"startTimeUnixNano": "1795102247372781257",
"endTimeUnixNano": "1795102247373442673",
"status": {}
},
{
"traceId": "8STZP4TdJcWvl4544gKGRg==",
"spanId": "HOilfsT0R4s=",
"parentSpanId": "ZMWryXhMXeM=",
"name": "postgresql.QUERY",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1795102247374040798",
"endTimeUnixNano": "1795102247374149048",
"attributes": [
{
"key": "db.system.name",
"value": {
"stringValue": "postgresql"
}
},
{
"key": "db.operation.name",
"value": {
"stringValue": "QUERY"
}
}
],
"status": {}
},
{
"traceId": "8STZP4TdJcWvl4544gKGRg==",
"spanId": "tNH67JGBzzQ=",
"parentSpanId": "ZMWryXhMXeM=",
"name": "postgresql.SELECT",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1795102247374219298",
"endTimeUnixNano": "1795102247374661423",
"attributes": [
{
"key": "db.system.name",
"value": {
"stringValue": "postgresql"
}
},
{
"key": "db.operation.name",
"value": {
"stringValue": "SELECT"
}
}
],
"status": {}
},
{
"traceId": "8STZP4TdJcWvl4544gKGRg==",
"spanId": "pO76DIPXzps=",
"parentSpanId": "ZMWryXhMXeM=",
"name": "postgresql.SELECT",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1795102247374726007",
"endTimeUnixNano": "1795102247374869840",
"attributes": [
{
"key": "db.system.name",
"value": {
"stringValue": "postgresql"
}
},
{
"key": "db.operation.name",
"value": {
"stringValue": "SELECT"
}
}
],
"status": {}
},
{
"traceId": "8STZP4TdJcWvl4544gKGRg==",
"spanId": "bxfNsCS1EJs=",
"parentSpanId": "ZMWryXhMXeM=",
"name": "postgresql.SELECT",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1795102247374927173",
"endTimeUnixNano": "1795102249375042508",
"attributes": [
{
"key": "db.system.name",
"value": {
"stringValue": "postgresql"
}
},
{
"key": "db.operation.name",
"value": {
"stringValue": "SELECT"
}
},
{
"key": "error.type",
"value": {
"stringValue": "_WaitTimeout"
}
}
],
"status": {
"code": "STATUS_CODE_ERROR"
}
},
{
"traceId": "8STZP4TdJcWvl4544gKGRg==",
"spanId": "ZMWryXhMXeM=",
"parentSpanId": "POwLsH+qd/8=",
"name": "postgresql.transaction",
"kind": "SPAN_KIND_INTERNAL",
"startTimeUnixNano": "1795102247373987923",
"endTimeUnixNano": "1795102249375157091",
"attributes": [
{
"key": "error.type",
"value": {
"stringValue": "_WaitTimeout"
}
}
],
"status": {
"code": "STATUS_CODE_ERROR"
}
},
{
"traceId": "8STZP4TdJcWvl4544gKGRg==",
"spanId": "POwLsH+qd/8=",
"name": "POST /api/v1/chats/{chat_id}/messages",
"kind": "SPAN_KIND_SERVER",
"startTimeUnixNano": "1795102247372424840",
"endTimeUnixNano": "1795102249376209799",
"attributes": [
{
"key": "http.request.method",
"value": {
"stringValue": "POST"
}
},
{
"key": "http.route",
"value": {
"stringValue": "/api/v1/chats/{chat_id}/messages"
}
},
{
"key": "http.response.status_code",
"value": {
"intValue": "503"
}
}
],
"status": {
"code": "STATUS_CODE_ERROR"
}
}
]
}
]
}
]
}
+795
View File
@@ -0,0 +1,795 @@
{
"utc": "2026-11-19T15:09:44.028971+00:00",
"command": "./scripts/check-docker.sh",
"project": "lab5-check-c81d43a829",
"host": "Darwin arm64",
"source_commit": "470d9d6f1e4fe4f594e37c2ba59550ee5ca54fc1",
"working_tree": true,
"configuration": {
"concurrency": 2,
"prefetch": 1,
"attempts": 5,
"timeout_seconds": 5,
"lease_seconds": 15,
"backoff_base_seconds": 0.15
},
"checks": {
"topology_and_limits": {
"passed": true,
"api_replicas": 2,
"broker": "Valkey Streams with AOF fsync always",
"worker_processes": 2
},
"public_smoke_and_schema": {
"passed": true
},
"student_api_regressions": {
"passed": true
},
"worker_offline_api_broker_restart": {
"passed": true,
"attachment_id": "ef3471d3-538e-4d3f-8406-edfb2e78d803",
"job_id": "29387d95-7e9f-4d86-b645-024cb36049cf",
"message_id": "4ae76a83-fddf-4d6a-aa4c-1dffe8910540",
"variants": {
"thumbnail": {
"size": [
256,
160
],
"bytes": 5813
},
"crop": {
"size": [
128,
128
],
"bytes": 2462
},
"optimized": {
"size": [
320,
200
],
"bytes": 2462
}
}
},
"outbox_crash_before_publish": {
"passed": true,
"job_id": "630dde85-21c6-4a82-bcee-5ea7aafa21b8",
"automatic_recovery": true
},
"outbox_crash_after_publish": {
"passed": true,
"job_id": "5c9d0c57-07b5-41d9-951e-d07ed3ce2126",
"automatic_recovery": true
},
"worker_crash_after_objects": {
"passed": true,
"job_id": "e7e67187-45e2-49ad-b845-7c80952abaed",
"attempt": 2,
"canonical_objects": 4,
"duplicate_noop": true
},
"worker_crash_before_ack": {
"passed": true,
"job_id": "646cabc2-c06f-43a9-98ed-97a0ed430eef",
"attempt": 1,
"canonical_objects": 4,
"duplicate_noop": true
},
"bounded_retry_failed_registry_replay": {
"passed": true,
"job_id": "9f0223e7-c7f7-41ce-a6b6-a6b2a6827db7",
"max_automatic_attempts": 5,
"audit": [
{
"event": "processing",
"attempt": 1,
"error_code": null,
"at": "2026-11-19T15:11:43.910272+00:00"
},
{
"event": "retry",
"attempt": 1,
"error_code": "storage_unavailable",
"at": "2026-11-19T15:11:43.913931+00:00"
},
{
"event": "processing",
"attempt": 2,
"error_code": null,
"at": "2026-11-19T15:11:44.162093+00:00"
},
{
"event": "retry",
"attempt": 2,
"error_code": "storage_unavailable",
"at": "2026-11-19T15:11:44.163784+00:00"
},
{
"event": "processing",
"attempt": 3,
"error_code": null,
"at": "2026-11-19T15:11:44.672423+00:00"
},
{
"event": "retry",
"attempt": 3,
"error_code": "storage_unavailable",
"at": "2026-11-19T15:11:44.674937+00:00"
},
{
"event": "processing",
"attempt": 4,
"error_code": null,
"at": "2026-11-19T15:11:45.176057+00:00"
},
{
"event": "retry",
"attempt": 4,
"error_code": "storage_unavailable",
"at": "2026-11-19T15:11:45.17712+00:00"
},
{
"event": "processing",
"attempt": 5,
"error_code": null,
"at": "2026-11-19T15:11:45.941529+00:00"
},
{
"event": "failed",
"attempt": 5,
"error_code": "retry_exhausted",
"at": "2026-11-19T15:11:45.944804+00:00"
},
{
"event": "operator_replay",
"attempt": 5,
"error_code": null,
"at": "2026-11-19T15:11:47.029399+00:00"
},
{
"event": "processing",
"attempt": 6,
"error_code": null,
"at": "2026-11-19T15:11:47.203814+00:00"
},
{
"event": "ready",
"attempt": 6,
"error_code": null,
"at": "2026-11-19T15:11:47.601272+00:00"
}
],
"ready_replay_rejected": true
},
"permanent_error": {
"passed": true,
"job_id": "28022e30-0cd6-4df1-a41b-56905cf4feda",
"attempt": 1,
"error_code": "invalid_image"
},
"image_subprocess_timeout": {
"passed": true,
"job_id": "c0f7e1b2-59a1-496e-a60a-8ed3fdb19f59",
"timeout_seconds": 5,
"task_memory_mb": 640,
"recovered": true
},
"image_subprocess_memory": {
"passed": true,
"job_id": "f1e4caee-86d7-4185-9787-92687c0650a3",
"timeout_seconds": 5,
"task_memory_mb": 640,
"recovered": true
},
"image_semantics": {
"passed": true,
"cases": [
{
"case": "small_alpha_on_white",
"variants": {
"thumbnail": {
"size": [
17,
9
],
"bytes": 635
},
"crop": {
"size": [
128,
128
],
"bytes": 883
},
"optimized": {
"size": [
17,
9
],
"bytes": 56
}
}
},
{
"case": "exif_orientation_6_and_floor",
"variants": {
"thumbnail": {
"size": [
160,
256
],
"bytes": 1270
},
"crop": {
"size": [
128,
128
],
"bytes": 886
},
"optimized": {
"size": [
201,
321
],
"bytes": 210
}
}
}
]
},
"staging_cleanup": {
"passed": true,
"active_preserved": true,
"orphan_removed": true,
"ready_removed": true,
"expired_failed_removed": true,
"expired_replay_rejected": true
},
"broker_offline_outbox": {
"passed": true,
"attachment_id": "28321e5b-8b43-471a-973d-9b55cbc07b39",
"recovered": true
},
"public_persistence": {
"passed": true,
"restart_proof": {
"passed": true,
"before": {
"ea2b13aebb92a1ea2741de72078489e6b05ebcc41f1ca74a2604c0ad7d355983": {
"service": "api",
"started_at": "2026-11-19T15:10:30.841890222Z",
"volumes": []
},
"67eade4e281a4cfed3f55d87ab398097e12ee12155f82cbe19eb240a4e92b41a": {
"service": "api",
"started_at": "2026-11-19T15:10:30.809775805Z",
"volumes": []
},
"d675c92d195a1bb37db5860c3cf49a2a918eb3e98cfd9c855f8f89931138724b": {
"service": "broker",
"started_at": "2026-11-19T15:12:24.444290385Z",
"volumes": [
"lab5-check-c81d43a829_broker_data"
]
},
"f9b2e0b6e448dda6d845d9715d64e1216fc0f3f58c3e05ec22de30d305c2d3e6": {
"service": "cleanup",
"started_at": "2026-11-19T15:10:11.903050713Z",
"volumes": []
},
"e4abde6d7d326be2a1425d81667ab967dd655ce1eb39c1b0c1bd2f9956f3e91f": {
"service": "grafana",
"started_at": "2026-11-19T15:09:46.76721934Z",
"volumes": [
"lab5-check-c81d43a829_grafana_data"
]
},
"1e9b604ee9fe91572a4efd3b629a00819d86ab2b45ed1f04a1df66428cfe1920": {
"service": "lb",
"started_at": "2026-11-19T15:10:17.66400909Z",
"volumes": []
},
"487c1937cced6d3b86d6a67cae2b76fdfc2b534e6cf15b6cf2242b96b19c8af4": {
"service": "loki",
"started_at": "2026-11-19T15:09:46.088598506Z",
"volumes": [
"lab5-check-c81d43a829_loki_data"
]
},
"f31970f75546cfcf6c390fad538eb9a7ebc25d26c481caef09bf679a5af8e8d9": {
"service": "otel-collector",
"started_at": "2026-11-19T15:09:46.409972798Z",
"volumes": []
},
"82576012c7b7b5a5a352207679f4c327fe50cbd5c56337de33c16ec15b2b0501": {
"service": "postgres",
"started_at": "2026-11-19T15:09:46.08945334Z",
"volumes": [
"lab5-check-c81d43a829_postgres_data"
]
},
"6e305e5121dc3113f906c5689d1006091714d72b452acaabd07e3d366f1d13f6": {
"service": "prometheus",
"started_at": "2026-11-19T15:09:46.555234256Z",
"volumes": [
"lab5-check-c81d43a829_prometheus_data"
]
},
"fb35c350ab7fcff516b44e4f6933b1e293c896e6cee9bf29d06e71ba99a0f931": {
"service": "publisher",
"started_at": "2026-11-19T15:12:10.913909129Z",
"volumes": []
},
"8cdcd8bdac73e3bc827ef7bc5a77bad0696c1023cd330eb10206dcc6b29529cf": {
"service": "s3",
"started_at": "2026-11-19T15:10:08.720162878Z",
"volumes": [
"d6e81fdf6ec0a4bd30cb0461085c08461b951f8ae9c696222d04b21152ff6560"
]
},
"053f3a4b4e5cd9b28510f08e9bd8d07374c586af075cb62d5c5b49f62af5a6ac": {
"service": "s3-storage",
"started_at": "2026-11-19T15:09:46.086474548Z",
"volumes": [
"lab5-check-c81d43a829_s3_data"
]
},
"84473a25dbb67b410a0db8d8b0e029b84b264b3238da1961c7693f13d9e99634": {
"service": "tempo",
"started_at": "2026-11-19T15:09:46.086451215Z",
"volumes": [
"lab5-check-c81d43a829_tempo_data"
]
},
"7f3ff970cf57bedf3a8800a6bed5cc3a83f749dab07d9ac42425d14c7eafee80": {
"service": "valkey",
"started_at": "2026-11-19T15:09:46.08714634Z",
"volumes": [
"lab5-check-c81d43a829_valkey_data"
]
},
"521131dedb68623718c9d5d5c8dc8b0924dbfe6ec90acd3b21e08189a9a1a1e5": {
"service": "worker",
"started_at": "2026-11-19T15:12:21.892301301Z",
"volumes": []
}
},
"after": {
"ea2b13aebb92a1ea2741de72078489e6b05ebcc41f1ca74a2604c0ad7d355983": {
"service": "api",
"started_at": "2026-11-19T15:12:30.097473346Z",
"volumes": []
},
"67eade4e281a4cfed3f55d87ab398097e12ee12155f82cbe19eb240a4e92b41a": {
"service": "api",
"started_at": "2026-11-19T15:12:30.048159138Z",
"volumes": []
},
"d675c92d195a1bb37db5860c3cf49a2a918eb3e98cfd9c855f8f89931138724b": {
"service": "broker",
"started_at": "2026-11-19T15:12:28.168864679Z",
"volumes": [
"lab5-check-c81d43a829_broker_data"
]
},
"f9b2e0b6e448dda6d845d9715d64e1216fc0f3f58c3e05ec22de30d305c2d3e6": {
"service": "cleanup",
"started_at": "2026-11-19T15:12:35.75098096Z",
"volumes": []
},
"e4abde6d7d326be2a1425d81667ab967dd655ce1eb39c1b0c1bd2f9956f3e91f": {
"service": "grafana",
"started_at": "2026-11-19T15:12:28.016722095Z",
"volumes": [
"lab5-check-c81d43a829_grafana_data"
]
},
"1e9b604ee9fe91572a4efd3b629a00819d86ab2b45ed1f04a1df66428cfe1920": {
"service": "lb",
"started_at": "2026-11-19T15:12:27.799505637Z",
"volumes": []
},
"487c1937cced6d3b86d6a67cae2b76fdfc2b534e6cf15b6cf2242b96b19c8af4": {
"service": "loki",
"started_at": "2026-11-19T15:12:29.867573388Z",
"volumes": [
"lab5-check-c81d43a829_loki_data"
]
},
"f31970f75546cfcf6c390fad538eb9a7ebc25d26c481caef09bf679a5af8e8d9": {
"service": "otel-collector",
"started_at": "2026-11-19T15:12:29.704735929Z",
"volumes": []
},
"82576012c7b7b5a5a352207679f4c327fe50cbd5c56337de33c16ec15b2b0501": {
"service": "postgres",
"started_at": "2026-11-19T15:12:28.084774804Z",
"volumes": [
"lab5-check-c81d43a829_postgres_data"
]
},
"6e305e5121dc3113f906c5689d1006091714d72b452acaabd07e3d366f1d13f6": {
"service": "prometheus",
"started_at": "2026-11-19T15:12:28.052574179Z",
"volumes": [
"lab5-check-c81d43a829_prometheus_data"
]
},
"fb35c350ab7fcff516b44e4f6933b1e293c896e6cee9bf29d06e71ba99a0f931": {
"service": "publisher",
"started_at": "2026-11-19T15:12:35.770825668Z",
"volumes": []
},
"8cdcd8bdac73e3bc827ef7bc5a77bad0696c1023cd330eb10206dcc6b29529cf": {
"service": "s3",
"started_at": "2026-11-19T15:12:28.115603887Z",
"volumes": [
"d6e81fdf6ec0a4bd30cb0461085c08461b951f8ae9c696222d04b21152ff6560"
]
},
"053f3a4b4e5cd9b28510f08e9bd8d07374c586af075cb62d5c5b49f62af5a6ac": {
"service": "s3-storage",
"started_at": "2026-11-19T15:12:35.714312418Z",
"volumes": [
"lab5-check-c81d43a829_s3_data"
]
},
"84473a25dbb67b410a0db8d8b0e029b84b264b3238da1961c7693f13d9e99634": {
"service": "tempo",
"started_at": "2026-11-19T15:12:28.142091095Z",
"volumes": [
"lab5-check-c81d43a829_tempo_data"
]
},
"7f3ff970cf57bedf3a8800a6bed5cc3a83f749dab07d9ac42425d14c7eafee80": {
"service": "valkey",
"started_at": "2026-11-19T15:12:28.230646637Z",
"volumes": [
"lab5-check-c81d43a829_valkey_data"
]
},
"521131dedb68623718c9d5d5c8dc8b0924dbfe6ec90acd3b21e08189a9a1a1e5": {
"service": "worker",
"started_at": "2026-11-19T15:12:27.946355887Z",
"volumes": []
}
},
"same_containers_and_volumes": true
}
},
"public_api_failover": {
"passed": true
}
},
"docker": "29.0.1 aarch64 CPUs=10 RAM=8217448448",
"containers": [
{
"id": "ea2b13aebb92a1ea2741de72078489e6b05ebcc41f1ca74a2604c0ad7d355983",
"service": "api",
"image": "mtusi-messenger:lab6",
"memory_bytes": 402653184,
"nano_cpus": 1000000000,
"mounts": [
{
"destination": "/run/secrets/database_url",
"name": null
},
{
"destination": "/run/secrets/cache_url",
"name": null
},
{
"destination": "/run/secrets/s3_access_key_id",
"name": null
},
{
"destination": "/run/secrets/s3_secret_access_key",
"name": null
}
]
},
{
"id": "67eade4e281a4cfed3f55d87ab398097e12ee12155f82cbe19eb240a4e92b41a",
"service": "api",
"image": "mtusi-messenger:lab6",
"memory_bytes": 402653184,
"nano_cpus": 1000000000,
"mounts": [
{
"destination": "/run/secrets/cache_url",
"name": null
},
{
"destination": "/run/secrets/s3_access_key_id",
"name": null
},
{
"destination": "/run/secrets/s3_secret_access_key",
"name": null
},
{
"destination": "/run/secrets/database_url",
"name": null
}
]
},
{
"id": "d675c92d195a1bb37db5860c3cf49a2a918eb3e98cfd9c855f8f89931138724b",
"service": "broker",
"image": "valkey/valkey:8.1.3",
"memory_bytes": 268435456,
"nano_cpus": 500000000,
"mounts": [
{
"destination": "/data",
"name": "lab5-check-c81d43a829_broker_data"
},
{
"destination": "/run/secrets/broker_password",
"name": null
}
]
},
{
"id": "f9b2e0b6e448dda6d845d9715d64e1216fc0f3f58c3e05ec22de30d305c2d3e6",
"service": "cleanup",
"image": "mtusi-messenger:lab6",
"memory_bytes": 402653184,
"nano_cpus": 1000000000,
"mounts": [
{
"destination": "/run/secrets/s3_access_key_id",
"name": null
},
{
"destination": "/run/secrets/s3_secret_access_key",
"name": null
},
{
"destination": "/run/secrets/database_url",
"name": null
}
]
},
{
"id": "e4abde6d7d326be2a1425d81667ab967dd655ce1eb39c1b0c1bd2f9956f3e91f",
"service": "grafana",
"image": "grafana/grafana:12.0.2",
"memory_bytes": 402653184,
"nano_cpus": 1000000000,
"mounts": [
{
"destination": "/etc/grafana/provisioning",
"name": null
},
{
"destination": "/var/lib/grafana/dashboards",
"name": null
},
{
"destination": "/var/lib/grafana",
"name": "lab5-check-c81d43a829_grafana_data"
}
]
},
{
"id": "1e9b604ee9fe91572a4efd3b629a00819d86ab2b45ed1f04a1df66428cfe1920",
"service": "lb",
"image": "haproxy:3.2.6-alpine",
"memory_bytes": 67108864,
"nano_cpus": 500000000,
"mounts": [
{
"destination": "/usr/local/etc/haproxy/haproxy.cfg",
"name": null
}
]
},
{
"id": "487c1937cced6d3b86d6a67cae2b76fdfc2b534e6cf15b6cf2242b96b19c8af4",
"service": "loki",
"image": "grafana/loki:3.5.1",
"memory_bytes": 402653184,
"nano_cpus": 1000000000,
"mounts": [
{
"destination": "/etc/loki/config.yaml",
"name": null
},
{
"destination": "/loki",
"name": "lab5-check-c81d43a829_loki_data"
}
]
},
{
"id": "02572452b7c401e702c6ad13daac234d9e3c069bb791e44770a7f7fc11dca885",
"service": "migrate",
"image": "mtusi-messenger:lab6",
"memory_bytes": 402653184,
"nano_cpus": 1000000000,
"mounts": [
{
"destination": "/run/secrets/database_url",
"name": null
}
]
},
{
"id": "f31970f75546cfcf6c390fad538eb9a7ebc25d26c481caef09bf679a5af8e8d9",
"service": "otel-collector",
"image": "otel/opentelemetry-collector-contrib:0.123.0",
"memory_bytes": 268435456,
"nano_cpus": 1000000000,
"mounts": [
{
"destination": "/etc/otelcol/config.yaml",
"name": null
}
]
},
{
"id": "82576012c7b7b5a5a352207679f4c327fe50cbd5c56337de33c16ec15b2b0501",
"service": "postgres",
"image": "postgres:17.6-bookworm",
"memory_bytes": 536870912,
"nano_cpus": 1000000000,
"mounts": [
{
"destination": "/run/secrets/postgres_password",
"name": null
},
{
"destination": "/var/lib/postgresql/data",
"name": "lab5-check-c81d43a829_postgres_data"
}
]
},
{
"id": "6e305e5121dc3113f906c5689d1006091714d72b452acaabd07e3d366f1d13f6",
"service": "prometheus",
"image": "prom/prometheus:v3.4.1",
"memory_bytes": 402653184,
"nano_cpus": 1000000000,
"mounts": [
{
"destination": "/prometheus",
"name": "lab5-check-c81d43a829_prometheus_data"
},
{
"destination": "/etc/prometheus/prometheus.yaml",
"name": null
},
{
"destination": "/etc/prometheus/alerts.yaml",
"name": null
}
]
},
{
"id": "fb35c350ab7fcff516b44e4f6933b1e293c896e6cee9bf29d06e71ba99a0f931",
"service": "publisher",
"image": "mtusi-messenger:lab6",
"memory_bytes": 402653184,
"nano_cpus": 1000000000,
"mounts": [
{
"destination": "/run/secrets/database_url",
"name": null
},
{
"destination": "/run/secrets/broker_url",
"name": null
}
]
},
{
"id": "8cdcd8bdac73e3bc827ef7bc5a77bad0696c1023cd330eb10206dcc6b29529cf",
"service": "s3",
"image": "chrislusf/seaweedfs:3.85@sha256:49312939c00c01e5ee6afbd7d728b18027821d3764c35a797a72acd4fdf3296a",
"memory_bytes": 268435456,
"nano_cpus": 500000000,
"mounts": [
{
"destination": "/run/secrets/s3_config",
"name": null
},
{
"destination": "/data",
"name": "d6e81fdf6ec0a4bd30cb0461085c08461b951f8ae9c696222d04b21152ff6560"
}
]
},
{
"id": "e491085d55967c2cc9a4c907385fa87d8ee2e7d072ae77082a39ffde575cf0e8",
"service": "s3-bootstrap",
"image": "mtusi-messenger:lab6",
"memory_bytes": 134217728,
"nano_cpus": 500000000,
"mounts": [
{
"destination": "/run/secrets/s3_root_user",
"name": null
},
{
"destination": "/run/secrets/s3_root_password",
"name": null
}
]
},
{
"id": "053f3a4b4e5cd9b28510f08e9bd8d07374c586af075cb62d5c5b49f62af5a6ac",
"service": "s3-storage",
"image": "chrislusf/seaweedfs:3.85@sha256:49312939c00c01e5ee6afbd7d728b18027821d3764c35a797a72acd4fdf3296a",
"memory_bytes": 536870912,
"nano_cpus": 1000000000,
"mounts": [
{
"destination": "/data",
"name": "lab5-check-c81d43a829_s3_data"
}
]
},
{
"id": "84473a25dbb67b410a0db8d8b0e029b84b264b3238da1961c7693f13d9e99634",
"service": "tempo",
"image": "grafana/tempo:2.8.1",
"memory_bytes": 536870912,
"nano_cpus": 1000000000,
"mounts": [
{
"destination": "/etc/tempo/config.yaml",
"name": null
},
{
"destination": "/var/tempo",
"name": "lab5-check-c81d43a829_tempo_data"
}
]
},
{
"id": "7f3ff970cf57bedf3a8800a6bed5cc3a83f749dab07d9ac42425d14c7eafee80",
"service": "valkey",
"image": "valkey/valkey:8.1.3",
"memory_bytes": 134217728,
"nano_cpus": 500000000,
"mounts": [
{
"destination": "/data",
"name": "lab5-check-c81d43a829_valkey_data"
}
]
},
{
"id": "521131dedb68623718c9d5d5c8dc8b0924dbfe6ec90acd3b21e08189a9a1a1e5",
"service": "worker",
"image": "mtusi-messenger:lab6",
"memory_bytes": 1610612736,
"nano_cpus": 2000000000,
"mounts": [
{
"destination": "/run/secrets/s3_secret_access_key",
"name": null
},
{
"destination": "/run/secrets/database_url",
"name": null
},
{
"destination": "/run/secrets/broker_url",
"name": null
},
{
"destination": "/run/secrets/s3_access_key_id",
"name": null
}
]
}
],
"passed": true
}
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
SUCCESS
+206
View File
@@ -0,0 +1,206 @@
{
"utc": "2026-11-19T15:11:37.994748+00:00",
"command": ".venv/bin/python student-tests/verify_restart.py",
"passed": true,
"before": {
"166e3f521d4f8b2206766859d89df193d0ebc44fb7b8c2d597da65ebefaaf1af": {
"service": "api",
"started_at": "2026-11-19T15:08:38.453676544Z",
"volumes": []
},
"863415a50886df6498a2c5d137298288e403eb8f628fd93088a93174bb744d8c": {
"service": "api",
"started_at": "2026-11-19T15:08:38.611590211Z",
"volumes": []
},
"ea51e5f3e0e7921a34c8678a17da799c5f440f0423fc5cc0d0ebc88b6be109b8": {
"service": "broker",
"started_at": "2026-11-19T15:00:33.36494925Z",
"volumes": [
"mtusi-lab6_broker_data"
]
},
"d24bddbf342d9bc0f3b43d8462e7d991d82e38c848d4ef762a8b0b1cbb5959ba": {
"service": "cleanup",
"started_at": "2026-11-19T15:08:38.446185961Z",
"volumes": []
},
"375a3083ca7919b26cdc327adf969072cd09d91f3dc664037b63fb890c91849a": {
"service": "grafana",
"started_at": "2026-11-19T15:00:33.781731Z",
"volumes": [
"mtusi-lab6_grafana_data"
]
},
"f56ed57943f2889033e15612d17d633e0b7bb3a9cceb9cb2ab336524117e6ffa": {
"service": "lb",
"started_at": "2026-11-19T15:00:58.904707679Z",
"volumes": []
},
"e107e6ede3c3b2be8a6995ef242f614dc6f592cf230f10d7862685696991ae71": {
"service": "loki",
"started_at": "2026-11-19T15:10:28.625123846Z",
"volumes": [
"mtusi-lab6_loki_data"
]
},
"6e21c63012d160a406e28a342d668de0be55107aa16228ed9d5dc15c34b447be": {
"service": "otel-collector",
"started_at": "2026-11-19T15:01:52.896095343Z",
"volumes": []
},
"1b3cdbc4689c6b855a435acab8112f86a3c9dc5e0207257c31e7aaa650635a0a": {
"service": "postgres",
"started_at": "2026-11-19T15:00:33.362963334Z",
"volumes": [
"mtusi-lab6_postgres_data"
]
},
"d54da34ab176f240c2519bb6fcc46417b5ea3d27de86e2ed05321675f14e1e23": {
"service": "prometheus",
"started_at": "2026-11-19T15:00:33.65938775Z",
"volumes": [
"mtusi-lab6_prometheus_data"
]
},
"0cd7cf668f46d355febf0dd912003289a65966692b21a759997e0a8d1c5d83eb": {
"service": "publisher",
"started_at": "2026-11-19T15:08:38.448713669Z",
"volumes": []
},
"b7b3fe9f4f328f57dc0df0a3af84d8426e431505ffd236da9d6cc143123380c9": {
"service": "s3",
"started_at": "2026-11-19T15:00:49.997656091Z",
"volumes": [
"a6b780554a2ebb58edb3e2f7b77fe7ee705ce9543ef0dbe0c8d9c4d80bc31da2"
]
},
"1b69e90a9f7108e2e5d2017365e82fa30495c42f5f93809d42b2fdfcc1f0a9a0": {
"service": "s3-storage",
"started_at": "2026-11-19T15:00:33.3498635Z",
"volumes": [
"mtusi-lab6_s3_data"
]
},
"7dc0833e289e6e708dff042076bf4753617ba5e61122a9a67dd61c37384f1c9b": {
"service": "tempo",
"started_at": "2026-11-19T15:08:38.454968128Z",
"volumes": [
"mtusi-lab6_tempo_data"
]
},
"f4c736f41e428fb83e0effb49e8a56d9efe23ea6bd979a16fdcf072af0b342b0": {
"service": "valkey",
"started_at": "2026-11-19T15:00:33.364171167Z",
"volumes": [
"mtusi-lab6_valkey_data"
]
},
"ef1c4fbd5187a8773b7b448cb5f0b0534e83bddb9b12a51f2ffcd7a326e5e729": {
"service": "worker",
"started_at": "2026-11-19T15:10:59.920254179Z",
"volumes": []
}
},
"after": {
"166e3f521d4f8b2206766859d89df193d0ebc44fb7b8c2d597da65ebefaaf1af": {
"service": "api",
"started_at": "2026-11-19T15:11:41.117466337Z",
"volumes": []
},
"863415a50886df6498a2c5d137298288e403eb8f628fd93088a93174bb744d8c": {
"service": "api",
"started_at": "2026-11-19T15:11:41.169749671Z",
"volumes": []
},
"ea51e5f3e0e7921a34c8678a17da799c5f440f0423fc5cc0d0ebc88b6be109b8": {
"service": "broker",
"started_at": "2026-11-19T15:11:40.171899503Z",
"volumes": [
"mtusi-lab6_broker_data"
]
},
"d24bddbf342d9bc0f3b43d8462e7d991d82e38c848d4ef762a8b0b1cbb5959ba": {
"service": "cleanup",
"started_at": "2026-11-19T15:11:47.626797257Z",
"volumes": []
},
"375a3083ca7919b26cdc327adf969072cd09d91f3dc664037b63fb890c91849a": {
"service": "grafana",
"started_at": "2026-11-19T15:11:39.799567837Z",
"volumes": [
"mtusi-lab6_grafana_data"
]
},
"f56ed57943f2889033e15612d17d633e0b7bb3a9cceb9cb2ab336524117e6ffa": {
"service": "lb",
"started_at": "2026-11-19T15:11:39.674464462Z",
"volumes": []
},
"e107e6ede3c3b2be8a6995ef242f614dc6f592cf230f10d7862685696991ae71": {
"service": "loki",
"started_at": "2026-11-19T15:11:40.282189378Z",
"volumes": [
"mtusi-lab6_loki_data"
]
},
"6e21c63012d160a406e28a342d668de0be55107aa16228ed9d5dc15c34b447be": {
"service": "otel-collector",
"started_at": "2026-11-19T15:11:39.989740337Z",
"volumes": []
},
"1b3cdbc4689c6b855a435acab8112f86a3c9dc5e0207257c31e7aaa650635a0a": {
"service": "postgres",
"started_at": "2026-11-19T15:11:40.043447628Z",
"volumes": [
"mtusi-lab6_postgres_data"
]
},
"d54da34ab176f240c2519bb6fcc46417b5ea3d27de86e2ed05321675f14e1e23": {
"service": "prometheus",
"started_at": "2026-11-19T15:11:39.859058378Z",
"volumes": [
"mtusi-lab6_prometheus_data"
]
},
"0cd7cf668f46d355febf0dd912003289a65966692b21a759997e0a8d1c5d83eb": {
"service": "publisher",
"started_at": "2026-11-19T15:11:47.594100007Z",
"volumes": []
},
"b7b3fe9f4f328f57dc0df0a3af84d8426e431505ffd236da9d6cc143123380c9": {
"service": "s3",
"started_at": "2026-11-19T15:11:40.13670567Z",
"volumes": [
"a6b780554a2ebb58edb3e2f7b77fe7ee705ce9543ef0dbe0c8d9c4d80bc31da2"
]
},
"1b69e90a9f7108e2e5d2017365e82fa30495c42f5f93809d42b2fdfcc1f0a9a0": {
"service": "s3-storage",
"started_at": "2026-11-19T15:11:47.65993734Z",
"volumes": [
"mtusi-lab6_s3_data"
]
},
"7dc0833e289e6e708dff042076bf4753617ba5e61122a9a67dd61c37384f1c9b": {
"service": "tempo",
"started_at": "2026-11-19T15:11:40.243825753Z",
"volumes": [
"mtusi-lab6_tempo_data"
]
},
"f4c736f41e428fb83e0effb49e8a56d9efe23ea6bd979a16fdcf072af0b342b0": {
"service": "valkey",
"started_at": "2026-11-19T15:11:40.087174462Z",
"volumes": [
"mtusi-lab6_valkey_data"
]
},
"ef1c4fbd5187a8773b7b448cb5f0b0534e83bddb9b12a51f2ffcd7a326e5e729": {
"service": "worker",
"started_at": "2026-11-19T15:11:40.21509467Z",
"volumes": []
}
},
"same_containers_and_volumes": true
}
+4
View File
@@ -0,0 +1,4 @@
/Users/vanek/Desktop/VNPlabs/VNPlab6/mtusi2026lab6/.venv/bin/python tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost: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.
PASS: all persistent services actually restarted; container IDs and volumes preserved
+322
View File
@@ -0,0 +1,322 @@
{
"passed": true,
"services": [
{
"service": "api",
"container_id": "33daefd247cfa9bdb99c0e9d10913c5305de5db293431162467a9fb0f55f3e4c",
"image": "mtusi-messenger:lab6",
"image_id": "sha256:a7932cb2a948db89797bf90f560ecf0046cac576c7fff97412aa55d8c4446a62",
"state": "running",
"health": "healthy",
"memory_limit_bytes": 402653184,
"nano_cpus": 1000000000,
"oom_killed": false,
"published_ports": {},
"volumes": []
},
{
"service": "api",
"container_id": "2a50b728ce1094a536622ed51528f1e359b5bbd51685bb3b368dfb9327a2f9d8",
"image": "mtusi-messenger:lab6",
"image_id": "sha256:a7932cb2a948db89797bf90f560ecf0046cac576c7fff97412aa55d8c4446a62",
"state": "running",
"health": "healthy",
"memory_limit_bytes": 402653184,
"nano_cpus": 1000000000,
"oom_killed": false,
"published_ports": {},
"volumes": []
},
{
"service": "broker",
"container_id": "ea51e5f3e0e7921a34c8678a17da799c5f440f0423fc5cc0d0ebc88b6be109b8",
"image": "valkey/valkey:8.1.3",
"image_id": "sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571",
"state": "running",
"health": "healthy",
"memory_limit_bytes": 268435456,
"nano_cpus": 500000000,
"oom_killed": false,
"published_ports": {},
"volumes": [
"mtusi-lab6_broker_data"
]
},
{
"service": "cleanup",
"container_id": "e3328a92cd7b264a34d3ba2863ebd509ac105e68d507ce39062181cbe34e91bc",
"image": "mtusi-messenger:lab6",
"image_id": "sha256:a7932cb2a948db89797bf90f560ecf0046cac576c7fff97412aa55d8c4446a62",
"state": "running",
"health": null,
"memory_limit_bytes": 402653184,
"nano_cpus": 1000000000,
"oom_killed": false,
"published_ports": {},
"volumes": []
},
{
"service": "grafana",
"container_id": "9d373574ca2ee05f2e55ffc54a58266bfe13ac1c12d46c5275355a716fa8bd70",
"image": "grafana/grafana:12.0.2",
"image_id": "sha256:b5b59bfc7561634c2d7b136c4543d702ebcc94a3da477f21ff26f89ffd4214fa",
"state": "running",
"health": null,
"memory_limit_bytes": 402653184,
"nano_cpus": 1000000000,
"oom_killed": false,
"published_ports": {
"3000/tcp": [
{
"HostIp": "127.0.0.1",
"HostPort": "3000"
}
]
},
"volumes": [
"mtusi-lab6_grafana_data"
]
},
{
"service": "lb",
"container_id": "f56ed57943f2889033e15612d17d633e0b7bb3a9cceb9cb2ab336524117e6ffa",
"image": "haproxy:3.2.6-alpine",
"image_id": "sha256:3a819392f5a6af2a9203d1c63ff0feba74f0c940623a558511be06d7d85e361c",
"state": "running",
"health": "healthy",
"memory_limit_bytes": 67108864,
"nano_cpus": 500000000,
"oom_killed": false,
"published_ports": {
"8080/tcp": [
{
"HostIp": "127.0.0.1",
"HostPort": "8080"
}
]
},
"volumes": []
},
{
"service": "loki",
"container_id": "e107e6ede3c3b2be8a6995ef242f614dc6f592cf230f10d7862685696991ae71",
"image": "grafana/loki:3.5.1",
"image_id": "sha256:a74594532eec4cc313401beedc4dd2708c43674c032084b1aeb87c14a5be1745",
"state": "running",
"health": null,
"memory_limit_bytes": 402653184,
"nano_cpus": 1000000000,
"oom_killed": false,
"published_ports": {},
"volumes": [
"mtusi-lab6_loki_data"
]
},
{
"service": "migrate",
"container_id": "a01249e7317b529181758de5244cd14133cc7b39ba5077ee3d844d240ca98cb2",
"image": "mtusi-messenger:lab6",
"image_id": "sha256:0189284e9808367735919f731c1169eb64ba34743d8f5dcaebf73a9f6788902c",
"state": "exited",
"health": null,
"memory_limit_bytes": 402653184,
"nano_cpus": 1000000000,
"oom_killed": false,
"published_ports": {},
"volumes": []
},
{
"service": "otel-collector",
"container_id": "6e21c63012d160a406e28a342d668de0be55107aa16228ed9d5dc15c34b447be",
"image": "otel/opentelemetry-collector-contrib:0.123.0",
"image_id": "sha256:e39311df1f3d941923c00da79ac7ba6269124a870ee87e3c3ad24d60f8aee4d2",
"state": "running",
"health": null,
"memory_limit_bytes": 268435456,
"nano_cpus": 1000000000,
"oom_killed": false,
"published_ports": {},
"volumes": []
},
{
"service": "postgres",
"container_id": "1b3cdbc4689c6b855a435acab8112f86a3c9dc5e0207257c31e7aaa650635a0a",
"image": "postgres:17.6-bookworm",
"image_id": "sha256:f3bd19c606e442c3d7bdfa8002e03fe260a1023351e0ea4598032022b68dd6e3",
"state": "running",
"health": "healthy",
"memory_limit_bytes": 536870912,
"nano_cpus": 1000000000,
"oom_killed": false,
"published_ports": {},
"volumes": [
"mtusi-lab6_postgres_data"
]
},
{
"service": "prometheus",
"container_id": "d54da34ab176f240c2519bb6fcc46417b5ea3d27de86e2ed05321675f14e1e23",
"image": "prom/prometheus:v3.4.1",
"image_id": "sha256:9abc6cf6aea7710d163dbb28d8eeb7dc5baef01e38fa4cd146a406dd9f07f70d",
"state": "running",
"health": null,
"memory_limit_bytes": 402653184,
"nano_cpus": 1000000000,
"oom_killed": false,
"published_ports": {},
"volumes": [
"mtusi-lab6_prometheus_data"
]
},
{
"service": "publisher",
"container_id": "02738dc58bbbadc9dc35910593e6a75bcb1794821b38f892d22f05c0f9df7772",
"image": "mtusi-messenger:lab6",
"image_id": "sha256:a7932cb2a948db89797bf90f560ecf0046cac576c7fff97412aa55d8c4446a62",
"state": "running",
"health": null,
"memory_limit_bytes": 402653184,
"nano_cpus": 1000000000,
"oom_killed": false,
"published_ports": {},
"volumes": []
},
{
"service": "s3",
"container_id": "b7b3fe9f4f328f57dc0df0a3af84d8426e431505ffd236da9d6cc143123380c9",
"image": "chrislusf/seaweedfs:3.85@sha256:49312939c00c01e5ee6afbd7d728b18027821d3764c35a797a72acd4fdf3296a",
"image_id": "sha256:49312939c00c01e5ee6afbd7d728b18027821d3764c35a797a72acd4fdf3296a",
"state": "running",
"health": "healthy",
"memory_limit_bytes": 268435456,
"nano_cpus": 500000000,
"oom_killed": false,
"published_ports": {},
"volumes": [
"a6b780554a2ebb58edb3e2f7b77fe7ee705ce9543ef0dbe0c8d9c4d80bc31da2"
]
},
{
"service": "s3-bootstrap",
"container_id": "4c9c5e1d677c45da83a1651c20809f58457588843791e01d5b6e22ab486c9467",
"image": "mtusi-messenger:lab6",
"image_id": "sha256:0189284e9808367735919f731c1169eb64ba34743d8f5dcaebf73a9f6788902c",
"state": "exited",
"health": null,
"memory_limit_bytes": 134217728,
"nano_cpus": 500000000,
"oom_killed": false,
"published_ports": {},
"volumes": []
},
{
"service": "s3-storage",
"container_id": "1b69e90a9f7108e2e5d2017365e82fa30495c42f5f93809d42b2fdfcc1f0a9a0",
"image": "chrislusf/seaweedfs:3.85@sha256:49312939c00c01e5ee6afbd7d728b18027821d3764c35a797a72acd4fdf3296a",
"image_id": "sha256:49312939c00c01e5ee6afbd7d728b18027821d3764c35a797a72acd4fdf3296a",
"state": "running",
"health": "healthy",
"memory_limit_bytes": 536870912,
"nano_cpus": 1000000000,
"oom_killed": false,
"published_ports": {},
"volumes": [
"mtusi-lab6_s3_data"
]
},
{
"service": "tempo",
"container_id": "7dc0833e289e6e708dff042076bf4753617ba5e61122a9a67dd61c37384f1c9b",
"image": "grafana/tempo:2.8.1",
"image_id": "sha256:bc9245fe3da4e63dc4c6862d9c2dad9bcd8be13d0ba4f7705fa6acda4c904d0e",
"state": "running",
"health": null,
"memory_limit_bytes": 536870912,
"nano_cpus": 1000000000,
"oom_killed": false,
"published_ports": {},
"volumes": [
"mtusi-lab6_tempo_data"
]
},
{
"service": "valkey",
"container_id": "f4c736f41e428fb83e0effb49e8a56d9efe23ea6bd979a16fdcf072af0b342b0",
"image": "valkey/valkey:8.1.3",
"image_id": "sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571",
"state": "running",
"health": "healthy",
"memory_limit_bytes": 134217728,
"nano_cpus": 500000000,
"oom_killed": false,
"published_ports": {},
"volumes": [
"mtusi-lab6_valkey_data"
]
},
{
"service": "worker",
"container_id": "168b98028f54233914e74d5a5e4e0f75b68968230fce783e9835e768e1450813",
"image": "mtusi-messenger:lab6",
"image_id": "sha256:a7932cb2a948db89797bf90f560ecf0046cac576c7fff97412aa55d8c4446a62",
"state": "running",
"health": null,
"memory_limit_bytes": 1610612736,
"nano_cpus": 2000000000,
"oom_killed": false,
"published_ports": {},
"volumes": []
}
],
"grafana_version": "12.0.2",
"datasources": [
{
"uid": "loki",
"name": "Loki",
"type": "loki",
"url": "http://loki:3100",
"jsonData": {
"derivedFields": [
{
"datasourceUid": "tempo",
"matcherRegex": "\"trace_id\": \"([a-f0-9]{32})\"",
"name": "TraceID",
"url": "${__value.raw}"
}
]
}
},
{
"uid": "prometheus",
"name": "Prometheus",
"type": "prometheus",
"url": "http://prometheus:9090",
"jsonData": {
"timeInterval": "5s"
}
},
{
"uid": "tempo",
"name": "Tempo",
"type": "tempo",
"url": "http://tempo:3200",
"jsonData": {
"nodeGraph": {
"enabled": true
},
"tracesToLogs": {
"datasourceUid": "loki",
"filterByTraceID": true,
"spanEndTimeShift": "1m",
"spanStartTimeShift": "-1m",
"tags": [
{
"key": "service.name",
"value": "service_name"
}
]
}
}
}
]
}
+666
View File
@@ -0,0 +1,666 @@
{
"passed": true,
"metrics": [
{
"metric": {
"__name__": "otel_sdk_processor_log_queue_capacity",
"deployment_environment_name": "lab",
"exported_instance": "02738dc58bbb:1",
"exported_job": "messenger-publisher",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_log_processor/0",
"otel_component_type": "batching_log_processor",
"service_instance_id": "02738dc58bbb:1",
"service_name": "messenger-publisher",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"256"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_log_queue_capacity",
"deployment_environment_name": "lab",
"exported_instance": "168b98028f54:8",
"exported_job": "messenger-worker",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_log_processor/0",
"otel_component_type": "batching_log_processor",
"service_instance_id": "168b98028f54:8",
"service_name": "messenger-worker",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"256"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_log_queue_capacity",
"deployment_environment_name": "lab",
"exported_instance": "168b98028f54:9",
"exported_job": "messenger-worker",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_log_processor/0",
"otel_component_type": "batching_log_processor",
"service_instance_id": "168b98028f54:9",
"service_name": "messenger-worker",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"256"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_log_queue_capacity",
"deployment_environment_name": "lab",
"exported_instance": "2a50b728ce10:1",
"exported_job": "messenger-api",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_log_processor/0",
"otel_component_type": "batching_log_processor",
"service_instance_id": "2a50b728ce10:1",
"service_name": "messenger-api",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"256"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_log_queue_capacity",
"deployment_environment_name": "lab",
"exported_instance": "33daefd247cf:1",
"exported_job": "messenger-api",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_log_processor/0",
"otel_component_type": "batching_log_processor",
"service_instance_id": "33daefd247cf:1",
"service_name": "messenger-api",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"256"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_log_queue_size",
"deployment_environment_name": "lab",
"exported_instance": "02738dc58bbb:1",
"exported_job": "messenger-publisher",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_log_processor/0",
"otel_component_type": "batching_log_processor",
"service_instance_id": "02738dc58bbb:1",
"service_name": "messenger-publisher",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"0"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_log_queue_size",
"deployment_environment_name": "lab",
"exported_instance": "168b98028f54:8",
"exported_job": "messenger-worker",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_log_processor/0",
"otel_component_type": "batching_log_processor",
"service_instance_id": "168b98028f54:8",
"service_name": "messenger-worker",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"0"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_log_queue_size",
"deployment_environment_name": "lab",
"exported_instance": "168b98028f54:9",
"exported_job": "messenger-worker",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_log_processor/0",
"otel_component_type": "batching_log_processor",
"service_instance_id": "168b98028f54:9",
"service_name": "messenger-worker",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"0"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_log_queue_size",
"deployment_environment_name": "lab",
"exported_instance": "2a50b728ce10:1",
"exported_job": "messenger-api",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_log_processor/0",
"otel_component_type": "batching_log_processor",
"service_instance_id": "2a50b728ce10:1",
"service_name": "messenger-api",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"0"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_log_queue_size",
"deployment_environment_name": "lab",
"exported_instance": "33daefd247cf:1",
"exported_job": "messenger-api",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_log_processor/0",
"otel_component_type": "batching_log_processor",
"service_instance_id": "33daefd247cf:1",
"service_name": "messenger-api",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"0"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_span_queue_capacity",
"deployment_environment_name": "lab",
"exported_instance": "02738dc58bbb:1",
"exported_job": "messenger-publisher",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_span_processor/0",
"otel_component_type": "batching_span_processor",
"service_instance_id": "02738dc58bbb:1",
"service_name": "messenger-publisher",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"256"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_span_queue_capacity",
"deployment_environment_name": "lab",
"exported_instance": "168b98028f54:8",
"exported_job": "messenger-worker",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_span_processor/0",
"otel_component_type": "batching_span_processor",
"service_instance_id": "168b98028f54:8",
"service_name": "messenger-worker",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"256"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_span_queue_capacity",
"deployment_environment_name": "lab",
"exported_instance": "168b98028f54:9",
"exported_job": "messenger-worker",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_span_processor/0",
"otel_component_type": "batching_span_processor",
"service_instance_id": "168b98028f54:9",
"service_name": "messenger-worker",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"256"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_span_queue_capacity",
"deployment_environment_name": "lab",
"exported_instance": "2a50b728ce10:1",
"exported_job": "messenger-api",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_span_processor/0",
"otel_component_type": "batching_span_processor",
"service_instance_id": "2a50b728ce10:1",
"service_name": "messenger-api",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"256"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_span_queue_capacity",
"deployment_environment_name": "lab",
"exported_instance": "33daefd247cf:1",
"exported_job": "messenger-api",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_span_processor/0",
"otel_component_type": "batching_span_processor",
"service_instance_id": "33daefd247cf:1",
"service_name": "messenger-api",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"256"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_span_queue_size",
"deployment_environment_name": "lab",
"exported_instance": "02738dc58bbb:1",
"exported_job": "messenger-publisher",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_span_processor/0",
"otel_component_type": "batching_span_processor",
"service_instance_id": "02738dc58bbb:1",
"service_name": "messenger-publisher",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"0"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_span_queue_size",
"deployment_environment_name": "lab",
"exported_instance": "168b98028f54:8",
"exported_job": "messenger-worker",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_span_processor/0",
"otel_component_type": "batching_span_processor",
"service_instance_id": "168b98028f54:8",
"service_name": "messenger-worker",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"0"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_span_queue_size",
"deployment_environment_name": "lab",
"exported_instance": "168b98028f54:9",
"exported_job": "messenger-worker",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_span_processor/0",
"otel_component_type": "batching_span_processor",
"service_instance_id": "168b98028f54:9",
"service_name": "messenger-worker",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"0"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_span_queue_size",
"deployment_environment_name": "lab",
"exported_instance": "2a50b728ce10:1",
"exported_job": "messenger-api",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_span_processor/0",
"otel_component_type": "batching_span_processor",
"service_instance_id": "2a50b728ce10:1",
"service_name": "messenger-api",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"0"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_span_queue_size",
"deployment_environment_name": "lab",
"exported_instance": "33daefd247cf:1",
"exported_job": "messenger-api",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_span_processor/0",
"otel_component_type": "batching_span_processor",
"service_instance_id": "33daefd247cf:1",
"service_name": "messenger-api",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"0"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_log_processed_total",
"deployment_environment_name": "lab",
"exported_instance": "02738dc58bbb:1",
"exported_job": "messenger-publisher",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_log_processor/0",
"otel_component_type": "batching_log_processor",
"service_instance_id": "02738dc58bbb:1",
"service_name": "messenger-publisher",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"318"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_log_processed_total",
"deployment_environment_name": "lab",
"exported_instance": "168b98028f54:9",
"exported_job": "messenger-worker",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_log_processor/0",
"otel_component_type": "batching_log_processor",
"service_instance_id": "168b98028f54:9",
"service_name": "messenger-worker",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"66"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_log_processed_total",
"deployment_environment_name": "lab",
"exported_instance": "2a50b728ce10:1",
"exported_job": "messenger-api",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_log_processor/0",
"otel_component_type": "batching_log_processor",
"service_instance_id": "2a50b728ce10:1",
"service_name": "messenger-api",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"1296"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_log_processed_total",
"deployment_environment_name": "lab",
"exported_instance": "33daefd247cf:1",
"exported_job": "messenger-api",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_log_processor/0",
"otel_component_type": "batching_log_processor",
"service_instance_id": "33daefd247cf:1",
"service_name": "messenger-api",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"1289"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_span_processed_total",
"deployment_environment_name": "lab",
"exported_instance": "02738dc58bbb:1",
"exported_job": "messenger-publisher",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_span_processor/0",
"otel_component_type": "batching_span_processor",
"service_instance_id": "02738dc58bbb:1",
"service_name": "messenger-publisher",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"318"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_span_processed_total",
"deployment_environment_name": "lab",
"exported_instance": "168b98028f54:9",
"exported_job": "messenger-worker",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_span_processor/0",
"otel_component_type": "batching_span_processor",
"service_instance_id": "168b98028f54:9",
"service_name": "messenger-worker",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"1320"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_span_processed_total",
"deployment_environment_name": "lab",
"exported_instance": "2a50b728ce10:1",
"exported_job": "messenger-api",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_span_processor/0",
"otel_component_type": "batching_span_processor",
"service_instance_id": "2a50b728ce10:1",
"service_name": "messenger-api",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"13025"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_span_processed_total",
"deployment_environment_name": "lab",
"exported_instance": "33daefd247cf:1",
"exported_job": "messenger-api",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_span_processor/0",
"otel_component_type": "batching_span_processor",
"service_instance_id": "33daefd247cf:1",
"service_name": "messenger-api",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"13012"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_log_processed_total",
"deployment_environment_name": "lab",
"exported_instance": "168b98028f54:8",
"exported_job": "messenger-worker",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_log_processor/0",
"otel_component_type": "batching_log_processor",
"service_instance_id": "168b98028f54:8",
"service_name": "messenger-worker",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"54"
]
},
{
"metric": {
"__name__": "otel_sdk_processor_span_processed_total",
"deployment_environment_name": "lab",
"exported_instance": "168b98028f54:8",
"exported_job": "messenger-worker",
"instance": "otel-collector:9464",
"job": "messenger",
"otel_component_name": "batching_span_processor/0",
"otel_component_type": "batching_span_processor",
"service_instance_id": "168b98028f54:8",
"service_name": "messenger-worker",
"service_version": "6.0.0",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1"
},
"value": [
1795102653.838,
"1080"
]
}
],
"per_process_queue_capacity": 256
}
File diff suppressed because it is too large Load Diff
+246
View File
@@ -0,0 +1,246 @@
PHASE: baseline 120 seconds
PHASE: short_db_spike 4 seconds
PHASE: after_short_spike 60 seconds
PHASE: sustained_db_lock 90 seconds
PHASE: after_db_recovery 100 seconds
PHASE: worker_stopped 120 seconds
PHASE: after_worker_recovery 120 seconds
{
"utc": "2026-11-19T15:26:14.987289+00:00",
"hypothesis": "Multiwindow burn alerts ignore a 4s spike, detect sustained DB/worker degradation and resolve after recovery.",
"profile": {
"message_arrival_per_second": 2,
"image_arrival_per_second": 0.5,
"max_inflight": 16,
"sampling": 1.0,
"retries": 0,
"slo_window_seconds": 3600,
"api_slo": 0.99,
"ready_slo": 0.95,
"ready_deadline_seconds": 30
},
"docker": "29.0.1 aarch64 CPUs=10 RAM=8217448448",
"db_diagnosis": {
"trace_id": "f124d93f84dd25c5af978e78e2028646",
"request_id": "3c5e5b14-5825-41b8-a227-93cba420a532",
"slow_error_spans": [
{
"name": "postgresql.SELECT",
"status": {
"code": "STATUS_CODE_ERROR"
},
"duration_ms": 2000.115335,
"attributes": [
{
"key": "db.system.name",
"value": {
"stringValue": "postgresql"
}
},
{
"key": "db.operation.name",
"value": {
"stringValue": "SELECT"
}
},
{
"key": "error.type",
"value": {
"stringValue": "_WaitTimeout"
}
}
]
},
{
"name": "postgresql.transaction",
"status": {
"code": "STATUS_CODE_ERROR"
},
"duration_ms": 2001.169168,
"attributes": [
{
"key": "error.type",
"value": {
"stringValue": "_WaitTimeout"
}
}
]
},
{
"name": "POST /api/v1/chats/{chat_id}/messages",
"status": {
"code": "STATUS_CODE_ERROR"
},
"duration_ms": 2003.784959,
"attributes": [
{
"key": "http.request.method",
"value": {
"stringValue": "POST"
}
},
{
"key": "http.route",
"value": {
"stringValue": "/api/v1/chats/{chat_id}/messages"
}
},
{
"key": "http.response.status_code",
"value": {
"intValue": "503"
}
}
]
}
]
},
"short_spike_observed_error_ratio_peak": 0.06373490138007629,
"passed": true,
"false_positives": {
"baseline": 0,
"burn_alerts_after_short_spike": 0,
"single_window_alerts_after_short_spike": [
"APIHighErrorRate"
]
},
"start": 1795101974.987257,
"end": 1795102594.377363,
"duration_seconds": 619.3901059627533,
"phases": [
{
"name": "baseline",
"start": 1795101975.364327,
"planned_seconds": 120,
"active_at": 1795101975.364415,
"end": 1795102095.3712242
},
{
"name": "short_db_spike",
"start": 1795102095.371294,
"planned_seconds": 4,
"active_at": 1795102095.527463,
"end": 1795102099.381341
},
{
"name": "after_short_spike",
"start": 1795102099.381383,
"planned_seconds": 60,
"active_at": 1795102099.381435,
"end": 1795102159.386289
},
{
"name": "sustained_db_lock",
"start": 1795102159.386304,
"planned_seconds": 90,
"active_at": 1795102159.552147,
"end": 1795102249.3866298
},
{
"name": "after_db_recovery",
"start": 1795102252.4302201,
"planned_seconds": 100,
"active_at": 1795102252.430262,
"end": 1795102352.43217
},
{
"name": "worker_stopped",
"start": 1795102352.4322171,
"planned_seconds": 120,
"active_at": 1795102352.766314,
"end": 1795102472.4357738
},
{
"name": "after_worker_recovery",
"start": 1795102472.435835,
"planned_seconds": 120,
"active_at": 1795102474.322918,
"end": 1795102592.4362948
}
],
"skipped_arrivals": 0,
"phase_summary": {
"baseline": {
"requests": 301,
"5xx": 0,
"successful_rps": 2.5081891707489476,
"p50_ms": 16.607,
"p95_ms": 31.266,
"p99_ms": 35.193
},
"short_db_spike": {
"requests": 10,
"5xx": 4,
"successful_rps": 1.4962418299487805,
"p50_ms": 1670.714,
"p95_ms": 2017.188,
"p99_ms": 2017.188
},
"after_short_spike": {
"requests": 150,
"5xx": 0,
"successful_rps": 2.499795602583431,
"p50_ms": 16.475,
"p95_ms": 30.739,
"p99_ms": 32.763
},
"sustained_db_lock": {
"requests": 225,
"5xx": 176,
"successful_rps": 0.5444424728476727,
"p50_ms": 2011.805,
"p95_ms": 2022.545,
"p99_ms": 2025.758
},
"after_db_recovery": {
"requests": 250,
"5xx": 0,
"successful_rps": 2.4999512562719017,
"p50_ms": 16.283,
"p95_ms": 30.965,
"p99_ms": 33.443
},
"worker_stopped": {
"requests": 300,
"5xx": 0,
"successful_rps": 2.4999259036886072,
"p50_ms": 16.221,
"p95_ms": 31.277,
"p99_ms": 35.499
},
"after_worker_recovery": {
"requests": 300,
"5xx": 0,
"successful_rps": 2.4999904185900736,
"p50_ms": 13.134,
"p95_ms": 30.749,
"p99_ms": 35.272
}
},
"alert_timings": {
"APIAvailabilitySlowBurn": {
"detection_seconds": 60.28,
"resolution_after_restore_seconds": 65.27
},
"APIHighErrorRate": {
"detection_seconds": 25.11,
"resolution_after_restore_seconds": 35.15
},
"APIAvailabilityFastBurn": {
"detection_seconds": 40.18,
"resolution_after_restore_seconds": 35.15
},
"AttachmentQueueLag": {
"detection_seconds": 45.21,
"resolution_after_restore_seconds": 30.12
},
"AttachmentReadyFastBurn": {
"detection_seconds": 95.5,
"resolution_after_restore_seconds": 45.18
},
"AttachmentReadySlowBurn": {
"detection_seconds": 131.6,
"resolution_after_restore_seconds": 75.32
}
}
}
File diff suppressed because it is too large Load Diff
+130
View File
@@ -0,0 +1,130 @@
{
"base_commit": "470d9d6f1e4fe4f594e37c2ba59550ee5ca54fc1",
"working_tree": true,
"files": {
".dockerignore": "a092ac618bd90f555f48c85fc58cad3ac9f51f4de4379b242f51e14e3d468b38",
".env.example": "690df84f2c2f7200bd05a6ae325277f0771df9c57e581003746e2c20e8119c05",
".github/pull_request_template.lab5.md": "e3e9afa285870e2133b3dbc30fec881bae7418605789bdb1eaf497a2eb62914a",
".github/pull_request_template.md": "fd1a90691c2197f05c4aa0dd43aea9eda4be1e6abb0e1bb1430991228eda8e64",
".github/workflows/application.yml": "e9b1309023f630f7773c7bb7c525e68662245c1657e5b773a9393ec50d0d88a5",
".github/workflows/contracts.yml": "a45d7932ef14130aff8020bce79f043cccaf9692d697088a754d309a03f7d3e8",
".gitignore": "c26ab45b3a778a5376f6db4f624a51c5fdbf1a404f9a26df8613449277d95438",
"CONTRIBUTING.md": "2c01dd698cc9653dece49a94c9fd3f58d36e84764aaa643b46e26d7e599dc12e",
"COURSE.md": "c34d53cd082d194aa4b58f504c4e0348d25b6afec3d6a9c0963dd01c9c81e971",
"Dockerfile": "e2a683428301e5bf584fb0c067b447c22e2a088ff13ce147b7f7b8b2261cd8ea",
"Dockerfile.example": "fd7ac9491c0c3c663b083c41a762fb38bc2d212fa4a2ed3e6a0702af72108709",
"MAINTAINERS.md": "f2e7e9d59e06f260ccf3acc9baf79c4a3b66e1bc370ff6e21cbefb338210630a",
"Makefile": "c05bd07058ae0949dd4905afdae7674bc7e3e63863a6cdf8b72661140d445826",
"README.md": "583fa7625d728ead8a6ee2cd2de9f117ed3f4a1d9696c0bb9fb602fe549a31db",
"REPORT.lab5.md": "ce77ed0e6cc43a6283a9a2964a2508375496b274996222ae1ab5045b508f1d5f",
"REPORT.md": "4107c5e486c13d8e48eb0f2d37bbdabe267d857af56a17fe9ac879b5b652a6ea",
"compose.example.yaml": "9bfd9eacae286dd9bffe29d6fe349534552560f966c3c3e6e6540e92d7357afb",
"compose.yaml": "aed7a12a1ceb68bc729a102b7d76ab9354d426a136245921c37556f20a06a79c",
"contracts/README.md": "72df27a559f88ffa3fd8c3c79d3c32f6db2c5986a0602677c51994c434a3fc4f",
"contracts/attachment-states.md": "cf0519e137410e4b34ab632aadb8ad8a381d4b73033e27b354c58eeacbdf86d6",
"contracts/examples.json": "381cc18c03789e935b391d007fb5843964be9cfd9f7530cb6b1996ed4a1c4c37",
"contracts/infrastructure.json": "45264a3db653bb79de8d8fcb8d70733924f3cbfcba0fa1253cecbc6828bce217",
"contracts/jobs.schema.json": "9ccf9b11466c0c3a26a941520ac5ff543241fc4935e3a6eebb01ef303779b10d",
"contracts/observability.md": "882c120c0e153a06c9cc824a802e317c58eb6590bc3d3a576f2e0a96f8597b62",
"contracts/openapi.json": "2c4074e8fac6bed6337fbbc0aaed0ae2321a76ef30ea68afad80a1f39699535a",
"docs/runbook.md": "5b9b9529ecce1f0c510e9463783db3d5d0dd14f709d2a2d571c0094714067b49",
"docs/schema.md": "205d9a1524343b602f87b14f64ebc207372c747c1e38a3222d1c733c002093ec",
"examples/requests.http": "8c086fd540092b3e31a945a416632bcda6c4bea39253f86b076f791b362cf5e4",
"infra/README.md": "0e804fa51debba4c38d3cc84abf4704897665e0335b272060363f03aadd6354f",
"infra/grafana/dashboards/messenger.json": "ed102001c4002a3e63617216571979727c05b10866a6eb58c4ac795110402510",
"infra/grafana/provisioning/dashboards/provider.yaml": "d7aa7568978a55168509eb23f2522d081627cf3c1e141a356b2c6d8e3ff86f62",
"infra/grafana/provisioning/datasources/sources.yaml": "b89e3fa70a4432fac952a2bb7a55a0dbb6cae92787090a8d1b30f3468db56d82",
"infra/haproxy.cfg": "c80c30717494c8185eda0aa0437734e3b011bff3d213ca2fa2b2e0af83c88600",
"infra/otel/README.md": "0d6c93589f7b96b7045c1b82a261362697d25f14c9e1a4946b8ea8a977c1e842",
"infra/otel/alerts.yaml": "e7a1223c64b7040cbd76b754e19ed17a6d321aaf6da1996dafcd608b3ca669af",
"infra/otel/collector.yaml": "92c759d393d9669815131acca5c8df7ed1c71dc7c7818a7b445cefcb8c040379",
"infra/otel/loki.yaml": "a1b1e6af51a0f34a7b8356d6eab523b855731b292e129cbe6a480fe0551c2eeb",
"infra/otel/prometheus.yaml": "df8340a67cb44830d1d1a6c19b87acb22d00b8b85c2993ab37a28599b43829ff",
"infra/otel/tempo.yaml": "b7d437347fe6b344de2e6499426931330c6d41ce1ba2f39492e03069e2908a43",
"lab.json": "807dbb02b180ddb13dc898c117e09495e15a462e83f4b55133ba174f089594ce",
"migrations/001_initial.sql": "a319949c962c54c5ba537a284ff38f77f2ba04c5bbc748873889d49c2bf48a46",
"migrations/002_message_idempotency.sql": "8e484326b7861b8acf4b847d7126639bf6216e635012e1e969006e86caf902ed",
"migrations/003_attachments.sql": "9deda173c984675092869022715c32648aa7b91cf8f8641bb5daf68c6f871aba",
"migrations/004_attachment_jobs.sql": "d88a95701d0b7359a731fa81aff22b5b3e1948fb29aacdf1e7e27b9136d27427",
"migrations/005_observability.sql": "fb23df863aedb6686c185d59a2499134c09c2e6ad9859c2b7e1648027aa815ea",
"requirements-dev.txt": "4cefdb67007caf026d1613be7c519c01b4c8343db7c4f4b618677e01cf113525",
"requirements.txt": "861b5ad246e5cfa706a7cdcf7d3a4a9e9feca3261d89b387e1bb553244339ed6",
"research/README.lab2.md": "59606b7a6325ac75749963f45b6b367c93d5a3a97093cb8850587ee9ae92b5da",
"research/README.md": "cd14eeb3cfdb81a70269f4503f4e91383c99e482757bb462f9120f684c6dcca7",
"research/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"research/benchmark.py": "d66405d705f6941735efb7f297df2539ec73a31f3efa989723e4ed02f72af721",
"research/observations.py": "238b8da50a1c48656daf2fe424e60d0de46ae5a4743c17ac17dda064b555a7f6",
"research/run.py": "843a33bb642ebe0648ab8ccf551adfb2e05d9fe1127d8cbd83bf762f872b243b",
"research/slo.py": "7bf6848d94e483f65598681d39b908635d205893c89874fcbe14c229de8ca233",
"scripts/build.sh": "8f67493f0563b0dce0e0f327655c4838a21c04d9d887a03820798f4f56518c2e",
"scripts/check-docker.sh": "43e6d221f386af27eec2b49a18ed6c48c284331c7a06dcb5ee03e189e0bca3ba",
"scripts/check-lab6.sh": "eb8b12eb0b770a5503ffeb349cd3b79b2777e6c7b5bb6a41186d14ef3b1f2d7a",
"scripts/check.sh": "c0de27e3d079b503f6cf2a1606bc6d156b5ac35c61455582bab3d5ee809a17a6",
"scripts/check_contract.py": "7c4402c2a6ab80d3b4676e1866d6ecc87b6daea14c080bcb9be9a7e8b959d671",
"scripts/demo.sh": "8363935669d34bf56f1e170261d590c75dce9470308da90f6e700034a9bd01f3",
"scripts/init_local.py": "279f03cc5a4bc1735396594ec238c3946bc97a7343baf93f94e6abbe12f43e1f",
"scripts/migrate.sh": "8700e123e7f154b2b80926c83ffe384cd39572bb3e063d807dfa3c144c135913",
"scripts/replicas.py": "fa2700c2a486c5919cfa1095068307ed445a6268d8dfcf5b75ce15a1629509eb",
"scripts/research-lab2.sh": "081ea2b07c338b03e08eaba8316c1de4c9b49e0d83bdded7b4de956dc77352dc",
"scripts/research.sh": "84f34fcb0cf8338d8ff8749524db68aab0e2c7b328e2f4b45ad2cf980d179a66",
"scripts/restart.example.sh": "0328246ba75defbced992104e986fde973f63e3830d83251eced5953263e944b",
"scripts/restart.sh": "6fd3eb1e0e65df0f600d88cccce52068d60ea1f58a8a125b87622ec62b82a5de",
"scripts/rolling-update.sh": "dc09335e3e8989b42bbac75a9aec9e722ab234541361830bd924f544b45f489d",
"scripts/run-local.sh": "61d5021aaca500ae8ac4249d6d63a839edbd811df006a56ea27a916f9fcbeb71",
"scripts/start-worker.sh": "b5e8df907b645ab2d81799933f9e94cf160f4922ebdba21b9d1e52ee59c8d93f",
"scripts/start.sh": "5314c8d051541b330510d6f59d6aefebd5d3ee020464e14dd9f46c09af2f6c61",
"scripts/stop-one.example.sh": "1bcf34394520b89d95b7605ec56675be799eea920e83cfbba306d5dc0a6d9811",
"scripts/stop-one.sh": "fd6e58a604aaed3833c220f4e828ce52bd2c61a905a232a0c50da74b6a3b2edb",
"scripts/stop-worker.sh": "32ef73cfc0ef91e5acd437934a46e4567d83ab926247bf624be5aeb4ce3d3993",
"scripts/stop.sh": "db7ef5f1723566859b211f02f753c65657e6820f8135a4bc07ce6c544284df0d",
"scripts/validate_openapi.py": "4e981acbfc10dac58817bf922d5896e996798551fedc1b2385130e1cddb13d54",
"scripts/wait-observability.py": "af89dbdf9c0e4d9ae11bb7b80143fd8af08b254578159e695e660c55345693c7",
"scripts/wait-ready.sh": "c24e7a2297bbcbeb69451d17875a669b61a0b6b86e9a03fb33dabb2daea0dce7",
"src/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"src/__main__.py": "91819b838eef82165a9ef67aaf45cbb7a54d131f170076e1dde672d9a77e121b",
"src/app.py": "796aee198f9aa934bac388aa05e1cc2b067643db5f1bd2a843cc0618e1b9b09d",
"src/attachments.py": "9d4c4d3f76e489dfe3b96d89f892f7b9e9222e4ffec667d419df7dcc5850e7d5",
"src/auth.py": "75ad98d17940efb2e4f6dfc584b371a4edc6c397af4fb46f3666ee9e2d043866",
"src/bootstrap_s3.py": "ad8330225e4697873d2961f874cbdfbb69b66301c6d0ccf28d6999cc5b9c8191",
"src/broker.py": "13c5c025338ccd90eb74e48d8892aba4547adc33b71807fad021a99eb37d795e",
"src/cleanup.py": "839162ed4bf01db7734025b3b14e21a30449e2b7e5b6c3d60b39c9bd723c98b5",
"src/config.py": "ad9d1f94e796b82a7a7b9b93a98d94ca588decf02a65e588b34cab362ef0a6a0",
"src/db.py": "803446c82ebbfa11b33ef41c100b4b06204f7ba3fffcec8092e0e91f6b992882",
"src/errors.py": "f020bf3e5c9619c6ef47e1c8910a19e3331140eb9dd2bba74981e89e855e1149",
"src/faults.py": "b1ca87cf1c75a050c8572c9a3b05b569d2e459c7c5d4ce23efefbeffd2774e6b",
"src/healthcheck.py": "bb8c06c1836f601f77755de3aca4b1092294784d3c33d60bd27b41778cd130be",
"src/image_pipeline.py": "f1800c26913612739f919b6880e5b673e986c198cb4ea9509e105240f40f1fa8",
"src/job_admin.py": "51781bdeacf644c36118a9972eab125893d6bf65a3eaa1143d8eb3f3d24631e1",
"src/jobs.py": "9bbed284d1f61355d65e84271191242989b10f97bb803792907444908ea15165",
"src/migrate.py": "66b66b9d244925957ee8559dc734e872172da403c688c2bf20ae8312d7c3b260",
"src/models.py": "6f9adcc886e05c7c28c540393ca4a3d22083693f30e33a51a074306f511acc15",
"src/object_store.py": "177a9cd69e0a4f494a1cdafc92544cf4a0f150842a0b7d5e826b72c13b49532a",
"src/pagination.py": "ca07be71f21ba56873d77c9422530a7a5050679b57c055b88fcf547efc112558",
"src/passwords.py": "9cb66e8e841faee89868af041a793b0b511df49b85b8d5b1a27ca296165bf1de",
"src/publisher.py": "2f99db91efdf3f7e06383954fe54c30745af402efd07052bd372ed8e1ab78211",
"src/storage.py": "58c49912188944d739d8ebc9a0d834958b605b56f9e6296d59e9b99c2735961f",
"src/telemetry.py": "3151acbe5eed23c92cc2bf2a644bc0035a12be34fdec99737042487c1ef87af5",
"src/worker.py": "1215386583876119eb817934461b56edc5416369282af017b33e4a6a9d79da0a",
"student-tests/attachment_checks.py": "219648a7ea58d81ed2c709c1961d382558654c230db369f320d4e39f6b5ba4fb",
"student-tests/docker_lifecycle.py": "06a49931d151419eea5f78668a737bc17a5d31f0559d78e5429be882fd10046c",
"student-tests/helpers.py": "3723976953cb1212e6773e8fc9771148232e4d95ff665f049e5f47d23a97d7ba",
"student-tests/lab5_pipeline.py": "c23d50767759df0ea6642bff7a56b2f3cd0eb1010dd77b42cd941e15ca3650d3",
"student-tests/lab6_observability.py": "1a16f9e7315f980089dfb82c45e009ad3979c9754dd305b2628fe16c36e68b6c",
"student-tests/postgres_pause.py": "e81dee40fe1356940b7b8a65e2c9cf5cc1510adc6bf831dd235041044f654548",
"student-tests/promtool-slo.yaml": "f265001af6026fadc0677132a510f8dccf8ff1b5e1590ea156efec571040779e",
"student-tests/test_api.py": "5a60014b01ebc40a14c037ded532995ebb680c0aa5923a910460a8da181fc32f",
"student-tests/test_attachments.py": "8660c45842e9987b814f7075f3ae23c446c156cb7b755dd2734fed0b5b11af56",
"student-tests/test_concurrency.py": "ae48809fb1acef260abb04ba3598475a9456908d3193c90445458837547a9d84",
"student-tests/test_idempotency.py": "1f34c297029b182a0f66b99f007bc1dfebf7e6e7ca6fb5d695d0a8be37135d32",
"student-tests/test_sessions.py": "4d8fe299727266bf1ca1d7fd25b8ee3dd1780b10cce23e0af48bd47da95a852e",
"student-tests/verify_restart.py": "5c7d5197ede3d92351e07cc6768a7acc3ce204120e21f744ca48a98594def33f",
"tests/README.md": "e0bfa7e196797f6a5bf6e44d8ad2ffeb82651927ff5d8484eb1c2dda1ec7dec5",
"tests/client.py": "8d50976fc7c7bbb81e88a152f613c61ab25eaf53dba33c6a9dfab19f868d546d",
"tests/fixtures/README.md": "c001783760b4f87a7a8441a7ba55f5d080ff48e1397d3581d72a88d7691f96c2",
"tests/fixtures/sample.png": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75",
"tests/image_probe.py": "a9a4f89181c8e0fda6ce42e1a1af32fb42d8e3ae519e314207127c9b9b448b13",
"tests/load.py": "6d3511ea719c7a7e841083e73d435c86dcbfd9f4e5c2a07d62eb9614b01d9933",
"tests/resilience.py": "1f96663a174b3978d24eff66f2741f5f8c9b788d3242261d37a972720c52788b",
"tests/smoke.py": "52ac38eb343ff7d43e7543588e1da58ca06c9fce74b2b0d0bf0e4982bc23c1db"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"passed": true,
"trace_id": "93e1177f9568f5bbfc0b6967a1324a84",
"stored_span_count": 59,
"after_full_restart": true,
"prometheus_series": 4,
"datasources": [
"loki",
"prometheus",
"tempo"
]
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+248
View File
@@ -0,0 +1,248 @@
{
"status": "success",
"data": {
"resultType": "streams",
"result": [
{
"stream": {
"attachment_id": "d0c6d064-5a57-47eb-a5b1-c8d2f7a9870f",
"deployment_environment_name": "lab",
"detected_level": "INFO",
"event": "attachment.accepted",
"flags": "3",
"job_id": "03320707-a810-4a0e-a72d-b10ef7734c32",
"scope_name": "messenger",
"scope_version": "6.0.0",
"service_instance_id": "33daefd247cf:1",
"service_name": "messenger-api",
"service_version": "6.0.0",
"severity_number": "9",
"severity_text": "INFO",
"span_id": "65e8265a35af1c1d",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1",
"trace_id": "2b1592ca18aac08bbd14b3f1825f0816"
},
"values": [
[
"1795102383403137083",
"{\"timestamp\": \"2026-11-19T15:33:03.403092+00:00\", \"severity\": \"INFO\", \"service.name\": \"messenger-api\", \"event\": \"attachment.accepted\", \"trace_id\": \"2b1592ca18aac08bbd14b3f1825f0816\", \"span_id\": \"65e8265a35af1c1d\", \"job_id\": \"03320707-a810-4a0e-a72d-b10ef7734c32\", \"attachment_id\": \"d0c6d064-5a57-47eb-a5b1-c8d2f7a9870f\"}"
]
]
},
{
"stream": {
"attempt": "1",
"deployment_environment_name": "lab",
"detected_level": "INFO",
"event": "job.finished",
"flags": "3",
"job_id": "03320707-a810-4a0e-a72d-b10ef7734c32",
"outcome": "ready",
"scope_name": "messenger",
"scope_version": "6.0.0",
"service_instance_id": "168b98028f54:8",
"service_name": "messenger-worker",
"service_version": "6.0.0",
"severity_number": "9",
"severity_text": "INFO",
"span_id": "ba2d3f8e53a54fd2",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1",
"trace_id": "2b1592ca18aac08bbd14b3f1825f0816"
},
"values": [
[
"1795102477984404627",
"{\"timestamp\": \"2026-11-19T15:34:37.984358+00:00\", \"severity\": \"INFO\", \"service.name\": \"messenger-worker\", \"event\": \"job.finished\", \"trace_id\": \"2b1592ca18aac08bbd14b3f1825f0816\", \"span_id\": \"ba2d3f8e53a54fd2\", \"job_id\": \"03320707-a810-4a0e-a72d-b10ef7734c32\", \"attempt\": 1, \"outcome\": \"ready\"}"
]
]
},
{
"stream": {
"deployment_environment_name": "lab",
"detected_level": "INFO",
"duration_seconds": "0.024863",
"event": "http.request",
"flags": "3",
"method": "POST",
"request_id": "bad9f74b-1237-475e-b7a9-13e04b9457fb",
"route": "/api/v1/chats/{chat_id}/attachments",
"scope_name": "messenger",
"scope_version": "6.0.0",
"service_instance_id": "33daefd247cf:1",
"service_name": "messenger-api",
"service_version": "6.0.0",
"severity_number": "9",
"severity_text": "INFO",
"span_id": "65e8265a35af1c1d",
"status": "202",
"telemetry_sdk_language": "python",
"telemetry_sdk_name": "opentelemetry",
"telemetry_sdk_version": "1.45.1",
"trace_id": "2b1592ca18aac08bbd14b3f1825f0816"
},
"values": [
[
"1795102383403584208",
"{\"timestamp\": \"2026-11-19T15:33:03.403545+00:00\", \"severity\": \"INFO\", \"service.name\": \"messenger-api\", \"event\": \"http.request\", \"trace_id\": \"2b1592ca18aac08bbd14b3f1825f0816\", \"span_id\": \"65e8265a35af1c1d\", \"method\": \"POST\", \"route\": \"/api/v1/chats/{chat_id}/attachments\", \"status\": 202, \"duration_seconds\": 0.024863, \"request_id\": \"bad9f74b-1237-475e-b7a9-13e04b9457fb\"}"
]
]
}
],
"stats": {
"summary": {
"bytesProcessedPerSecond": 99017520,
"linesProcessedPerSecond": 135509,
"totalBytesProcessed": 2015283,
"totalLinesProcessed": 2758,
"execTime": 0.020353,
"queueTime": 0.000121,
"subqueries": 0,
"totalEntriesReturned": 3,
"splits": 0,
"shards": 1,
"totalPostFilterLines": 3,
"totalStructuredMetadataBytesProcessed": 1011858
},
"querier": {
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"queryReferencedStructuredMetadata": false,
"chunk": {
"headChunkBytes": 0,
"headChunkLines": 0,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0,
"postFilterLines": 0,
"headChunkStructuredMetadataBytes": 0,
"decompressedStructuredMetadataBytes": 0
},
"chunkRefsFetchTime": 0,
"congestionControlLatency": 0,
"pipelineWrapperFilteredLines": 0
}
},
"ingester": {
"totalReached": 1,
"totalChunksMatched": 2,
"totalBatches": 2,
"totalLinesSent": 3,
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"queryReferencedStructuredMetadata": false,
"chunk": {
"headChunkBytes": 39416,
"headChunkLines": 85,
"decompressedBytes": 1975867,
"decompressedLines": 2673,
"compressedBytes": 241323,
"totalDuplicates": 0,
"postFilterLines": 3,
"headChunkStructuredMetadataBytes": 12008,
"decompressedStructuredMetadataBytes": 999850
},
"chunkRefsFetchTime": 293083,
"congestionControlLatency": 0,
"pipelineWrapperFilteredLines": 0
}
},
"cache": {
"chunk": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"index": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"result": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"statsResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"volumeResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"seriesResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"labelResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"instantMetricResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
}
},
"index": {
"totalChunks": 0,
"postFilterChunks": 0,
"shardsDuration": 0,
"usedBloomFilters": false
}
}
}
}
File diff suppressed because it is too large Load Diff
+76
View File
@@ -0,0 +1,76 @@
{
"utc": "2026-11-06T07:27:40.514878+00:00",
"project": "lab4-pg-pause-30f1d978ce",
"command": ".venv/bin/python student-tests/postgres_pause.py",
"passed": true,
"sql_without_server_timeout": {
"elapsed_seconds": 2.001,
"connection_closed": true
},
"direct_ready": {
"status": 503,
"elapsed_seconds": 2.012
},
"direct_live": {
"status": 200,
"elapsed_seconds": 0.006
},
"repeated_ready": [
{
"status": 503,
"elapsed_seconds": 2.11
},
{
"status": 503,
"elapsed_seconds": 2.011
},
{
"status": 503,
"elapsed_seconds": 2.014
},
{
"status": 503,
"elapsed_seconds": 2.097
},
{
"status": 503,
"elapsed_seconds": 2.194
},
{
"status": 503,
"elapsed_seconds": 2.013
},
{
"status": 503,
"elapsed_seconds": 2.299
},
{
"status": 503,
"elapsed_seconds": 2.203
},
{
"status": 503,
"elapsed_seconds": 2.013
},
{
"status": 503,
"elapsed_seconds": 2.094
}
],
"ready_after_12_seconds": {
"status": 503,
"elapsed_seconds": 0.009
},
"live_after_repeated_requests": {
"status": 200,
"elapsed_seconds": 0.006
},
"paused_seconds": 12.565,
"recovered_ready": {
"status": 200,
"elapsed_seconds": 0.009
},
"recovery_seconds": 2.874,
"api_not_restarted": true,
"existing_session_and_message_preserved": true
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+32
View File
@@ -0,0 +1,32 @@
Research project: lab2-research-85021a09d9
Measuring two indexes on the same 100000 messages, three repeats...
{
"chat_only": {
"insert_100000_median_ms": 1386.7587500000127,
"index_bytes": 671744,
"wal_bytes_median": 38822560,
"queries": 180,
"errors": 0,
"concurrency": 1,
"p50_ms": 1.6852079999978287,
"p95_ms": 7.566457999985232,
"p99_ms": 46.40233399999261,
"successful_sql_rps": 282.01364182715855
},
"history": {
"insert_100000_median_ms": 1404.4910420000178,
"index_bytes": 7315456,
"wal_bytes_median": 43108512,
"queries": 180,
"errors": 0,
"concurrency": 1,
"p50_ms": 0.22610399997802233,
"p95_ms": 0.29704099995342403,
"p99_ms": 0.3384169999662845,
"successful_sql_rps": 4322.810483886352
}
}
PASS: backup 0.54s; restore 0.68s; 100000 messages, all hashes and 12 samples match
PASS: restored into a different container and fresh volume; one post-backup commit is absent as expected
Results: evidence/research.json, evidence/query-plans.json; dump stays outside Git in backups/
Removed only temporary research project: lab2-research-85021a09d9