forked from mtusi2026/mtusi2026lab6
Лабораторная 6: наблюдаемость мессенджера
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
Checking /etc/prometheus/prometheus.yaml
|
||||
SUCCESS: 1 rule files found
|
||||
SUCCESS: /etc/prometheus/prometheus.yaml is valid prometheus config file syntax
|
||||
|
||||
Checking /etc/prometheus/alerts.yaml
|
||||
SUCCESS: 3 rules found
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
[
|
||||
{
|
||||
"name": "/mtusi-lab6-postgres-1",
|
||||
"started_at": "2026-11-20T17:27:24.629073504Z",
|
||||
"running": true,
|
||||
"restart_count": 0,
|
||||
"memory_limit": 536870912
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab6-redis-1",
|
||||
"started_at": "2026-11-20T17:27:24.710887337Z",
|
||||
"running": true,
|
||||
"restart_count": 0,
|
||||
"memory_limit": 134217728
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab6-s3-1",
|
||||
"started_at": "2026-11-20T17:27:24.605233629Z",
|
||||
"running": true,
|
||||
"restart_count": 0,
|
||||
"memory_limit": 0
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab6-rabbitmq-1",
|
||||
"started_at": "2026-11-20T17:27:25.649083629Z",
|
||||
"running": true,
|
||||
"restart_count": 0,
|
||||
"memory_limit": 0
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab6-api-a-1",
|
||||
"started_at": "2026-11-20T17:27:47.844003625Z",
|
||||
"running": true,
|
||||
"restart_count": 0,
|
||||
"memory_limit": 268435456
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab6-api-b-1",
|
||||
"started_at": "2026-11-20T17:27:25.985424213Z",
|
||||
"running": true,
|
||||
"restart_count": 0,
|
||||
"memory_limit": 268435456
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab6-nginx-1",
|
||||
"started_at": "2026-11-20T17:27:24.766067837Z",
|
||||
"running": true,
|
||||
"restart_count": 0,
|
||||
"memory_limit": 134217728
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab6-worker-1",
|
||||
"started_at": "2026-11-20T17:27:28.139978422Z",
|
||||
"running": true,
|
||||
"restart_count": 2,
|
||||
"memory_limit": 805306368
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab6-outbox-publisher-1",
|
||||
"started_at": "2026-11-20T17:27:25.619581296Z",
|
||||
"running": true,
|
||||
"restart_count": 0,
|
||||
"memory_limit": 0
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,5 @@
|
||||
{"service": "postgres", "id": "914b5dae50c3", "instance": "914b5dae50c3", "running": true, "started_at": "2026-11-21T08:17:27.913170257Z", "health": "healthy", "image_id": "sha256:54e0dd8e8cddcdbb9156c2486eed5a43eccb7214d7c6828097d41ce049fb3984", "cpu_limit": 1.0, "memory_limit_bytes": 536870912, "published_ports": {}}
|
||||
{"service": "redis", "id": "331192624ebd", "instance": "331192624ebd", "running": true, "started_at": "2026-11-21T08:17:27.721573173Z", "health": "healthy", "image_id": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f", "cpu_limit": 0.25, "memory_limit_bytes": 134217728, "published_ports": {}}
|
||||
{"service": "api-a", "id": "e305493d2118", "instance": "e305493d2118", "running": true, "started_at": "2026-11-21T08:17:28.125710257Z", "health": "healthy", "image_id": "sha256:f1b5f50a8470841ce56c6b33e182594568c228e3c541e5b8b945f7d4eee1aa76", "cpu_limit": 0.5, "memory_limit_bytes": 268435456, "published_ports": {}}
|
||||
{"service": "api-b", "id": "e46ce208e44b", "instance": "e46ce208e44b", "running": true, "started_at": "2026-11-21T08:17:50.183420711Z", "health": "healthy", "image_id": "sha256:f1b5f50a8470841ce56c6b33e182594568c228e3c541e5b8b945f7d4eee1aa76", "cpu_limit": 0.5, "memory_limit_bytes": 268435456, "published_ports": {}}
|
||||
{"service": "nginx", "id": "7c8111b7fbdb", "instance": "7c8111b7fbdb", "running": true, "started_at": "2026-11-21T08:17:27.962736673Z", "health": "healthy", "image_id": "sha256:5b4900b042ccfa8b0a73df622c3a60f2322faeb2be800cbee5aa7b44d241649e", "cpu_limit": 0.5, "memory_limit_bytes": 134217728, "published_ports": {"8080/tcp": [{"HostIp": "127.0.0.1", "HostPort": "18083"}]}}
|
||||
@@ -0,0 +1,2 @@
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"promql_panels_valid": 12,
|
||||
"tempo_search_via_grafana_proxy": true,
|
||||
"traces_found": 20
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"host_architecture": "arm64",
|
||||
"docker_version": "29.5.3",
|
||||
"docker_architecture": "aarch64",
|
||||
"docker_cpus": 10,
|
||||
"docker_memory_bytes": 8321515520,
|
||||
"compose_version": "5.1.4"
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://localhost:18083"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 130, "failed_attempts": 0, "first_recovery_seconds": 0.78}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
@@ -0,0 +1,16 @@
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi-lab6-api-a-1 mtusi-lab6-api:local "python -m messenger" api-a 7 minutes ago Up About a minute (healthy) 8080/tcp
|
||||
mtusi-lab6-api-b-1 mtusi-lab6-api:local "python -m messenger" api-b 7 minutes ago Up About a minute (healthy) 8080/tcp
|
||||
mtusi-lab6-attachment-cleaner-1 mtusi-lab6-api:local "python -m messenger…" attachment-cleaner 7 minutes ago Up 6 minutes 8080/tcp
|
||||
mtusi-lab6-grafana-1 grafana/grafana:11.6.0 "/run.sh" grafana 6 minutes ago Up 2 minutes 127.0.0.1:13000->3000/tcp
|
||||
mtusi-lab6-loki-1 grafana/loki:3.4.2 "/usr/bin/loki -conf…" loki 15 hours ago Up 2 minutes 127.0.0.1:13100->3100/tcp
|
||||
mtusi-lab6-nginx-1 nginx:1.28.2-alpine@sha256:5b4900b042ccfa8b0a73df622c3a60f2322faeb2be800cbee5aa7b44d241649e "/bin/sh -ec 'cp /et…" nginx 15 hours ago Up About a minute (healthy) 127.0.0.1:18083->8080/tcp
|
||||
mtusi-lab6-otel-collector-1 otel/opentelemetry-collector-contrib:0.123.0 "/otelcol-contrib --…" otel-collector 15 hours ago Up 2 minutes 4317-4318/tcp, 55678-55679/tcp
|
||||
mtusi-lab6-outbox-publisher-1 mtusi-lab6-api:local "python -m messenger…" outbox-publisher 7 minutes ago Up About a minute 8080/tcp
|
||||
mtusi-lab6-postgres-1 postgres:15-alpine@sha256:54e0dd8e8cddcdbb9156c2486eed5a43eccb7214d7c6828097d41ce049fb3984 "docker-entrypoint.s…" postgres 15 hours ago Up About a minute (healthy) 5432/tcp
|
||||
mtusi-lab6-prometheus-1 prom/prometheus:v3.2.1 "/bin/prometheus --c…" prometheus 15 hours ago Up 2 minutes 127.0.0.1:19090->9090/tcp
|
||||
mtusi-lab6-rabbitmq-1 rabbitmq:4.1.4-alpine "/bin/sh -ec 'export…" rabbitmq 15 hours ago Up About a minute (healthy) 4369/tcp, 5671-5672/tcp, 15691-15692/tcp, 25672/tcp
|
||||
mtusi-lab6-redis-1 redis:7-alpine@sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f "docker-entrypoint.s…" redis 15 hours ago Up About a minute (healthy) 6379/tcp
|
||||
mtusi-lab6-s3-1 mtusi-lab6-s3:2025-09-07 "/bin/sh -ec 'MINIO_…" s3 15 hours ago Up About a minute
|
||||
mtusi-lab6-tempo-1 grafana/tempo:2.7.2 "/tempo -config.file…" tempo 15 hours ago Up 2 minutes 127.0.0.1:13200->3200/tcp
|
||||
mtusi-lab6-worker-1 mtusi-lab6-api:local "python -m messenger…" worker 7 minutes ago Up About a minute 8080/tcp
|
||||
@@ -0,0 +1 @@
|
||||
PASS: HTTP histogram includes response transmission
|
||||
@@ -0,0 +1,18 @@
|
||||
python3 tests/load.py --base-url "http://localhost:18083"
|
||||
{
|
||||
"lab": 6,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 30,
|
||||
"elapsed_seconds": 30.021,
|
||||
"concurrency": 4,
|
||||
"successful_requests": 14048,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 467.941,
|
||||
"successful_latency_ms": {
|
||||
"p50": 5.119,
|
||||
"p95": 33.476,
|
||||
"p99": 81.147
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
@@ -0,0 +1,522 @@
|
||||
{
|
||||
"successful_messages": 138,
|
||||
"attachment_ready_during_outage": true,
|
||||
"collector_reported_dropped_spans": 248,
|
||||
"export_failures_before": [
|
||||
{
|
||||
"metric": {},
|
||||
"value": [
|
||||
1795248850.545,
|
||||
"0"
|
||||
]
|
||||
}
|
||||
],
|
||||
"export_failures_after": [
|
||||
{
|
||||
"metric": {},
|
||||
"value": [
|
||||
1795248892.504,
|
||||
"248"
|
||||
]
|
||||
}
|
||||
],
|
||||
"application_and_collector_stats": [
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "15.83%",
|
||||
"Container": "mtusi-lab6-api-a-1",
|
||||
"ID": "e305493d2118",
|
||||
"MemPerc": "28.91%",
|
||||
"MemUsage": "74.02MiB / 256MiB",
|
||||
"Name": "mtusi-lab6-api-a-1",
|
||||
"NetIO": "430kB / 941kB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "1.04%",
|
||||
"Container": "mtusi-lab6-api-b-1",
|
||||
"ID": "e46ce208e44b",
|
||||
"MemPerc": "28.88%",
|
||||
"MemUsage": "73.93MiB / 256MiB",
|
||||
"Name": "mtusi-lab6-api-b-1",
|
||||
"NetIO": "546kB / 1.04MB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "0.31%",
|
||||
"Container": "mtusi-lab6-worker-1",
|
||||
"ID": "23d809845172",
|
||||
"MemPerc": "8.23%",
|
||||
"MemUsage": "63.24MiB / 768MiB",
|
||||
"Name": "mtusi-lab6-worker-1",
|
||||
"NetIO": "130kB / 152kB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "1.54%",
|
||||
"Container": "mtusi-lab6-outbox-publisher-1",
|
||||
"ID": "ed59d06f4e97",
|
||||
"MemPerc": "0.42%",
|
||||
"MemUsage": "33.36MiB / 7.75GiB",
|
||||
"Name": "mtusi-lab6-outbox-publisher-1",
|
||||
"NetIO": "448kB / 794kB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "1.65%",
|
||||
"Container": "mtusi-lab6-otel-collector-1",
|
||||
"ID": "1a2ff6617b62",
|
||||
"MemPerc": "47.69%",
|
||||
"MemUsage": "91.57MiB / 192MiB",
|
||||
"Name": "mtusi-lab6-otel-collector-1",
|
||||
"NetIO": "25.1MB / 13.7MB",
|
||||
"PIDs": "15"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "14.84%",
|
||||
"Container": "mtusi-lab6-api-a-1",
|
||||
"ID": "e305493d2118",
|
||||
"MemPerc": "28.92%",
|
||||
"MemUsage": "74.03MiB / 256MiB",
|
||||
"Name": "mtusi-lab6-api-a-1",
|
||||
"NetIO": "467kB / 1.01MB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "13.70%",
|
||||
"Container": "mtusi-lab6-api-b-1",
|
||||
"ID": "e46ce208e44b",
|
||||
"MemPerc": "28.89%",
|
||||
"MemUsage": "73.96MiB / 256MiB",
|
||||
"Name": "mtusi-lab6-api-b-1",
|
||||
"NetIO": "583kB / 1.11MB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "0.10%",
|
||||
"Container": "mtusi-lab6-worker-1",
|
||||
"ID": "23d809845172",
|
||||
"MemPerc": "8.24%",
|
||||
"MemUsage": "63.25MiB / 768MiB",
|
||||
"Name": "mtusi-lab6-worker-1",
|
||||
"NetIO": "131kB / 155kB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "0.89%",
|
||||
"Container": "mtusi-lab6-outbox-publisher-1",
|
||||
"ID": "ed59d06f4e97",
|
||||
"MemPerc": "0.42%",
|
||||
"MemUsage": "33.36MiB / 7.75GiB",
|
||||
"Name": "mtusi-lab6-outbox-publisher-1",
|
||||
"NetIO": "462kB / 820kB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "0.85%",
|
||||
"Container": "mtusi-lab6-otel-collector-1",
|
||||
"ID": "1a2ff6617b62",
|
||||
"MemPerc": "47.69%",
|
||||
"MemUsage": "91.57MiB / 192MiB",
|
||||
"Name": "mtusi-lab6-otel-collector-1",
|
||||
"NetIO": "25.2MB / 13.7MB",
|
||||
"PIDs": "15"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "16.36%",
|
||||
"Container": "mtusi-lab6-api-a-1",
|
||||
"ID": "e305493d2118",
|
||||
"MemPerc": "28.95%",
|
||||
"MemUsage": "74.1MiB / 256MiB",
|
||||
"Name": "mtusi-lab6-api-a-1",
|
||||
"NetIO": "503kB / 1.09MB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "14.02%",
|
||||
"Container": "mtusi-lab6-api-b-1",
|
||||
"ID": "e46ce208e44b",
|
||||
"MemPerc": "28.89%",
|
||||
"MemUsage": "73.96MiB / 256MiB",
|
||||
"Name": "mtusi-lab6-api-b-1",
|
||||
"NetIO": "624kB / 1.2MB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "0.20%",
|
||||
"Container": "mtusi-lab6-worker-1",
|
||||
"ID": "23d809845172",
|
||||
"MemPerc": "8.24%",
|
||||
"MemUsage": "63.25MiB / 768MiB",
|
||||
"Name": "mtusi-lab6-worker-1",
|
||||
"NetIO": "131kB / 158kB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "1.25%",
|
||||
"Container": "mtusi-lab6-outbox-publisher-1",
|
||||
"ID": "ed59d06f4e97",
|
||||
"MemPerc": "0.42%",
|
||||
"MemUsage": "33.36MiB / 7.75GiB",
|
||||
"Name": "mtusi-lab6-outbox-publisher-1",
|
||||
"NetIO": "478kB / 849kB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "1.13%",
|
||||
"Container": "mtusi-lab6-otel-collector-1",
|
||||
"ID": "1a2ff6617b62",
|
||||
"MemPerc": "47.69%",
|
||||
"MemUsage": "91.57MiB / 192MiB",
|
||||
"Name": "mtusi-lab6-otel-collector-1",
|
||||
"NetIO": "25.3MB / 13.7MB",
|
||||
"PIDs": "15"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "15.94%",
|
||||
"Container": "mtusi-lab6-api-a-1",
|
||||
"ID": "e305493d2118",
|
||||
"MemPerc": "28.95%",
|
||||
"MemUsage": "74.12MiB / 256MiB",
|
||||
"Name": "mtusi-lab6-api-a-1",
|
||||
"NetIO": "540kB / 1.16MB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "14.14%",
|
||||
"Container": "mtusi-lab6-api-b-1",
|
||||
"ID": "e46ce208e44b",
|
||||
"MemPerc": "28.89%",
|
||||
"MemUsage": "73.96MiB / 256MiB",
|
||||
"Name": "mtusi-lab6-api-b-1",
|
||||
"NetIO": "663kB / 1.27MB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "0.20%",
|
||||
"Container": "mtusi-lab6-worker-1",
|
||||
"ID": "23d809845172",
|
||||
"MemPerc": "8.24%",
|
||||
"MemUsage": "63.25MiB / 768MiB",
|
||||
"Name": "mtusi-lab6-worker-1",
|
||||
"NetIO": "132kB / 164kB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "1.34%",
|
||||
"Container": "mtusi-lab6-outbox-publisher-1",
|
||||
"ID": "ed59d06f4e97",
|
||||
"MemPerc": "0.42%",
|
||||
"MemUsage": "33.35MiB / 7.75GiB",
|
||||
"Name": "mtusi-lab6-outbox-publisher-1",
|
||||
"NetIO": "496kB / 882kB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "2.08%",
|
||||
"Container": "mtusi-lab6-otel-collector-1",
|
||||
"ID": "1a2ff6617b62",
|
||||
"MemPerc": "47.69%",
|
||||
"MemUsage": "91.57MiB / 192MiB",
|
||||
"Name": "mtusi-lab6-otel-collector-1",
|
||||
"NetIO": "25.4MB / 13.8MB",
|
||||
"PIDs": "15"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "16.21%",
|
||||
"Container": "mtusi-lab6-api-a-1",
|
||||
"ID": "e305493d2118",
|
||||
"MemPerc": "29.27%",
|
||||
"MemUsage": "74.93MiB / 256MiB",
|
||||
"Name": "mtusi-lab6-api-a-1",
|
||||
"NetIO": "578kB / 1.24MB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "14.39%",
|
||||
"Container": "mtusi-lab6-api-b-1",
|
||||
"ID": "e46ce208e44b",
|
||||
"MemPerc": "28.90%",
|
||||
"MemUsage": "73.98MiB / 256MiB",
|
||||
"Name": "mtusi-lab6-api-b-1",
|
||||
"NetIO": "703kB / 1.35MB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "0.27%",
|
||||
"Container": "mtusi-lab6-worker-1",
|
||||
"ID": "23d809845172",
|
||||
"MemPerc": "8.24%",
|
||||
"MemUsage": "63.25MiB / 768MiB",
|
||||
"Name": "mtusi-lab6-worker-1",
|
||||
"NetIO": "133kB / 170kB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "2.09%",
|
||||
"Container": "mtusi-lab6-outbox-publisher-1",
|
||||
"ID": "ed59d06f4e97",
|
||||
"MemPerc": "0.42%",
|
||||
"MemUsage": "33.6MiB / 7.75GiB",
|
||||
"Name": "mtusi-lab6-outbox-publisher-1",
|
||||
"NetIO": "508kB / 905kB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "1.30%",
|
||||
"Container": "mtusi-lab6-otel-collector-1",
|
||||
"ID": "1a2ff6617b62",
|
||||
"MemPerc": "47.82%",
|
||||
"MemUsage": "91.82MiB / 192MiB",
|
||||
"Name": "mtusi-lab6-otel-collector-1",
|
||||
"NetIO": "25.5MB / 13.8MB",
|
||||
"PIDs": "15"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "1.52%",
|
||||
"Container": "mtusi-lab6-api-a-1",
|
||||
"ID": "e305493d2118",
|
||||
"MemPerc": "29.27%",
|
||||
"MemUsage": "74.93MiB / 256MiB",
|
||||
"Name": "mtusi-lab6-api-a-1",
|
||||
"NetIO": "612kB / 1.3MB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "1.44%",
|
||||
"Container": "mtusi-lab6-api-b-1",
|
||||
"ID": "e46ce208e44b",
|
||||
"MemPerc": "28.91%",
|
||||
"MemUsage": "74MiB / 256MiB",
|
||||
"Name": "mtusi-lab6-api-b-1",
|
||||
"NetIO": "740kB / 1.43MB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "0.16%",
|
||||
"Container": "mtusi-lab6-worker-1",
|
||||
"ID": "23d809845172",
|
||||
"MemPerc": "8.24%",
|
||||
"MemUsage": "63.25MiB / 768MiB",
|
||||
"Name": "mtusi-lab6-worker-1",
|
||||
"NetIO": "133kB / 172kB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "0.96%",
|
||||
"Container": "mtusi-lab6-outbox-publisher-1",
|
||||
"ID": "ed59d06f4e97",
|
||||
"MemPerc": "0.42%",
|
||||
"MemUsage": "33.36MiB / 7.75GiB",
|
||||
"Name": "mtusi-lab6-outbox-publisher-1",
|
||||
"NetIO": "530kB / 942kB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "0.63%",
|
||||
"Container": "mtusi-lab6-otel-collector-1",
|
||||
"ID": "1a2ff6617b62",
|
||||
"MemPerc": "47.82%",
|
||||
"MemUsage": "91.82MiB / 192MiB",
|
||||
"Name": "mtusi-lab6-otel-collector-1",
|
||||
"NetIO": "25.6MB / 13.8MB",
|
||||
"PIDs": "15"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "15.56%",
|
||||
"Container": "mtusi-lab6-api-a-1",
|
||||
"ID": "e305493d2118",
|
||||
"MemPerc": "29.39%",
|
||||
"MemUsage": "75.23MiB / 256MiB",
|
||||
"Name": "mtusi-lab6-api-a-1",
|
||||
"NetIO": "651kB / 1.39MB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "15.54%",
|
||||
"Container": "mtusi-lab6-api-b-1",
|
||||
"ID": "e46ce208e44b",
|
||||
"MemPerc": "28.90%",
|
||||
"MemUsage": "73.99MiB / 256MiB",
|
||||
"Name": "mtusi-lab6-api-b-1",
|
||||
"NetIO": "782kB / 1.51MB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "0.28%",
|
||||
"Container": "mtusi-lab6-worker-1",
|
||||
"ID": "23d809845172",
|
||||
"MemPerc": "8.24%",
|
||||
"MemUsage": "63.26MiB / 768MiB",
|
||||
"Name": "mtusi-lab6-worker-1",
|
||||
"NetIO": "134kB / 178kB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "0.94%",
|
||||
"Container": "mtusi-lab6-outbox-publisher-1",
|
||||
"ID": "ed59d06f4e97",
|
||||
"MemPerc": "0.43%",
|
||||
"MemUsage": "33.77MiB / 7.75GiB",
|
||||
"Name": "mtusi-lab6-outbox-publisher-1",
|
||||
"NetIO": "546kB / 971kB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "1.24%",
|
||||
"Container": "mtusi-lab6-otel-collector-1",
|
||||
"ID": "1a2ff6617b62",
|
||||
"MemPerc": "47.95%",
|
||||
"MemUsage": "92.06MiB / 192MiB",
|
||||
"Name": "mtusi-lab6-otel-collector-1",
|
||||
"NetIO": "25.7MB / 13.9MB",
|
||||
"PIDs": "15"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "0.96%",
|
||||
"Container": "mtusi-lab6-api-a-1",
|
||||
"ID": "e305493d2118",
|
||||
"MemPerc": "29.39%",
|
||||
"MemUsage": "75.24MiB / 256MiB",
|
||||
"Name": "mtusi-lab6-api-a-1",
|
||||
"NetIO": "685kB / 1.45MB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "15.35%",
|
||||
"Container": "mtusi-lab6-api-b-1",
|
||||
"ID": "e46ce208e44b",
|
||||
"MemPerc": "28.91%",
|
||||
"MemUsage": "74MiB / 256MiB",
|
||||
"Name": "mtusi-lab6-api-b-1",
|
||||
"NetIO": "822kB / 1.59MB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "0.24%",
|
||||
"Container": "mtusi-lab6-worker-1",
|
||||
"ID": "23d809845172",
|
||||
"MemPerc": "8.24%",
|
||||
"MemUsage": "63.26MiB / 768MiB",
|
||||
"Name": "mtusi-lab6-worker-1",
|
||||
"NetIO": "134kB / 181kB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "0.87%",
|
||||
"Container": "mtusi-lab6-outbox-publisher-1",
|
||||
"ID": "ed59d06f4e97",
|
||||
"MemPerc": "0.43%",
|
||||
"MemUsage": "33.77MiB / 7.75GiB",
|
||||
"Name": "mtusi-lab6-outbox-publisher-1",
|
||||
"NetIO": "561kB / 1MB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "0.58%",
|
||||
"Container": "mtusi-lab6-otel-collector-1",
|
||||
"ID": "1a2ff6617b62",
|
||||
"MemPerc": "48.85%",
|
||||
"MemUsage": "93.8MiB / 192MiB",
|
||||
"Name": "mtusi-lab6-otel-collector-1",
|
||||
"NetIO": "25.8MB / 13.9MB",
|
||||
"PIDs": "15"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "15.39%",
|
||||
"Container": "mtusi-lab6-api-a-1",
|
||||
"ID": "e305493d2118",
|
||||
"MemPerc": "29.44%",
|
||||
"MemUsage": "75.37MiB / 256MiB",
|
||||
"Name": "mtusi-lab6-api-a-1",
|
||||
"NetIO": "726kB / 1.53MB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "13.65%",
|
||||
"Container": "mtusi-lab6-api-b-1",
|
||||
"ID": "e46ce208e44b",
|
||||
"MemPerc": "28.92%",
|
||||
"MemUsage": "74.03MiB / 256MiB",
|
||||
"Name": "mtusi-lab6-api-b-1",
|
||||
"NetIO": "857kB / 1.66MB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "0.20%",
|
||||
"Container": "mtusi-lab6-worker-1",
|
||||
"ID": "23d809845172",
|
||||
"MemPerc": "8.24%",
|
||||
"MemUsage": "63.26MiB / 768MiB",
|
||||
"Name": "mtusi-lab6-worker-1",
|
||||
"NetIO": "135kB / 187kB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "0.49%",
|
||||
"Container": "mtusi-lab6-outbox-publisher-1",
|
||||
"ID": "ed59d06f4e97",
|
||||
"MemPerc": "0.43%",
|
||||
"MemUsage": "33.77MiB / 7.75GiB",
|
||||
"Name": "mtusi-lab6-outbox-publisher-1",
|
||||
"NetIO": "576kB / 1.03MB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "0.73%",
|
||||
"Container": "mtusi-lab6-otel-collector-1",
|
||||
"ID": "1a2ff6617b62",
|
||||
"MemPerc": "50.17%",
|
||||
"MemUsage": "96.33MiB / 192MiB",
|
||||
"Name": "mtusi-lab6-otel-collector-1",
|
||||
"NetIO": "25.9MB / 13.9MB",
|
||||
"PIDs": "15"
|
||||
}
|
||||
],
|
||||
"no_oom_or_restarts": true,
|
||||
"telemetry_restored_trace": "c485b3e4b21d427a94f1cd345789c843"
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
{
|
||||
"firing": true,
|
||||
"failed_requests": 8,
|
||||
"trace_id": "9a03429d57e1b78a8363efb6292dfd5b",
|
||||
"db_error_spans": 1,
|
||||
"alerts_firing": [
|
||||
{
|
||||
"labels": {
|
||||
"alertname": "HighApiErrorRate",
|
||||
"severity": "warning"
|
||||
},
|
||||
"annotations": {
|
||||
"description": "SLO is 99% non-5xx business requests over 5 minutes. Inspect PostgreSQL client spans and pool metrics.",
|
||||
"runbook_url": "http://localhost:13000/d/messenger/messenger?viewPanel=5",
|
||||
"summary": "API 5xx exceeds 1% over 1 minute"
|
||||
},
|
||||
"state": "firing",
|
||||
"activeAt": "2026-11-20T17:41:07.478517494Z",
|
||||
"value": "3.6363636363636365e-01"
|
||||
},
|
||||
{
|
||||
"labels": {
|
||||
"alertname": "QueueObservationStale",
|
||||
"deployment_environment_name": "lab",
|
||||
"exported_instance": "459bbaf48a82",
|
||||
"exported_job": "messenger-publisher",
|
||||
"instance": "otel-collector:8889",
|
||||
"job": "application",
|
||||
"queue": "attachment.process.v1",
|
||||
"service_instance_id": "459bbaf48a82",
|
||||
"service_name": "messenger-publisher",
|
||||
"service_version": "local",
|
||||
"severity": "warning",
|
||||
"telemetry_sdk_language": "python",
|
||||
"telemetry_sdk_name": "opentelemetry",
|
||||
"telemetry_sdk_version": "1.38.0"
|
||||
},
|
||||
"annotations": {
|
||||
"description": "Check publisher and PostgreSQL availability before trusting queue gauges.",
|
||||
"summary": "Publisher backlog observations are stale"
|
||||
},
|
||||
"state": "firing",
|
||||
"activeAt": "2026-11-20T17:39:31.478517494Z",
|
||||
"value": "1.1822987508773804e+02"
|
||||
},
|
||||
{
|
||||
"labels": {
|
||||
"alertname": "QueueObservationStale",
|
||||
"deployment_environment_name": "lab",
|
||||
"exported_instance": "af26b1841208",
|
||||
"exported_job": "messenger-publisher",
|
||||
"instance": "otel-collector:8889",
|
||||
"job": "application",
|
||||
"queue": "attachment.process.v1",
|
||||
"service_instance_id": "af26b1841208",
|
||||
"service_name": "messenger-publisher",
|
||||
"service_version": "local",
|
||||
"severity": "warning",
|
||||
"telemetry_sdk_language": "python",
|
||||
"telemetry_sdk_name": "opentelemetry",
|
||||
"telemetry_sdk_version": "1.38.0"
|
||||
},
|
||||
"annotations": {
|
||||
"description": "Check publisher and PostgreSQL availability before trusting queue gauges.",
|
||||
"summary": "Publisher backlog observations are stale"
|
||||
},
|
||||
"state": "firing",
|
||||
"activeAt": "2026-11-20T17:38:01.478517494Z",
|
||||
"value": "2.077088599205017e+02"
|
||||
}
|
||||
],
|
||||
"error_ratio": [
|
||||
{
|
||||
"metric": {},
|
||||
"value": [
|
||||
1795196476.495,
|
||||
"0.4615384615384615"
|
||||
]
|
||||
}
|
||||
],
|
||||
"resolved": true
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"trace_id": "8e9d1c9daddb49778c887f0cc63f470a",
|
||||
"consumer_attempts": 2,
|
||||
"span_names": [
|
||||
"POST /api/v1/chats/{chat_id}/attachments",
|
||||
"postgresql.transaction",
|
||||
"postgresql.transaction",
|
||||
"postgresql.transaction",
|
||||
"postgresql.transaction",
|
||||
"postgresql.transaction",
|
||||
"s3.put",
|
||||
"attachment.publish",
|
||||
"attachment.consume",
|
||||
"postgresql.transaction",
|
||||
"s3.download",
|
||||
"postgresql.transaction",
|
||||
"attachment.publish",
|
||||
"attachment.consume",
|
||||
"postgresql.transaction",
|
||||
"s3.download",
|
||||
"s3.put",
|
||||
"s3.put",
|
||||
"s3.put",
|
||||
"s3.put",
|
||||
"postgresql.transaction"
|
||||
],
|
||||
"ready_after_retry": true
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"trace_id": "f1aa109fe9fd47f284eaafd2c34a8d96",
|
||||
"span_names": [
|
||||
"postgresql.transaction",
|
||||
"postgresql.transaction",
|
||||
"postgresql.transaction",
|
||||
"postgresql.transaction",
|
||||
"s3.put",
|
||||
"postgresql.transaction",
|
||||
"POST /api/v1/chats/{chat_id}/attachments",
|
||||
"postgresql.transaction",
|
||||
"s3.download",
|
||||
"s3.put",
|
||||
"s3.put",
|
||||
"s3.put",
|
||||
"s3.put",
|
||||
"postgresql.transaction",
|
||||
"attachment.consume",
|
||||
"attachment.publish"
|
||||
],
|
||||
"log_services": [
|
||||
"messenger-api",
|
||||
"messenger-publisher",
|
||||
"messenger-worker"
|
||||
],
|
||||
"metric_names_checked": [
|
||||
"messenger_http_requests_total",
|
||||
"messenger_http_duration_seconds_bucket",
|
||||
"messenger_queue_depth",
|
||||
"messenger_queue_oldest_age_seconds",
|
||||
"messenger_db_pool_used",
|
||||
"messenger_worker_busy",
|
||||
"messenger_job_duration_seconds_bucket",
|
||||
"messenger_attachment_time_to_ready_seconds_bucket",
|
||||
"messenger_process_memory_bytes",
|
||||
"messenger_process_cpu_seconds_total"
|
||||
],
|
||||
"dashboard_panels": 14,
|
||||
"dashboard_queries_valid": true,
|
||||
"incoming_w3c_context": true,
|
||||
"body_and_token_absent_from_logs": true
|
||||
}
|
||||
@@ -0,0 +1,173 @@
|
||||
{
|
||||
"seconds_to_firing": 30.1,
|
||||
"oldest_job_age": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "messenger_queue_oldest_age_seconds",
|
||||
"deployment_environment_name": "lab",
|
||||
"exported_instance": "af26b1841208",
|
||||
"exported_job": "messenger-publisher",
|
||||
"instance": "otel-collector:8889",
|
||||
"job": "application",
|
||||
"queue": "attachment.process.v1",
|
||||
"service_instance_id": "af26b1841208",
|
||||
"service_name": "messenger-publisher",
|
||||
"service_version": "local",
|
||||
"telemetry_sdk_language": "python",
|
||||
"telemetry_sdk_name": "opentelemetry",
|
||||
"telemetry_sdk_version": "1.38.0"
|
||||
},
|
||||
"value": [
|
||||
1795196321.26,
|
||||
"0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "messenger_queue_oldest_age_seconds",
|
||||
"deployment_environment_name": "lab",
|
||||
"exported_instance": "459bbaf48a82",
|
||||
"exported_job": "messenger-publisher",
|
||||
"instance": "otel-collector:8889",
|
||||
"job": "application",
|
||||
"queue": "attachment.process.v1",
|
||||
"service_instance_id": "459bbaf48a82",
|
||||
"service_name": "messenger-publisher",
|
||||
"service_version": "local",
|
||||
"telemetry_sdk_language": "python",
|
||||
"telemetry_sdk_name": "opentelemetry",
|
||||
"telemetry_sdk_version": "1.38.0"
|
||||
},
|
||||
"value": [
|
||||
1795196321.26,
|
||||
"25.465688"
|
||||
]
|
||||
}
|
||||
],
|
||||
"backlog": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "messenger_queue_depth",
|
||||
"deployment_environment_name": "lab",
|
||||
"exported_instance": "af26b1841208",
|
||||
"exported_job": "messenger-publisher",
|
||||
"instance": "otel-collector:8889",
|
||||
"job": "application",
|
||||
"queue": "attachment.process.v1",
|
||||
"service_instance_id": "af26b1841208",
|
||||
"service_name": "messenger-publisher",
|
||||
"service_version": "local",
|
||||
"telemetry_sdk_language": "python",
|
||||
"telemetry_sdk_name": "opentelemetry",
|
||||
"telemetry_sdk_version": "1.38.0"
|
||||
},
|
||||
"value": [
|
||||
1795196321.262,
|
||||
"0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "messenger_queue_depth",
|
||||
"deployment_environment_name": "lab",
|
||||
"exported_instance": "459bbaf48a82",
|
||||
"exported_job": "messenger-publisher",
|
||||
"instance": "otel-collector:8889",
|
||||
"job": "application",
|
||||
"queue": "attachment.process.v1",
|
||||
"service_instance_id": "459bbaf48a82",
|
||||
"service_name": "messenger-publisher",
|
||||
"service_version": "local",
|
||||
"telemetry_sdk_language": "python",
|
||||
"telemetry_sdk_name": "opentelemetry",
|
||||
"telemetry_sdk_version": "1.38.0"
|
||||
},
|
||||
"value": [
|
||||
1795196321.262,
|
||||
"1"
|
||||
]
|
||||
}
|
||||
],
|
||||
"alerts_firing": [
|
||||
{
|
||||
"labels": {
|
||||
"alertname": "QueueLagGrowing",
|
||||
"deployment_environment_name": "lab",
|
||||
"exported_instance": "459bbaf48a82",
|
||||
"exported_job": "messenger-publisher",
|
||||
"instance": "otel-collector:8889",
|
||||
"job": "application",
|
||||
"queue": "attachment.process.v1",
|
||||
"service_instance_id": "459bbaf48a82",
|
||||
"service_name": "messenger-publisher",
|
||||
"service_version": "local",
|
||||
"severity": "warning",
|
||||
"telemetry_sdk_language": "python",
|
||||
"telemetry_sdk_name": "opentelemetry",
|
||||
"telemetry_sdk_version": "1.38.0"
|
||||
},
|
||||
"annotations": {
|
||||
"description": "Inspect worker capacity, busy gauge and consumer traces. Restore worker and verify backlog drains. See infra/runbook.md.",
|
||||
"summary": "Oldest unfinished job exceeds 15 seconds"
|
||||
},
|
||||
"state": "firing",
|
||||
"activeAt": "2026-11-20T17:38:31.478517494Z",
|
||||
"value": "2.2414185e+01"
|
||||
},
|
||||
{
|
||||
"labels": {
|
||||
"alertname": "QueueObservationStale",
|
||||
"deployment_environment_name": "lab",
|
||||
"exported_instance": "af26b1841208",
|
||||
"exported_job": "messenger-publisher",
|
||||
"instance": "otel-collector:8889",
|
||||
"job": "application",
|
||||
"queue": "attachment.process.v1",
|
||||
"service_instance_id": "af26b1841208",
|
||||
"service_name": "messenger-publisher",
|
||||
"service_version": "local",
|
||||
"severity": "warning",
|
||||
"telemetry_sdk_language": "python",
|
||||
"telemetry_sdk_name": "opentelemetry",
|
||||
"telemetry_sdk_version": "1.38.0"
|
||||
},
|
||||
"annotations": {
|
||||
"description": "Check publisher and PostgreSQL availability before trusting queue gauges.",
|
||||
"summary": "Publisher backlog observations are stale"
|
||||
},
|
||||
"state": "firing",
|
||||
"activeAt": "2026-11-20T17:38:01.478517494Z",
|
||||
"value": "5.170885992050171e+01"
|
||||
}
|
||||
],
|
||||
"resolved": true,
|
||||
"trace_id": "a0d4df4afbe44a30999830b9d563817c",
|
||||
"span_count": 16,
|
||||
"alerts_after": [
|
||||
{
|
||||
"labels": {
|
||||
"alertname": "QueueObservationStale",
|
||||
"deployment_environment_name": "lab",
|
||||
"exported_instance": "af26b1841208",
|
||||
"exported_job": "messenger-publisher",
|
||||
"instance": "otel-collector:8889",
|
||||
"job": "application",
|
||||
"queue": "attachment.process.v1",
|
||||
"service_instance_id": "af26b1841208",
|
||||
"service_name": "messenger-publisher",
|
||||
"service_version": "local",
|
||||
"severity": "warning",
|
||||
"telemetry_sdk_language": "python",
|
||||
"telemetry_sdk_name": "opentelemetry",
|
||||
"telemetry_sdk_version": "1.38.0"
|
||||
},
|
||||
"annotations": {
|
||||
"description": "Check publisher and PostgreSQL availability before trusting queue gauges.",
|
||||
"summary": "Publisher backlog observations are stale"
|
||||
},
|
||||
"state": "firing",
|
||||
"activeAt": "2026-11-20T17:38:01.478517494Z",
|
||||
"value": "6.370885992050171e+01"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost:18083"
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
@@ -0,0 +1,2 @@
|
||||
e305493d2118fcf5b65beba48547258a269d2d353cf2a20fc9b841af2ab5f153
|
||||
e46ce208e44b8b48f2f15dedca018e0c4d780d1e96a88858fdcd9d0eb4da139d
|
||||
@@ -0,0 +1 @@
|
||||
PASS: generated private credentials absent from application, configs and evidence. Redis URL without credentials is public configuration.
|
||||
@@ -0,0 +1,2 @@
|
||||
python3 tests/smoke.py --base-url "http://localhost:18083"
|
||||
PASS: lab6 public API scenario; infrastructure and grading evidence remain separate.
|
||||
@@ -0,0 +1,2 @@
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
@@ -0,0 +1,2 @@
|
||||
PASS: HTTP 202 queued -> RabbitMQ/worker -> ready
|
||||
PASS: original unchanged; thumbnail, crop, optimized downloaded with matching size/SHA-256
|
||||
@@ -0,0 +1,11 @@
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi-lab6-api-a-1 mtusi-lab6-api:local "python -m messenger" api-a 27 seconds ago Up 23 seconds (healthy) 8080/tcp
|
||||
mtusi-lab6-api-b-1 mtusi-lab6-api:local "python -m messenger" api-b 27 seconds ago Up 23 seconds (healthy) 8080/tcp
|
||||
mtusi-lab6-attachment-cleaner-1 mtusi-lab6-api:local "python -m messenger…" attachment-cleaner 27 seconds ago Up 23 seconds 8080/tcp
|
||||
mtusi-lab6-nginx-1 nginx:1.28.2-alpine@sha256:5b4900b042ccfa8b0a73df622c3a60f2322faeb2be800cbee5aa7b44d241649e "/bin/sh -ec 'cp /et…" nginx 26 seconds ago Up 17 seconds (healthy) 127.0.0.1:18083->8080/tcp
|
||||
mtusi-lab6-outbox-publisher-1 mtusi-lab6-api:local "python -m messenger…" outbox-publisher 27 seconds ago Up 21 seconds 8080/tcp
|
||||
mtusi-lab6-postgres-1 postgres:15-alpine@sha256:54e0dd8e8cddcdbb9156c2486eed5a43eccb7214d7c6828097d41ce049fb3984 "docker-entrypoint.s…" postgres 27 seconds ago Up 26 seconds (healthy) 5432/tcp
|
||||
mtusi-lab6-rabbitmq-1 rabbitmq:4.1.4-alpine "/bin/sh -ec 'export…" rabbitmq 27 seconds ago Up 26 seconds (healthy) 4369/tcp, 5671-5672/tcp, 15691-15692/tcp, 25672/tcp
|
||||
mtusi-lab6-redis-1 redis:7-alpine@sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f "docker-entrypoint.s…" redis 27 seconds ago Up 26 seconds (healthy) 6379/tcp
|
||||
mtusi-lab6-s3-1 mtusi-lab6-s3:2025-09-07 "/bin/sh -ec 'MINIO_…" s3 27 seconds ago Up 26 seconds
|
||||
mtusi-lab6-worker-1 mtusi-lab6-api:local "python -m messenger…" worker 26 seconds ago Up 20 seconds 8080/tcp
|
||||
@@ -0,0 +1,2 @@
|
||||
python3 tests/smoke.py --base-url "http://localhost:18083"
|
||||
PASS: lab6 public API scenario; infrastructure and grading evidence remain separate.
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"trace_id": "9efec3dd76d0440a902d19838f8e4c5b",
|
||||
"trace_spans_preserved": 16,
|
||||
"api_worker_publisher_logs_preserved": true,
|
||||
"historical_metric_preserved": true,
|
||||
"restarted": [
|
||||
"otel-collector",
|
||||
"prometheus",
|
||||
"loki",
|
||||
"tempo",
|
||||
"grafana"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
.venv/bin/python scripts/validate_openapi.py
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
Reference in New Issue
Block a user