lab7: безопасность, mTLS, OpenBao и PKI lifecycle
Application / Go invariants and static checks (pull_request) Canceled after 0s
Application / Lab7 verified TLS and retained features (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
Vladislav Kunetskiy
2026-11-10 14:39:57 +03:00
parent 20afc2c790
commit 1b6e96ccc0
570 changed files with 298308 additions and 137 deletions
+30
View File
@@ -0,0 +1,30 @@
# Lab6 evidence
- `smoke.txt` — `make test` with the telemetry profile running.
- `telemetry.txt` — `make test-observability`: Prometheus/Loki/Tempo/Grafana
queries, route-label validation, forbidden-sentinel search.
- `unit-test.txt` — `make unit-test` (`go test -race -shuffle=on`).
- `stand.txt` — `docker compose --profile telemetry ps`.
- `metrics.txt` — actual sample counts from Prometheus for the required signal set.
- `queries/promql.txt` — PromQL used by dashboards and alerts.
- `tempo-search.json`, `trace-pipeline.json` — raw Tempo responses for an
upload trace; `trace-retry.txt` — attempt=2 trace after a transient fault;
traces include API, relay `job.publish`, worker `job.process`, S3 and DB
child spans.
- Track 2 evidence is generated by `scripts/lab6_track2_full.py`; raw CSV/JSON
belong in `track2/`. `/health/*` is routed to a separate HAProxy backend and
is excluded from `api_backend` SLI. TTR SLI uses two sources: good events
from the time-to-ready histogram bucket `le="30.0"` and bad events from the
separate `messenger_jobs_ttr_missed_total` counter.
- Полный live-прогон Track 2 выполнен 2026-11-06; результаты — в
`track2/full/` и `track2/ttd-ttr.md`. Старые короткие прогоны не
используются как доказательства текущего результата.
- `storage-down.txt` / `storage-down-series.json` — telemetry-storage outage
observations over time (API continues; bounded Collector queues).
- `db-down.txt` — PostgreSQL outage: API/LB responds 5xx, never 401.
- `regression/` is for the lab5 regression commands (`test-queue`,
`test-faults`, `test-attachments`, `test-presign`, `test-idempotency`,
`test-lb-readiness`, persistence/failover).
No tokens, signed URLs, message bodies or images are stored here. The
`scripts/check_evidence.py` scanner is part of `make test-observability`.
+77
View File
@@ -0,0 +1,77 @@
[
{
"phase": "warmup",
"started_utc": "2026-11-06T08:37:06Z",
"finished_utc": "2026-11-06T09:42:56Z",
"firing": {},
"pending_not_fired": {
"APISLIMissing": 1
},
"page": 0,
"ticket": 0
},
{
"phase": "baseline",
"started_utc": "2026-11-06T09:42:56Z",
"finished_utc": "2026-11-06T10:02:51Z",
"firing": {},
"pending_not_fired": {},
"page": 0,
"ticket": 0
},
{
"phase": "burst",
"started_utc": "2026-11-06T10:02:51Z",
"finished_utc": "2026-11-06T11:29:41Z",
"firing": {},
"pending_not_fired": {
"APISLIMissing": 2
},
"page": 0,
"ticket": 0
},
{
"phase": "sustained",
"started_utc": "2026-11-06T11:29:41Z",
"finished_utc": "2026-11-06T11:49:53Z",
"firing": {
"APIErrorBudgetFastBurn": 1,
"APIErrorBudgetSlowBurn": 1,
"QueueMetricsStale": 1
},
"pending_not_fired": {},
"page": 1,
"ticket": 1
},
{
"phase": "resolution_wait",
"started_utc": "2026-11-06T11:49:53Z",
"finished_utc": "2026-11-06T12:52:06Z",
"firing": {},
"pending_not_fired": {},
"page": 0,
"ticket": 0
},
{
"phase": "ttr",
"started_utc": "2026-11-06T12:52:06Z",
"finished_utc": "2026-11-06T13:07:47Z",
"firing": {
"JobsOverdue": 1,
"QueueOldestJobAgeCritical": 1,
"QueueOldestJobAgeHigh": 1
},
"pending_not_fired": {},
"page": 1,
"ticket": 0
},
{
"phase": "false-positive",
"started_utc": "2026-11-06T13:07:47Z",
"finished_utc": "2026-11-06T13:30:24Z",
"firing": {},
"pending_not_fired": {},
"page": 0,
"ticket": 0
}
]
+11
View File
@@ -0,0 +1,11 @@
# Alert episodes by phase
| phase | page | ticket | firing | pending-not-fired |
|---|---:|---:|---|---|
| warmup | 0 | 0 | {} | {'APISLIMissing': 1} |
| baseline | 0 | 0 | {} | {} |
| burst | 0 | 0 | {} | {'APISLIMissing': 2} |
| sustained | 1 | 1 | {'APIErrorBudgetFastBurn': 1, 'APIErrorBudgetSlowBurn': 1, 'QueueMetricsStale': 1} | {} |
| resolution_wait | 0 | 0 | {} | {} |
| ttr | 1 | 0 | {'JobsOverdue': 1, 'QueueOldestJobAgeCritical': 1, 'QueueOldestJobAgeHigh': 1} | {} |
| false-positive | 0 | 0 | {} | {} |
+12
View File
@@ -0,0 +1,12 @@
# Alert episodes by phase
| phase | page | ticket | firing | pending-not-fired |
|---|---:|---:|---|---|
| warmup | 0 | 0 | {} | {'APISLIMissing': 1} |
| baseline | 0 | 0 | {} | {} |
| burst | 0 | 0 | {} | {'APISLIMissing': 2} |
| sustained | 1 | 1 | {'APIErrorBudgetFastBurn': 1, 'APIErrorBudgetSlowBurn': 1, 'QueueMetricsStale': 1} | {} |
| resolution_wait | 0 | 0 | {} | {} |
| ttr | 1 | 0 | {'JobsOverdue': 1, 'QueueOldestJobAgeCritical': 1, 'QueueOldestJobAgeHigh': 1} | {} |
| false-positive | 0 | 0 | {} | {} |
+57
View File
@@ -0,0 +1,57 @@
UTC 2026-11-06T13:34:14Z
HEAD 77fe98d775fdc07d5f9bfe04f7b4133c96c0849c
$ make test
env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 tests/smoke.py --base-url "http://localhost:8080"
PASS: lab6 public API scenario; infrastructure and grading evidence remain separate.
$ make test-observability
env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 scripts/check_evidence.py
PASS: evidence has no obvious secrets, signed URLs or bearer tokens
env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 scripts/lab6_verify.py --base-url "http://localhost:8080"
NOTE: created request_id=lab6-verify-015163e6e039495c91258218e57f1a94
PASS: lab6 strict telemetry gate (signals, trace/log correlation, labels, Grafana, rules, privacy sentinels)
$ make test-slo
env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 scripts/lab6_track2.py --base-url "http://localhost:8080"
Container mtusi-messenger-lab6-postgres-1 Paused
Container mtusi-messenger-lab6-postgres-1 Unpaused
{
"base_url": "http://localhost:8080",
"rate": 0.5,
"duration_s": 138.01,
"scheduled": 70,
"counters": {
"accepted": 3,
"ready": 3,
"failed": 61,
"messages": 56,
"uploads": 3,
"dropped": 0
},
"failures": 61,
"failures_by_reason": {
"http_503": 61
},
"failure_samples": [
"Failure: POST /api/v1/chats/01a1b111-5050-7eb1-b4d5-4a156e2010f4/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b111-5050-7eb1-b4d5-4a156e2010f4/attachments: expected [202], received 503",
"Failure: POST /api/v1/chats/01a1b111-5050-7eb1-b4d5-4a156e2010f4/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b111-5050-7eb1-b4d5-4a156e2010f4/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b111-5050-7eb1-b4d5-4a156e2010f4/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b111-5050-7eb1-b4d5-4a156e2010f4/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b111-5050-7eb1-b4d5-4a156e2010f4/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b111-5050-7eb1-b4d5-4a156e2010f4/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b111-5050-7eb1-b4d5-4a156e2010f4/attachments: expected [202], received 503",
"Failure: POST /api/v1/chats/01a1b111-5050-7eb1-b4d5-4a156e2010f4/messages: expected [201], received 503"
],
"latency_ms": {
"p50": 6.7,
"p95": 10.8,
"p99": 10.8
},
"ttr_ms": {
"p50": 633.4,
"p95": 635.1,
"p99": 635.1
}
}
alert timeline: /Users/vladislav/Projects/mtusi2026lab6/evidence/lab6/track2/burst-alerts.csv
track2 evidence: /Users/vladislav/Projects/mtusi2026lab6/evidence/lab6/track2 load_rc= 1 alerts_rc= 0
@@ -0,0 +1,27 @@
{
"base_url": "http://localhost:8080",
"rate": 0.2,
"duration_s": 655.01,
"scheduled": 132,
"counters": {
"accepted": 27,
"ready": 27,
"failed": 0,
"messages": 105,
"uploads": 27,
"dropped": 0
},
"failures": 0,
"failures_by_reason": {},
"failure_samples": [],
"latency_ms": {
"p50": 6.2,
"p95": 9.2,
"p99": 11.9
},
"ttr_ms": {
"p50": 646.2,
"p95": 1265.8,
"p99": 1268.0
}
}
@@ -0,0 +1,29 @@
UTC 2026-11-05T22:39:30Z
HEAD 639582280f0cc2236dee3140207168df23cc8bf1
$ docker compose exec prometheus wget -qO- http://otel-collector:8888/metrics
# HELP otelcol_exporter_queue_capacity Fixed capacity of the retry queue (in batches). [Alpha]
# TYPE otelcol_exporter_queue_capacity gauge
otelcol_exporter_queue_capacity{data_type="logs",exporter="otlp_http/loki"} 1.048576e+07
otelcol_exporter_queue_capacity{data_type="traces",exporter="otlp_grpc/tempo"} 1.048576e+07
# HELP otelcol_exporter_queue_size Current size of the retry queue (in batches). [Alpha]
# TYPE otelcol_exporter_queue_size gauge
otelcol_exporter_queue_size{data_type="logs",exporter="otlp_http/loki"} 0
otelcol_exporter_queue_size{data_type="traces",exporter="otlp_grpc/tempo"} 0
# HELP otelcol_receiver_failed_log_records The number of log records that failed to be processed by the receiver due to internal errors. [Alpha]
# TYPE otelcol_receiver_failed_log_records counter
otelcol_receiver_failed_log_records{receiver="otlp",transport="http"} 0
# HELP otelcol_receiver_failed_metric_points The number of metric points that failed to be processed by the receiver due to internal errors. [Alpha]
# TYPE otelcol_receiver_failed_metric_points counter
otelcol_receiver_failed_metric_points{receiver="otlp",transport="http"} 0
# HELP otelcol_receiver_failed_spans The number of spans that failed to be processed by the receiver due to internal errors. [Alpha]
# TYPE otelcol_receiver_failed_spans counter
otelcol_receiver_failed_spans{receiver="otlp",transport="http"} 0
# HELP otelcol_receiver_refused_log_records Number of log records that could not be pushed into the pipeline. [Alpha]
# TYPE otelcol_receiver_refused_log_records counter
otelcol_receiver_refused_log_records{receiver="otlp",transport="http"} 0
# HELP otelcol_receiver_refused_metric_points Number of metric points that could not be pushed into the pipeline. [Alpha]
# TYPE otelcol_receiver_refused_metric_points counter
otelcol_receiver_refused_metric_points{receiver="otlp",transport="http"} 0
# HELP otelcol_receiver_refused_spans Number of spans that could not be pushed into the pipeline. [Alpha]
# TYPE otelcol_receiver_refused_spans counter
otelcol_receiver_refused_spans{receiver="otlp",transport="http"} 0
+6
View File
@@ -0,0 +1,6 @@
UTC 2026-11-06T13:33:57Z
HEAD 77fe98d775fdc07d5f9bfe04f7b4133c96c0849c
$ make integration-test
go test -tags=integration -p 1 -count=1 -timeout=15m ./internal/storage/postgres ./internal/storage/redis
ok mtusi-messenger/internal/storage/postgres 8.234s
ok mtusi-messenger/internal/storage/redis 1.292s
+84
View File
@@ -0,0 +1,84 @@
UTC 2026-11-06T13:33:34Z
HEAD 77fe98d775fdc07d5f9bfe04f7b4133c96c0849c
$ make check
python3 scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
python3 scripts/check_s3_creds.py
PASS: S3 app identity matches .env; admin stays in s3.json/s3-init
$ make unit-test
env -u APP_ENV -u SERVER_HOST -u SERVER_PORT -u SERVER_READ_HEADER_TIMEOUT -u SERVER_READ_TIMEOUT -u SERVER_SHUTDOWN_TIMEOUT -u SERVER_MAX_BODY_BYTES -u LOG_LEVEL -u LOG_FORMAT -u POSTGRES_HOST -u POSTGRES_PORT -u POSTGRES_DATABASE -u POSTGRES_USER -u POSTGRES_PASSWORD -u POSTGRES_SSL_MODE -u POSTGRES_MAX_CONNS -u POSTGRES_MIN_CONNS -u POSTGRES_MAX_CONN_LIFETIME -u POSTGRES_MAX_CONN_IDLE_TIME -u POSTGRES_CONNECT_TIMEOUT -u POSTGRES_QUERY_TIMEOUT -u REDIS_ENABLED -u REDIS_HOST -u REDIS_PORT -u REDIS_PASSWORD -u REDIS_DB -u REDIS_MAX_RETRIES -u REDIS_DIAL_TIMEOUT -u REDIS_READ_TIMEOUT -u REDIS_WRITE_TIMEOUT -u REDIS_POOL_SIZE -u CACHE_ENABLED -u CACHE_CHAT_LIST_TTL -u CACHE_LOCK_TTL -u CACHE_LOCK_WAIT_TIMEOUT -u SESSION_TTL_SECONDS -u IDEMPOTENCY_TTL_SECONDS -u API_REPLICAS -u API_CPU_LIMIT -u API_MEM_LIMIT -u POSTGRES_MAX_CONNS -u POSTGRES_CPU_LIMIT -u POSTGRES_MEM_LIMIT -u LB_STATS_PORT -u S3_ENDPOINT -u S3_PUBLIC_ENDPOINT -u S3_PORT -u S3_REGION -u S3_BUCKET -u S3_ACCESS_KEY_ID -u S3_SECRET_ACCESS_KEY -u MAX_UPLOAD_BYTES -u MAX_IMAGE_PIXELS -u S3_PRESIGN_TTL -u S3_SWEEP_INTERVAL -u S3_SWEEP_GRACE -u BROKER_USER -u BROKER_PASSWORD -u BROKER_VHOST -u BROKER_URL -u BROKER_EXCHANGE -u BROKER_QUEUE -u BROKER_DLX -u BROKER_DLQ -u BROKER_MANAGEMENT_PORT -u BROKER_CPU_LIMIT -u BROKER_MEM_LIMIT -u WORKER_CONCURRENCY -u WORKER_PREFETCH -u WORKER_CPU_LIMIT -u WORKER_MEM_LIMIT -u WORKER_SHUTDOWN_TIMEOUT -u WORKER_HEALTH_PORT -u PROCESSING_PIPELINE_VERSION -u PROCESSING_MAX_ATTEMPTS -u PROCESSING_JOB_TIMEOUT -u PROCESSING_LEASE_TTL -u PROCESSING_HEARTBEAT -u PROCESSING_RETRY_BASE -u PROCESSING_RETRY_CAP -u OUTBOX_POLL_INTERVAL -u OUTBOX_CLAIM_TTL -u OUTBOX_BATCH -u OUTBOX_REAPER_INTERVAL -u OUTBOX_RECONCILE_AFTER -u OUTBOX_RETENTION -u RELAY_CPU_LIMIT -u RELAY_MEM_LIMIT -u RELAY_HEALTH_PORT -u STAGING_ORPHAN_GRACE -u STAGING_FAILED_RETENTION -u ADMISSION_MAX_PENDING_PER_USER -u ADMISSION_MAX_PENDING -u ADMISSION_MAX_STAGED_BYTES -u ADMISSION_MAX_CONCURRENT_UPLOADS -u OTEL_EXPORTER_OTLP_ENDPOINT -u OTEL_EXPORTER_OTLP_PROTOCOL -u OTEL_RESOURCE_ATTRIBUTES -u OTEL_METRIC_EXPORT_INTERVAL -u TELEMETRY_ENABLED -u PROMETHEUS_PORT -u LOKI_PORT -u TEMPO_PORT -u GRAFANA_PORT -u OTEL_COLLECTOR_CPU_LIMIT -u OTEL_COLLECTOR_MEM_LIMIT -u PROMETHEUS_CPU_LIMIT -u PROMETHEUS_MEM_LIMIT -u LOKI_CPU_LIMIT -u LOKI_MEM_LIMIT -u TEMPO_CPU_LIMIT -u TEMPO_MEM_LIMIT -u GRAFANA_CPU_LIMIT -u GRAFANA_MEM_LIMIT go test -race -shuffle=on -count=1 -timeout=5m ./...
? mtusi-messenger/cmd/jobctl [no test files]
? mtusi-messenger/cmd/messenger [no test files]
? mtusi-messenger/cmd/migrate [no test files]
? mtusi-messenger/cmd/relay [no test files]
? mtusi-messenger/cmd/s3init [no test files]
? mtusi-messenger/cmd/worker [no test files]
? mtusi-messenger/internal/broker [no test files]
ok mtusi-messenger/internal/config 1.747s
ok mtusi-messenger/internal/domain 2.759s
? mtusi-messenger/internal/failpoint [no test files]
ok mtusi-messenger/internal/health 2.400s
ok mtusi-messenger/internal/imagecheck 2.085s
ok mtusi-messenger/internal/imageproc 3.626s
ok mtusi-messenger/internal/logger 3.554s
? mtusi-messenger/internal/outbox [no test files]
ok mtusi-messenger/internal/platform/cache 4.833s
? mtusi-messenger/internal/platform/cache/mocks [no test files]
? mtusi-messenger/internal/platform/instanceid [no test files]
ok mtusi-messenger/internal/platform/objectstore 3.918s
ok mtusi-messenger/internal/platform/password 5.632s
ok mtusi-messenger/internal/platform/token 4.941s
ok mtusi-messenger/internal/service/attachment 5.544s
? mtusi-messenger/internal/service/attachment/mocks [no test files]
ok mtusi-messenger/internal/service/chat 5.919s
? mtusi-messenger/internal/service/chat/mocks [no test files]
ok mtusi-messenger/internal/service/message 6.281s
? mtusi-messenger/internal/service/message/mocks [no test files]
ok mtusi-messenger/internal/service/session 6.928s
? mtusi-messenger/internal/service/session/mocks [no test files]
ok mtusi-messenger/internal/service/user 7.266s
? mtusi-messenger/internal/service/user/mocks [no test files]
ok mtusi-messenger/internal/storage/postgres 7.689s
? mtusi-messenger/internal/storage/postgres/internal/sqlcgen [no test files]
? mtusi-messenger/internal/storage/postgres/migrations [no test files]
? mtusi-messenger/internal/storage/redis [no test files]
? mtusi-messenger/internal/storage/redis/mocks [no test files]
ok mtusi-messenger/internal/telemetry 8.058s
ok mtusi-messenger/internal/transport/rest 8.529s
? mtusi-messenger/internal/transport/rest/internal/oas [no test files]
? mtusi-messenger/internal/transport/rest/mocks [no test files]
ok mtusi-messenger/internal/worker 7.565s
? mtusi-messenger/tools/specgen [no test files]
$ make lint
/Users/vladislav/Projects/mtusi2026lab6/bin/golangci-lint run -v
level=info msg="golangci-lint has version 2.13.2 built with go1.27.1 from (unknown, modified: ?, mod sum: \"h1:bCyq3E4vo9qwzifjpzJqYndEt7Ncva80qkk8G2B4TXU=\") on (unknown)"
level=info msg="[config_reader] Config search paths: [./ /Users/vladislav/Projects/mtusi2026lab6 /Users/vladislav/Projects /Users/vladislav /Users /]"
level=info msg="[config_reader] Used config file .golangci.yml"
level=info msg="[config_reader] Module name \"mtusi-messenger\""
level=info msg="[goenv] Read go env for 5.452167ms: map[string]string{\"GOCACHE\":\"/Users/vladislav/Library/Caches/go-build\", \"GOROOT\":\"/opt/homebrew/Cellar/go/1.27.1/libexec\"}"
level=info msg="[lintersdb] Active 50 linters: [asasalint bodyclose canonicalheader containedctx contextcheck copyloopvar depguard durationcheck errcheck errname errorlint exhaustive exptostd fatcontext forbidigo forcetypeassert gocheckcompilerdirectives gocritic gofumpt goimports gomoddirectives gosec govet ineffassign intrange makezero misspell musttag nilerr nilnil noctx nolintlint perfsprint prealloc reassign recvcheck revive rowserrcheck sloglint sqlclosecheck staticcheck testifylint thelper tparallel unconvert unparam unused usestdlibvars usetesting wastedassign]"
level=info msg="[loader] Using build tags: [integration]"
level=info msg="[loader] Go packages loading at mode 8767 (exports_file|types_sizes|compiled_files|deps|files|imports|name) took 328.172459ms"
level=info msg="[runner/filename_unadjuster] Pre-built 0 adjustments in 8.257709ms"
level=info msg="[linters_context/goanalysis] analyzers took 0s with no stages"
level=info msg="[runner/exclusion_rules] Skipped 15 issues by rules: [Path: \"_test\\\\.go\", Linters: \"gosec, prealloc, forcetypeassert, unparam\"]"
level=info msg="[runner] Issues before processing: 894, after processing: 0"
level=info msg="[runner] Processors filtering stat (in/out): path_absoluter: 894/894, cgo: 894/894, exclusion_paths: 894/894, exclusion_rules: 305/6, filename_unadjuster: 894/894, invalid_issue: 894/894, nolint_filter: 6/0, path_relativity: 894/894, generated_file_filter: 894/305"
level=info msg="[runner] processing took 3.308334ms with stages: generated_file_filter: 1.592083ms, nolint_filter: 799.625µs, path_relativity: 567.333µs, exclusion_rules: 281.584µs, cgo: 27.917µs, invalid_issue: 16.916µs, path_absoluter: 10.542µs, filename_unadjuster: 6.208µs, sort_results: 3.876µs, max_same_issues: 625ns, exclusion_paths: 417ns, fixer: 292ns, max_from_linter: 208ns, source_code: 125ns, path_prettifier: 125ns, path_shortener: 124ns, max_per_file_from_linter: 84ns, severity-rules: 84ns, uniq_by_line: 83ns, diff: 83ns"
level=info msg="[runner] linters took 715.361458ms with stages: goanalysis_metalinter: 712.008375ms"
0 issues.
level=info msg="File cache stats: 0 entries of total size 0B"
level=info msg="Memory: 12 samples, avg is 83.2MB, max is 111.1MB"
level=info msg="Execution took 1.057716875s"
$ go vet ./...
$ promtool check rules
Checking /etc/prometheus/rules/alerts.yml
SUCCESS: 15 rules found
Checking /etc/prometheus/rules/slo.yml
SUCCESS: 10 rules found
$ promtool test rules
SUCCESS
$ docker compose config -q
@@ -0,0 +1,27 @@
{
"base_url": "http://localhost:8080",
"rate": 0.2,
"duration_s": 775.03,
"scheduled": 156,
"counters": {
"accepted": 31,
"ready": 31,
"failed": 0,
"messages": 125,
"uploads": 31,
"dropped": 0
},
"failures": 0,
"failures_by_reason": {},
"failure_samples": [],
"latency_ms": {
"p50": 7.7,
"p95": 10.5,
"p99": 12.4
},
"ttr_ms": {
"p50": 955.9,
"p95": 1265.6,
"p99": 1266.7
}
}
File diff suppressed because it is too large Load Diff
+16
View File
@@ -0,0 +1,16 @@
UTC 2026-11-05T22:44:18Z
HEAD 639582280f0cc2236dee3140207168df23cc8bf1
$ student-tests/lab5_faults.py
permanent failure: failed/injected_failure, content 409, failed attachment not linkable, registry visible
replay: failed -> queued -> ready, one thumbnail
replay ready job: refused
replay older failed version while v2 queued: refused, state intact
v2 published after older replay refusal
replay of failed reprocess: queued projection restored, then ready at pipeline 2
transient exhaustion: attempts=5, retry_exhausted, four retries, DLQ message present
crash after first variant: redelivered, same three variants, attempts=2
crash after commit before ack: ready remains, redelivery is a no-op
crash after claim before side effect: requeued, attempts=2, ready
outbox gap: crash before publish recovered through the relay, outbox published, ready
lease expiry: paused worker, reaper requeued, stale attempt fenced, ready
PASS: lab5 level 4 fault injection
File diff suppressed because one or more lines are too long
+47
View File
@@ -0,0 +1,47 @@
UTC 2026-11-06T00:30:14Z
HEAD 935b228d0b55ac60d00cdc855218ec45e20f2530
$ /api/v1/rules (contains or vector(0))
or_vector_0= True
json_len= 12780
$ pre ALERTS []
$ stop worker
t=30s ratio5=MISSING ratio1h=MISSING missed_total=100 missed_inc5=0 bucket_count=10 overdue=0 oldest=12.610594 alerts=[]
t=60s ratio5=MISSING ratio1h=MISSING missed_total=100 missed_inc5=0 bucket_count=10 overdue=3 oldest=42.61288 alerts=[["JobsOverdue", "pending"]]
t=90s ratio5=MISSING ratio1h=MISSING missed_total=106 missed_inc5=6.2756181818181815 bucket_count=10 overdue=9 oldest=72.614253 alerts=[["JobsOverdue", "pending"]]
t=120s ratio5=0.923076923076923 ratio1h=0.9230769230769231 missed_total=112 missed_inc5=12.435503224838758 bucket_count=10 overdue=15 oldest=102.611122 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "pending"]]
t=150s ratio5=0.9473684210526316 ratio1h=0.9473684210526315 missed_total=118 missed_inc5=18.549592785748487 bucket_count=10 overdue=23 oldest=132.508928 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "pending"]]
t=180s ratio5=0.962962962962963 ratio1h=0.962962962962963 missed_total=126 missed_inc5=26.679560826021273 bucket_count=10 overdue=29 oldest=162.508223 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=210s ratio5=0.9696969696969697 ratio1h=0.9696969696969698 missed_total=132 missed_inc5=32.73157721245076 bucket_count=10 overdue=35 oldest=192.509517 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=240s ratio5=0.9743589743589745 ratio1h=0.9743589743589743 missed_total=138 missed_inc5=38.77170399329681 bucket_count=10 overdue=43 oldest=222.509683 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=270s ratio5=0.9787234042553192 ratio1h=0.9787234042553192 missed_total=146 missed_inc5=46.84163777134747 bucket_count=10 overdue=49 oldest=252.509732 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=300s ratio5=0.9811320754716981 ratio1h=0.9811320754716981 missed_total=152 missed_inc5=52.8994672752366 bucket_count=10 overdue=55 oldest=282.510069 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=330s ratio5=1 ratio1h=0.9829645869209094 missed_total=158 missed_inc5=59.00325196084083 bucket_count=MISSING overdue=63 oldest=312.51145 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=360s ratio5=1 ratio1h=0.9849866155016431 missed_total=166 missed_inc5=67.14185921911984 bucket_count=MISSING overdue=69 oldest=342.509047 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=390s ratio5=1 ratio1h=0.9862112005033712 missed_total=172 missed_inc5=67.14163154164646 bucket_count=MISSING overdue=75 oldest=372.509037 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=420s ratio5=1 ratio1h=0.9872508295058324 missed_total=178 missed_inc5=67.14185921911984 bucket_count=MISSING overdue=83 oldest=402.510244 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=450s ratio5=1 ratio1h=0.9884172689944903 missed_total=186 missed_inc5=69.15254237288136 bucket_count=MISSING overdue=89 oldest=432.509801 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=480s ratio5=1 ratio1h=0.9891595307016704 missed_total=192 missed_inc5=67.11750648294097 bucket_count=MISSING overdue=95 oldest=462.508192 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=510s ratio5=1 ratio1h=0.9898124841753306 missed_total=198 missed_inc5=67.11864406779661 bucket_count=MISSING overdue=103 oldest=492.508813 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=540s ratio5=1 ratio1h=0.9905707750128784 missed_total=206 missed_inc5=69.15207354526409 bucket_count=MISSING overdue=109 oldest=522.508408 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=570s ratio5=1 ratio1h=0.9910685528663303 missed_total=212 missed_inc5=67.14185921911982 bucket_count=MISSING overdue=115 oldest=552.510401 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=600s ratio5=1 ratio1h=0.9915177473866992 missed_total=218 missed_inc5=67.14254226080469 bucket_count=MISSING overdue=123 oldest=582.406662 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=630s ratio5=1 ratio1h=0.9920498972652931 missed_total=226 missed_inc5=69.17622643684787 bucket_count=MISSING overdue=129 oldest=612.40958 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueOldestJobAgeCritical", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=660s ratio5=1 ratio1h=0.9924066715178286 missed_total=232 missed_inc5=67.14163154164646 bucket_count=MISSING overdue=135 oldest=642.40658 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueOldestJobAgeCritical", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=690s ratio5=1 ratio1h=0.9927327859192547 missed_total=238 missed_inc5=67.14276994445463 bucket_count=MISSING overdue=143 oldest=672.408057 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueOldestJobAgeCritical", "pending"], ["QueueDepthGrowing", "pending"], ["JobsOverdue", "firing"]]
t=720s ratio5=1 ratio1h=0.9931268165094485 missed_total=246 missed_inc5=69.17528814559364 bucket_count=MISSING overdue=149 oldest=702.408433 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "pending"], ["QueueOldestJobAgeCritical", "pending"], ["QueueDepthGrowing", "firing"], ["JobsOverdue", "firing"]]
t=750s ratio5=1 ratio1h=0.9933950961225724 missed_total=252 missed_inc5=67.14163154164646 bucket_count=MISSING overdue=155 oldest=732.408746 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "firing"], ["QueueOldestJobAgeCritical", "pending"], ["QueueDepthGrowing", "firing"], ["JobsOverdue", "firing"]]
t=780s ratio5=1 ratio1h=0.993643194764043 missed_total=258 missed_inc5=67.14185921911982 bucket_count=MISSING overdue=163 oldest=762.409049 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "firing"], ["QueueOldestJobAgeCritical", "pending"], ["QueueDepthGrowing", "firing"], ["JobsOverdue", "firing"]]
t=810s ratio5=1 ratio1h=0.9939467049022863 missed_total=266 missed_inc5=69.17622643684787 bucket_count=MISSING overdue=169 oldest=792.41206 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "firing"], ["QueueOldestJobAgeCritical", "pending"], ["QueueDepthGrowing", "firing"], ["JobsOverdue", "firing"]]
t=840s ratio5=1 ratio1h=0.9941557453893992 missed_total=272 missed_inc5=67.14163154164646 bucket_count=MISSING overdue=175 oldest=822.407542 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "firing"], ["QueueOldestJobAgeCritical", "pending"], ["QueueDepthGrowing", "firing"], ["JobsOverdue", "firing"]]
t=870s ratio5=1 ratio1h=0.9943508304157103 missed_total=278 missed_inc5=67.11932663722003 bucket_count=MISSING overdue=183 oldest=852.407439 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "firing"], ["QueueOldestJobAgeCritical", "pending"], ["QueueDepthGrowing", "firing"], ["JobsOverdue", "firing"]]
t=900s ratio5=1 ratio1h=0.9945917759853372 missed_total=286 missed_inc5=69.15230795827812 bucket_count=MISSING overdue=189 oldest=882.407004 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "firing"], ["QueueOldestJobAgeCritical", "pending"], ["QueueDepthGrowing", "firing"], ["JobsOverdue", "firing"]]
t=930s ratio5=1 ratio1h=0.9947592532907682 missed_total=292 missed_inc5=67.11841654774052 bucket_count=MISSING overdue=195 oldest=912.40742 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"], ["QueueOldestJobAgeHigh", "firing"], ["QueueOldestJobAgeCritical", "firing"], ["QueueDepthGrowing", "firing"], ["JobsOverdue", "firing"]]
$ start worker
recovery t=30s ratio5=1 ratio1h=0.8602719300487442 missed_total=300 overdue=0 oldest=0 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"]]
recovery t=60s ratio5=0.46027848712991326 ratio1h=0.6701622041415539 missed_total=300 overdue=0 oldest=0 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"]]
recovery t=120s ratio5=0.28651555183796223 ratio1h=0.5530347475575486 missed_total=300 overdue=0 oldest=0 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"]]
recovery t=180s ratio5=0.19892599842282524 ratio1h=0.4741651045063767 missed_total=300 overdue=0 oldest=0 alerts=[["TTRErrorBudgetFastBurn", "firing"], ["TTRErrorBudgetSlowBurn", "firing"]]
recovery t=240s ratio5=0.14269663063401883 ratio1h=0.4150096929787228 missed_total=300 overdue=0 oldest=0 alerts=[["TTRErrorBudgetSlowBurn", "firing"]]
recovery t=300s ratio5=0.09905644731015488 ratio1h=0.3703642198471703 missed_total=300 overdue=0 oldest=0 alerts=[["TTRErrorBudgetSlowBurn", "firing"]]
+28
View File
@@ -0,0 +1,28 @@
UTC 2026-11-05T22:40:16Z
HEAD 639582280f0cc2236dee3140207168df23cc8bf1
$ load + stop worker
Container mtusi-messenger-lab6-worker-1 Stopping
Container mtusi-messenger-lab6-worker-1 Stopped
$ ttr ratio during outage
{"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"slo:job_ttr_bad_ratio:5m"},"value":[1793918511.951,"0.6265581574633149"]}]}}
$ alerts during outage
[('TTRErrorBudgetFastBurn', 'firing')]
$ start worker
Container mtusi-messenger-lab6-seaweedfs-1 Waiting
Container mtusi-messenger-lab6-postgres-1 Waiting
Container mtusi-messenger-lab6-postgres-1 Healthy
Container mtusi-messenger-lab6-seaweedfs-1 Healthy
Container mtusi-messenger-lab6-migrate-1 Starting
Container mtusi-messenger-lab6-s3-init-1 Starting
Container mtusi-messenger-lab6-migrate-1 Started
Container mtusi-messenger-lab6-s3-init-1 Started
Container mtusi-messenger-lab6-broker-1 Waiting
Container mtusi-messenger-lab6-postgres-1 Waiting
Container mtusi-messenger-lab6-migrate-1 Waiting
Container mtusi-messenger-lab6-s3-init-1 Waiting
Container mtusi-messenger-lab6-migrate-1 Exited
Container mtusi-messenger-lab6-postgres-1 Healthy
Container mtusi-messenger-lab6-s3-init-1 Exited
Container mtusi-messenger-lab6-broker-1 Healthy
Container mtusi-messenger-lab6-worker-1 Starting
Container mtusi-messenger-lab6-worker-1 Started
+78
View File
@@ -0,0 +1,78 @@
UTC 2026-11-06T13:51:07Z
HEAD 255f601a9946187c4c330828426c6458a89aad2b
pre_alerts= []
$ docker compose ps -a
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
mtusi-messenger-lab6-api-1 mtusi-messenger:lab6 "/usr/local/bin/mess…" api 5 hours ago Up 5 hours (healthy) 8080/tcp
mtusi-messenger-lab6-api-2 mtusi-messenger:lab6 "/usr/local/bin/mess…" api 5 hours ago Up 5 hours (healthy) 8080/tcp
mtusi-messenger-lab6-broker-1 rabbitmq:4.3.7-management-alpine@sha256:1528a88eebf2bc4d0ab7e9d5d9bc542e9bdf5e1b105e65848fcf8de5c2186528 "docker-entrypoint.s…" broker 5 hours ago Up 25 minutes (healthy) 4369/tcp, 5671-5672/tcp, 15671/tcp, 15691-15692/tcp, 25672/tcp, 127.0.0.1:15672->15672/tcp
mtusi-messenger-lab6-grafana-1 grafana/grafana:13.2.5@sha256:9f7aa1e1e3246aade5792d35a738049f7f32f89cd51d1956cf426a4e86268a84 "/run.sh" grafana 5 hours ago Up 5 hours (healthy) 127.0.0.1:3000->3000/tcp
mtusi-messenger-lab6-lb-1 haproxy:3.2-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122 "docker-entrypoint.s…" lb 5 hours ago Up 5 hours 127.0.0.1:8404->8404/tcp, 127.0.0.1:8080->80/tcp
mtusi-messenger-lab6-loki-1 grafana/loki:3.6.4@sha256:be31579ac047e9f78b81e48f3b69d3af709e7299b431d5aa78bcda43382f9511 "/usr/bin/loki -conf…" loki 5 hours ago Up 5 hours 127.0.0.1:3100->3100/tcp
mtusi-messenger-lab6-migrate-1 mtusi-messenger:lab6 "/usr/local/bin/migr…" migrate 5 hours ago Exited (0) 19 minutes ago
mtusi-messenger-lab6-otel-collector-1 otel/opentelemetry-collector-contrib:0.164.0@sha256:340c9ca6a36617084c6661bdc4f0fe92b7cda5a805d61673ec8db375fddc522b "/otelcol-contrib --…" otel-collector 5 hours ago Up 5 hours 4317-4318/tcp, 55679/tcp
mtusi-messenger-lab6-postgres-1 postgres:18-alpine@sha256:77f585114c32fbca283dc835b0596f4e52b51b4c6662d7810b2f4084f60a1873 "docker-entrypoint.s…" postgres 5 hours ago Up 2 hours (healthy) 5432/tcp
mtusi-messenger-lab6-prometheus-1 prom/prometheus:v3.15.1@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2 "/bin/prometheus --c…" prometheus 46 seconds ago Up 45 seconds (healthy) 127.0.0.1:9090->9090/tcp
mtusi-messenger-lab6-redis-1 redis:7.4-alpine@sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499 "docker-entrypoint.s…" redis 5 hours ago Up 5 hours (healthy) 6379/tcp
mtusi-messenger-lab6-relay-1 mtusi-messenger:lab6 "/usr/local/bin/relay" relay 17 minutes ago Up 17 minutes (healthy) 8080/tcp, 127.0.0.1:8082->8082/tcp
mtusi-messenger-lab6-s3-init-1 mtusi-messenger:lab6 "/usr/local/bin/s3in…" s3-init 5 hours ago Exited (0) 19 minutes ago
mtusi-messenger-lab6-seaweedfs-1 chrislusf/seaweedfs:3.80@sha256:1055999e08eed1789b0ae45d235126e4495e23d3fb9d6396293fd42539b1ae6a "/entrypoint.sh serv…" seaweedfs 5 hours ago Up 5 hours (healthy) 7333/tcp, 8080/tcp, 8888/tcp, 9333/tcp, 18080/tcp, 18888/tcp, 19333/tcp, 127.0.0.1:8333->8333/tcp
mtusi-messenger-lab6-tempo-1 grafana/tempo:2.9.0@sha256:65a5789759435f1ef696f1953258b9bbdb18eb571d5ce711ff812d2e128288a4 "/tempo -config.file…" tempo 5 hours ago Up 5 hours 127.0.0.1:3200->3200/tcp
mtusi-messenger-lab6-worker-1 mtusi-messenger:lab6 "/usr/local/bin/work…" worker 17 minutes ago Up 17 minutes (healthy) 8080/tcp, 127.0.0.1:8081->8081/tcp
$ docker compose stop otel-collector
down t=30s up=0 api_p99=NaN api_error_5m=0 queue_logs=MISSING queue_traces=MISSING alerts=[["TelemetryCollectorDown", "pending"]]
down t=60s up=0 api_p99=NaN api_error_5m=0 queue_logs=MISSING queue_traces=MISSING alerts=[["TelemetryCollectorDown", "pending"]]
down t=90s up=0 api_p99=NaN api_error_5m=0 queue_logs=MISSING queue_traces=MISSING alerts=[["TelemetryCollectorDown", "pending"]]
down t=120s up=0 api_p99=NaN api_error_5m=0 queue_logs=MISSING queue_traces=MISSING alerts=[["TelemetryCollectorDown", "pending"]]
down t=150s up=0 api_p99=NaN api_error_5m=0 queue_logs=MISSING queue_traces=MISSING alerts=[["TelemetryCollectorDown", "firing"]]
down t=180s up=0 api_p99=NaN api_error_5m=0 queue_logs=MISSING queue_traces=MISSING alerts=[["TelemetryCollectorDown", "firing"]]
down t=210s up=0 api_p99=NaN api_error_5m=0 queue_logs=MISSING queue_traces=MISSING alerts=[["TelemetryCollectorDown", "firing"]]
down t=240s up=0 api_p99=NaN api_error_5m=0 queue_logs=MISSING queue_traces=MISSING alerts=[["TelemetryCollectorDown", "firing"]]
down t=270s up=0 api_p99=NaN api_error_5m=0 queue_logs=MISSING queue_traces=MISSING alerts=[["TelemetryCollectorDown", "firing"]]
down t=300s up=0 api_p99=MISSING api_error_5m=0 queue_logs=MISSING queue_traces=MISSING alerts=[["TelemetryCollectorDown", "firing"]]
$ docker compose ps -a (down)
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
mtusi-messenger-lab6-api-1 mtusi-messenger:lab6 "/usr/local/bin/mess…" api 5 hours ago Up 5 hours (healthy) 8080/tcp
mtusi-messenger-lab6-api-2 mtusi-messenger:lab6 "/usr/local/bin/mess…" api 5 hours ago Up 5 hours (healthy) 8080/tcp
mtusi-messenger-lab6-broker-1 rabbitmq:4.3.7-management-alpine@sha256:1528a88eebf2bc4d0ab7e9d5d9bc542e9bdf5e1b105e65848fcf8de5c2186528 "docker-entrypoint.s…" broker 5 hours ago Up 30 minutes (healthy) 4369/tcp, 5671-5672/tcp, 15671/tcp, 15691-15692/tcp, 25672/tcp, 127.0.0.1:15672->15672/tcp
mtusi-messenger-lab6-grafana-1 grafana/grafana:13.2.5@sha256:9f7aa1e1e3246aade5792d35a738049f7f32f89cd51d1956cf426a4e86268a84 "/run.sh" grafana 5 hours ago Up 5 hours (healthy) 127.0.0.1:3000->3000/tcp
mtusi-messenger-lab6-lb-1 haproxy:3.2-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122 "docker-entrypoint.s…" lb 5 hours ago Up 5 hours 127.0.0.1:8404->8404/tcp, 127.0.0.1:8080->80/tcp
mtusi-messenger-lab6-loki-1 grafana/loki:3.6.4@sha256:be31579ac047e9f78b81e48f3b69d3af709e7299b431d5aa78bcda43382f9511 "/usr/bin/loki -conf…" loki 5 hours ago Up 5 hours 127.0.0.1:3100->3100/tcp
mtusi-messenger-lab6-migrate-1 mtusi-messenger:lab6 "/usr/local/bin/migr…" migrate 5 hours ago Exited (0) 24 minutes ago
mtusi-messenger-lab6-otel-collector-1 otel/opentelemetry-collector-contrib:0.164.0@sha256:340c9ca6a36617084c6661bdc4f0fe92b7cda5a805d61673ec8db375fddc522b "/otelcol-contrib --…" otel-collector 5 hours ago Exited (0) 5 minutes ago
mtusi-messenger-lab6-postgres-1 postgres:18-alpine@sha256:77f585114c32fbca283dc835b0596f4e52b51b4c6662d7810b2f4084f60a1873 "docker-entrypoint.s…" postgres 5 hours ago Up 2 hours (healthy) 5432/tcp
mtusi-messenger-lab6-prometheus-1 prom/prometheus:v3.15.1@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2 "/bin/prometheus --c…" prometheus 5 minutes ago Up 5 minutes (healthy) 127.0.0.1:9090->9090/tcp
mtusi-messenger-lab6-redis-1 redis:7.4-alpine@sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499 "docker-entrypoint.s…" redis 5 hours ago Up 5 hours (healthy) 6379/tcp
mtusi-messenger-lab6-relay-1 mtusi-messenger:lab6 "/usr/local/bin/relay" relay 22 minutes ago Up 22 minutes (healthy) 8080/tcp, 127.0.0.1:8082->8082/tcp
mtusi-messenger-lab6-s3-init-1 mtusi-messenger:lab6 "/usr/local/bin/s3in…" s3-init 5 hours ago Exited (0) 24 minutes ago
mtusi-messenger-lab6-seaweedfs-1 chrislusf/seaweedfs:3.80@sha256:1055999e08eed1789b0ae45d235126e4495e23d3fb9d6396293fd42539b1ae6a "/entrypoint.sh serv…" seaweedfs 5 hours ago Up 5 hours (healthy) 7333/tcp, 8080/tcp, 8888/tcp, 9333/tcp, 18080/tcp, 18888/tcp, 19333/tcp, 127.0.0.1:8333->8333/tcp
mtusi-messenger-lab6-tempo-1 grafana/tempo:2.9.0@sha256:65a5789759435f1ef696f1953258b9bbdb18eb571d5ce711ff812d2e128288a4 "/tempo -config.file…" tempo 5 hours ago Up 5 hours 127.0.0.1:3200->3200/tcp
mtusi-messenger-lab6-worker-1 mtusi-messenger:lab6 "/usr/local/bin/work…" worker 22 minutes ago Up 22 minutes (healthy) 8080/tcp, 127.0.0.1:8081->8081/tcp
$ docker compose start otel-collector
recovery t=30s up=1 api_p99=0.02425 api_error_5m=0 queue_logs=0 queue_traces=0 alerts=[]
telemetry alerts inactive
load_exit= 0
load_summary= {"counters": {"accepted": 27, "ready": 27, "failed": 0, "messages": 105, "uploads": 27, "dropped": 0}, "failures": 0, "failures_by_reason": {}, "duration_s": 655.01}
$ docker compose ps -a (final)
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
mtusi-messenger-lab6-api-1 mtusi-messenger:lab6 "/usr/local/bin/mess…" api 5 hours ago Up 5 hours (healthy) 8080/tcp
mtusi-messenger-lab6-api-2 mtusi-messenger:lab6 "/usr/local/bin/mess…" api 5 hours ago Up 5 hours (healthy) 8080/tcp
mtusi-messenger-lab6-broker-1 rabbitmq:4.3.7-management-alpine@sha256:1528a88eebf2bc4d0ab7e9d5d9bc542e9bdf5e1b105e65848fcf8de5c2186528 "docker-entrypoint.s…" broker 5 hours ago Up 35 minutes (healthy) 4369/tcp, 5671-5672/tcp, 15671/tcp, 15691-15692/tcp, 25672/tcp, 127.0.0.1:15672->15672/tcp
mtusi-messenger-lab6-grafana-1 grafana/grafana:13.2.5@sha256:9f7aa1e1e3246aade5792d35a738049f7f32f89cd51d1956cf426a4e86268a84 "/run.sh" grafana 5 hours ago Up 5 hours (healthy) 127.0.0.1:3000->3000/tcp
mtusi-messenger-lab6-lb-1 haproxy:3.2-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122 "docker-entrypoint.s…" lb 5 hours ago Up 5 hours 127.0.0.1:8404->8404/tcp, 127.0.0.1:8080->80/tcp
mtusi-messenger-lab6-loki-1 grafana/loki:3.6.4@sha256:be31579ac047e9f78b81e48f3b69d3af709e7299b431d5aa78bcda43382f9511 "/usr/bin/loki -conf…" loki 5 hours ago Up 5 hours 127.0.0.1:3100->3100/tcp
mtusi-messenger-lab6-migrate-1 mtusi-messenger:lab6 "/usr/local/bin/migr…" migrate 5 hours ago Exited (0) 30 minutes ago
mtusi-messenger-lab6-otel-collector-1 otel/opentelemetry-collector-contrib:0.164.0@sha256:340c9ca6a36617084c6661bdc4f0fe92b7cda5a805d61673ec8db375fddc522b "/otelcol-contrib --…" otel-collector 5 hours ago Up 5 minutes 4317-4318/tcp, 55679/tcp
mtusi-messenger-lab6-postgres-1 postgres:18-alpine@sha256:77f585114c32fbca283dc835b0596f4e52b51b4c6662d7810b2f4084f60a1873 "docker-entrypoint.s…" postgres 5 hours ago Up 2 hours (healthy) 5432/tcp
mtusi-messenger-lab6-prometheus-1 prom/prometheus:v3.15.1@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2 "/bin/prometheus --c…" prometheus 11 minutes ago Up 11 minutes (healthy) 127.0.0.1:9090->9090/tcp
mtusi-messenger-lab6-redis-1 redis:7.4-alpine@sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499 "docker-entrypoint.s…" redis 5 hours ago Up 5 hours (healthy) 6379/tcp
mtusi-messenger-lab6-relay-1 mtusi-messenger:lab6 "/usr/local/bin/relay" relay 28 minutes ago Up 28 minutes (healthy) 8080/tcp, 127.0.0.1:8082->8082/tcp
mtusi-messenger-lab6-s3-init-1 mtusi-messenger:lab6 "/usr/local/bin/s3in…" s3-init 5 hours ago Exited (0) 30 minutes ago
mtusi-messenger-lab6-seaweedfs-1 chrislusf/seaweedfs:3.80@sha256:1055999e08eed1789b0ae45d235126e4495e23d3fb9d6396293fd42539b1ae6a "/entrypoint.sh serv…" seaweedfs 5 hours ago Up 5 hours (healthy) 7333/tcp, 8080/tcp, 8888/tcp, 9333/tcp, 18080/tcp, 18888/tcp, 19333/tcp, 127.0.0.1:8333->8333/tcp
mtusi-messenger-lab6-tempo-1 grafana/tempo:2.9.0@sha256:65a5789759435f1ef696f1953258b9bbdb18eb571d5ce711ff812d2e128288a4 "/tempo -config.file…" tempo 5 hours ago Up 5 hours 127.0.0.1:3200->3200/tcp
mtusi-messenger-lab6-worker-1 mtusi-messenger:lab6 "/usr/local/bin/work…" worker 28 minutes ago Up 28 minutes (healthy) 8080/tcp, 127.0.0.1:8081->8081/tcp
+55
View File
@@ -0,0 +1,55 @@
UTC 2026-11-05T22:39:36Z
HEAD 639582280f0cc2236dee3140207168df23cc8bf1
$ docker compose stop postgres
Container mtusi-messenger-lab6-postgres-1 Stopping
Container mtusi-messenger-lab6-postgres-1 Stopped
$ direct api request (stopped DB)
--2026-11-05 22:39:39-- http://127.0.0.1:8080/api/v1/users/me
Connecting to 127.0.0.1:8080... connected.
HTTP request sent, awaiting response...
HTTP/1.1 503 Service Unavailable
Content-Type: application/json; charset=utf-8
X-Instance-Id: 32a0ab2f10f0
X-Request-Id: 68f42379-8fe8-4655-a99e-bd3a65975cc7
Date: Thu, 05 Nov 2026 22:39:39 GMT
Content-Length: 116
2026-11-05 22:39:39 ERROR 503: Service Unavailable.
$ start postgres and immediate direct request
--2026-11-05 22:39:39-- http://127.0.0.1:8080/api/v1/users/me
Connecting to 127.0.0.1:8080... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Access-Control-Expose-Headers: X-Instance-Id,X-Request-Id
Content-Type: application/json; charset=utf-8
X-Instance-Id: 32a0ab2f10f0
X-Request-Id: 5be628de-cfd2-4aeb-aa3f-4ca045a8d50a
Date: Thu, 05 Nov 2026 22:39:39 GMT
Content-Length: 153
Length: 153 [application/json]
Saving to: 'STDOUT'
0K {"created_at":"2026-11-05T22:39:36Z","display_name":"Студент alice","id":"01a1adde-1a14-7f20-bdfa-448058e1d060","username":"u_alice_7eeac91c971f"} 100% 61.9M=0s
2026-11-05 22:39:39 (61.9 MB/s) - written to stdout [153/153]
$ wait recovery
--2026-11-05 22:39:51-- http://127.0.0.1:8080/api/v1/users/me
Connecting to 127.0.0.1:8080... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Access-Control-Expose-Headers: X-Instance-Id,X-Request-Id
Content-Type: application/json; charset=utf-8
X-Instance-Id: 32a0ab2f10f0
X-Request-Id: f8053440-cb37-49ff-ba79-eb8c4ceff53b
Date: Thu, 05 Nov 2026 22:39:51 GMT
Content-Length: 153
Length: 153 [application/json]
Saving to: 'STDOUT'
{"created_at":"2026-11-05T22:39:36Z","display_name":"Студент alice","id":"01a1adde-1a14-7f20-bdfa-448058e1d060","username":"u_alice_7eeac91c971f"}
0K 100% 72.8M=0s
2026-11-05 22:39:51 (72.8 MB/s) - written to stdout [153/153]
+13
View File
@@ -0,0 +1,13 @@
PostgreSQL pause (short burst) — local check
=============================================
$ docker compose --env-file .env pause postgres
$ python3 scripts/lab6_load.py --rate 1 --duration 8 --upload-ratio 0 --deadline 5
messages were attempted during a frozen DB; client deadline errors are bad.
$ sum(rate(haproxy_frontend_http_responses_total{proxy="http_front",code=~"5.."}[1m]))
-> 0.017002102915598543
$ slo:api_error_ratio:5m -> 0
$ docker compose --env-file .env unpause postgres
$ make test -> PASS lab6 public API scenario
$ Prometheus alerts -> []
Interpretation: a short sub-5m burst is below the multi-window page threshold;
this is the expected no-page control, not evidence of a sustained incident.
+25
View File
@@ -0,0 +1,25 @@
{
"base_url": "http://localhost:8080",
"rate": 0.5,
"duration_s": 8.36,
"scheduled": 5,
"counters": {
"accepted": 5,
"ready": 5,
"failed": 0,
"messages": 0,
"uploads": 5
},
"failures": 0,
"failure_samples": [],
"latency_ms": {
"p50": null,
"p95": null,
"p99": null
},
"ttr_ms": {
"p50": 349.0,
"p95": 359.9,
"p99": 359.9
}
}
+15
View File
@@ -0,0 +1,15 @@
http_server_request_duration_seconds_count: 40
http_server_request_duration_seconds_bucket: 480
messenger_jobs_processed_total: 1
messenger_jobs_accepted_total: 2
messenger_job_duration_seconds_bucket: 11
messenger_job_time_to_ready_seconds_bucket: 10
messenger_jobs_overdue: 1
messenger_worker_busy: 1
messenger_db_pool_used: 4
messenger_queue_oldest_job_age_seconds: 1
messenger_outbox_oldest_unpublished_age_seconds: 1
messenger_process_cpu_seconds_total: 4
rabbitmq_queue_messages_ready: 2
otelcol_exporter_queue_size: 2
haproxy_backend_http_responses_total: 12
+48
View File
@@ -0,0 +1,48 @@
# Actual PromQL used by the provisioned dashboards and alert rules.
sum(rate(http_server_request_duration_seconds_count[5m]))
slo:api_error_ratio:5m
histogram_quantile(0.50, sum by (le) (rate(http_server_request_duration_seconds_bucket[5m])))
histogram_quantile(0.95, sum by (le) (rate(http_server_request_duration_seconds_bucket[5m])))
histogram_quantile(0.99, sum by (le) (rate(http_server_request_duration_seconds_bucket[5m])))
sum(rate(messenger_jobs_processed_total{outcome="succeeded"}[5m]))
sum(rate(messenger_jobs_processed_total{outcome="failed"}[5m]))
sum(rate(messenger_jobs_processed_total{outcome="retried"}[5m]))
histogram_quantile(0.50, sum by (le) (rate(messenger_job_duration_seconds_bucket[5m])))
histogram_quantile(0.95, sum by (le) (rate(messenger_job_duration_seconds_bucket[5m])))
histogram_quantile(0.99, sum by (le) (rate(messenger_job_duration_seconds_bucket[5m])))
histogram_quantile(0.95, sum by (le) (rate(messenger_job_time_to_ready_seconds_bucket[5m])))
slo:job_ttr_bad_ratio:5m
max(rabbitmq_queue_messages_ready{queue="attachment.process.v1"})
max(messenger_queue_oldest_job_age_seconds)
max(messenger_jobs_overdue)
max(messenger_outbox_oldest_unpublished_age_seconds)
sum(messenger_worker_busy)
sum(messenger_worker_capacity)
sum(messenger_db_pool_used)
sum(messenger_db_pool_idle)
sum(messenger_db_pool_max)
sum(rate(messenger_db_pool_empty_acquire_total[5m]))
max(messenger_process_cpu_seconds_total)
max(messenger_process_memory_usage_bytes)
otelcol_exporter_queue_size
sum(rate(otelcol_receiver_failed_spans[5m]))
sum(rate(otelcol_receiver_failed_metric_points[5m]))
sum(rate(otelcol_receiver_failed_log_records[5m]))
sum(rate(otelcol_receiver_refused_spans[5m]))
sum(rate(otelcol_receiver_refused_metric_points[5m]))
sum(rate(otelcol_receiver_refused_log_records[5m]))
otelcol_exporter_queue_capacity
sum(rate(haproxy_backend_http_responses_total{proxy="api_backend",code=~"5.."}[5m]))
slo:job_ttr_bad_ratio:1h
slo:job_ttr_bad_ratio:30m
slo:api_error_ratio:1h
slo:api_error_ratio:6h
slo:api_error_ratio:30m
slo:api_error_ratio:7d
slo:api_budget_remaining:7d
(sum(rate(messenger_jobs_ttr_missed_total[5m])) or vector(0)) / clamp_min((sum(rate(messenger_job_time_to_ready_seconds_bucket{le="30.0"}[5m])) or vector(0)) + (sum(rate(messenger_jobs_ttr_missed_total[5m])) or vector(0)), 0.001)
sum(rate(messenger_db_pool_empty_acquire_wait_seconds_total[5m])) / clamp_min(sum(rate(messenger_db_pool_empty_acquire_total[5m])), 1e-9)
sum by (service_name) (rate(messenger_process_cpu_seconds_total[5m]))
sum by (service_name) (messenger_process_memory_usage_bytes) / clamp_min(sum by (service_name) (messenger_process_memory_limit_bytes), 1)
sum by (http_route,http_response_status_code) (rate(http_server_request_duration_seconds_count[5m]))
sum(rate(haproxy_backend_http_responses_total{proxy="api_backend"}[5m]))
+24
View File
@@ -0,0 +1,24 @@
env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 student-tests/attachments_negative.py --base-url "http://localhost:8080"
10 MiB + 1 body: 413
empty body: 415
corrupt PNG (IDAT CRC): 415
MIME spoof (PNG declared as JPEG): 415
structurally valid PNG with non-zlib IDAT: 415
valid zlib, empty PNG raster: 415
valid zlib, invalid PNG scanline filter: 415
invalid PNG color type/bit depth pair: 415
duplicate PNG IHDR: 415
trailing bytes after PNG zlib stream: 415
tRNS on RGBA PNG: 415
short tRNS on RGB PNG: 415
PLTE entries exceed palette bit depth: 415
palette tRNS exceeds PLTE entries: 415
dangerous filenames: 400
foreign attachment metadata/content: 404
empty text without attachments: 400
attachment from another chat: 404
11 attachment ids: 400
duplicate attachment ids: 400
attachment-only message: 201
anonymous direct S3 GET: 403
PASS: lab4 attachment negative scenarios
+4
View File
@@ -0,0 +1,4 @@
env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://localhost:8080"
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 97, "failed_attempts": 0, "first_recovery_seconds": 3.068}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
+14
View File
@@ -0,0 +1,14 @@
env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 student-tests/lab5_faults.py --base-url "http://localhost:8080"
permanent failure: failed/injected_failure, content 409, failed attachment not linkable, registry visible
replay: failed -> queued -> ready, one thumbnail
replay ready job: refused
replay older failed version while v2 queued: refused, state intact
v2 published after older replay refusal
replay of failed reprocess: queued projection restored, then ready at pipeline 2
transient exhaustion: attempts=5, retry_exhausted, four retries, DLQ message present
crash after first variant: redelivered, same three variants, attempts=2
crash after commit before ack: ready remains, redelivery is a no-op
crash after claim before side effect: requeued, attempts=2, ready
outbox gap: crash before publish recovered through the relay, outbox published, ready
lease expiry: paused worker, reaper requeued, stale attempt fenced, ready
PASS: lab5 level 4 fault injection
+3
View File
@@ -0,0 +1,3 @@
env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 student-tests/idempotency_parallel.py --base-url "http://localhost:8080"
{"replay": {"workers": 12, "instances": ["8f0e5bdd7998", "e8d2415b9c96"], "message_id": "01a1a763-5b9b-7a27-994f-78248c9271aa"}, "conflict": {"workers": 12, "accepted": 1, "conflicts": 11}, "stable_body": {"message_id": "01a1a763-5bd8-778e-ba62-16240fa3ec36"}, "key_required": {"status": 400}}
PASS: параллельный повтор с одним Idempotency-Key создаёт ровно одно сообщение
+3
View File
@@ -0,0 +1,3 @@
go test -tags=integration -p 1 -count=1 -timeout=15m ./internal/storage/postgres ./internal/storage/redis
ok mtusi-messenger/internal/storage/postgres 8.003s
ok mtusi-messenger/internal/storage/redis 1.133s
+20
View File
@@ -0,0 +1,20 @@
/Users/vladislav/Projects/mtusi2026lab6/bin/golangci-lint run -v
level=info msg="golangci-lint has version 2.13.2 built with go1.27.1 from (unknown, modified: ?, mod sum: \"h1:bCyq3E4vo9qwzifjpzJqYndEt7Ncva80qkk8G2B4TXU=\") on (unknown)"
level=info msg="[config_reader] Config search paths: [./ /Users/vladislav/Projects/mtusi2026lab6 /Users/vladislav/Projects /Users/vladislav /Users /]"
level=info msg="[config_reader] Used config file .golangci.yml"
level=info msg="[config_reader] Module name \"mtusi-messenger\""
level=info msg="[goenv] Read go env for 5.163584ms: map[string]string{\"GOCACHE\":\"/Users/vladislav/Library/Caches/go-build\", \"GOROOT\":\"/opt/homebrew/Cellar/go/1.27.1/libexec\"}"
level=info msg="[lintersdb] Active 50 linters: [asasalint bodyclose canonicalheader containedctx contextcheck copyloopvar depguard durationcheck errcheck errname errorlint exhaustive exptostd fatcontext forbidigo forcetypeassert gocheckcompilerdirectives gocritic gofumpt goimports gomoddirectives gosec govet ineffassign intrange makezero misspell musttag nilerr nilnil noctx nolintlint perfsprint prealloc reassign recvcheck revive rowserrcheck sloglint sqlclosecheck staticcheck testifylint thelper tparallel unconvert unparam unused usestdlibvars usetesting wastedassign]"
level=info msg="[loader] Using build tags: [integration]"
level=info msg="[loader] Go packages loading at mode 8767 (compiled_files|deps|files|imports|types_sizes|exports_file|name) took 363.317916ms"
level=info msg="[runner/filename_unadjuster] Pre-built 0 adjustments in 9.772458ms"
level=info msg="[linters_context/goanalysis] analyzers took 10.930463359s with top 10 stages: revive: 2.628586625s, goimports: 1.744804s, gosec: 899.898833ms, unparam: 692.242917ms, wastedassign: 325.500166ms, gocritic: 151.973916ms, buildir: 143.08475ms, gofumpt: 134.217041ms, forbidigo: 133.863209ms, buildssa: 114.559414ms"
level=info msg="[runner/exclusion_rules] Skipped 14 issues by rules: [Path: \"_test\\\\.go\", Linters: \"gosec, prealloc, forcetypeassert, unparam\"]"
level=info msg="[runner] Issues before processing: 893, after processing: 0"
level=info msg="[runner] Processors filtering stat (in/out): path_absoluter: 893/893, cgo: 893/893, exclusion_paths: 893/893, generated_file_filter: 893/304, filename_unadjuster: 893/893, invalid_issue: 893/893, path_relativity: 893/893, nolint_filter: 6/0, exclusion_rules: 304/6"
level=info msg="[runner] processing took 3.351875ms with stages: generated_file_filter: 2.096458ms, nolint_filter: 636.084µs, path_relativity: 291.167µs, exclusion_rules: 290.125µs, invalid_issue: 13.834µs, cgo: 11.916µs, path_absoluter: 6.458µs, filename_unadjuster: 2.75µs, sort_results: 791ns, max_same_issues: 584ns, fixer: 334ns, exclusion_paths: 292ns, max_from_linter: 167ns, diff: 166ns, uniq_by_line: 166ns, path_prettifier: 166ns, max_per_file_from_linter: 125ns, source_code: 125ns, path_shortener: 84ns, severity-rules: 83ns"
level=info msg="[runner] linters took 1.75139825s with stages: goanalysis_metalinter: 1.74801175s"
0 issues.
level=info msg="File cache stats: 0 entries of total size 0B"
level=info msg="Memory: 23 samples, avg is 358.6MB, max is 642.8MB"
level=info msg="Execution took 2.130137542s"
+15
View File
@@ -0,0 +1,15 @@
"workload": "closed-loop POST messages; no automatic retries",
"requested_duration_seconds": 30,
"elapsed_seconds": 30.009,
"concurrency": 4,
"successful_requests": 30857,
"failed_requests": 0,
"error_ratio": 0.0,
"successful_rps": 1028.26,
"successful_latency_ms": {
"p50": 2.846,
"p95": 9.485,
"p99": 17.614
},
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
}
+3
View File
@@ -0,0 +1,3 @@
env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 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.
+10
View File
@@ -0,0 +1,10 @@
env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 student-tests/presign_flow.py --base-url "http://localhost:8080"
happy path: direct PUT 200, complete queued, ready after worker
message with attachment downloaded as the second chat member
repeated complete is idempotent
foreign complete: 404
complete before PUT: 409
wrong completion checksum: 409
oversized direct PUT: 403 from S3; complete: 409 (nothing stored)
same-size overwrite: last PUT wins, checksum verified
PASS: lab4 presigned upload flow
+11
View File
@@ -0,0 +1,11 @@
$ make test-queue
worker down: 202 queued, content 409, queued attachment linked, API restarted
worker restarted: ready, thumbnail and original downloadable, staging cleared
broker down: upload accepted into outbox
broker + relay recovered: queued job reached ready
stack restart: ready attachment and original preserved
worker down: reprocess pipeline 2 accepted, v1 audit event recorded, upload still queued
worker up: reprocessed upload reached ready at pipeline 2, v1 superseded
worker down: reprocess pipeline 3 refused, v1 job untouched
worker up: preserved upload reached ready at pipeline 1
PASS: lab5 async worker/broker durability
+8
View File
@@ -0,0 +1,8 @@
env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 scripts/lab5_track2.py --base-url "http://localhost:8080"
Dduplicate_before_effect rep=1: PASS
Dstale_version_after_v2 rep=1: PASS
Dduplicate_before_effect rep=2: PASS
Dstale_version_after_v2 rep=2: PASS
Dduplicate_before_effect rep=3: PASS
Dstale_version_after_v2 rep=3: PASS
PASS: track2 6/6 scenarios
+2
View File
@@ -0,0 +1,2 @@
env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 tests/smoke.py --base-url "http://localhost:8080"
PASS: lab6 public API scenario; infrastructure and grading evidence remain separate.
+15
View File
@@ -0,0 +1,15 @@
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
mtusi-messenger-lab6-api-1 mtusi-messenger:lab6 "/usr/local/bin/mess…" api 59 seconds ago Up 57 seconds (healthy) 8080/tcp
mtusi-messenger-lab6-api-2 mtusi-messenger:lab6 "/usr/local/bin/mess…" api 59 seconds ago Up 57 seconds (healthy) 8080/tcp
mtusi-messenger-lab6-broker-1 rabbitmq:4.3.7-management-alpine@sha256:1528a88eebf2bc4d0ab7e9d5d9bc542e9bdf5e1b105e65848fcf8de5c2186528 "docker-entrypoint.s…" broker 3 hours ago Up 26 minutes (healthy) 4369/tcp, 5671-5672/tcp, 15671/tcp, 15691-15692/tcp, 25672/tcp, 127.0.0.1:15672->15672/tcp
mtusi-messenger-lab6-grafana-1 grafana/grafana:13.2.5@sha256:9f7aa1e1e3246aade5792d35a738049f7f32f89cd51d1956cf426a4e86268a84 "/run.sh" grafana 3 hours ago Up 31 minutes (healthy) 127.0.0.1:3000->3000/tcp
mtusi-messenger-lab6-lb-1 haproxy:3.2-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122 "docker-entrypoint.s…" lb 3 hours ago Up 26 minutes 127.0.0.1:8404->8404/tcp, 127.0.0.1:8080->80/tcp
mtusi-messenger-lab6-loki-1 grafana/loki:3.6.4@sha256:be31579ac047e9f78b81e48f3b69d3af709e7299b431d5aa78bcda43382f9511 "/usr/bin/loki -conf…" loki 3 hours ago Up 7 minutes 127.0.0.1:3100->3100/tcp
mtusi-messenger-lab6-otel-collector-1 otel/opentelemetry-collector-contrib:0.164.0@sha256:340c9ca6a36617084c6661bdc4f0fe92b7cda5a805d61673ec8db375fddc522b "/otelcol-contrib --…" otel-collector 31 minutes ago Up 56 seconds 4317-4318/tcp, 55679/tcp
mtusi-messenger-lab6-postgres-1 postgres:18-alpine@sha256:77f585114c32fbca283dc835b0596f4e52b51b4c6662d7810b2f4084f60a1873 "docker-entrypoint.s…" postgres 3 hours ago Up 5 minutes (healthy) 5432/tcp
mtusi-messenger-lab6-prometheus-1 prom/prometheus:v3.15.1@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2 "/bin/prometheus --c…" prometheus 59 seconds ago Up 59 seconds (healthy) 127.0.0.1:9090->9090/tcp
mtusi-messenger-lab6-redis-1 redis:7.4-alpine@sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499 "docker-entrypoint.s…" redis 3 hours ago Up 26 minutes (healthy) 6379/tcp
mtusi-messenger-lab6-relay-1 mtusi-messenger:lab6 "/usr/local/bin/relay" relay 59 seconds ago Up 57 seconds (healthy) 8080/tcp, 127.0.0.1:8082->8082/tcp
mtusi-messenger-lab6-seaweedfs-1 chrislusf/seaweedfs:3.80@sha256:1055999e08eed1789b0ae45d235126e4495e23d3fb9d6396293fd42539b1ae6a "/entrypoint.sh serv…" seaweedfs 3 hours ago Up 26 minutes (healthy) 7333/tcp, 8080/tcp, 8888/tcp, 9333/tcp, 18080/tcp, 18888/tcp, 19333/tcp, 127.0.0.1:8333->8333/tcp
mtusi-messenger-lab6-tempo-1 grafana/tempo:2.9.0@sha256:65a5789759435f1ef696f1953258b9bbdb18eb571d5ce711ff812d2e128288a4 "/tempo -config.file…" tempo 28 minutes ago Up 7 minutes 127.0.0.1:3200->3200/tcp
mtusi-messenger-lab6-worker-1 mtusi-messenger:lab6 "/usr/local/bin/work…" worker 59 seconds ago Up 57 seconds (healthy) 8080/tcp, 127.0.0.1:8081->8081/tcp
+866
View File
@@ -0,0 +1,866 @@
[
{
"phase": "baseline",
"utc": "2026-11-06T14:16:36Z",
"api_memory": "19447808",
"collector_rss": "235225088",
"collector_heap": "49942672",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.860972126582021",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3324321482240321",
"api_error_5m": "0",
"api_p99": "0.02352142857142857",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 189.2MiB / 256MiB 73.92%",
"mtusi-messenger-lab6-api-2 187.9MiB / 256MiB 73.40%",
"mtusi-messenger-lab6-otel-collector-1 72.32MiB / 192MiB 37.67%"
]
},
{
"phase": "baseline",
"utc": "2026-11-06T14:16:48Z",
"api_memory": "198602752",
"collector_rss": "235229184",
"collector_heap": "52750392",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.8270668530102165",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.342609804746333",
"api_error_5m": "0",
"api_p99": "0.07924999999999999",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 188.9MiB / 256MiB 73.78%",
"mtusi-messenger-lab6-api-2 188.1MiB / 256MiB 73.46%",
"mtusi-messenger-lab6-otel-collector-1 72.33MiB / 192MiB 37.67%"
]
},
{
"phase": "baseline",
"utc": "2026-11-06T14:17:00Z",
"api_memory": "197406720",
"collector_rss": "235229184",
"collector_heap": "55751416",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.906714773043249",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3424866565842212",
"api_error_5m": "0",
"api_p99": "0.07849999999999993",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 189MiB / 256MiB 73.84%",
"mtusi-messenger-lab6-api-2 188.1MiB / 256MiB 73.50%",
"mtusi-messenger-lab6-otel-collector-1 72.33MiB / 192MiB 37.67%"
]
},
{
"phase": "baseline",
"utc": "2026-11-06T14:17:12Z",
"api_memory": "198733824",
"collector_rss": "235233280",
"collector_heap": "32717896",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.910172330771997",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3424913020773284",
"api_error_5m": "0",
"api_p99": "0.07900000000000006",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 189.2MiB / 256MiB 73.91%",
"mtusi-messenger-lab6-api-2 188.3MiB / 256MiB 73.56%",
"mtusi-messenger-lab6-otel-collector-1 72.33MiB / 192MiB 37.67%"
]
},
{
"phase": "baseline",
"utc": "2026-11-06T14:17:25Z",
"api_memory": "198746112",
"collector_rss": "235233280",
"collector_heap": "35503232",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.7575287977999405",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3289239439676366",
"api_error_5m": "0",
"api_p99": "0.0795000000000001",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 187.5MiB / 256MiB 73.26%",
"mtusi-messenger-lab6-api-2 189.1MiB / 256MiB 73.88%",
"mtusi-messenger-lab6-otel-collector-1 72.34MiB / 192MiB 37.68%"
]
},
{
"phase": "baseline",
"utc": "2026-11-06T14:17:37Z",
"api_memory": "198746112",
"collector_rss": "235245568",
"collector_heap": "39833144",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.811751660715557",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3390945497333021",
"api_error_5m": "0",
"api_p99": "0.08075000000000006",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 188.4MiB / 256MiB 73.61%",
"mtusi-messenger-lab6-api-2 189.5MiB / 256MiB 74.01%",
"mtusi-messenger-lab6-otel-collector-1 72.34MiB / 192MiB 37.68%"
]
},
{
"phase": "down-start",
"utc": "2026-11-06T14:17:39Z",
"api_memory": "196960256",
"collector_rss": "235245568",
"collector_heap": "39833144",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.811751660715557",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3390945497333021",
"api_error_5m": "0",
"api_p99": "0.07874999999999993",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 188.4MiB / 256MiB 73.61%",
"mtusi-messenger-lab6-api-2 189.5MiB / 256MiB 74.02%",
"mtusi-messenger-lab6-otel-collector-1 72.35MiB / 192MiB 37.68%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:17:51Z",
"api_memory": "196960256",
"collector_rss": "235249664",
"collector_heap": "44557832",
"queue_logs": "5287",
"queue_traces": "17234",
"sent_spans": "4.665988470668022",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.36283485927433035",
"api_error_5m": "0",
"api_p99": "0.07950000000000007",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 189MiB / 256MiB 73.82%",
"mtusi-messenger-lab6-api-2 187.7MiB / 256MiB 73.33%",
"mtusi-messenger-lab6-otel-collector-1 72.35MiB / 192MiB 37.68%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:18:03Z",
"api_memory": "197980160",
"collector_rss": "235249664",
"collector_heap": "47533792",
"queue_logs": "6807",
"queue_traces": "22823",
"sent_spans": "4.516770034689609",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3628336289127538",
"api_error_5m": "0",
"api_p99": "0.0774999999999999",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 188.1MiB / 256MiB 73.48%",
"mtusi-messenger-lab6-api-2 188MiB / 256MiB 73.43%",
"mtusi-messenger-lab6-otel-collector-1 72.35MiB / 192MiB 37.68%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:18:15Z",
"api_memory": "197365760",
"collector_rss": "235253760",
"collector_heap": "50792392",
"queue_logs": "7567",
"queue_traces": "26898",
"sent_spans": "4.411679931095053",
"send_failed_spans": "0.11868470222008212",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3730090641202581",
"api_error_5m": "0",
"api_p99": "0.07625000000000012",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 188.4MiB / 256MiB 73.58%",
"mtusi-messenger-lab6-api-2 188.7MiB / 256MiB 73.71%",
"mtusi-messenger-lab6-otel-collector-1 72.35MiB / 192MiB 37.68%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:18:27Z",
"api_memory": "197820416",
"collector_rss": "235257856",
"collector_heap": "55635944",
"queue_logs": "10262",
"queue_traces": "35035",
"sent_spans": "4.065812586046701",
"send_failed_spans": "0.34588230506819306",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3967473499311627",
"api_error_5m": "0",
"api_p99": "0.07549999999999997",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 95.14MiB / 256MiB 37.16%",
"mtusi-messenger-lab6-api-2 78.77MiB / 256MiB 30.77%",
"mtusi-messenger-lab6-otel-collector-1 72.35MiB / 192MiB 37.68%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:18:39Z",
"api_memory": "100081664",
"collector_rss": "235257856",
"collector_heap": "58521320",
"queue_logs": "14374",
"queue_traces": "47240",
"sent_spans": "3.9247080213976298",
"send_failed_spans": "0.4002727281978568",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3968805864334682",
"api_error_5m": "0",
"api_p99": "0.07549999999999987",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 95.32MiB / 256MiB 37.23%",
"mtusi-messenger-lab6-api-2 78.8MiB / 256MiB 30.78%",
"mtusi-messenger-lab6-otel-collector-1 72.8MiB / 192MiB 37.92%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:18:51Z",
"api_memory": "100081664",
"collector_rss": "235732992",
"collector_heap": "33370496",
"queue_logs": "15134",
"queue_traces": "53761",
"sent_spans": "3.727989090798075",
"send_failed_spans": "0.45794224500249325",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.373138125557587",
"api_error_5m": "0",
"api_p99": "0.07624999999999998",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 19.49MiB / 256MiB 7.61%",
"mtusi-messenger-lab6-api-2 78.82MiB / 256MiB 30.79%",
"mtusi-messenger-lab6-otel-collector-1 72.81MiB / 192MiB 37.92%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:19:03Z",
"api_memory": "100519936",
"collector_rss": "235806720",
"collector_heap": "36385224",
"queue_logs": "16654",
"queue_traces": "54799",
"sent_spans": "3.3752039539072647",
"send_failed_spans": "0.5495306940029918",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3799224551131795",
"api_error_5m": "0",
"api_p99": "0.07549999999999987",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 19.49MiB / 256MiB 7.61%",
"mtusi-messenger-lab6-api-2 78.88MiB / 256MiB 30.81%",
"mtusi-messenger-lab6-otel-collector-1 72.81MiB / 192MiB 37.92%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:19:16Z",
"api_memory": "20692992",
"collector_rss": "235880448",
"collector_heap": "41257584",
"queue_logs": "19142",
"queue_traces": "68887",
"sent_spans": "3.065376917945297",
"send_failed_spans": "0.6537691794529688",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3769179452968646",
"api_error_5m": "0",
"api_p99": "0.07575000000000007",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 19.49MiB / 256MiB 7.61%",
"mtusi-messenger-lab6-api-2 78.9MiB / 256MiB 30.82%",
"mtusi-messenger-lab6-otel-collector-1 72.82MiB / 192MiB 37.93%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:19:28Z",
"api_memory": "20959232",
"collector_rss": "235880448",
"collector_heap": "44260552",
"queue_logs": "20661",
"queue_traces": "65858",
"sent_spans": "2.924016282225238",
"send_failed_spans": "0.8582089552238806",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3799185888738128",
"api_error_5m": "0",
"api_p99": "0.07624999999999983",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 19.5MiB / 256MiB 7.62%",
"mtusi-messenger-lab6-api-2 78.91MiB / 256MiB 30.83%",
"mtusi-messenger-lab6-otel-collector-1 72.82MiB / 192MiB 37.93%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:19:40Z",
"api_memory": "20717568",
"collector_rss": "235888640",
"collector_heap": "47361016",
"queue_logs": "19261",
"queue_traces": "72770",
"sent_spans": "2.6289277027920908",
"send_failed_spans": "0.8582176887824503",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3663537960019945",
"api_error_5m": "0",
"api_p99": "0.07674999999999987",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 19.52MiB / 256MiB 7.62%",
"mtusi-messenger-lab6-api-2 78.95MiB / 256MiB 30.84%",
"mtusi-messenger-lab6-otel-collector-1 72.83MiB / 192MiB 37.93%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:19:52Z",
"api_memory": "20717568",
"collector_rss": "235954176",
"collector_heap": "52161840",
"queue_logs": "23811",
"queue_traces": "87554",
"sent_spans": "2.2278663008941986",
"send_failed_spans": "0.9460802099687694",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3628336289127538",
"api_error_5m": "0",
"api_p99": "0.07875",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.1MiB / 256MiB 7.07%",
"mtusi-messenger-lab6-api-2 79.09MiB / 256MiB 30.89%",
"mtusi-messenger-lab6-otel-collector-1 72.83MiB / 192MiB 37.93%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:20:04Z",
"api_memory": "20987904",
"collector_rss": "235962368",
"collector_heap": "55371152",
"queue_logs": "24571",
"queue_traces": "90306",
"sent_spans": "2.078684833400023",
"send_failed_spans": "1.047819924177173",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.38318333796770415",
"api_error_5m": "0",
"api_p99": "0.07774999999999985",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.1MiB / 256MiB 7.07%",
"mtusi-messenger-lab6-api-2 15.01MiB / 256MiB 5.86%",
"mtusi-messenger-lab6-otel-collector-1 68.88MiB / 192MiB 35.87%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:20:16Z",
"api_memory": "19234816",
"collector_rss": "231804928",
"collector_heap": "30398280",
"queue_logs": "25659",
"queue_traces": "96377",
"sent_spans": "1.8854040563315326",
"send_failed_spans": "1.2546753612278185",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3831846373479554",
"api_error_5m": "0",
"api_p99": "0.07599999999999993",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.09MiB / 256MiB 7.07%",
"mtusi-messenger-lab6-api-2 15.02MiB / 256MiB 5.87%",
"mtusi-messenger-lab6-otel-collector-1 68.87MiB / 192MiB 35.87%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:20:28Z",
"api_memory": "19234816",
"collector_rss": "231813120",
"collector_heap": "33688048",
"queue_logs": "27594",
"queue_traces": "101221",
"sent_spans": "1.831147824494654",
"send_failed_spans": "1.3462327524525513",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4103127532663947",
"api_error_5m": "0",
"api_p99": "0.07500000000000002",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.09MiB / 256MiB 7.07%",
"mtusi-messenger-lab6-api-2 15.02MiB / 256MiB 5.87%",
"mtusi-messenger-lab6-otel-collector-1 68.89MiB / 192MiB 35.88%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:20:40Z",
"api_memory": "19496960",
"collector_rss": "231817216",
"collector_heap": "36910680",
"queue_logs": "30512",
"queue_traces": "113187",
"sent_spans": "1.7910630026764178",
"send_failed_spans": "1.3975718884520534",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4240205972245308",
"api_error_5m": "0",
"api_p99": "0.07324999999999986",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.09MiB / 256MiB 7.07%",
"mtusi-messenger-lab6-api-2 15.05MiB / 256MiB 5.88%",
"mtusi-messenger-lab6-otel-collector-1 68.89MiB / 192MiB 35.88%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:20:52Z",
"api_memory": "19496960",
"collector_rss": "231821312",
"collector_heap": "41366880",
"queue_logs": "35822",
"queue_traces": "128858",
"sent_spans": "1.7469589345925005",
"send_failed_spans": "1.4518416000108547",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.44776423177904867",
"api_error_5m": "0",
"api_p99": "0.07325",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 17.49MiB / 256MiB 6.83%",
"mtusi-messenger-lab6-api-2 15.05MiB / 256MiB 5.88%",
"mtusi-messenger-lab6-otel-collector-1 68.89MiB / 192MiB 35.88%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:21:04Z",
"api_memory": "19496960",
"collector_rss": "231821312",
"collector_heap": "44702392",
"queue_logs": "35822",
"queue_traces": "130372",
"sent_spans": "1.6994745536759195",
"send_failed_spans": "1.5400428091194958",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.454550080224697",
"api_error_5m": "0",
"api_p99": "0.07250000000000008",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 17.48MiB / 256MiB 6.83%",
"mtusi-messenger-lab6-api-2 15.05MiB / 256MiB 5.88%",
"mtusi-messenger-lab6-otel-collector-1 68.89MiB / 192MiB 35.88%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:21:17Z",
"api_memory": "18595840",
"collector_rss": "231829504",
"collector_heap": "49175936",
"queue_logs": "38101",
"queue_traces": "137284",
"sent_spans": "1.6587404427378376",
"send_failed_spans": "1.5942904050854472",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.47150290703590886",
"api_error_5m": "0",
"api_p99": "0.07174999999999984",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 17.48MiB / 256MiB 6.83%",
"mtusi-messenger-lab6-api-2 14.72MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.89MiB / 192MiB 35.88%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:21:29Z",
"api_memory": "18595840",
"collector_rss": "231845888",
"collector_heap": "28314784",
"queue_logs": "41436",
"queue_traces": "151031",
"sent_spans": "1.6553651810216452",
"send_failed_spans": "1.6519730392572565",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4579391381924633",
"api_error_5m": "0",
"api_p99": "0.07000000000000008",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 17.48MiB / 256MiB 6.83%",
"mtusi-messenger-lab6-api-2 14.72MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.91MiB / 192MiB 35.89%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:21:41Z",
"api_memory": "18595840",
"collector_rss": "231845888",
"collector_heap": "32877592",
"queue_logs": "43716",
"queue_traces": "160304",
"sent_spans": "1.139763499073942",
"send_failed_spans": "1.6519786430030055",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4308034654237817",
"api_error_5m": "0",
"api_p99": "0.02295625",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 17.48MiB / 256MiB 6.83%",
"mtusi-messenger-lab6-api-2 14.72MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.91MiB / 192MiB 35.89%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:21:53Z",
"api_memory": "18595840",
"collector_rss": "231845888",
"collector_heap": "36050000",
"queue_logs": "40381",
"queue_traces": "150406",
"sent_spans": "0.7940305192755999",
"send_failed_spans": "1.9816830053715822",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4173750165423025",
"api_error_5m": "0",
"api_p99": "0.022835714285714282",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.2MiB / 256MiB 7.11%",
"mtusi-messenger-lab6-api-2 14.73MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.91MiB / 192MiB 35.89%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:22:05Z",
"api_memory": "18595840",
"collector_rss": "231845888",
"collector_heap": "39159560",
"queue_logs": "43076",
"queue_traces": "158459",
"sent_spans": "0.6447300108246775",
"send_failed_spans": "1.9816964543242719",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.43773774419149153",
"api_error_5m": "0",
"api_p99": "0.022835714285714286",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.36MiB / 256MiB 7.17%",
"mtusi-messenger-lab6-api-2 14.73MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.91MiB / 192MiB 35.89%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:22:17Z",
"api_memory": "19341312",
"collector_rss": "231845888",
"collector_heap": "43874408",
"queue_logs": "47931",
"queue_traces": "174667",
"sent_spans": "0.4513125390232647",
"send_failed_spans": "2.0359964166463067",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.458099193745419",
"api_error_5m": "0",
"api_p99": "0.022975",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.37MiB / 256MiB 7.17%",
"mtusi-messenger-lab6-api-2 14.73MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.91MiB / 192MiB 35.89%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:22:29Z",
"api_memory": "19775488",
"collector_rss": "231845888",
"collector_heap": "47045432",
"queue_logs": "50851",
"queue_traces": "184628",
"sent_spans": "0.2816433038456187",
"send_failed_spans": "2.1242013037031002",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4343414806293879",
"api_error_5m": "0",
"api_p99": "0.023133333333333336",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.37MiB / 256MiB 7.17%",
"mtusi-messenger-lab6-api-2 14.73MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.91MiB / 192MiB 35.89%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:22:41Z",
"api_memory": "19701760",
"collector_rss": "231858176",
"collector_heap": "51689352",
"queue_logs": "53241",
"queue_traces": "192480",
"sent_spans": "0",
"send_failed_spans": "2.178501381074863",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.43094965015032344",
"api_error_5m": "0",
"api_p99": "0.023149999999999997",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.54MiB / 256MiB 7.24%",
"mtusi-messenger-lab6-api-2 14.73MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.93MiB / 192MiB 35.90%"
]
},
{
"phase": "recovery-start",
"utc": "2026-11-06T14:22:44Z",
"api_memory": "19701760",
"collector_rss": "231858176",
"collector_heap": "51689352",
"queue_logs": "53241",
"queue_traces": "192480",
"sent_spans": "0",
"send_failed_spans": "2.178501381074863",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4309496501503233",
"api_error_5m": "0",
"api_p99": "0.023149999999999997",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.54MiB / 256MiB 7.24%",
"mtusi-messenger-lab6-api-2 14.73MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.93MiB / 192MiB 35.90%"
]
},
{
"phase": "recovery",
"utc": "2026-11-06T14:22:55Z",
"api_memory": "17846272",
"collector_rss": "231858176",
"collector_heap": "33163992",
"queue_logs": "0",
"queue_traces": "209455",
"sent_spans": "0",
"send_failed_spans": "2.19221413627764",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4471182561053331",
"api_error_5m": "0",
"api_p99": "0.02316666666666667",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.53MiB / 256MiB 7.24%",
"mtusi-messenger-lab6-api-2 14.72MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.93MiB / 192MiB 35.90%"
]
},
{
"phase": "recovery",
"utc": "2026-11-06T14:23:07Z",
"api_memory": "17846272",
"collector_rss": "233185280",
"collector_heap": "39395888",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.5300766550049705",
"send_failed_spans": "2.1106424564892077",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.42755779665215454",
"api_error_5m": "0",
"api_p99": "0.0233",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.54MiB / 256MiB 7.24%",
"mtusi-messenger-lab6-api-2 14.73MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 70.2MiB / 192MiB 36.56%"
]
},
{
"phase": "recovery",
"utc": "2026-11-06T14:23:20Z",
"api_memory": "19693568",
"collector_rss": "233189376",
"collector_heap": "42195304",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.635190802912773",
"send_failed_spans": "1.8832583423254678",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4207640260330775",
"api_error_5m": "0",
"api_p99": "0.023181249999999997",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.54MiB / 256MiB 7.24%",
"mtusi-messenger-lab6-api-2 14.05MiB / 256MiB 5.49%",
"mtusi-messenger-lab6-otel-collector-1 70.2MiB / 192MiB 36.56%"
]
}
]
+870
View File
@@ -0,0 +1,870 @@
UTC 2026-11-06T14:30:14Z
HEAD 255f601a9946187c4c330828426c6458a89aad2b
load_exit= 0
load_summary= {"counters": {"accepted": 31, "ready": 31, "failed": 0, "messages": 125, "uploads": 31, "dropped": 0}, "failures": 0, "failures_by_reason": {}, "duration_s": 775.03}
[
{
"phase": "baseline",
"utc": "2026-11-06T14:16:36Z",
"api_memory": "19447808",
"collector_rss": "235225088",
"collector_heap": "49942672",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.860972126582021",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3324321482240321",
"api_error_5m": "0",
"api_p99": "0.02352142857142857",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 189.2MiB / 256MiB 73.92%",
"mtusi-messenger-lab6-api-2 187.9MiB / 256MiB 73.40%",
"mtusi-messenger-lab6-otel-collector-1 72.32MiB / 192MiB 37.67%"
]
},
{
"phase": "baseline",
"utc": "2026-11-06T14:16:48Z",
"api_memory": "198602752",
"collector_rss": "235229184",
"collector_heap": "52750392",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.8270668530102165",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.342609804746333",
"api_error_5m": "0",
"api_p99": "0.07924999999999999",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 188.9MiB / 256MiB 73.78%",
"mtusi-messenger-lab6-api-2 188.1MiB / 256MiB 73.46%",
"mtusi-messenger-lab6-otel-collector-1 72.33MiB / 192MiB 37.67%"
]
},
{
"phase": "baseline",
"utc": "2026-11-06T14:17:00Z",
"api_memory": "197406720",
"collector_rss": "235229184",
"collector_heap": "55751416",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.906714773043249",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3424866565842212",
"api_error_5m": "0",
"api_p99": "0.07849999999999993",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 189MiB / 256MiB 73.84%",
"mtusi-messenger-lab6-api-2 188.1MiB / 256MiB 73.50%",
"mtusi-messenger-lab6-otel-collector-1 72.33MiB / 192MiB 37.67%"
]
},
{
"phase": "baseline",
"utc": "2026-11-06T14:17:12Z",
"api_memory": "198733824",
"collector_rss": "235233280",
"collector_heap": "32717896",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.910172330771997",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3424913020773284",
"api_error_5m": "0",
"api_p99": "0.07900000000000006",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 189.2MiB / 256MiB 73.91%",
"mtusi-messenger-lab6-api-2 188.3MiB / 256MiB 73.56%",
"mtusi-messenger-lab6-otel-collector-1 72.33MiB / 192MiB 37.67%"
]
},
{
"phase": "baseline",
"utc": "2026-11-06T14:17:25Z",
"api_memory": "198746112",
"collector_rss": "235233280",
"collector_heap": "35503232",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.7575287977999405",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3289239439676366",
"api_error_5m": "0",
"api_p99": "0.0795000000000001",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 187.5MiB / 256MiB 73.26%",
"mtusi-messenger-lab6-api-2 189.1MiB / 256MiB 73.88%",
"mtusi-messenger-lab6-otel-collector-1 72.34MiB / 192MiB 37.68%"
]
},
{
"phase": "baseline",
"utc": "2026-11-06T14:17:37Z",
"api_memory": "198746112",
"collector_rss": "235245568",
"collector_heap": "39833144",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.811751660715557",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3390945497333021",
"api_error_5m": "0",
"api_p99": "0.08075000000000006",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 188.4MiB / 256MiB 73.61%",
"mtusi-messenger-lab6-api-2 189.5MiB / 256MiB 74.01%",
"mtusi-messenger-lab6-otel-collector-1 72.34MiB / 192MiB 37.68%"
]
},
{
"phase": "down-start",
"utc": "2026-11-06T14:17:39Z",
"api_memory": "196960256",
"collector_rss": "235245568",
"collector_heap": "39833144",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.811751660715557",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3390945497333021",
"api_error_5m": "0",
"api_p99": "0.07874999999999993",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 188.4MiB / 256MiB 73.61%",
"mtusi-messenger-lab6-api-2 189.5MiB / 256MiB 74.02%",
"mtusi-messenger-lab6-otel-collector-1 72.35MiB / 192MiB 37.68%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:17:51Z",
"api_memory": "196960256",
"collector_rss": "235249664",
"collector_heap": "44557832",
"queue_logs": "5287",
"queue_traces": "17234",
"sent_spans": "4.665988470668022",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.36283485927433035",
"api_error_5m": "0",
"api_p99": "0.07950000000000007",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 189MiB / 256MiB 73.82%",
"mtusi-messenger-lab6-api-2 187.7MiB / 256MiB 73.33%",
"mtusi-messenger-lab6-otel-collector-1 72.35MiB / 192MiB 37.68%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:18:03Z",
"api_memory": "197980160",
"collector_rss": "235249664",
"collector_heap": "47533792",
"queue_logs": "6807",
"queue_traces": "22823",
"sent_spans": "4.516770034689609",
"send_failed_spans": "0",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3628336289127538",
"api_error_5m": "0",
"api_p99": "0.0774999999999999",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 188.1MiB / 256MiB 73.48%",
"mtusi-messenger-lab6-api-2 188MiB / 256MiB 73.43%",
"mtusi-messenger-lab6-otel-collector-1 72.35MiB / 192MiB 37.68%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:18:15Z",
"api_memory": "197365760",
"collector_rss": "235253760",
"collector_heap": "50792392",
"queue_logs": "7567",
"queue_traces": "26898",
"sent_spans": "4.411679931095053",
"send_failed_spans": "0.11868470222008212",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3730090641202581",
"api_error_5m": "0",
"api_p99": "0.07625000000000012",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 188.4MiB / 256MiB 73.58%",
"mtusi-messenger-lab6-api-2 188.7MiB / 256MiB 73.71%",
"mtusi-messenger-lab6-otel-collector-1 72.35MiB / 192MiB 37.68%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:18:27Z",
"api_memory": "197820416",
"collector_rss": "235257856",
"collector_heap": "55635944",
"queue_logs": "10262",
"queue_traces": "35035",
"sent_spans": "4.065812586046701",
"send_failed_spans": "0.34588230506819306",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3967473499311627",
"api_error_5m": "0",
"api_p99": "0.07549999999999997",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 95.14MiB / 256MiB 37.16%",
"mtusi-messenger-lab6-api-2 78.77MiB / 256MiB 30.77%",
"mtusi-messenger-lab6-otel-collector-1 72.35MiB / 192MiB 37.68%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:18:39Z",
"api_memory": "100081664",
"collector_rss": "235257856",
"collector_heap": "58521320",
"queue_logs": "14374",
"queue_traces": "47240",
"sent_spans": "3.9247080213976298",
"send_failed_spans": "0.4002727281978568",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3968805864334682",
"api_error_5m": "0",
"api_p99": "0.07549999999999987",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 95.32MiB / 256MiB 37.23%",
"mtusi-messenger-lab6-api-2 78.8MiB / 256MiB 30.78%",
"mtusi-messenger-lab6-otel-collector-1 72.8MiB / 192MiB 37.92%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:18:51Z",
"api_memory": "100081664",
"collector_rss": "235732992",
"collector_heap": "33370496",
"queue_logs": "15134",
"queue_traces": "53761",
"sent_spans": "3.727989090798075",
"send_failed_spans": "0.45794224500249325",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.373138125557587",
"api_error_5m": "0",
"api_p99": "0.07624999999999998",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 19.49MiB / 256MiB 7.61%",
"mtusi-messenger-lab6-api-2 78.82MiB / 256MiB 30.79%",
"mtusi-messenger-lab6-otel-collector-1 72.81MiB / 192MiB 37.92%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:19:03Z",
"api_memory": "100519936",
"collector_rss": "235806720",
"collector_heap": "36385224",
"queue_logs": "16654",
"queue_traces": "54799",
"sent_spans": "3.3752039539072647",
"send_failed_spans": "0.5495306940029918",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3799224551131795",
"api_error_5m": "0",
"api_p99": "0.07549999999999987",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 19.49MiB / 256MiB 7.61%",
"mtusi-messenger-lab6-api-2 78.88MiB / 256MiB 30.81%",
"mtusi-messenger-lab6-otel-collector-1 72.81MiB / 192MiB 37.92%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:19:16Z",
"api_memory": "20692992",
"collector_rss": "235880448",
"collector_heap": "41257584",
"queue_logs": "19142",
"queue_traces": "68887",
"sent_spans": "3.065376917945297",
"send_failed_spans": "0.6537691794529688",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3769179452968646",
"api_error_5m": "0",
"api_p99": "0.07575000000000007",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 19.49MiB / 256MiB 7.61%",
"mtusi-messenger-lab6-api-2 78.9MiB / 256MiB 30.82%",
"mtusi-messenger-lab6-otel-collector-1 72.82MiB / 192MiB 37.93%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:19:28Z",
"api_memory": "20959232",
"collector_rss": "235880448",
"collector_heap": "44260552",
"queue_logs": "20661",
"queue_traces": "65858",
"sent_spans": "2.924016282225238",
"send_failed_spans": "0.8582089552238806",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3799185888738128",
"api_error_5m": "0",
"api_p99": "0.07624999999999983",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 19.5MiB / 256MiB 7.62%",
"mtusi-messenger-lab6-api-2 78.91MiB / 256MiB 30.83%",
"mtusi-messenger-lab6-otel-collector-1 72.82MiB / 192MiB 37.93%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:19:40Z",
"api_memory": "20717568",
"collector_rss": "235888640",
"collector_heap": "47361016",
"queue_logs": "19261",
"queue_traces": "72770",
"sent_spans": "2.6289277027920908",
"send_failed_spans": "0.8582176887824503",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3663537960019945",
"api_error_5m": "0",
"api_p99": "0.07674999999999987",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 19.52MiB / 256MiB 7.62%",
"mtusi-messenger-lab6-api-2 78.95MiB / 256MiB 30.84%",
"mtusi-messenger-lab6-otel-collector-1 72.83MiB / 192MiB 37.93%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:19:52Z",
"api_memory": "20717568",
"collector_rss": "235954176",
"collector_heap": "52161840",
"queue_logs": "23811",
"queue_traces": "87554",
"sent_spans": "2.2278663008941986",
"send_failed_spans": "0.9460802099687694",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3628336289127538",
"api_error_5m": "0",
"api_p99": "0.07875",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.1MiB / 256MiB 7.07%",
"mtusi-messenger-lab6-api-2 79.09MiB / 256MiB 30.89%",
"mtusi-messenger-lab6-otel-collector-1 72.83MiB / 192MiB 37.93%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:20:04Z",
"api_memory": "20987904",
"collector_rss": "235962368",
"collector_heap": "55371152",
"queue_logs": "24571",
"queue_traces": "90306",
"sent_spans": "2.078684833400023",
"send_failed_spans": "1.047819924177173",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.38318333796770415",
"api_error_5m": "0",
"api_p99": "0.07774999999999985",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.1MiB / 256MiB 7.07%",
"mtusi-messenger-lab6-api-2 15.01MiB / 256MiB 5.86%",
"mtusi-messenger-lab6-otel-collector-1 68.88MiB / 192MiB 35.87%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:20:16Z",
"api_memory": "19234816",
"collector_rss": "231804928",
"collector_heap": "30398280",
"queue_logs": "25659",
"queue_traces": "96377",
"sent_spans": "1.8854040563315326",
"send_failed_spans": "1.2546753612278185",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.3831846373479554",
"api_error_5m": "0",
"api_p99": "0.07599999999999993",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.09MiB / 256MiB 7.07%",
"mtusi-messenger-lab6-api-2 15.02MiB / 256MiB 5.87%",
"mtusi-messenger-lab6-otel-collector-1 68.87MiB / 192MiB 35.87%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:20:28Z",
"api_memory": "19234816",
"collector_rss": "231813120",
"collector_heap": "33688048",
"queue_logs": "27594",
"queue_traces": "101221",
"sent_spans": "1.831147824494654",
"send_failed_spans": "1.3462327524525513",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4103127532663947",
"api_error_5m": "0",
"api_p99": "0.07500000000000002",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.09MiB / 256MiB 7.07%",
"mtusi-messenger-lab6-api-2 15.02MiB / 256MiB 5.87%",
"mtusi-messenger-lab6-otel-collector-1 68.89MiB / 192MiB 35.88%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:20:40Z",
"api_memory": "19496960",
"collector_rss": "231817216",
"collector_heap": "36910680",
"queue_logs": "30512",
"queue_traces": "113187",
"sent_spans": "1.7910630026764178",
"send_failed_spans": "1.3975718884520534",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4240205972245308",
"api_error_5m": "0",
"api_p99": "0.07324999999999986",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.09MiB / 256MiB 7.07%",
"mtusi-messenger-lab6-api-2 15.05MiB / 256MiB 5.88%",
"mtusi-messenger-lab6-otel-collector-1 68.89MiB / 192MiB 35.88%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:20:52Z",
"api_memory": "19496960",
"collector_rss": "231821312",
"collector_heap": "41366880",
"queue_logs": "35822",
"queue_traces": "128858",
"sent_spans": "1.7469589345925005",
"send_failed_spans": "1.4518416000108547",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.44776423177904867",
"api_error_5m": "0",
"api_p99": "0.07325",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 17.49MiB / 256MiB 6.83%",
"mtusi-messenger-lab6-api-2 15.05MiB / 256MiB 5.88%",
"mtusi-messenger-lab6-otel-collector-1 68.89MiB / 192MiB 35.88%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:21:04Z",
"api_memory": "19496960",
"collector_rss": "231821312",
"collector_heap": "44702392",
"queue_logs": "35822",
"queue_traces": "130372",
"sent_spans": "1.6994745536759195",
"send_failed_spans": "1.5400428091194958",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.454550080224697",
"api_error_5m": "0",
"api_p99": "0.07250000000000008",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 17.48MiB / 256MiB 6.83%",
"mtusi-messenger-lab6-api-2 15.05MiB / 256MiB 5.88%",
"mtusi-messenger-lab6-otel-collector-1 68.89MiB / 192MiB 35.88%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:21:17Z",
"api_memory": "18595840",
"collector_rss": "231829504",
"collector_heap": "49175936",
"queue_logs": "38101",
"queue_traces": "137284",
"sent_spans": "1.6587404427378376",
"send_failed_spans": "1.5942904050854472",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.47150290703590886",
"api_error_5m": "0",
"api_p99": "0.07174999999999984",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 17.48MiB / 256MiB 6.83%",
"mtusi-messenger-lab6-api-2 14.72MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.89MiB / 192MiB 35.88%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:21:29Z",
"api_memory": "18595840",
"collector_rss": "231845888",
"collector_heap": "28314784",
"queue_logs": "41436",
"queue_traces": "151031",
"sent_spans": "1.6553651810216452",
"send_failed_spans": "1.6519730392572565",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4579391381924633",
"api_error_5m": "0",
"api_p99": "0.07000000000000008",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 17.48MiB / 256MiB 6.83%",
"mtusi-messenger-lab6-api-2 14.72MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.91MiB / 192MiB 35.89%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:21:41Z",
"api_memory": "18595840",
"collector_rss": "231845888",
"collector_heap": "32877592",
"queue_logs": "43716",
"queue_traces": "160304",
"sent_spans": "1.139763499073942",
"send_failed_spans": "1.6519786430030055",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4308034654237817",
"api_error_5m": "0",
"api_p99": "0.02295625",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 17.48MiB / 256MiB 6.83%",
"mtusi-messenger-lab6-api-2 14.72MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.91MiB / 192MiB 35.89%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:21:53Z",
"api_memory": "18595840",
"collector_rss": "231845888",
"collector_heap": "36050000",
"queue_logs": "40381",
"queue_traces": "150406",
"sent_spans": "0.7940305192755999",
"send_failed_spans": "1.9816830053715822",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4173750165423025",
"api_error_5m": "0",
"api_p99": "0.022835714285714282",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.2MiB / 256MiB 7.11%",
"mtusi-messenger-lab6-api-2 14.73MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.91MiB / 192MiB 35.89%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:22:05Z",
"api_memory": "18595840",
"collector_rss": "231845888",
"collector_heap": "39159560",
"queue_logs": "43076",
"queue_traces": "158459",
"sent_spans": "0.6447300108246775",
"send_failed_spans": "1.9816964543242719",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.43773774419149153",
"api_error_5m": "0",
"api_p99": "0.022835714285714286",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.36MiB / 256MiB 7.17%",
"mtusi-messenger-lab6-api-2 14.73MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.91MiB / 192MiB 35.89%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:22:17Z",
"api_memory": "19341312",
"collector_rss": "231845888",
"collector_heap": "43874408",
"queue_logs": "47931",
"queue_traces": "174667",
"sent_spans": "0.4513125390232647",
"send_failed_spans": "2.0359964166463067",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.458099193745419",
"api_error_5m": "0",
"api_p99": "0.022975",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.37MiB / 256MiB 7.17%",
"mtusi-messenger-lab6-api-2 14.73MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.91MiB / 192MiB 35.89%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:22:29Z",
"api_memory": "19775488",
"collector_rss": "231845888",
"collector_heap": "47045432",
"queue_logs": "50851",
"queue_traces": "184628",
"sent_spans": "0.2816433038456187",
"send_failed_spans": "2.1242013037031002",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4343414806293879",
"api_error_5m": "0",
"api_p99": "0.023133333333333336",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.37MiB / 256MiB 7.17%",
"mtusi-messenger-lab6-api-2 14.73MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.91MiB / 192MiB 35.89%"
]
},
{
"phase": "down",
"utc": "2026-11-06T14:22:41Z",
"api_memory": "19701760",
"collector_rss": "231858176",
"collector_heap": "51689352",
"queue_logs": "53241",
"queue_traces": "192480",
"sent_spans": "0",
"send_failed_spans": "2.178501381074863",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.43094965015032344",
"api_error_5m": "0",
"api_p99": "0.023149999999999997",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.54MiB / 256MiB 7.24%",
"mtusi-messenger-lab6-api-2 14.73MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.93MiB / 192MiB 35.90%"
]
},
{
"phase": "recovery-start",
"utc": "2026-11-06T14:22:44Z",
"api_memory": "19701760",
"collector_rss": "231858176",
"collector_heap": "51689352",
"queue_logs": "53241",
"queue_traces": "192480",
"sent_spans": "0",
"send_failed_spans": "2.178501381074863",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4309496501503233",
"api_error_5m": "0",
"api_p99": "0.023149999999999997",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.54MiB / 256MiB 7.24%",
"mtusi-messenger-lab6-api-2 14.73MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.93MiB / 192MiB 35.90%"
]
},
{
"phase": "recovery",
"utc": "2026-11-06T14:22:55Z",
"api_memory": "17846272",
"collector_rss": "231858176",
"collector_heap": "33163992",
"queue_logs": "0",
"queue_traces": "209455",
"sent_spans": "0",
"send_failed_spans": "2.19221413627764",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4471182561053331",
"api_error_5m": "0",
"api_p99": "0.02316666666666667",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.53MiB / 256MiB 7.24%",
"mtusi-messenger-lab6-api-2 14.72MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 68.93MiB / 192MiB 35.90%"
]
},
{
"phase": "recovery",
"utc": "2026-11-06T14:23:07Z",
"api_memory": "17846272",
"collector_rss": "233185280",
"collector_heap": "39395888",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.5300766550049705",
"send_failed_spans": "2.1106424564892077",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.42755779665215454",
"api_error_5m": "0",
"api_p99": "0.0233",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.54MiB / 256MiB 7.24%",
"mtusi-messenger-lab6-api-2 14.73MiB / 256MiB 5.75%",
"mtusi-messenger-lab6-otel-collector-1 70.2MiB / 192MiB 36.56%"
]
},
{
"phase": "recovery",
"utc": "2026-11-06T14:23:20Z",
"api_memory": "19693568",
"collector_rss": "233189376",
"collector_heap": "42195304",
"queue_logs": "0",
"queue_traces": "0",
"sent_spans": "4.635190802912773",
"send_failed_spans": "1.8832583423254678",
"enqueue_failed_spans": "MISSING",
"accepted_logs": "0.4207640260330775",
"api_error_5m": "0",
"api_p99": "0.023181249999999997",
"api_instances": [
"2f5a79e18ab9",
"709c0280d839"
],
"cgroup": [
"mtusi-messenger-lab6-api-1 18.54MiB / 256MiB 7.24%",
"mtusi-messenger-lab6-api-2 14.05MiB / 256MiB 5.49%",
"mtusi-messenger-lab6-otel-collector-1 70.2MiB / 192MiB 36.56%"
]
}
]
+5
View File
@@ -0,0 +1,5 @@
env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 scripts/check_evidence.py
PASS: evidence has no obvious secrets, signed URLs or bearer tokens
env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 scripts/lab6_verify.py --base-url "http://localhost:8080"
NOTE: created request_id=lab6-verify-4bb0892c6612450eaaa6eef0fc44e854
PASS: lab6 strict telemetry gate (signals, trace/log correlation, labels, Grafana, rules, privacy sentinels)
+148
View File
@@ -0,0 +1,148 @@
{
"traces": [
{
"traceID": "ab5d63adca313645838a34fc3ad7f8ca",
"rootServiceName": "messenger-api",
"rootTraceName": "POST /api/v1/chats/{chat_id}/attachments",
"startTimeUnixNano": "1793802395453580634",
"durationMs": 331
},
{
"traceID": "5cf3ce94777116f51994548bcf747052",
"rootServiceName": "messenger-api",
"rootTraceName": "POST /api/v1/chats/{chat_id}/attachments",
"startTimeUnixNano": "1793802394113546330",
"durationMs": 684
},
{
"traceID": "280c2940aca363c6df3cdb2f96d49986",
"rootServiceName": "messenger-relay",
"rootTraceName": "job.requeue",
"startTimeUnixNano": "1793802302815608431",
"durationMs": 10295
},
{
"traceID": "2baabe5633a1fdffc903471dbf0ad125",
"rootServiceName": "<root span not yet received>",
"startTimeUnixNano": "1793802286828434101",
"durationMs": 26284
},
{
"traceID": "82ccdbe9637df43f06ffe9395c93b2c0",
"rootServiceName": "<root span not yet received>",
"startTimeUnixNano": "1793802283997651340",
"durationMs": 66
},
{
"traceID": "8f101cc3cd1062641cd9eaa83c59c643",
"rootServiceName": "messenger-relay",
"rootTraceName": "job.requeue",
"startTimeUnixNano": "1793802249508919589",
"durationMs": 1057
},
{
"traceID": "61b680a368c7eec86c2102ea3615e732",
"rootServiceName": "messenger-api",
"rootTraceName": "POST /api/v1/chats/{chat_id}/attachments",
"startTimeUnixNano": "1793802231049714535",
"durationMs": 6522
},
{
"traceID": "1767197f0752b7ebbfff4207d9ce968",
"rootServiceName": "messenger-api",
"rootTraceName": "POST /api/v1/chats/{chat_id}/attachments",
"startTimeUnixNano": "1793802229382459658",
"durationMs": 5632
},
{
"traceID": "3a1357d5589a82f6a6c0c39e705f3ecb",
"rootServiceName": "messenger-relay",
"rootTraceName": "job.requeue",
"startTimeUnixNano": "1793802226689471392",
"durationMs": 1053
},
{
"traceID": "74f025e1b6e88b5d9cfdc4f99069efdf",
"rootServiceName": "messenger-api",
"rootTraceName": "POST /api/v1/chats/{chat_id}/attachments",
"startTimeUnixNano": "1793802208176199125",
"durationMs": 6582
},
{
"traceID": "b9167e578de7e82af6e6105d5ec0a2e9",
"rootServiceName": "messenger-api",
"rootTraceName": "POST /api/v1/chats/{chat_id}/attachments",
"startTimeUnixNano": "1793802200775289740",
"durationMs": 4342
},
{
"traceID": "14e39e95e83064c0adfcba0877b44c49",
"rootServiceName": "messenger-relay",
"rootTraceName": "job.publish",
"startTimeUnixNano": "1793802200114468641",
"durationMs": 36
},
{
"traceID": "887eb29fbf7ad92e0c27c32e027f32b0",
"rootServiceName": "messenger-relay",
"rootTraceName": "job.publish",
"startTimeUnixNano": "1793802197116311702",
"durationMs": 9
},
{
"traceID": "5672c6454888c536c5f006c8266522a4",
"rootServiceName": "messenger-api",
"rootTraceName": "POST /api/v1/chats/{chat_id}/attachments",
"startTimeUnixNano": "1793802194349063459",
"durationMs": 2399
},
{
"traceID": "40ef0be37efbba23776a3dc2b83bd7f5",
"rootServiceName": "messenger-relay",
"rootTraceName": "job.publish",
"startTimeUnixNano": "1793802192116769803",
"durationMs": 1754
},
{
"traceID": "c16f04beae65b3b9f62855e8a7ea984e",
"rootServiceName": "messenger-api",
"rootTraceName": "POST /api/v1/chats/{chat_id}/attachments",
"startTimeUnixNano": "1793802188641651123",
"durationMs": 481
},
{
"traceID": "c7c01244d150f988c198e5b23767d8c2",
"rootServiceName": "messenger-relay",
"rootTraceName": "job.publish",
"startTimeUnixNano": "1793802186116479256",
"durationMs": 46
},
{
"traceID": "2abac52091c4e48c83f257b01c8b9afb",
"rootServiceName": "messenger-api",
"rootTraceName": "POST /api/v1/chats/{chat_id}/attachments",
"startTimeUnixNano": "1793802180136938542",
"durationMs": 987
},
{
"traceID": "c21959639cf799d78b3dd30fa8fb14cc",
"rootServiceName": "messenger-api",
"rootTraceName": "POST /api/v1/chats/{chat_id}/attachments",
"startTimeUnixNano": "1793802140038435535",
"durationMs": 108
},
{
"traceID": "b9e0d22c746e6dedefd32b6ea29682e0",
"rootServiceName": "messenger-api",
"rootTraceName": "POST /api/v1/chats/{chat_id}/attachments",
"startTimeUnixNano": "1793802138735163857",
"durationMs": 427
}
],
"metrics": {
"inspectedTraces": 3709,
"inspectedBytes": "595516",
"completedJobs": 1,
"totalJobs": 1
}
}
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
+10
View File
@@ -0,0 +1,10 @@
UTC 2026-11-06T13:33:27Z
HEAD 77fe98d775fdc07d5f9bfe04f7b4133c96c0849c
trace_id 8fde5dba009f11d058f58817b09c6e33
messenger-api POST /api/v1/chats/{chat_id}/attachments kind SPAN_KIND_SERVER attempt None outcome None parent None
messenger-relay job.publish kind SPAN_KIND_PRODUCER attempt 1 outcome None parent PG9WhmyuKyQ=
messenger-worker job.process kind SPAN_KIND_CONSUMER attempt 1 outcome retried parent UcMZs5m1AA8=
messenger-relay job.requeue kind SPAN_KIND_INTERNAL attempt 2 outcome None parent PG9WhmyuKyQ=
messenger-relay job.publish kind SPAN_KIND_PRODUCER attempt 2 outcome None parent x4G/QURH+70=
messenger-worker job.process kind SPAN_KIND_CONSUMER attempt 2 outcome succeeded parent +VRIOo1OxO4=
messenger-worker job.process kind SPAN_KIND_CONSUMER attempt 1 outcome already_ready parent UcMZs5m1AA8=
+11
View File
@@ -0,0 +1,11 @@
2026-11-06T08:37:06Z preflight OK; start full track
2026-11-06T08:37:06Z warmup started
2026-11-06T09:42:56Z baseline started
2026-11-06T10:03:01Z burst: pause postgres
2026-11-06T10:05:01Z burst: unpause postgres
2026-11-06T11:29:51Z sustained: stop postgres
2026-11-06T11:44:55Z sustained: postgres restored
2026-11-06T11:49:53Z resolution under normal load
2026-11-06T12:52:17Z ttr: worker stopped and uploads started
2026-11-06T13:07:47Z false-positive phase started
2026-11-06T13:30:25Z done; evidence /Users/vladislav/Projects/mtusi2026lab6/evidence/lab6/track2/full
@@ -0,0 +1,83 @@
[
{
"phase": "warmup",
"started_utc": "2026-11-06T08:37:06Z",
"finished_utc": "2026-11-06T09:42:56Z",
"firing": {},
"pending": {
"APISLIMissing": 1
},
"page": 0,
"ticket": 0
},
{
"phase": "baseline",
"started_utc": "2026-11-06T09:42:56Z",
"finished_utc": "2026-11-06T10:02:51Z",
"firing": {},
"pending": {},
"page": 0,
"ticket": 0
},
{
"phase": "burst",
"started_utc": "2026-11-06T10:02:51Z",
"finished_utc": "2026-11-06T11:29:41Z",
"firing": {},
"pending": {
"APISLIMissing": 2
},
"page": 0,
"ticket": 0
},
{
"phase": "sustained",
"started_utc": "2026-11-06T11:29:41Z",
"finished_utc": "2026-11-06T11:49:53Z",
"firing": {
"APIErrorBudgetFastBurn": 1,
"APIErrorBudgetSlowBurn": 1,
"QueueMetricsStale": 1
},
"pending": {
"QueueMetricsStale": 1
},
"page": 1,
"ticket": 1
},
{
"phase": "resolution_wait",
"started_utc": "2026-11-06T11:49:53Z",
"finished_utc": "2026-11-06T12:52:06Z",
"firing": {},
"pending": {},
"page": 0,
"ticket": 0
},
{
"phase": "ttr",
"started_utc": "2026-11-06T12:52:06Z",
"finished_utc": "2026-11-06T13:07:47Z",
"firing": {
"JobsOverdue": 1,
"QueueOldestJobAgeHigh": 1,
"QueueOldestJobAgeCritical": 1
},
"pending": {
"JobsOverdue": 1,
"QueueOldestJobAgeHigh": 1,
"QueueOldestJobAgeCritical": 1
},
"page": 1,
"ticket": 0
},
{
"phase": "false-positive",
"started_utc": "2026-11-06T13:07:47Z",
"finished_utc": "2026-11-06T13:30:24Z",
"firing": {},
"pending": {},
"page": 0,
"ticket": 0
}
]
+11
View File
@@ -0,0 +1,11 @@
# Alert firing by phase
| phase | page | ticket | firing | pending-not-fired |
|---|---:|---:|---|---|
| warmup | 0 | 0 | {} | {'APISLIMissing': 1} |
| baseline | 0 | 0 | {} | {} |
| burst | 0 | 0 | {} | {'APISLIMissing': 2} |
| sustained | 1 | 1 | {'APIErrorBudgetFastBurn': 1, 'APIErrorBudgetSlowBurn': 1, 'QueueMetricsStale': 1} | {'QueueMetricsStale': 1} |
| resolution_wait | 0 | 0 | {} | {} |
| ttr | 1 | 0 | {'JobsOverdue': 1, 'QueueOldestJobAgeHigh': 1, 'QueueOldestJobAgeCritical': 1} | {'JobsOverdue': 1, 'QueueOldestJobAgeHigh': 1, 'QueueOldestJobAgeCritical': 1} |
| false-positive | 0 | 0 | {} | {} |
+20
View File
@@ -0,0 +1,20 @@
observed_utc,alert,state,active_at,value,injection_utc
2026-11-06T09:25:32Z,APISLIMissing,pending,2026-11-06T09:25:28.187213033Z,1e+00,
2026-11-06T10:31:47Z,APISLIMissing,pending,2026-11-06T10:31:43.187213033Z,1e+00,2026-11-06T10:03:01Z
2026-11-06T11:08:09Z,APISLIMissing,pending,2026-11-06T11:08:08.187213033Z,1e+00,2026-11-06T10:03:01Z
2026-11-06T11:34:51Z,APIErrorBudgetFastBurn,firing,2026-11-06T11:34:48.187213033Z,7.220216606498195e-02,2026-11-06T11:29:51Z
2026-11-06T11:34:56Z,QueueMetricsStale,pending,2026-11-06T11:34:53.187213033Z,1e+00,2026-11-06T11:29:51Z
2026-11-06T11:35:11Z,APIErrorBudgetSlowBurn,firing,2026-11-06T11:35:08.187213033Z,3.0189959294436908e-02,2026-11-06T11:29:51Z
2026-11-06T11:36:56Z,QueueMetricsStale,firing,2026-11-06T11:34:53.187213033Z,1e+00,2026-11-06T11:29:51Z
2026-11-06T11:45:12Z,QueueMetricsStale,resolved,,,2026-11-06T11:29:51Z
2026-11-06T11:49:30Z,APIErrorBudgetFastBurn,resolved,,,2026-11-06T11:29:51Z
2026-11-06T12:13:32Z,APIErrorBudgetSlowBurn,resolved,,,2026-11-06T11:29:51Z
2026-11-06T12:53:03Z,JobsOverdue,pending,2026-11-06T12:52:58.187213033Z,3e+00,2026-11-06T12:52:17Z
2026-11-06T12:54:33Z,QueueOldestJobAgeHigh,pending,2026-11-06T12:54:28.187213033Z,1.32353293e+02,2026-11-06T12:52:17Z
2026-11-06T12:55:03Z,JobsOverdue,firing,2026-11-06T12:52:58.187213033Z,2e+01,2026-11-06T12:52:17Z
2026-11-06T13:02:24Z,QueueOldestJobAgeCritical,pending,2026-11-06T13:02:23.187213033Z,6.09947642e+02,2026-11-06T12:52:17Z
2026-11-06T13:04:34Z,QueueOldestJobAgeHigh,firing,2026-11-06T12:54:28.187213033Z,7.29503946e+02,2026-11-06T12:52:17Z
2026-11-06T13:07:29Z,QueueOldestJobAgeCritical,firing,2026-11-06T13:02:23.187213033Z,9.08863892e+02,2026-11-06T12:52:17Z
2026-11-06T13:07:44Z,JobsOverdue,resolved,,,2026-11-06T12:52:17Z
2026-11-06T13:07:44Z,QueueOldestJobAgeCritical,resolved,,,2026-11-06T12:52:17Z
2026-11-06T13:07:44Z,QueueOldestJobAgeHigh,resolved,,,2026-11-06T12:52:17Z
1 observed_utc alert state active_at value injection_utc
2 2026-11-06T09:25:32Z APISLIMissing pending 2026-11-06T09:25:28.187213033Z 1e+00
3 2026-11-06T10:31:47Z APISLIMissing pending 2026-11-06T10:31:43.187213033Z 1e+00 2026-11-06T10:03:01Z
4 2026-11-06T11:08:09Z APISLIMissing pending 2026-11-06T11:08:08.187213033Z 1e+00 2026-11-06T10:03:01Z
5 2026-11-06T11:34:51Z APIErrorBudgetFastBurn firing 2026-11-06T11:34:48.187213033Z 7.220216606498195e-02 2026-11-06T11:29:51Z
6 2026-11-06T11:34:56Z QueueMetricsStale pending 2026-11-06T11:34:53.187213033Z 1e+00 2026-11-06T11:29:51Z
7 2026-11-06T11:35:11Z APIErrorBudgetSlowBurn firing 2026-11-06T11:35:08.187213033Z 3.0189959294436908e-02 2026-11-06T11:29:51Z
8 2026-11-06T11:36:56Z QueueMetricsStale firing 2026-11-06T11:34:53.187213033Z 1e+00 2026-11-06T11:29:51Z
9 2026-11-06T11:45:12Z QueueMetricsStale resolved 2026-11-06T11:29:51Z
10 2026-11-06T11:49:30Z APIErrorBudgetFastBurn resolved 2026-11-06T11:29:51Z
11 2026-11-06T12:13:32Z APIErrorBudgetSlowBurn resolved 2026-11-06T11:29:51Z
12 2026-11-06T12:53:03Z JobsOverdue pending 2026-11-06T12:52:58.187213033Z 3e+00 2026-11-06T12:52:17Z
13 2026-11-06T12:54:33Z QueueOldestJobAgeHigh pending 2026-11-06T12:54:28.187213033Z 1.32353293e+02 2026-11-06T12:52:17Z
14 2026-11-06T12:55:03Z JobsOverdue firing 2026-11-06T12:52:58.187213033Z 2e+01 2026-11-06T12:52:17Z
15 2026-11-06T13:02:24Z QueueOldestJobAgeCritical pending 2026-11-06T13:02:23.187213033Z 6.09947642e+02 2026-11-06T12:52:17Z
16 2026-11-06T13:04:34Z QueueOldestJobAgeHigh firing 2026-11-06T12:54:28.187213033Z 7.29503946e+02 2026-11-06T12:52:17Z
17 2026-11-06T13:07:29Z QueueOldestJobAgeCritical firing 2026-11-06T13:02:23.187213033Z 9.08863892e+02 2026-11-06T12:52:17Z
18 2026-11-06T13:07:44Z JobsOverdue resolved 2026-11-06T12:52:17Z
19 2026-11-06T13:07:44Z QueueOldestJobAgeCritical resolved 2026-11-06T12:52:17Z
20 2026-11-06T13:07:44Z QueueOldestJobAgeHigh resolved 2026-11-06T12:52:17Z
+154
View File
@@ -0,0 +1,154 @@
[
[
"2026-11-06T09:25:32Z",
"APISLIMissing",
"pending",
"2026-11-06T09:25:28.187213033Z",
"1e+00",
""
],
[
"2026-11-06T10:31:47Z",
"APISLIMissing",
"pending",
"2026-11-06T10:31:43.187213033Z",
"1e+00",
"2026-11-06T10:03:01Z"
],
[
"2026-11-06T11:08:09Z",
"APISLIMissing",
"pending",
"2026-11-06T11:08:08.187213033Z",
"1e+00",
"2026-11-06T10:03:01Z"
],
[
"2026-11-06T11:34:51Z",
"APIErrorBudgetFastBurn",
"firing",
"2026-11-06T11:34:48.187213033Z",
"7.220216606498195e-02",
"2026-11-06T11:29:51Z"
],
[
"2026-11-06T11:34:56Z",
"QueueMetricsStale",
"pending",
"2026-11-06T11:34:53.187213033Z",
"1e+00",
"2026-11-06T11:29:51Z"
],
[
"2026-11-06T11:35:11Z",
"APIErrorBudgetSlowBurn",
"firing",
"2026-11-06T11:35:08.187213033Z",
"3.0189959294436908e-02",
"2026-11-06T11:29:51Z"
],
[
"2026-11-06T11:36:56Z",
"QueueMetricsStale",
"firing",
"2026-11-06T11:34:53.187213033Z",
"1e+00",
"2026-11-06T11:29:51Z"
],
[
"2026-11-06T11:45:12Z",
"QueueMetricsStale",
"resolved",
"",
"",
"2026-11-06T11:29:51Z"
],
[
"2026-11-06T11:49:30Z",
"APIErrorBudgetFastBurn",
"resolved",
"",
"",
"2026-11-06T11:29:51Z"
],
[
"2026-11-06T12:13:32Z",
"APIErrorBudgetSlowBurn",
"resolved",
"",
"",
"2026-11-06T11:29:51Z"
],
[
"2026-11-06T12:53:03Z",
"JobsOverdue",
"pending",
"2026-11-06T12:52:58.187213033Z",
"3e+00",
"2026-11-06T12:52:17Z"
],
[
"2026-11-06T12:54:33Z",
"QueueOldestJobAgeHigh",
"pending",
"2026-11-06T12:54:28.187213033Z",
"1.32353293e+02",
"2026-11-06T12:52:17Z"
],
[
"2026-11-06T12:55:03Z",
"JobsOverdue",
"firing",
"2026-11-06T12:52:58.187213033Z",
"2e+01",
"2026-11-06T12:52:17Z"
],
[
"2026-11-06T13:02:24Z",
"QueueOldestJobAgeCritical",
"pending",
"2026-11-06T13:02:23.187213033Z",
"6.09947642e+02",
"2026-11-06T12:52:17Z"
],
[
"2026-11-06T13:04:34Z",
"QueueOldestJobAgeHigh",
"firing",
"2026-11-06T12:54:28.187213033Z",
"7.29503946e+02",
"2026-11-06T12:52:17Z"
],
[
"2026-11-06T13:07:29Z",
"QueueOldestJobAgeCritical",
"firing",
"2026-11-06T13:02:23.187213033Z",
"9.08863892e+02",
"2026-11-06T12:52:17Z"
],
[
"2026-11-06T13:07:44Z",
"JobsOverdue",
"resolved",
"",
"",
"2026-11-06T12:52:17Z"
],
[
"2026-11-06T13:07:44Z",
"QueueOldestJobAgeCritical",
"resolved",
"",
"",
"2026-11-06T12:52:17Z"
],
[
"2026-11-06T13:07:44Z",
"QueueOldestJobAgeHigh",
"resolved",
"",
"",
"2026-11-06T12:52:17Z"
]
]
@@ -0,0 +1,27 @@
{
"base_url": "http://localhost:8080",
"rate": 0.2,
"duration_s": 1195.02,
"scheduled": 240,
"counters": {
"accepted": 48,
"ready": 48,
"failed": 0,
"messages": 192,
"uploads": 48,
"dropped": 0
},
"failures": 0,
"failures_by_reason": {},
"failure_samples": [],
"latency_ms": {
"p50": 9.0,
"p95": 11.9,
"p99": 14.3
},
"ttr_ms": {
"p50": 645.7,
"p95": 1260.5,
"p99": 1276.0
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"api_error_5m": "0",
"api_error_1h": "0",
"api_error_30m": "0",
"api_error_6h": "0",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
+40
View File
@@ -0,0 +1,40 @@
{
"base_url": "http://localhost:8080",
"rate": 0.2,
"duration_s": 3715.02,
"scheduled": 744,
"counters": {
"accepted": 144,
"ready": 144,
"failed": 25,
"messages": 595,
"uploads": 144,
"dropped": 0
},
"failures": 25,
"failures_by_reason": {
"http_503": 25
},
"failure_samples": [
"Failure: POST /api/v1/chats/01a1b04f-a4f6-7d42-ab24-09cf408df4d9/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b04f-a4f6-7d42-ab24-09cf408df4d9/attachments: expected [202], received 503",
"Failure: POST /api/v1/chats/01a1b04f-a4f6-7d42-ab24-09cf408df4d9/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b04f-a4f6-7d42-ab24-09cf408df4d9/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b04f-a4f6-7d42-ab24-09cf408df4d9/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b04f-a4f6-7d42-ab24-09cf408df4d9/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b04f-a4f6-7d42-ab24-09cf408df4d9/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b04f-a4f6-7d42-ab24-09cf408df4d9/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b04f-a4f6-7d42-ab24-09cf408df4d9/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b04f-a4f6-7d42-ab24-09cf408df4d9/attachments: expected [202], received 503"
],
"latency_ms": {
"p50": 6.8,
"p95": 9.7,
"p99": 18.9
},
"ttr_ms": {
"p50": 644.0,
"p95": 1254.8,
"p99": 1283.6
}
}
+26
View File
@@ -0,0 +1,26 @@
{
"active": {
"api_error_5m": "0.049019607843137254",
"api_error_1h": "0.004570383912248629",
"api_error_30m": "0.008223684210526315",
"api_error_6h": "0.00297441998810232",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
},
"after": {
"api_error_5m": "0",
"api_error_1h": "0",
"api_error_30m": "0",
"api_error_6h": "0.00871383757406762",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
}
@@ -0,0 +1,27 @@
{
"base_url": "http://localhost:8080",
"rate": 0.2,
"duration_s": 1195.01,
"scheduled": 240,
"counters": {
"accepted": 48,
"ready": 48,
"failed": 0,
"messages": 192,
"uploads": 48,
"dropped": 0
},
"failures": 0,
"failures_by_reason": {},
"failure_samples": [],
"latency_ms": {
"p50": 7.1,
"p95": 9.8,
"p99": 11.4
},
"ttr_ms": {
"p50": 643.0,
"p95": 963.5,
"p99": 1275.4
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"api_error_5m": "0",
"api_error_1h": "0",
"api_error_30m": "0",
"api_error_6h": "0.02338251986379115",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0.1665980653407489",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
+58
View File
@@ -0,0 +1,58 @@
[
{
"phase": "warmup",
"started_utc": "2026-11-06T08:37:06Z",
"finished_utc": "2026-11-06T09:42:56Z",
"duration_s": 3950.1,
"injection_utc": "",
"restore_utc": ""
},
{
"phase": "baseline",
"started_utc": "2026-11-06T09:42:56Z",
"finished_utc": "2026-11-06T10:02:51Z",
"duration_s": 1195.4,
"injection_utc": "",
"restore_utc": ""
},
{
"phase": "burst",
"started_utc": "2026-11-06T10:02:51Z",
"finished_utc": "2026-11-06T11:29:41Z",
"duration_s": 5209.5,
"injection_utc": "2026-11-06T10:03:01Z",
"restore_utc": "2026-11-06T10:05:01Z"
},
{
"phase": "sustained",
"started_utc": "2026-11-06T11:29:41Z",
"finished_utc": "2026-11-06T11:49:53Z",
"duration_s": 1212.7,
"injection_utc": "2026-11-06T11:29:51Z",
"restore_utc": "2026-11-06T11:44:55Z"
},
{
"phase": "resolution_wait",
"started_utc": "2026-11-06T11:49:53Z",
"finished_utc": "2026-11-06T12:52:06Z",
"duration_s": 3733.0,
"injection_utc": "",
"restore_utc": ""
},
{
"phase": "ttr",
"started_utc": "2026-11-06T12:52:06Z",
"finished_utc": "2026-11-06T13:07:47Z",
"duration_s": 940.4,
"injection_utc": "2026-11-06T12:52:17Z",
"restore_utc": "2026-11-06T13:07:17Z"
},
{
"phase": "false-positive",
"started_utc": "2026-11-06T13:07:47Z",
"finished_utc": "2026-11-06T13:30:24Z",
"duration_s": 1357.4,
"injection_utc": "",
"restore_utc": ""
}
]
@@ -0,0 +1,27 @@
{
"base_url": "http://localhost:8080",
"rate": 1.0,
"duration_s": 2.02,
"scheduled": 3,
"counters": {
"accepted": 2,
"ready": 2,
"failed": 0,
"messages": 1,
"uploads": 2,
"dropped": 0
},
"failures": 0,
"failures_by_reason": {},
"failure_samples": [],
"latency_ms": {
"p50": 5.6,
"p95": 5.6,
"p99": 5.6
},
"ttr_ms": {
"p50": 646.0,
"p95": 649.3,
"p99": 649.3
}
}
@@ -0,0 +1,27 @@
{
"base_url": "http://localhost:8080",
"rate": 0.2,
"duration_s": 3595.65,
"scheduled": 720,
"counters": {
"accepted": 145,
"ready": 145,
"failed": 0,
"messages": 575,
"uploads": 145,
"dropped": 0
},
"failures": 0,
"failures_by_reason": {},
"failure_samples": [],
"latency_ms": {
"p50": 5.9,
"p95": 8.3,
"p99": 17.7
},
"ttr_ms": {
"p50": 638.6,
"p95": 962.5,
"p99": 1259.8
}
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0",
"api_error_1h": "0",
"api_error_30m": "0",
"api_error_6h": "0",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0",
"api_error_1h": "0",
"api_error_30m": "0",
"api_error_6h": "0",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0.04901960784313726",
"api_error_1h": "0.004177109440267336",
"api_error_30m": "0.008237232289950576",
"api_error_6h": "0.0029708853238265003",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0.049019607843137254",
"api_error_1h": "0.004570383912248629",
"api_error_30m": "0.008223684210526315",
"api_error_6h": "0.00297441998810232",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0",
"api_error_1h": "0",
"api_error_30m": "0",
"api_error_6h": "0.008868393047179852",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0",
"api_error_1h": "0",
"api_error_30m": "0",
"api_error_6h": "0.00871383757406762",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0",
"api_error_1h": "0",
"api_error_30m": "0",
"api_error_6h": "0.023575188830395975",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0.1586439457023727",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0",
"api_error_1h": "0",
"api_error_30m": "0",
"api_error_6h": "0.02338251986379115",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0.1665980653407489",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0",
"api_error_1h": "0",
"api_error_30m": "0",
"api_error_6h": "0.023575188830395975",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0.1586439457023727",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0",
"api_error_1h": "0",
"api_error_30m": "0",
"api_error_6h": "0.02338251986379115",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0.1665980653407489",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0",
"api_error_1h": "0",
"api_error_30m": "0",
"api_error_6h": "0.04805225099136926",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0",
"api_error_1h": "0",
"api_error_30m": "0",
"api_error_6h": "0.04763005780346821",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0.050505050505050504",
"api_error_1h": "0.008333333333333333",
"api_error_30m": "0.015060240963855422",
"api_error_6h": "0.010567101091933777",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0.648426",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0.046296296296296294",
"api_error_1h": "0.005973715651135006",
"api_error_30m": "0.011547344110854504",
"api_error_6h": "0.010384215991692628",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0.024096385542168676",
"api_error_1h": "0.2981878088962109",
"api_error_30m": "0.3943355119825709",
"api_error_6h": "0.0665374677002584",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0.010869565217391304",
"api_error_1h": "0.2394179894179894",
"api_error_30m": "0.37319587628865974",
"api_error_6h": "0.06527249683143219",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0",
"api_error_1h": "0",
"api_error_30m": "0",
"api_error_6h": "0.024685440383463146",
"ttr_bad_5m": null,
"ttr_bad_1h": "0.15612704507336422",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0",
"api_error_1h": "0",
"api_error_30m": "0",
"api_error_6h": "0.02447427824640608",
"ttr_bad_5m": null,
"ttr_bad_1h": "0.16383131398899278",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0",
"api_error_1h": "0",
"api_error_30m": "0",
"api_error_6h": "0",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
@@ -0,0 +1,12 @@
{
"api_error_5m": "0",
"api_error_1h": "0",
"api_error_30m": "0",
"api_error_6h": "0",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
+82
View File
@@ -0,0 +1,82 @@
# Full Track 2 run
Phases:
```json
[
{
"phase": "warmup",
"started_utc": "2026-11-06T08:37:06Z",
"finished_utc": "2026-11-06T09:42:56Z",
"duration_s": 3950.1,
"injection_utc": "",
"restore_utc": ""
},
{
"phase": "baseline",
"started_utc": "2026-11-06T09:42:56Z",
"finished_utc": "2026-11-06T10:02:51Z",
"duration_s": 1195.4,
"injection_utc": "",
"restore_utc": ""
},
{
"phase": "burst",
"started_utc": "2026-11-06T10:02:51Z",
"finished_utc": "2026-11-06T11:29:41Z",
"duration_s": 5209.5,
"injection_utc": "2026-11-06T10:03:01Z",
"restore_utc": "2026-11-06T10:05:01Z"
},
{
"phase": "sustained",
"started_utc": "2026-11-06T11:29:41Z",
"finished_utc": "2026-11-06T11:49:53Z",
"duration_s": 1212.7,
"injection_utc": "2026-11-06T11:29:51Z",
"restore_utc": "2026-11-06T11:44:55Z"
},
{
"phase": "resolution_wait",
"started_utc": "2026-11-06T11:49:53Z",
"finished_utc": "2026-11-06T12:52:06Z",
"duration_s": 3733.0,
"injection_utc": "",
"restore_utc": ""
},
{
"phase": "ttr",
"started_utc": "2026-11-06T12:52:06Z",
"finished_utc": "2026-11-06T13:07:47Z",
"duration_s": 940.4,
"injection_utc": "2026-11-06T12:52:17Z",
"restore_utc": "2026-11-06T13:07:17Z"
},
{
"phase": "false-positive",
"started_utc": "2026-11-06T13:07:47Z",
"finished_utc": "2026-11-06T13:30:24Z",
"duration_s": 1357.4,
"injection_utc": "",
"restore_utc": ""
}
]
```
Final snapshot:
```json
{
"api_error_5m": "0",
"api_error_1h": "0",
"api_error_30m": "0",
"api_error_6h": "0.02338251986379115",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0.1665980653407489",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
}
```
Aborted: False
Restored: True
@@ -0,0 +1,40 @@
{
"base_url": "http://localhost:8080",
"rate": 0.2,
"duration_s": 1195.02,
"scheduled": 240,
"counters": {
"accepted": 13,
"ready": 13,
"failed": 181,
"messages": 192,
"uploads": 13,
"dropped": 0
},
"failures": 181,
"failures_by_reason": {
"http_503": 181
},
"failure_samples": [
"Failure: POST /api/v1/chats/01a1b09f-2302-7b49-9a83-f634b41bf55d/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b09f-2302-7b49-9a83-f634b41bf55d/attachments: expected [202], received 503",
"Failure: POST /api/v1/chats/01a1b09f-2302-7b49-9a83-f634b41bf55d/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b09f-2302-7b49-9a83-f634b41bf55d/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b09f-2302-7b49-9a83-f634b41bf55d/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b09f-2302-7b49-9a83-f634b41bf55d/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b09f-2302-7b49-9a83-f634b41bf55d/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b09f-2302-7b49-9a83-f634b41bf55d/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b09f-2302-7b49-9a83-f634b41bf55d/messages: expected [201], received 503",
"Failure: POST /api/v1/chats/01a1b09f-2302-7b49-9a83-f634b41bf55d/attachments: expected [202], received 503"
],
"latency_ms": {
"p50": 6.9,
"p95": 9.8,
"p99": 16.3
},
"ttr_ms": {
"p50": 644.7,
"p95": 1255.0,
"p99": 1255.0
}
}
+27
View File
@@ -0,0 +1,27 @@
{
"active": {
"api_error_5m": "0.046296296296296294",
"api_error_1h": "0.005973715651135006",
"api_error_30m": "0.011547344110854504",
"api_error_6h": "0.010384215991692628",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
},
"after": {
"api_error_5m": "0.010869565217391304",
"api_error_1h": "0.2394179894179894",
"api_error_30m": "0.37319587628865974",
"api_error_6h": "0.06527249683143219",
"ttr_bad_5m": "0",
"ttr_bad_1h": "0",
"queue_oldest": "0",
"queue_depth": "0",
"jobs_overdue": "0",
"worker_busy": "0"
},
"queue_drained": true
}
+41
View File
@@ -0,0 +1,41 @@
{
"base_url": "http://localhost:8080",
"rate": 0.2,
"duration_s": 895.02,
"scheduled": 180,
"counters": {
"accepted": 20,
"ready": 0,
"failed": 180,
"messages": 0,
"uploads": 20,
"dropped": 0
},
"failures": 180,
"failures_by_reason": {
"attachment did not become ready within test deadline": 20,
"http_429": 160
},
"failure_samples": [
"ready: Failure: attachment did not become ready within test deadline",
"ready: Failure: attachment did not become ready within test deadline",
"ready: Failure: attachment did not become ready within test deadline",
"ready: Failure: attachment did not become ready within test deadline",
"ready: Failure: attachment did not become ready within test deadline",
"ready: Failure: attachment did not become ready within test deadline",
"ready: Failure: attachment did not become ready within test deadline",
"ready: Failure: attachment did not become ready within test deadline",
"Failure: POST /api/v1/chats/01a1b0ea-9b18-78c7-b24f-cecf5fa0fefa/attachments: expected [202], received 429",
"ready: Failure: attachment did not become ready within test deadline"
],
"latency_ms": {
"p50": null,
"p95": null,
"p99": null
},
"ttr_ms": {
"p50": null,
"p95": null,
"p99": null
}
}
@@ -0,0 +1,27 @@
{
"base_url": "http://localhost:8080",
"rate": 0.2,
"duration_s": 3596.27,
"scheduled": 720,
"counters": {
"accepted": 145,
"ready": 145,
"failed": 0,
"messages": 575,
"uploads": 145,
"dropped": 0
},
"failures": 0,
"failures_by_reason": {},
"failure_samples": [],
"latency_ms": {
"p50": 7.9,
"p95": 10.6,
"p99": 18.7
},
"ttr_ms": {
"p50": 646.9,
"p95": 1269.3,
"p99": 1279.5
}
}
+63
View File
@@ -0,0 +1,63 @@
# Track 2: TTD/TTR
Полный live-прогон выполнен 2026-11-06 (warmup 60m). Наблюдаемые TTD/TTR
приведены ниже; 6h warmup и реальный 7-дневный бюджет не измерялись.
## Теоретические TTD при 100% ошибок
| Alert | Окна | Порог | Теоретический TTD |
|---|---|---:|---:|
| APIErrorBudgetFastBurn | 1h + 5m | 7.2% | ≈4.3 мин |
| APIErrorBudgetSlowBurn | 6h + 30m | 3% | ≈10.8 мин |
Если 6h-окно содержит только ~1ч45м истории, slow-алерт выглядит как ≈3.2 мин;
это неполное окно, а не доказательство более быстрого обнаружения.
## TTR
TTR SLI теперь использует good = `bucket{le="30.0"}` и bad =
`messenger_jobs_ttr_missed_total`; bad_ratio = bad/(good+bad). Guard:
≥10 событий good+bad за 5m для fast, ≥30 за 30m для slow. Sweeper в relay
помечает задачу как missed через 30s, поэтому алерт может сработать во время
простоя worker, а не только после восстановления.
## False-positive
`checks/alert-audit.txt` считает firing по фазам из `alerts.csv`. В
завершающей 20-минутной фазе новых firing не было; это ограниченное
наблюдение, не универсальная оценка FP.
## Ограничения
- Полный 6h slow-burn и 7d-бюджет не измерялись.
- Старые TTD/TTR числа из прогонов до изменения SLI не используются.
## P0 isolated worker outage (15 min)
`checks/ttr-worker-15m.txt` (HEAD `935b228`): непрерывная нагрузка новых
пользователей каждые 90 с. `ratio5` первые ~90 с отсутствовал, затем был <1
и стал 1 примерно с 330-й секунды; `TTRErrorBudgetFastBurn` firing с ~2 мин,
`JobsOverdue` firing, `QueueOldestJobAgeHigh` firing к ~12 мин.
После старта worker `overdue=0`, `ratio5` снижается; FastBurn resolved примерно
через 4 минуты. `TTRErrorBudgetSlowBurn` остаётся firing из-за 1h/6h окна —
это ожидаемое медленное окно, не ошибка.
## Полный прогон (2026-11-06)
- Warmup 60m, baseline 20m, burst 2m, пауза 60m, sustained 15m,
resolution 60m, TTR 15m, false-positive 20m; `Aborted=False`.
- API: FastBurn firing 11:34:51Z (инъекция 11:29:51Z) → TTD 5m00s;
SlowBurn firing 11:35:11Z → 5m20s (на 60m warmup, не 6h theory).
От restore 11:44:55Z до resolved: FastBurn 4m35s, SlowBurn 28m37s.
- Burst: page/ticket 0; 144 ready, 0 401, 25 клиентских 503 во время pause.
- TTR: JobsOverdue firing 12:55:03Z (+2m46s), QueueOldestJobAgeHigh
firing 13:04:34Z (+12m17s); restore 13:07:17Z; Critical fired
13:07:29Z — через 12s **после restore**, поэтому это не обнаружение до
восстановления; все resolved 13:07:44Z (~27s после restore). Injection
12:52:17Z записан после остановки worker.
- False-positive: 13:07:47–13:30:24Z, firing 0.
- Ограничение: `TTRErrorBudgetFastBurn` в полном TTR-фазе не попал в
`alerts.csv`: 20 missed jobs теряются на фоне большого 1h good-окна;
изолированный 15m worker-down с непрерывной нагрузкой его показывает.
+43
View File
@@ -0,0 +1,43 @@
env -u APP_ENV -u SERVER_HOST -u SERVER_PORT -u SERVER_READ_HEADER_TIMEOUT -u SERVER_READ_TIMEOUT -u SERVER_SHUTDOWN_TIMEOUT -u SERVER_MAX_BODY_BYTES -u LOG_LEVEL -u LOG_FORMAT -u POSTGRES_HOST -u POSTGRES_PORT -u POSTGRES_DATABASE -u POSTGRES_USER -u POSTGRES_PASSWORD -u POSTGRES_SSL_MODE -u POSTGRES_MAX_CONNS -u POSTGRES_MIN_CONNS -u POSTGRES_MAX_CONN_LIFETIME -u POSTGRES_MAX_CONN_IDLE_TIME -u POSTGRES_CONNECT_TIMEOUT -u POSTGRES_QUERY_TIMEOUT -u REDIS_ENABLED -u REDIS_HOST -u REDIS_PORT -u REDIS_PASSWORD -u REDIS_DB -u REDIS_MAX_RETRIES -u REDIS_DIAL_TIMEOUT -u REDIS_READ_TIMEOUT -u REDIS_WRITE_TIMEOUT -u REDIS_POOL_SIZE -u CACHE_ENABLED -u CACHE_CHAT_LIST_TTL -u CACHE_LOCK_TTL -u CACHE_LOCK_WAIT_TIMEOUT -u SESSION_TTL_SECONDS -u IDEMPOTENCY_TTL_SECONDS -u API_REPLICAS -u API_CPU_LIMIT -u API_MEM_LIMIT -u POSTGRES_MAX_CONNS -u POSTGRES_CPU_LIMIT -u POSTGRES_MEM_LIMIT -u LB_STATS_PORT -u S3_ENDPOINT -u S3_PUBLIC_ENDPOINT -u S3_PORT -u S3_REGION -u S3_BUCKET -u S3_ACCESS_KEY_ID -u S3_SECRET_ACCESS_KEY -u MAX_UPLOAD_BYTES -u MAX_IMAGE_PIXELS -u S3_PRESIGN_TTL -u S3_SWEEP_INTERVAL -u S3_SWEEP_GRACE -u BROKER_USER -u BROKER_PASSWORD -u BROKER_VHOST -u BROKER_URL -u BROKER_EXCHANGE -u BROKER_QUEUE -u BROKER_DLX -u BROKER_DLQ -u BROKER_MANAGEMENT_PORT -u BROKER_CPU_LIMIT -u BROKER_MEM_LIMIT -u WORKER_CONCURRENCY -u WORKER_PREFETCH -u WORKER_CPU_LIMIT -u WORKER_MEM_LIMIT -u WORKER_SHUTDOWN_TIMEOUT -u WORKER_HEALTH_PORT -u PROCESSING_PIPELINE_VERSION -u PROCESSING_MAX_ATTEMPTS -u PROCESSING_JOB_TIMEOUT -u PROCESSING_LEASE_TTL -u PROCESSING_HEARTBEAT -u PROCESSING_RETRY_BASE -u PROCESSING_RETRY_CAP -u OUTBOX_POLL_INTERVAL -u OUTBOX_CLAIM_TTL -u OUTBOX_BATCH -u OUTBOX_REAPER_INTERVAL -u OUTBOX_RECONCILE_AFTER -u OUTBOX_RETENTION -u RELAY_CPU_LIMIT -u RELAY_MEM_LIMIT -u RELAY_HEALTH_PORT -u STAGING_ORPHAN_GRACE -u STAGING_FAILED_RETENTION -u ADMISSION_MAX_PENDING_PER_USER -u ADMISSION_MAX_PENDING -u ADMISSION_MAX_STAGED_BYTES -u ADMISSION_MAX_CONCURRENT_UPLOADS -u OTEL_EXPORTER_OTLP_ENDPOINT -u OTEL_EXPORTER_OTLP_PROTOCOL -u OTEL_RESOURCE_ATTRIBUTES -u OTEL_METRIC_EXPORT_INTERVAL -u TELEMETRY_ENABLED -u PROMETHEUS_PORT -u LOKI_PORT -u TEMPO_PORT -u GRAFANA_PORT -u OTEL_COLLECTOR_CPU_LIMIT -u OTEL_COLLECTOR_MEM_LIMIT -u PROMETHEUS_CPU_LIMIT -u PROMETHEUS_MEM_LIMIT -u LOKI_CPU_LIMIT -u LOKI_MEM_LIMIT -u TEMPO_CPU_LIMIT -u TEMPO_MEM_LIMIT -u GRAFANA_CPU_LIMIT -u GRAFANA_MEM_LIMIT go test -race -shuffle=on -count=1 -timeout=5m ./...
? mtusi-messenger/cmd/jobctl [no test files]
? mtusi-messenger/cmd/messenger [no test files]
? mtusi-messenger/cmd/migrate [no test files]
? mtusi-messenger/cmd/relay [no test files]
? mtusi-messenger/cmd/s3init [no test files]
? mtusi-messenger/cmd/worker [no test files]
? mtusi-messenger/internal/broker [no test files]
ok mtusi-messenger/internal/config 3.198s
ok mtusi-messenger/internal/domain 5.063s
? mtusi-messenger/internal/failpoint [no test files]
ok mtusi-messenger/internal/health 9.434s
ok mtusi-messenger/internal/imagecheck 2.795s
ok mtusi-messenger/internal/imageproc 8.860s
ok mtusi-messenger/internal/logger 5.419s
? mtusi-messenger/internal/outbox [no test files]
ok mtusi-messenger/internal/platform/cache 7.191s
? mtusi-messenger/internal/platform/cache/mocks [no test files]
? mtusi-messenger/internal/platform/instanceid [no test files]
ok mtusi-messenger/internal/platform/objectstore 7.683s
ok mtusi-messenger/internal/platform/password 2.131s
ok mtusi-messenger/internal/platform/token 2.099s
ok mtusi-messenger/internal/service/attachment 9.423s
? mtusi-messenger/internal/service/attachment/mocks [no test files]
ok mtusi-messenger/internal/service/chat 9.939s
? mtusi-messenger/internal/service/chat/mocks [no test files]
ok mtusi-messenger/internal/service/message 10.300s
? mtusi-messenger/internal/service/message/mocks [no test files]
ok mtusi-messenger/internal/service/session 11.441s
? mtusi-messenger/internal/service/session/mocks [no test files]
ok mtusi-messenger/internal/service/user 10.787s
? mtusi-messenger/internal/service/user/mocks [no test files]
ok mtusi-messenger/internal/storage/postgres 11.786s
? mtusi-messenger/internal/storage/postgres/internal/sqlcgen [no test files]
? mtusi-messenger/internal/storage/postgres/migrations [no test files]
? mtusi-messenger/internal/storage/redis [no test files]
? mtusi-messenger/internal/storage/redis/mocks [no test files]
ok mtusi-messenger/internal/telemetry 12.820s
ok mtusi-messenger/internal/transport/rest 14.628s
? mtusi-messenger/internal/transport/rest/internal/oas [no test files]
? mtusi-messenger/internal/transport/rest/mocks [no test files]
? mtusi-messenger/internal/worker [no test files]
? mtusi-messenger/tools/specgen [no test files]
+18
View File
@@ -0,0 +1,18 @@
Worker stop scenario (local, 2026-11-04)
==========================================
$ ./scripts/stop-worker.sh
Container mtusi-messenger-lab6-worker-1 Stopped
$ python3 scripts/lab6_load.py --rate 1 --duration 3 --upload-ratio 1 --deadline 3
(three upload requests were accepted as 202; wait_ready timed out because no worker)
$ max(messenger_queue_oldest_job_age_seconds) after 20s
{"value":"15.218417"} (seconds)
$ max(rabbitmq_queue_messages_ready{queue="attachment.process.v1"})
{"value":"3"}
$ ./scripts/start-worker.sh
Container mtusi-messenger-lab6-worker-1 Healthy
$ max(messenger_queue_oldest_job_age_seconds) after drain
{"value":"0"}
$ max(rabbitmq_queue_messages_ready{queue="attachment.process.v1"}) after drain
{"value":"0"}
Business result: accepted jobs were not lost; worker drain made them ready.
Logs: `job claimed`/`attachment ready` include trace_id; job_id is redacted; bodies and filenames are absent.
+30
View File
@@ -0,0 +1,30 @@
{
"base_url": "http://localhost:8080",
"rate": 1.0,
"duration_s": 5.12,
"scheduled": 3,
"counters": {
"accepted": 3,
"ready": 0,
"failed": 3,
"messages": 0,
"uploads": 3,
"dropped": 0
},
"failures": 3,
"failure_samples": [
"ready: Failure: attachment did not become ready within test deadline",
"ready: Failure: attachment did not become ready within test deadline",
"ready: Failure: attachment did not become ready within test deadline"
],
"latency_ms": {
"p50": null,
"p95": null,
"p99": null
},
"ttr_ms": {
"p50": null,
"p95": null,
"p99": null
}
}