forked from mtusi2026/mtusi2026lab6
ЛР 6 — БВТ2302 — Лебедев — на 5
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
# 2026-11-21T18:58:11Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ dc logs --no-log-prefix broker-init
|
||||
{"ts": "2026-11-21T18:57:54.272Z", "level": "warning", "service": "messenger", "logger": "messenger.broker", "event": "broker disconnected", "msg": "broker disconnected"}
|
||||
{"created": {"stream": true, "consumer": true}, "stream": {"name": "ATTACHMENT_JOBS", "subjects": ["attachments.process.v1"], "storage": "file", "retention": "workqueue", "duplicate_window_s": 120.0, "max_msgs": 100000, "messages": 0}, "consumer": {"durable": "attachment-workers", "ack_policy": "explicit", "ack_wait_s": 20.0, "max_ack_pending": 16, "max_deliver": -1}}
|
||||
exit=0
|
||||
@@ -0,0 +1,5 @@
|
||||
# 2026-11-21T18:58:16Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ dc run --rm --no-deps otel-collector validate --config=/etc/otelcol-contrib/collector.yaml
|
||||
Container mtusi-lab6-otel-collector-run-305dad94c299 Creating
|
||||
Container mtusi-lab6-otel-collector-run-305dad94c299 Created
|
||||
exit=0
|
||||
@@ -0,0 +1,33 @@
|
||||
# 2026-11-21T20:04:22Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ python3 student-tests/defense_demo.py
|
||||
20:04:24.055 0 chat 4e63a603-914c-4f47-84d9-6f71057ad639, users alice/bob (tokens not shown)
|
||||
20:04:24.835 0 mtusi-lab6-api-1 running started=2026-11-21T19:59:25.880108847Z pid=2790
|
||||
20:04:24.835 0 mtusi-lab6-api-2 running started=2026-11-21T19:59:26.237488123Z pid=2867
|
||||
20:04:24.835 0 mtusi-lab6-worker-1 running started=2026-11-21T19:59:26.716469278Z pid=2986
|
||||
20:04:24.835 0 mtusi-lab6-worker-2 running started=2026-11-21T19:59:27.326051972Z pid=3041
|
||||
20:04:24.835 0 mtusi-lab6-nats-1 running started=2026-11-21T19:22:35.290602429Z pid=17585
|
||||
20:04:24.835 2 stop worker: docker compose --env-file .env stop worker
|
||||
20:04:25.804 2 mtusi-lab6-worker-1 exited started=2026-11-21T19:59:26.716469278Z pid=0
|
||||
20:04:25.804 2 mtusi-lab6-worker-2 exited started=2026-11-21T19:59:27.326051972Z pid=0
|
||||
20:04:25.844 2 POST /chats/4e63a603-914c-4f47-84d9-6f71057ad639/attachments → 202, attachment_id=5b856079-7c1e-4ee6-af16-55ea0fb2ecd4 status=queued
|
||||
20:04:26.655 2 job_id=f921ca14-cc40-4095-b8e2-947cda3536c7 pipeline_version=1 attempt=1 status=queued
|
||||
20:04:26.660 2 GET /attachments/5b856079-7c1e-4ee6-af16-55ea0fb2ecd4/content → 409 (conflict)
|
||||
20:04:26.669 2 POST message with queued attachment → 201, message_id=b5591933-2e47-4a34-ac47-3fc0e74efa09
|
||||
20:04:26.676 2 POST plain message (bob) → 201, message_id=997c604c-7e4e-4905-b77b-1cb751db2d6f; history works while worker is down
|
||||
20:04:27.372 2 job published to JetStream: stream_seq=786 (outbox → relay → publish ack)
|
||||
20:04:27.372 3 restart broker (volume natsdata kept) and API replicas: restart nats; restart api
|
||||
20:04:33.763 3 mtusi-lab6-api-1 running started=2026-11-21T20:04:31.946056134Z pid=25862
|
||||
20:04:33.763 3 mtusi-lab6-api-2 running started=2026-11-21T20:04:31.715486281Z pid=25806
|
||||
20:04:33.763 3 mtusi-lab6-nats-1 running started=2026-11-21T20:04:27.663048481Z pid=25426
|
||||
20:04:33.771 3 after restart: attachment 5b856079-7c1e-4ee6-af16-55ea0fb2ecd4 status=queued (job survived in PostgreSQL + JetStream)
|
||||
20:04:33.771 3 start worker: docker compose --env-file .env start worker
|
||||
20:04:43.551 3 attachment 5b856079-7c1e-4ee6-af16-55ea0fb2ecd4 status=ready 1.6s after worker start; variants=['crop 128x128', 'optimized 320x200', 'thumbnail 256x160']
|
||||
20:04:43.710 3 original sha256=8355144458298115… (= uploaded), thumbnail JPEG (256, 160)
|
||||
20:04:44.426 log 20:04:25.840 enqueued attempt=1 token=None {'outbox_id': 744}
|
||||
20:04:44.426 log 20:04:25.847 published attempt=1 token=None {'relay': 'api-api-a0e7e8a8', 'duplicate': False, 'outbox_id': 744, 'stream_seq': 786}
|
||||
20:04:44.426 log 20:04:43.087 claimed attempt=1 token=779 {'claims': 1}
|
||||
20:04:44.426 log 20:04:43.463 committed attempt=1 token=779 {'variants': ['crop', 'optimized', 'thumbnail']}
|
||||
20:04:44.426 log 20:04:43.463 published_version_changed attempt=1 token=779 {'to': 1, 'from': None}
|
||||
20:04:44.426 log 20:04:43.469 staging_cleaned attempt=1 token=None {'after': 'ready'}
|
||||
PASS: defense scenario (worker down → 202 → 409 → restart API+broker → worker → ready)
|
||||
exit=0
|
||||
@@ -0,0 +1,6 @@
|
||||
# 2026-11-21T19:19:16Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ python3 tests/resilience.py --mode failover --action-script scripts/stop-one.sh --base-url http://127.0.0.1:8080
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 131, "failed_attempts": 0, "first_recovery_seconds": 6.14}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
exit=0
|
||||
@@ -0,0 +1,6 @@
|
||||
# 2026-11-21T19:19:41Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ python3 tests/resilience.py --mode failover --action-script scripts/stop-one.sh --base-url http://127.0.0.1:8080
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 134, "failed_attempts": 0, "first_recovery_seconds": 6.155}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
exit=0
|
||||
@@ -0,0 +1,80 @@
|
||||
== 2026-11-21T19:19:19Z stop-one target=api-e4ae9e90 container=mtusi-lab6-api-2
|
||||
api mtusi-lab6-api-1 status=running started=2026-11-21T18:59:39.635658169Z pid=11662
|
||||
api mtusi-lab6-api-2 status=running started=2026-11-21T18:59:39.827025415Z pid=11715
|
||||
api-ttl mtusi-lab6-api-ttl-1 status=running started=2026-11-21T18:59:43.740476992Z pid=12265
|
||||
broker-init mtusi-lab6-broker-init-1 status=exited started=2026-11-21T19:01:47.611250271Z pid=0
|
||||
grafana mtusi-lab6-grafana-1 status=running started=2026-11-21T18:59:16.762720587Z pid=9695
|
||||
lb mtusi-lab6-lb-1 status=running started=2026-11-21T18:59:47.866767668Z pid=12973
|
||||
loki mtusi-lab6-loki-1 status=running started=2026-11-21T19:13:42.511623661Z pid=4940
|
||||
migrate mtusi-lab6-migrate-1 status=exited started=2026-11-21T19:01:47.4337162Z pid=0
|
||||
nats mtusi-lab6-nats-1 status=running started=2026-11-21T18:59:16.3703735Z pid=9466
|
||||
otel-collector mtusi-lab6-otel-collector-1 status=running started=2026-11-21T19:15:52.258053507Z pid=14597
|
||||
postgres mtusi-lab6-postgres-1 status=running started=2026-11-21T18:59:16.571171922Z pid=9614
|
||||
prometheus mtusi-lab6-prometheus-1 status=running started=2026-11-21T18:59:16.516798581Z pid=9552
|
||||
redis mtusi-lab6-redis-1 status=running started=2026-11-21T18:59:16.497489889Z pid=9550
|
||||
s3 mtusi-lab6-s3-1 status=running started=2026-11-21T18:59:17.609330359Z pid=9960
|
||||
s3-init mtusi-lab6-s3-init-1 status=exited started=2026-11-21T19:01:47.210074838Z pid=0
|
||||
tempo mtusi-lab6-tempo-1 status=running started=2026-11-21T19:13:43.331107648Z pid=5112
|
||||
tempo-init mtusi-lab6-tempo-init-1 status=exited started=2026-11-21T19:13:42.682492554Z pid=0
|
||||
worker mtusi-lab6-worker-1 status=running started=2026-11-21T19:01:50.433806313Z pid=21409
|
||||
worker mtusi-lab6-worker-2 status=running started=2026-11-21T19:01:50.6995321Z pid=21486
|
||||
== 2026-11-21T19:19:24Z after stop
|
||||
api mtusi-lab6-api-1 status=running started=2026-11-21T18:59:39.635658169Z pid=11662
|
||||
api mtusi-lab6-api-2 status=exited started=2026-11-21T18:59:39.827025415Z pid=0
|
||||
api-ttl mtusi-lab6-api-ttl-1 status=running started=2026-11-21T18:59:43.740476992Z pid=12265
|
||||
broker-init mtusi-lab6-broker-init-1 status=exited started=2026-11-21T19:01:47.611250271Z pid=0
|
||||
grafana mtusi-lab6-grafana-1 status=running started=2026-11-21T18:59:16.762720587Z pid=9695
|
||||
lb mtusi-lab6-lb-1 status=running started=2026-11-21T18:59:47.866767668Z pid=12973
|
||||
loki mtusi-lab6-loki-1 status=running started=2026-11-21T19:13:42.511623661Z pid=4940
|
||||
migrate mtusi-lab6-migrate-1 status=exited started=2026-11-21T19:01:47.4337162Z pid=0
|
||||
nats mtusi-lab6-nats-1 status=running started=2026-11-21T18:59:16.3703735Z pid=9466
|
||||
otel-collector mtusi-lab6-otel-collector-1 status=running started=2026-11-21T19:15:52.258053507Z pid=14597
|
||||
postgres mtusi-lab6-postgres-1 status=running started=2026-11-21T18:59:16.571171922Z pid=9614
|
||||
prometheus mtusi-lab6-prometheus-1 status=running started=2026-11-21T18:59:16.516798581Z pid=9552
|
||||
redis mtusi-lab6-redis-1 status=running started=2026-11-21T18:59:16.497489889Z pid=9550
|
||||
s3 mtusi-lab6-s3-1 status=running started=2026-11-21T18:59:17.609330359Z pid=9960
|
||||
s3-init mtusi-lab6-s3-init-1 status=exited started=2026-11-21T19:01:47.210074838Z pid=0
|
||||
tempo mtusi-lab6-tempo-1 status=running started=2026-11-21T19:13:43.331107648Z pid=5112
|
||||
tempo-init mtusi-lab6-tempo-init-1 status=exited started=2026-11-21T19:13:42.682492554Z pid=0
|
||||
worker mtusi-lab6-worker-1 status=running started=2026-11-21T19:01:50.433806313Z pid=21409
|
||||
worker mtusi-lab6-worker-2 status=running started=2026-11-21T19:01:50.6995321Z pid=21486
|
||||
== 2026-11-21T19:19:44Z stop-one target=api-351cef98 container=mtusi-lab6-api-2
|
||||
api mtusi-lab6-api-1 status=running started=2026-11-21T18:59:39.635658169Z pid=11662
|
||||
api mtusi-lab6-api-2 status=running started=2026-11-21T19:19:34.682252358Z pid=30558
|
||||
api-ttl mtusi-lab6-api-ttl-1 status=running started=2026-11-21T18:59:43.740476992Z pid=12265
|
||||
broker-init mtusi-lab6-broker-init-1 status=exited started=2026-11-21T19:01:47.611250271Z pid=0
|
||||
grafana mtusi-lab6-grafana-1 status=running started=2026-11-21T18:59:16.762720587Z pid=9695
|
||||
lb mtusi-lab6-lb-1 status=running started=2026-11-21T18:59:47.866767668Z pid=12973
|
||||
loki mtusi-lab6-loki-1 status=running started=2026-11-21T19:13:42.511623661Z pid=4940
|
||||
migrate mtusi-lab6-migrate-1 status=exited started=2026-11-21T19:01:47.4337162Z pid=0
|
||||
nats mtusi-lab6-nats-1 status=running started=2026-11-21T18:59:16.3703735Z pid=9466
|
||||
otel-collector mtusi-lab6-otel-collector-1 status=running started=2026-11-21T19:15:52.258053507Z pid=14597
|
||||
postgres mtusi-lab6-postgres-1 status=running started=2026-11-21T18:59:16.571171922Z pid=9614
|
||||
prometheus mtusi-lab6-prometheus-1 status=running started=2026-11-21T18:59:16.516798581Z pid=9552
|
||||
redis mtusi-lab6-redis-1 status=running started=2026-11-21T18:59:16.497489889Z pid=9550
|
||||
s3 mtusi-lab6-s3-1 status=running started=2026-11-21T18:59:17.609330359Z pid=9960
|
||||
s3-init mtusi-lab6-s3-init-1 status=exited started=2026-11-21T19:01:47.210074838Z pid=0
|
||||
tempo mtusi-lab6-tempo-1 status=running started=2026-11-21T19:13:43.331107648Z pid=5112
|
||||
tempo-init mtusi-lab6-tempo-init-1 status=exited started=2026-11-21T19:13:42.682492554Z pid=0
|
||||
worker mtusi-lab6-worker-1 status=running started=2026-11-21T19:01:50.433806313Z pid=21409
|
||||
worker mtusi-lab6-worker-2 status=running started=2026-11-21T19:01:50.6995321Z pid=21486
|
||||
== 2026-11-21T19:19:49Z after stop
|
||||
api mtusi-lab6-api-1 status=running started=2026-11-21T18:59:39.635658169Z pid=11662
|
||||
api mtusi-lab6-api-2 status=exited started=2026-11-21T19:19:34.682252358Z pid=0
|
||||
api-ttl mtusi-lab6-api-ttl-1 status=running started=2026-11-21T18:59:43.740476992Z pid=12265
|
||||
broker-init mtusi-lab6-broker-init-1 status=exited started=2026-11-21T19:01:47.611250271Z pid=0
|
||||
grafana mtusi-lab6-grafana-1 status=running started=2026-11-21T18:59:16.762720587Z pid=9695
|
||||
lb mtusi-lab6-lb-1 status=running started=2026-11-21T18:59:47.866767668Z pid=12973
|
||||
loki mtusi-lab6-loki-1 status=running started=2026-11-21T19:13:42.511623661Z pid=4940
|
||||
migrate mtusi-lab6-migrate-1 status=exited started=2026-11-21T19:01:47.4337162Z pid=0
|
||||
nats mtusi-lab6-nats-1 status=running started=2026-11-21T18:59:16.3703735Z pid=9466
|
||||
otel-collector mtusi-lab6-otel-collector-1 status=running started=2026-11-21T19:15:52.258053507Z pid=14597
|
||||
postgres mtusi-lab6-postgres-1 status=running started=2026-11-21T18:59:16.571171922Z pid=9614
|
||||
prometheus mtusi-lab6-prometheus-1 status=running started=2026-11-21T18:59:16.516798581Z pid=9552
|
||||
redis mtusi-lab6-redis-1 status=running started=2026-11-21T18:59:16.497489889Z pid=9550
|
||||
s3 mtusi-lab6-s3-1 status=running started=2026-11-21T18:59:17.609330359Z pid=9960
|
||||
s3-init mtusi-lab6-s3-init-1 status=exited started=2026-11-21T19:01:47.210074838Z pid=0
|
||||
tempo mtusi-lab6-tempo-1 status=running started=2026-11-21T19:13:43.331107648Z pid=5112
|
||||
tempo-init mtusi-lab6-tempo-init-1 status=exited started=2026-11-21T19:13:42.682492554Z pid=0
|
||||
worker mtusi-lab6-worker-1 status=running started=2026-11-21T19:01:50.433806313Z pid=21409
|
||||
worker mtusi-lab6-worker-2 status=running started=2026-11-21T19:01:50.6995321Z pid=21486
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.0 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 214 KiB |
@@ -0,0 +1,63 @@
|
||||
# 2026-11-21T20:10:18Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ python3 research/incidents.py collector-down --out evidence/incidents
|
||||
[23:10:32] collector-down: otel-collector stopped (t=13.9s)
|
||||
[23:11:08] FIRING OtelCollectorDown at t=50.3s
|
||||
[23:11:08] collector-down: OtelCollectorDown firing (t=50.3s)
|
||||
[23:12:05] collector-down: otel-collector started (t=107.1s)
|
||||
[23:12:21] FIRING TelemetryLostInSdk at t=122.9s
|
||||
[23:12:21] resolved OtelCollectorDown at t=122.9s
|
||||
[23:12:21] collector-down: collector back; SDK losses reported (t=122.9s)
|
||||
{
|
||||
"scenario": "collector-down",
|
||||
"marks_s": {
|
||||
"otel-collector stopped": 13.9,
|
||||
"OtelCollectorDown firing": 50.3,
|
||||
"otel-collector started": 107.1,
|
||||
"collector back; SDK losses reported": 122.9
|
||||
},
|
||||
"alerts_first_firing_s": {
|
||||
"OtelCollectorDown": 50.3,
|
||||
"TelemetryLostInSdk": 122.9
|
||||
},
|
||||
"alerts_resolved_s": {
|
||||
"OtelCollectorDown": 122.9
|
||||
},
|
||||
"http_before": {
|
||||
"requests": 108,
|
||||
"ok": 108,
|
||||
"errors": 0,
|
||||
"error_statuses": [],
|
||||
"p50_ms": 18.2,
|
||||
"p95_ms": 44.3,
|
||||
"p99_ms": 76.5
|
||||
},
|
||||
"http_during": {
|
||||
"requests": 748,
|
||||
"ok": 748,
|
||||
"errors": 0,
|
||||
"error_statuses": [],
|
||||
"p50_ms": 12.5,
|
||||
"p95_ms": 40.4,
|
||||
"p99_ms": 64.8
|
||||
},
|
||||
"api_mem_before": {
|
||||
"8ebba9c6afb2": "46.98MiB",
|
||||
"5444178a6fc3": "47.37MiB"
|
||||
},
|
||||
"api_mem_during": {
|
||||
"8ebba9c6afb2": "53.61MiB",
|
||||
"5444178a6fc3": "54.21MiB"
|
||||
},
|
||||
"sdk_delta": {
|
||||
"spans_export_failed": 5712,
|
||||
"spans_queue_dropped": 0,
|
||||
"logs_export_failed": 715,
|
||||
"logs_queue_dropped": 0,
|
||||
"spans_started": 8311
|
||||
},
|
||||
"sdk_export_errors_by_type_total": {
|
||||
"MaxRetryError": 5712
|
||||
},
|
||||
"detection_s": 36.4
|
||||
}
|
||||
exit=0
|
||||
@@ -0,0 +1,53 @@
|
||||
# 2026-11-21T19:08:20Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ python3 research/incidents.py db-down --out evidence/incidents
|
||||
[22:08:37] db-down: postgres paused (t=16.0s)
|
||||
[22:09:23] FIRING DbPoolSaturated at t=62.2s
|
||||
[22:09:59] FIRING ApiHighErrorRate at t=98.0s
|
||||
[22:09:59] db-down: ApiHighErrorRate firing (t=98.0s)
|
||||
[22:09:59] db-down: postgres unpaused (t=98.0s)
|
||||
[22:10:09] resolved DbPoolSaturated at t=108.5s
|
||||
[22:10:29] FIRING ApiLatencyHigh at t=128.9s
|
||||
[22:11:10] resolved ApiHighErrorRate at t=169.8s
|
||||
[22:11:10] resolved ApiLatencyHigh at t=169.8s
|
||||
[22:11:10] db-down: resolved (t=169.8s)
|
||||
{
|
||||
"scenario": "db-down",
|
||||
"marks_s": {
|
||||
"postgres paused": 16.0,
|
||||
"ApiHighErrorRate firing": 98.0,
|
||||
"postgres unpaused": 98.0,
|
||||
"resolved": 169.8
|
||||
},
|
||||
"alerts_first_firing_s": {
|
||||
"DbPoolSaturated": 62.2,
|
||||
"ApiHighErrorRate": 98.0,
|
||||
"ApiLatencyHigh": 128.9
|
||||
},
|
||||
"alerts_resolved_s": {
|
||||
"DbPoolSaturated": 108.5,
|
||||
"ApiHighErrorRate": 169.8,
|
||||
"ApiLatencyHigh": 169.8
|
||||
},
|
||||
"http_during": {
|
||||
"requests": 136,
|
||||
"ok": 0,
|
||||
"errors": 136,
|
||||
"error_statuses": [
|
||||
-1,
|
||||
503
|
||||
],
|
||||
"p50_ms": null,
|
||||
"p95_ms": null,
|
||||
"p99_ms": null
|
||||
},
|
||||
"error_traces_error_type": {
|
||||
"PoolTimeout": 20
|
||||
},
|
||||
"dependency_unavailable_logs": 136,
|
||||
"logged_errors": [
|
||||
"PoolTimeout",
|
||||
"TimeoutError"
|
||||
],
|
||||
"detection_s": 82.0
|
||||
}
|
||||
exit=0
|
||||
@@ -0,0 +1,83 @@
|
||||
# 2026-11-21T19:02:34Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ python3 research/incidents.py db-slow --out evidence/incidents
|
||||
[22:03:05] db-slow: postgres limited to 0.03 CPU (t=31.1s)
|
||||
[22:04:02] FIRING DbSlowQueries at t=87.6s
|
||||
[22:04:02] db-slow: DbSlowQueries firing (t=87.6s)
|
||||
[22:04:33] FIRING ApiLatencyHigh at t=118.5s
|
||||
[22:04:34] db-slow: postgres restored to 1.0 CPU (t=119.2s)
|
||||
[22:05:30] resolved DbSlowQueries at t=175.5s
|
||||
[22:05:40] resolved ApiLatencyHigh at t=185.7s
|
||||
[22:05:40] db-slow: resolved (t=185.7s)
|
||||
{
|
||||
"scenario": "db-slow",
|
||||
"marks_s": {
|
||||
"postgres limited to 0.03 CPU": 31.1,
|
||||
"DbSlowQueries firing": 87.6,
|
||||
"postgres restored to 1.0 CPU": 119.2,
|
||||
"resolved": 185.7
|
||||
},
|
||||
"alerts_first_firing_s": {
|
||||
"DbSlowQueries": 87.6,
|
||||
"ApiLatencyHigh": 118.5
|
||||
},
|
||||
"alerts_resolved_s": {
|
||||
"DbSlowQueries": 175.5,
|
||||
"ApiLatencyHigh": 185.7
|
||||
},
|
||||
"metrics_before": {
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0425,
|
||||
"db_p95_s": 0.0035,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 175.6914
|
||||
},
|
||||
"metrics_during": {
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.717,
|
||||
"db_p95_s": 0.222,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 176.6094
|
||||
},
|
||||
"slow_trace": {
|
||||
"trace_id": "0a0efea457d22fb0b498b9fe612a9696",
|
||||
"duration_ms": 702.1,
|
||||
"db_ms": 694.4,
|
||||
"pool_wait_ms": 192.0,
|
||||
"db_share": 0.99,
|
||||
"db_or_pool_share": 1.26,
|
||||
"not_in_child_spans_ms": 7.1,
|
||||
"error_type": null,
|
||||
"slowest_child": [
|
||||
"INSERT messages",
|
||||
300.8
|
||||
]
|
||||
},
|
||||
"http_before": {
|
||||
"requests": 180,
|
||||
"ok": 180,
|
||||
"errors": 0,
|
||||
"error_statuses": [],
|
||||
"p50_ms": 11.8,
|
||||
"p95_ms": 37.6,
|
||||
"p99_ms": 80.0
|
||||
},
|
||||
"http_during": {
|
||||
"requests": 516,
|
||||
"ok": 516,
|
||||
"errors": 0,
|
||||
"error_statuses": [],
|
||||
"p50_ms": 132.6,
|
||||
"p95_ms": 698.8,
|
||||
"p99_ms": 964.9
|
||||
},
|
||||
"detection_s": 56.5
|
||||
}
|
||||
exit=0
|
||||
@@ -0,0 +1,58 @@
|
||||
# 2026-11-21T19:05:40Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ python3 research/incidents.py handler-slow --out evidence/incidents
|
||||
[22:05:41] handler-slow: 50% of messages carry fault-api-slow-400 (sleep in handler) (t=0.6s)
|
||||
[22:07:08] FIRING ApiLatencyHigh at t=87.8s
|
||||
[22:07:08] handler-slow: ApiLatencyHigh firing (t=87.8s)
|
||||
[22:08:20] resolved ApiLatencyHigh at t=160.2s
|
||||
[22:08:20] handler-slow: resolved (t=160.2s)
|
||||
{
|
||||
"scenario": "handler-slow",
|
||||
"marks_s": {
|
||||
"50% of messages carry fault-api-slow-400 (sleep in handler)": 0.6,
|
||||
"ApiLatencyHigh firing": 87.8,
|
||||
"resolved": 160.2
|
||||
},
|
||||
"alerts_first_firing_s": {
|
||||
"ApiLatencyHigh": 87.8
|
||||
},
|
||||
"alerts_resolved_s": {
|
||||
"ApiLatencyHigh": 160.2
|
||||
},
|
||||
"metrics_during": {
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.475,
|
||||
"db_p95_s": 0.0026,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.0938
|
||||
},
|
||||
"db_alert_fired": false,
|
||||
"slow_trace": {
|
||||
"trace_id": "2aa39fd46f97f6a25232626dcb3aa263",
|
||||
"duration_ms": 421.9,
|
||||
"db_ms": 12.2,
|
||||
"pool_wait_ms": 3.8,
|
||||
"db_share": 0.03,
|
||||
"db_or_pool_share": 0.04,
|
||||
"not_in_child_spans_ms": 409.2,
|
||||
"error_type": null,
|
||||
"slowest_child": [
|
||||
"INSERT messages",
|
||||
6.6
|
||||
]
|
||||
},
|
||||
"http_during": {
|
||||
"requests": 526,
|
||||
"ok": 526,
|
||||
"errors": 0,
|
||||
"error_statuses": [],
|
||||
"p50_ms": 66.4,
|
||||
"p95_ms": 421.4,
|
||||
"p99_ms": 440.7
|
||||
},
|
||||
"detection_s": 87.8
|
||||
}
|
||||
exit=0
|
||||
@@ -0,0 +1,59 @@
|
||||
# 2026-11-21T19:11:11Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ python3 research/incidents.py telemetry-down --out evidence/incidents
|
||||
[22:11:33] telemetry-down: tempo and loki stopped (t=21.8s)
|
||||
[22:12:40] FIRING TelemetryExportFailing at t=89.0s
|
||||
[22:12:40] telemetry-down: TelemetryExportFailing firing (t=89.0s)
|
||||
[22:13:42] telemetry-down: tempo and loki started (t=150.2s)
|
||||
[22:13:59] resolved TelemetryExportFailing at t=167.2s
|
||||
[22:14:04] telemetry-down: resolved, queue drained (t=172.3s)
|
||||
{
|
||||
"scenario": "telemetry-down",
|
||||
"marks_s": {
|
||||
"tempo and loki stopped": 21.8,
|
||||
"TelemetryExportFailing firing": 89.0,
|
||||
"tempo and loki started": 150.2,
|
||||
"resolved, queue drained": 172.3
|
||||
},
|
||||
"alerts_first_firing_s": {
|
||||
"TelemetryExportFailing": 89.0
|
||||
},
|
||||
"alerts_resolved_s": {
|
||||
"TelemetryExportFailing": 167.2
|
||||
},
|
||||
"http_during": {
|
||||
"requests": 772,
|
||||
"ok": 772,
|
||||
"errors": 0,
|
||||
"error_statuses": [],
|
||||
"p50_ms": 13.1,
|
||||
"p95_ms": 40.2,
|
||||
"p99_ms": 76.7
|
||||
},
|
||||
"uploads_during": {
|
||||
"requests": 42,
|
||||
"ok": 42,
|
||||
"errors": 0,
|
||||
"error_statuses": [],
|
||||
"p50_ms": 26.6,
|
||||
"p95_ms": 48.3,
|
||||
"p99_ms": 217.8
|
||||
},
|
||||
"collector_mem_before": {
|
||||
"ac5a65d675df": "50.21MiB"
|
||||
},
|
||||
"collector_mem_during": {
|
||||
"ac5a65d675df": "54.82MiB"
|
||||
},
|
||||
"exporter_queue_max": 64.0,
|
||||
"exporter_queue_capacity": 200.0,
|
||||
"telemetry_delta": {
|
||||
"accepted_spans": 9907,
|
||||
"send_failed_spans": 275,
|
||||
"enqueue_failed_spans": 0,
|
||||
"send_failed_logs": 30,
|
||||
"enqueue_failed_logs": 0
|
||||
},
|
||||
"traces_from_outage_window_found_after_recovery": 200,
|
||||
"detection_s": 67.2
|
||||
}
|
||||
exit=0
|
||||
@@ -0,0 +1,50 @@
|
||||
# 2026-11-21T18:59:53Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ python3 research/incidents.py worker-stop --out evidence/incidents
|
||||
[22:00:14] worker-stop: worker stopped (t=20.7s)
|
||||
[22:01:31] FIRING JobQueueLagGrowing at t=98.3s
|
||||
[22:01:31] FIRING WorkerHeartbeatMissing at t=98.3s
|
||||
[22:01:31] worker-stop: both alerts firing (t=98.3s)
|
||||
[22:01:46] worker-stop: worker started (t=113.3s)
|
||||
[22:02:11] resolved WorkerHeartbeatMissing at t=138.0s
|
||||
[22:02:32] resolved JobQueueLagGrowing at t=158.5s
|
||||
[22:02:32] worker-stop: alerts resolved, backlog empty (t=158.5s)
|
||||
{
|
||||
"scenario": "worker-stop",
|
||||
"marks_s": {
|
||||
"worker stopped": 20.7,
|
||||
"both alerts firing": 98.3,
|
||||
"worker started": 113.3,
|
||||
"alerts resolved, backlog empty": 158.5
|
||||
},
|
||||
"alerts_first_firing_s": {
|
||||
"JobQueueLagGrowing": 98.3,
|
||||
"WorkerHeartbeatMissing": 98.3
|
||||
},
|
||||
"alerts_resolved_s": {
|
||||
"WorkerHeartbeatMissing": 138.0,
|
||||
"JobQueueLagGrowing": 158.5
|
||||
},
|
||||
"uploads_accepted": 78,
|
||||
"uploads_not_ready_after_recovery": 0,
|
||||
"queue_ready_peak": 34.0,
|
||||
"api_accepted_logs_during_outage": 46,
|
||||
"worker_logs_during_outage": 0,
|
||||
"detection_s": {
|
||||
"JobQueueLagGrowing": 77.6,
|
||||
"WorkerHeartbeatMissing": 77.6
|
||||
},
|
||||
"recovery_s": {
|
||||
"JobQueueLagGrowing": 45.2,
|
||||
"WorkerHeartbeatMissing": 24.7
|
||||
},
|
||||
"http_during_outage": {
|
||||
"requests": 276,
|
||||
"ok": 276,
|
||||
"errors": 0,
|
||||
"error_statuses": [],
|
||||
"p50_ms": 15.4,
|
||||
"p95_ms": 37.4,
|
||||
"p99_ms": 75.3
|
||||
}
|
||||
}
|
||||
exit=0
|
||||
@@ -0,0 +1,240 @@
|
||||
{
|
||||
"scenario": "collector-down",
|
||||
"marks_s": {
|
||||
"otel-collector stopped": 13.9,
|
||||
"OtelCollectorDown firing": 50.3,
|
||||
"otel-collector started": 107.1,
|
||||
"collector back; SDK losses reported": 122.9
|
||||
},
|
||||
"alerts_first_firing_s": {
|
||||
"OtelCollectorDown": 50.3,
|
||||
"TelemetryLostInSdk": 122.9
|
||||
},
|
||||
"alerts_resolved_s": {
|
||||
"OtelCollectorDown": 122.9
|
||||
},
|
||||
"http_before": {
|
||||
"requests": 108,
|
||||
"ok": 108,
|
||||
"errors": 0,
|
||||
"error_statuses": [],
|
||||
"p50_ms": 18.2,
|
||||
"p95_ms": 44.3,
|
||||
"p99_ms": 76.5
|
||||
},
|
||||
"http_during": {
|
||||
"requests": 748,
|
||||
"ok": 748,
|
||||
"errors": 0,
|
||||
"error_statuses": [],
|
||||
"p50_ms": 12.5,
|
||||
"p95_ms": 40.4,
|
||||
"p99_ms": 64.8
|
||||
},
|
||||
"api_mem_before": {
|
||||
"8ebba9c6afb2": "46.98MiB",
|
||||
"5444178a6fc3": "47.37MiB"
|
||||
},
|
||||
"api_mem_during": {
|
||||
"8ebba9c6afb2": "53.61MiB",
|
||||
"5444178a6fc3": "54.21MiB"
|
||||
},
|
||||
"sdk_delta": {
|
||||
"spans_export_failed": 5712,
|
||||
"spans_queue_dropped": 0,
|
||||
"logs_export_failed": 715,
|
||||
"logs_queue_dropped": 0,
|
||||
"spans_started": 8311
|
||||
},
|
||||
"sdk_export_errors_by_type_total": {
|
||||
"MaxRetryError": 5712
|
||||
},
|
||||
"detection_s": 36.4,
|
||||
"timeline": [
|
||||
{
|
||||
"t": 0.6,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0228,
|
||||
"db_p95_s": 0.0041,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 183.6406
|
||||
},
|
||||
{
|
||||
"t": 14.5,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0231,
|
||||
"db_p95_s": 0.0043,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 183.6523
|
||||
},
|
||||
{
|
||||
"t": 19.6,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0231,
|
||||
"db_p95_s": 0.0043,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 183.6523
|
||||
},
|
||||
{
|
||||
"t": 24.7,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0235,
|
||||
"db_p95_s": 0.0042,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": null,
|
||||
"collector_rss_mib": null
|
||||
},
|
||||
{
|
||||
"t": 29.8,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0235,
|
||||
"db_p95_s": 0.0043,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": null,
|
||||
"collector_rss_mib": null
|
||||
},
|
||||
{
|
||||
"t": 34.9,
|
||||
"alerts": {
|
||||
"OtelCollectorDown": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0213,
|
||||
"db_p95_s": 0.0043,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": null,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": null,
|
||||
"collector_rss_mib": null
|
||||
},
|
||||
{
|
||||
"t": 40.0,
|
||||
"alerts": {
|
||||
"OtelCollectorDown": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0213,
|
||||
"db_p95_s": 0.0044,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": null,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": null,
|
||||
"collector_rss_mib": null
|
||||
},
|
||||
{
|
||||
"t": 45.1,
|
||||
"alerts": {
|
||||
"OtelCollectorDown": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0235,
|
||||
"db_p95_s": 0.0044,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": null,
|
||||
"workers_capacity": null,
|
||||
"db_pool_waiting_api": null,
|
||||
"collector_queue": null,
|
||||
"collector_rss_mib": null
|
||||
},
|
||||
{
|
||||
"t": 50.3,
|
||||
"alerts": {
|
||||
"OtelCollectorDown": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0235,
|
||||
"db_p95_s": 0.0046,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": null,
|
||||
"workers_capacity": null,
|
||||
"db_pool_waiting_api": null,
|
||||
"collector_queue": null,
|
||||
"collector_rss_mib": null
|
||||
},
|
||||
{
|
||||
"t": 107.6,
|
||||
"alerts": {
|
||||
"OtelCollectorDown": "firing"
|
||||
},
|
||||
"error_ratio": null,
|
||||
"api_p95_s": null,
|
||||
"db_p95_s": null,
|
||||
"queue_lag_s": null,
|
||||
"queue_ready": null,
|
||||
"workers_capacity": null,
|
||||
"db_pool_waiting_api": null,
|
||||
"collector_queue": null,
|
||||
"collector_rss_mib": null
|
||||
},
|
||||
{
|
||||
"t": 112.7,
|
||||
"alerts": {
|
||||
"OtelCollectorDown": "firing"
|
||||
},
|
||||
"error_ratio": null,
|
||||
"api_p95_s": null,
|
||||
"db_p95_s": null,
|
||||
"queue_lag_s": null,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": null,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 159.4648
|
||||
},
|
||||
{
|
||||
"t": 117.8,
|
||||
"alerts": {
|
||||
"OtelCollectorDown": "firing"
|
||||
},
|
||||
"error_ratio": null,
|
||||
"api_p95_s": null,
|
||||
"db_p95_s": null,
|
||||
"queue_lag_s": null,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 159.4648
|
||||
},
|
||||
{
|
||||
"t": 122.9,
|
||||
"alerts": {
|
||||
"TelemetryLostInSdk": "firing"
|
||||
},
|
||||
"error_ratio": null,
|
||||
"api_p95_s": null,
|
||||
"db_p95_s": 0.0043,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 163.0742
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,559 @@
|
||||
{
|
||||
"scenario": "db-down",
|
||||
"marks_s": {
|
||||
"postgres paused": 16.0,
|
||||
"ApiHighErrorRate firing": 98.0,
|
||||
"postgres unpaused": 98.0,
|
||||
"resolved": 169.8
|
||||
},
|
||||
"alerts_first_firing_s": {
|
||||
"DbPoolSaturated": 62.2,
|
||||
"ApiHighErrorRate": 98.0,
|
||||
"ApiLatencyHigh": 128.9
|
||||
},
|
||||
"alerts_resolved_s": {
|
||||
"DbPoolSaturated": 108.5,
|
||||
"ApiHighErrorRate": 169.8,
|
||||
"ApiLatencyHigh": 169.8
|
||||
},
|
||||
"http_during": {
|
||||
"requests": 136,
|
||||
"ok": 0,
|
||||
"errors": 136,
|
||||
"error_statuses": [
|
||||
-1,
|
||||
503
|
||||
],
|
||||
"p50_ms": null,
|
||||
"p95_ms": null,
|
||||
"p99_ms": null
|
||||
},
|
||||
"error_traces_error_type": {
|
||||
"PoolTimeout": 20
|
||||
},
|
||||
"dependency_unavailable_logs": 136,
|
||||
"logged_errors": [
|
||||
"PoolTimeout",
|
||||
"TimeoutError"
|
||||
],
|
||||
"detection_s": 82.0,
|
||||
"timeline": [
|
||||
{
|
||||
"t": 1.0,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": null,
|
||||
"db_p95_s": 0.0022,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.2734
|
||||
},
|
||||
{
|
||||
"t": 16.3,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0236,
|
||||
"db_p95_s": 0.0036,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.3008
|
||||
},
|
||||
{
|
||||
"t": 21.4,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0534,
|
||||
"db_p95_s": 0.0036,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.3008
|
||||
},
|
||||
{
|
||||
"t": 26.5,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0534,
|
||||
"db_p95_s": 0.0038,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 13.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.3008
|
||||
},
|
||||
{
|
||||
"t": 31.6,
|
||||
"alerts": {
|
||||
"DbPoolSaturated": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0459,
|
||||
"db_p95_s": 0.0039,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 13.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.3008
|
||||
},
|
||||
{
|
||||
"t": 36.7,
|
||||
"alerts": {
|
||||
"DbPoolSaturated": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0459,
|
||||
"db_p95_s": 0.0041,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 40.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.3008
|
||||
},
|
||||
{
|
||||
"t": 41.8,
|
||||
"alerts": {
|
||||
"DbPoolSaturated": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0459,
|
||||
"db_p95_s": 0.0042,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 40.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.3203
|
||||
},
|
||||
{
|
||||
"t": 46.9,
|
||||
"alerts": {
|
||||
"DbPoolSaturated": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0459,
|
||||
"db_p95_s": 0.0043,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 81.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.3203
|
||||
},
|
||||
{
|
||||
"t": 52.0,
|
||||
"alerts": {
|
||||
"DbPoolSaturated": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0459,
|
||||
"db_p95_s": 0.0044,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": null,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 81.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.3281
|
||||
},
|
||||
{
|
||||
"t": 57.1,
|
||||
"alerts": {
|
||||
"DbPoolSaturated": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0459,
|
||||
"db_p95_s": 0.0045,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": null,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 123.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.3281
|
||||
},
|
||||
{
|
||||
"t": 62.2,
|
||||
"alerts": {
|
||||
"DbPoolSaturated": "firing"
|
||||
},
|
||||
"error_ratio": 0.2997,
|
||||
"api_p95_s": 2.2498,
|
||||
"db_p95_s": 0.0044,
|
||||
"queue_lag_s": null,
|
||||
"queue_ready": null,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 123.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.3359
|
||||
},
|
||||
{
|
||||
"t": 67.3,
|
||||
"alerts": {
|
||||
"ApiHighErrorRate": "pending",
|
||||
"ApiLatencyHigh": "pending",
|
||||
"DbPoolSaturated": "firing"
|
||||
},
|
||||
"error_ratio": 0.2997,
|
||||
"api_p95_s": 2.2498,
|
||||
"db_p95_s": 0.0046,
|
||||
"queue_lag_s": null,
|
||||
"queue_ready": null,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 165.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.3359
|
||||
},
|
||||
{
|
||||
"t": 72.4,
|
||||
"alerts": {
|
||||
"ApiHighErrorRate": "pending",
|
||||
"ApiLatencyHigh": "pending",
|
||||
"DbPoolSaturated": "firing"
|
||||
},
|
||||
"error_ratio": 0.6868,
|
||||
"api_p95_s": 2.3908,
|
||||
"db_p95_s": 5.0,
|
||||
"queue_lag_s": null,
|
||||
"queue_ready": null,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 197.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.3438
|
||||
},
|
||||
{
|
||||
"t": 77.5,
|
||||
"alerts": {
|
||||
"ApiHighErrorRate": "pending",
|
||||
"ApiLatencyHigh": "pending",
|
||||
"DbSlowQueries": "pending",
|
||||
"DbPoolSaturated": "firing"
|
||||
},
|
||||
"error_ratio": 0.6868,
|
||||
"api_p95_s": 2.3908,
|
||||
"db_p95_s": 5.0,
|
||||
"queue_lag_s": null,
|
||||
"queue_ready": null,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 205.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.3438
|
||||
},
|
||||
{
|
||||
"t": 82.7,
|
||||
"alerts": {
|
||||
"ApiHighErrorRate": "pending",
|
||||
"ApiLatencyHigh": "pending",
|
||||
"DbSlowQueries": "pending",
|
||||
"DbPoolSaturated": "firing"
|
||||
},
|
||||
"error_ratio": 1.0,
|
||||
"api_p95_s": 2.425,
|
||||
"db_p95_s": 5.0,
|
||||
"queue_lag_s": null,
|
||||
"queue_ready": null,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 240.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.4102
|
||||
},
|
||||
{
|
||||
"t": 87.8,
|
||||
"alerts": {
|
||||
"ApiHighErrorRate": "pending",
|
||||
"ApiLatencyHigh": "pending",
|
||||
"DbPoolSaturated": "firing"
|
||||
},
|
||||
"error_ratio": 1.0,
|
||||
"api_p95_s": 2.425,
|
||||
"db_p95_s": null,
|
||||
"queue_lag_s": null,
|
||||
"queue_ready": null,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 247.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.4102
|
||||
},
|
||||
{
|
||||
"t": 92.9,
|
||||
"alerts": {
|
||||
"ApiHighErrorRate": "pending",
|
||||
"ApiLatencyHigh": "pending",
|
||||
"DbPoolSaturated": "firing"
|
||||
},
|
||||
"error_ratio": 1.0,
|
||||
"api_p95_s": 2.425,
|
||||
"db_p95_s": null,
|
||||
"queue_lag_s": null,
|
||||
"queue_ready": null,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 285.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.4141
|
||||
},
|
||||
{
|
||||
"t": 98.0,
|
||||
"alerts": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiLatencyHigh": "pending",
|
||||
"DbPoolSaturated": "firing"
|
||||
},
|
||||
"error_ratio": 1.0,
|
||||
"api_p95_s": 2.425,
|
||||
"db_p95_s": null,
|
||||
"queue_lag_s": null,
|
||||
"queue_ready": null,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 294.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.4141
|
||||
},
|
||||
{
|
||||
"t": 98.3,
|
||||
"alerts": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiLatencyHigh": "pending",
|
||||
"DbPoolSaturated": "firing"
|
||||
},
|
||||
"error_ratio": 1.0,
|
||||
"api_p95_s": 2.425,
|
||||
"db_p95_s": null,
|
||||
"queue_lag_s": null,
|
||||
"queue_ready": null,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 294.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.4805
|
||||
},
|
||||
{
|
||||
"t": 103.4,
|
||||
"alerts": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiLatencyHigh": "pending",
|
||||
"DbPoolSaturated": "firing"
|
||||
},
|
||||
"error_ratio": 1.0,
|
||||
"api_p95_s": 2.425,
|
||||
"db_p95_s": 5.0,
|
||||
"queue_lag_s": null,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 60.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.4805
|
||||
},
|
||||
{
|
||||
"t": 108.5,
|
||||
"alerts": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiLatencyHigh": "pending"
|
||||
},
|
||||
"error_ratio": 0.7833,
|
||||
"api_p95_s": 2.4348,
|
||||
"db_p95_s": 0.0444,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.4883
|
||||
},
|
||||
{
|
||||
"t": 113.6,
|
||||
"alerts": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiLatencyHigh": "pending"
|
||||
},
|
||||
"error_ratio": 0.7833,
|
||||
"api_p95_s": 2.4348,
|
||||
"db_p95_s": 0.0057,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.4883
|
||||
},
|
||||
{
|
||||
"t": 118.7,
|
||||
"alerts": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiLatencyHigh": "pending"
|
||||
},
|
||||
"error_ratio": 0.4654,
|
||||
"api_p95_s": 2.376,
|
||||
"db_p95_s": 0.005,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.5039
|
||||
},
|
||||
{
|
||||
"t": 123.8,
|
||||
"alerts": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiLatencyHigh": "pending"
|
||||
},
|
||||
"error_ratio": 0.4654,
|
||||
"api_p95_s": 2.376,
|
||||
"db_p95_s": 0.0048,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.5039
|
||||
},
|
||||
{
|
||||
"t": 128.9,
|
||||
"alerts": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiLatencyHigh": "firing"
|
||||
},
|
||||
"error_ratio": 0.2822,
|
||||
"api_p95_s": 2.2791,
|
||||
"db_p95_s": 0.0048,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.5078
|
||||
},
|
||||
{
|
||||
"t": 134.0,
|
||||
"alerts": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiLatencyHigh": "firing"
|
||||
},
|
||||
"error_ratio": 0.2822,
|
||||
"api_p95_s": 2.2791,
|
||||
"db_p95_s": 0.0046,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.5078
|
||||
},
|
||||
{
|
||||
"t": 139.1,
|
||||
"alerts": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiLatencyHigh": "firing"
|
||||
},
|
||||
"error_ratio": 0.1529,
|
||||
"api_p95_s": 2.0672,
|
||||
"db_p95_s": 0.0045,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.5117
|
||||
},
|
||||
{
|
||||
"t": 144.2,
|
||||
"alerts": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiLatencyHigh": "firing"
|
||||
},
|
||||
"error_ratio": 0.1529,
|
||||
"api_p95_s": 2.0672,
|
||||
"db_p95_s": 0.0042,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.5117
|
||||
},
|
||||
{
|
||||
"t": 149.3,
|
||||
"alerts": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiLatencyHigh": "firing"
|
||||
},
|
||||
"error_ratio": 0.0636,
|
||||
"api_p95_s": 1.361,
|
||||
"db_p95_s": 0.0042,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.5781
|
||||
},
|
||||
{
|
||||
"t": 154.5,
|
||||
"alerts": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiLatencyHigh": "firing"
|
||||
},
|
||||
"error_ratio": 0.0636,
|
||||
"api_p95_s": 1.361,
|
||||
"db_p95_s": 0.0037,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.5781
|
||||
},
|
||||
{
|
||||
"t": 159.6,
|
||||
"alerts": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiLatencyHigh": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0376,
|
||||
"db_p95_s": 0.0036,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.582
|
||||
},
|
||||
{
|
||||
"t": 164.7,
|
||||
"alerts": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiLatencyHigh": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0376,
|
||||
"db_p95_s": 0.0034,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.582
|
||||
},
|
||||
{
|
||||
"t": 169.8,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.025,
|
||||
"db_p95_s": 0.0034,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.5898
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,595 @@
|
||||
{
|
||||
"scenario": "db-slow",
|
||||
"marks_s": {
|
||||
"postgres limited to 0.03 CPU": 31.1,
|
||||
"DbSlowQueries firing": 87.6,
|
||||
"postgres restored to 1.0 CPU": 119.2,
|
||||
"resolved": 185.7
|
||||
},
|
||||
"alerts_first_firing_s": {
|
||||
"DbSlowQueries": 87.6,
|
||||
"ApiLatencyHigh": 118.5
|
||||
},
|
||||
"alerts_resolved_s": {
|
||||
"DbSlowQueries": 175.5,
|
||||
"ApiLatencyHigh": 185.7
|
||||
},
|
||||
"metrics_before": {
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0425,
|
||||
"db_p95_s": 0.0035,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 175.6914
|
||||
},
|
||||
"metrics_during": {
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.717,
|
||||
"db_p95_s": 0.222,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 176.6094
|
||||
},
|
||||
"slow_trace": {
|
||||
"trace_id": "0a0efea457d22fb0b498b9fe612a9696",
|
||||
"duration_ms": 702.1,
|
||||
"db_ms": 694.4,
|
||||
"pool_wait_ms": 192.0,
|
||||
"db_share": 0.99,
|
||||
"db_or_pool_share": 1.26,
|
||||
"not_in_child_spans_ms": 7.1,
|
||||
"error_type": null,
|
||||
"slowest_child": [
|
||||
"INSERT messages",
|
||||
300.8
|
||||
]
|
||||
},
|
||||
"http_before": {
|
||||
"requests": 180,
|
||||
"ok": 180,
|
||||
"errors": 0,
|
||||
"error_statuses": [],
|
||||
"p50_ms": 11.8,
|
||||
"p95_ms": 37.6,
|
||||
"p99_ms": 80.0
|
||||
},
|
||||
"http_during": {
|
||||
"requests": 516,
|
||||
"ok": 516,
|
||||
"errors": 0,
|
||||
"error_statuses": [],
|
||||
"p50_ms": 132.6,
|
||||
"p95_ms": 698.8,
|
||||
"p99_ms": 964.9
|
||||
},
|
||||
"detection_s": 56.5,
|
||||
"timeline": [
|
||||
{
|
||||
"t": 1.0,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0544,
|
||||
"db_p95_s": 0.005,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 175.4531
|
||||
},
|
||||
{
|
||||
"t": 31.2,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0425,
|
||||
"db_p95_s": 0.0035,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 175.6914
|
||||
},
|
||||
{
|
||||
"t": 36.4,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0269,
|
||||
"db_p95_s": 0.0035,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 175.7148
|
||||
},
|
||||
{
|
||||
"t": 41.5,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0269,
|
||||
"db_p95_s": 0.0047,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 175.7148
|
||||
},
|
||||
{
|
||||
"t": 46.6,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.2729,
|
||||
"db_p95_s": 0.005,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 175.7266
|
||||
},
|
||||
{
|
||||
"t": 51.9,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.2729,
|
||||
"db_p95_s": 0.0726,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 175.7266
|
||||
},
|
||||
{
|
||||
"t": 57.0,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "pending",
|
||||
"DbSlowQueries": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.5339,
|
||||
"db_p95_s": 0.0791,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 175.8438
|
||||
},
|
||||
{
|
||||
"t": 62.1,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "pending",
|
||||
"DbSlowQueries": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.5339,
|
||||
"db_p95_s": 0.1444,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 175.8438
|
||||
},
|
||||
{
|
||||
"t": 67.2,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "pending",
|
||||
"DbSlowQueries": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.6597,
|
||||
"db_p95_s": 0.1504,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 175.9023
|
||||
},
|
||||
{
|
||||
"t": 72.3,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "pending",
|
||||
"DbSlowQueries": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.6597,
|
||||
"db_p95_s": 0.1842,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 175.9023
|
||||
},
|
||||
{
|
||||
"t": 77.4,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "pending",
|
||||
"DbSlowQueries": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.6884,
|
||||
"db_p95_s": 0.1885,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 176.2773
|
||||
},
|
||||
{
|
||||
"t": 82.5,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "pending",
|
||||
"DbSlowQueries": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.6884,
|
||||
"db_p95_s": 0.2102,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 176.2773
|
||||
},
|
||||
{
|
||||
"t": 87.6,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "pending",
|
||||
"DbSlowQueries": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.7136,
|
||||
"db_p95_s": 0.2115,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 176.2969
|
||||
},
|
||||
{
|
||||
"t": 87.7,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "pending",
|
||||
"DbSlowQueries": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.7136,
|
||||
"db_p95_s": 0.2145,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 176.2969
|
||||
},
|
||||
{
|
||||
"t": 92.8,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "pending",
|
||||
"DbSlowQueries": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.7136,
|
||||
"db_p95_s": 0.2277,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 176.2969
|
||||
},
|
||||
{
|
||||
"t": 97.9,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "pending",
|
||||
"DbSlowQueries": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.7451,
|
||||
"db_p95_s": 0.2309,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 176.3086
|
||||
},
|
||||
{
|
||||
"t": 103.0,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "pending",
|
||||
"DbSlowQueries": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.7451,
|
||||
"db_p95_s": 0.2263,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 176.3086
|
||||
},
|
||||
{
|
||||
"t": 108.1,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "pending",
|
||||
"DbSlowQueries": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.7562,
|
||||
"db_p95_s": 0.2251,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 176.3164
|
||||
},
|
||||
{
|
||||
"t": 113.2,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "pending",
|
||||
"DbSlowQueries": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.7562,
|
||||
"db_p95_s": 0.2219,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 176.3164
|
||||
},
|
||||
{
|
||||
"t": 118.5,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing",
|
||||
"DbSlowQueries": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.717,
|
||||
"db_p95_s": 0.2241,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 176.6094
|
||||
},
|
||||
{
|
||||
"t": 119.3,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing",
|
||||
"DbSlowQueries": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.717,
|
||||
"db_p95_s": 0.222,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 176.6094
|
||||
},
|
||||
{
|
||||
"t": 124.4,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing",
|
||||
"DbSlowQueries": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.717,
|
||||
"db_p95_s": 0.2215,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 179.6484
|
||||
},
|
||||
{
|
||||
"t": 129.5,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing",
|
||||
"DbSlowQueries": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.7344,
|
||||
"db_p95_s": 0.208,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 179.6484
|
||||
},
|
||||
{
|
||||
"t": 134.6,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing",
|
||||
"DbSlowQueries": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.7082,
|
||||
"db_p95_s": 0.2056,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 180.0391
|
||||
},
|
||||
{
|
||||
"t": 139.7,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing",
|
||||
"DbSlowQueries": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.7082,
|
||||
"db_p95_s": 0.1648,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 180.0391
|
||||
},
|
||||
{
|
||||
"t": 144.8,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing",
|
||||
"DbSlowQueries": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.5781,
|
||||
"db_p95_s": 0.1538,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 180.0508
|
||||
},
|
||||
{
|
||||
"t": 149.9,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing",
|
||||
"DbSlowQueries": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.5781,
|
||||
"db_p95_s": 0.1125,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 180.0508
|
||||
},
|
||||
{
|
||||
"t": 155.1,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing",
|
||||
"DbSlowQueries": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.55,
|
||||
"db_p95_s": 0.0996,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 180.0703
|
||||
},
|
||||
{
|
||||
"t": 160.2,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing",
|
||||
"DbSlowQueries": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.55,
|
||||
"db_p95_s": 0.0728,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 180.0703
|
||||
},
|
||||
{
|
||||
"t": 165.3,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing",
|
||||
"DbSlowQueries": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.425,
|
||||
"db_p95_s": 0.0652,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 180.0703
|
||||
},
|
||||
{
|
||||
"t": 170.4,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing",
|
||||
"DbSlowQueries": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.425,
|
||||
"db_p95_s": 0.0035,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 180.0703
|
||||
},
|
||||
{
|
||||
"t": 175.5,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0273,
|
||||
"db_p95_s": 0.0031,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 180.168
|
||||
},
|
||||
{
|
||||
"t": 180.6,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0273,
|
||||
"db_p95_s": 0.0028,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 180.168
|
||||
},
|
||||
{
|
||||
"t": 185.7,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0241,
|
||||
"db_p95_s": 0.0028,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 180.4141
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,533 @@
|
||||
{
|
||||
"scenario": "handler-slow",
|
||||
"marks_s": {
|
||||
"50% of messages carry fault-api-slow-400 (sleep in handler)": 0.6,
|
||||
"ApiLatencyHigh firing": 87.8,
|
||||
"resolved": 160.2
|
||||
},
|
||||
"alerts_first_firing_s": {
|
||||
"ApiLatencyHigh": 87.8
|
||||
},
|
||||
"alerts_resolved_s": {
|
||||
"ApiLatencyHigh": 160.2
|
||||
},
|
||||
"metrics_during": {
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.475,
|
||||
"db_p95_s": 0.0026,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.0938
|
||||
},
|
||||
"db_alert_fired": false,
|
||||
"slow_trace": {
|
||||
"trace_id": "2aa39fd46f97f6a25232626dcb3aa263",
|
||||
"duration_ms": 421.9,
|
||||
"db_ms": 12.2,
|
||||
"pool_wait_ms": 3.8,
|
||||
"db_share": 0.03,
|
||||
"db_or_pool_share": 0.04,
|
||||
"not_in_child_spans_ms": 409.2,
|
||||
"error_type": null,
|
||||
"slowest_child": [
|
||||
"INSERT messages",
|
||||
6.6
|
||||
]
|
||||
},
|
||||
"http_during": {
|
||||
"requests": 526,
|
||||
"ok": 526,
|
||||
"errors": 0,
|
||||
"error_statuses": [],
|
||||
"p50_ms": 66.4,
|
||||
"p95_ms": 421.4,
|
||||
"p99_ms": 440.7
|
||||
},
|
||||
"detection_s": 87.8,
|
||||
"timeline": [
|
||||
{
|
||||
"t": 0.8,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0241,
|
||||
"db_p95_s": 0.0028,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 180.4141
|
||||
},
|
||||
{
|
||||
"t": 5.9,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0241,
|
||||
"db_p95_s": 0.003,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 180.4141
|
||||
},
|
||||
{
|
||||
"t": 11.0,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0252,
|
||||
"db_p95_s": 0.003,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 180.4219
|
||||
},
|
||||
{
|
||||
"t": 16.2,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0252,
|
||||
"db_p95_s": 0.0031,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 180.4219
|
||||
},
|
||||
{
|
||||
"t": 21.2,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.3904,
|
||||
"db_p95_s": 0.0031,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 180.4922
|
||||
},
|
||||
{
|
||||
"t": 26.3,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.3904,
|
||||
"db_p95_s": 0.0031,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 180.4922
|
||||
},
|
||||
{
|
||||
"t": 31.4,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.4418,
|
||||
"db_p95_s": 0.0031,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 180.5508
|
||||
},
|
||||
{
|
||||
"t": 36.5,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.4418,
|
||||
"db_p95_s": 0.0028,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 180.5508
|
||||
},
|
||||
{
|
||||
"t": 41.6,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.4604,
|
||||
"db_p95_s": 0.0028,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 180.6172
|
||||
},
|
||||
{
|
||||
"t": 46.7,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.4604,
|
||||
"db_p95_s": 0.0028,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 180.6172
|
||||
},
|
||||
{
|
||||
"t": 51.8,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.47,
|
||||
"db_p95_s": 0.0029,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 180.707
|
||||
},
|
||||
{
|
||||
"t": 56.9,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.47,
|
||||
"db_p95_s": 0.0026,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 180.707
|
||||
},
|
||||
{
|
||||
"t": 62.1,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.475,
|
||||
"db_p95_s": 0.0025,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 1.0,
|
||||
"collector_rss_mib": 181.0078
|
||||
},
|
||||
{
|
||||
"t": 67.1,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.475,
|
||||
"db_p95_s": 0.0028,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 1.0,
|
||||
"collector_rss_mib": 181.0078
|
||||
},
|
||||
{
|
||||
"t": 72.2,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.475,
|
||||
"db_p95_s": 0.0027,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 1.0,
|
||||
"collector_rss_mib": 181.0234
|
||||
},
|
||||
{
|
||||
"t": 77.4,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.475,
|
||||
"db_p95_s": 0.0026,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 1.0,
|
||||
"collector_rss_mib": 181.0234
|
||||
},
|
||||
{
|
||||
"t": 82.6,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.475,
|
||||
"db_p95_s": 0.0026,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.0938
|
||||
},
|
||||
{
|
||||
"t": 87.8,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.475,
|
||||
"db_p95_s": 0.0026,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.0938
|
||||
},
|
||||
{
|
||||
"t": 88.5,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.475,
|
||||
"db_p95_s": 0.0026,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.0938
|
||||
},
|
||||
{
|
||||
"t": 93.6,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.475,
|
||||
"db_p95_s": 0.0025,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 1.0,
|
||||
"collector_rss_mib": 181.1016
|
||||
},
|
||||
{
|
||||
"t": 98.7,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.4752,
|
||||
"db_p95_s": 0.0025,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.1055
|
||||
},
|
||||
{
|
||||
"t": 103.8,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.4752,
|
||||
"db_p95_s": 0.0025,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.1055
|
||||
},
|
||||
{
|
||||
"t": 108.9,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.4752,
|
||||
"db_p95_s": 0.0025,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.1055
|
||||
},
|
||||
{
|
||||
"t": 114.0,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.4752,
|
||||
"db_p95_s": 0.0024,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.1055
|
||||
},
|
||||
{
|
||||
"t": 119.2,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.4753,
|
||||
"db_p95_s": 0.0023,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.1055
|
||||
},
|
||||
{
|
||||
"t": 124.3,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.4753,
|
||||
"db_p95_s": 0.0023,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.1055
|
||||
},
|
||||
{
|
||||
"t": 129.4,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.4755,
|
||||
"db_p95_s": 0.0023,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.1094
|
||||
},
|
||||
{
|
||||
"t": 134.5,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.4755,
|
||||
"db_p95_s": 0.0022,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.1094
|
||||
},
|
||||
{
|
||||
"t": 139.6,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.4762,
|
||||
"db_p95_s": 0.0021,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.1133
|
||||
},
|
||||
{
|
||||
"t": 144.7,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.4762,
|
||||
"db_p95_s": 0.0021,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.1133
|
||||
},
|
||||
{
|
||||
"t": 149.8,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": null,
|
||||
"db_p95_s": 0.002,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.1289
|
||||
},
|
||||
{
|
||||
"t": 155.1,
|
||||
"alerts": {
|
||||
"ApiLatencyHigh": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": null,
|
||||
"db_p95_s": 0.0021,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.1289
|
||||
},
|
||||
{
|
||||
"t": 160.2,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": null,
|
||||
"db_p95_s": 0.0022,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 181.2734
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,306 @@
|
||||
{
|
||||
"scenario": "telemetry-down",
|
||||
"marks_s": {
|
||||
"tempo and loki stopped": 21.8,
|
||||
"TelemetryExportFailing firing": 89.0,
|
||||
"tempo and loki started": 150.2,
|
||||
"resolved, queue drained": 172.3
|
||||
},
|
||||
"alerts_first_firing_s": {
|
||||
"TelemetryExportFailing": 89.0
|
||||
},
|
||||
"alerts_resolved_s": {
|
||||
"TelemetryExportFailing": 167.2
|
||||
},
|
||||
"http_during": {
|
||||
"requests": 772,
|
||||
"ok": 772,
|
||||
"errors": 0,
|
||||
"error_statuses": [],
|
||||
"p50_ms": 13.1,
|
||||
"p95_ms": 40.2,
|
||||
"p99_ms": 76.7
|
||||
},
|
||||
"uploads_during": {
|
||||
"requests": 42,
|
||||
"ok": 42,
|
||||
"errors": 0,
|
||||
"error_statuses": [],
|
||||
"p50_ms": 26.6,
|
||||
"p95_ms": 48.3,
|
||||
"p99_ms": 217.8
|
||||
},
|
||||
"collector_mem_before": {
|
||||
"ac5a65d675df": "50.21MiB"
|
||||
},
|
||||
"collector_mem_during": {
|
||||
"ac5a65d675df": "54.82MiB"
|
||||
},
|
||||
"exporter_queue_max": 64.0,
|
||||
"exporter_queue_capacity": 200.0,
|
||||
"telemetry_delta": {
|
||||
"accepted_spans": 9907,
|
||||
"send_failed_spans": 275,
|
||||
"enqueue_failed_spans": 0,
|
||||
"send_failed_logs": 30,
|
||||
"enqueue_failed_logs": 0
|
||||
},
|
||||
"traces_from_outage_window_found_after_recovery": 200,
|
||||
"detection_s": 67.2,
|
||||
"timeline": [
|
||||
{
|
||||
"t": 27.5,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0384,
|
||||
"db_p95_s": 0.0041,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 4.0,
|
||||
"collector_rss_mib": 181.6172
|
||||
},
|
||||
{
|
||||
"t": 32.6,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0384,
|
||||
"db_p95_s": 0.0043,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 4.0,
|
||||
"collector_rss_mib": 181.6172
|
||||
},
|
||||
{
|
||||
"t": 37.7,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0388,
|
||||
"db_p95_s": 0.0043,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 14.0,
|
||||
"collector_rss_mib": 181.6875
|
||||
},
|
||||
{
|
||||
"t": 42.8,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0388,
|
||||
"db_p95_s": 0.0044,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 14.0,
|
||||
"collector_rss_mib": 181.6875
|
||||
},
|
||||
{
|
||||
"t": 47.9,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0403,
|
||||
"db_p95_s": 0.0044,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 24.0,
|
||||
"collector_rss_mib": 181.7656
|
||||
},
|
||||
{
|
||||
"t": 53.0,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0403,
|
||||
"db_p95_s": 0.0046,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 24.0,
|
||||
"collector_rss_mib": 181.7656
|
||||
},
|
||||
{
|
||||
"t": 58.1,
|
||||
"alerts": {
|
||||
"TelemetryExportFailing": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0423,
|
||||
"db_p95_s": 0.0046,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 34.0,
|
||||
"collector_rss_mib": 181.7695
|
||||
},
|
||||
{
|
||||
"t": 63.2,
|
||||
"alerts": {
|
||||
"TelemetryExportFailing": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0423,
|
||||
"db_p95_s": 0.0048,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 34.0,
|
||||
"collector_rss_mib": 181.7695
|
||||
},
|
||||
{
|
||||
"t": 68.4,
|
||||
"alerts": {
|
||||
"TelemetryExportFailing": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0458,
|
||||
"db_p95_s": 0.0048,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 44.0,
|
||||
"collector_rss_mib": 181.7695
|
||||
},
|
||||
{
|
||||
"t": 73.7,
|
||||
"alerts": {
|
||||
"TelemetryExportFailing": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0458,
|
||||
"db_p95_s": 0.0046,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 44.0,
|
||||
"collector_rss_mib": 181.7695
|
||||
},
|
||||
{
|
||||
"t": 78.8,
|
||||
"alerts": {
|
||||
"TelemetryExportFailing": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0435,
|
||||
"db_p95_s": 0.0046,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 54.0,
|
||||
"collector_rss_mib": 181.7695
|
||||
},
|
||||
{
|
||||
"t": 83.9,
|
||||
"alerts": {
|
||||
"TelemetryExportFailing": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0435,
|
||||
"db_p95_s": 0.0044,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 54.0,
|
||||
"collector_rss_mib": 181.7695
|
||||
},
|
||||
{
|
||||
"t": 89.0,
|
||||
"alerts": {
|
||||
"TelemetryExportFailing": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0406,
|
||||
"db_p95_s": 0.0044,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 64.0,
|
||||
"collector_rss_mib": 182.1641
|
||||
},
|
||||
{
|
||||
"t": 151.9,
|
||||
"alerts": {
|
||||
"TelemetryExportFailing": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0423,
|
||||
"db_p95_s": 0.0042,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 120.0,
|
||||
"collector_rss_mib": 186.1523
|
||||
},
|
||||
{
|
||||
"t": 157.0,
|
||||
"alerts": {
|
||||
"TelemetryExportFailing": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0423,
|
||||
"db_p95_s": 0.0042,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 120.0,
|
||||
"collector_rss_mib": 186.1523
|
||||
},
|
||||
{
|
||||
"t": 162.1,
|
||||
"alerts": {
|
||||
"TelemetryExportFailing": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.042,
|
||||
"db_p95_s": 0.0046,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 1.0,
|
||||
"collector_rss_mib": 190.9453
|
||||
},
|
||||
{
|
||||
"t": 167.2,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.042,
|
||||
"db_p95_s": 0.0047,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 1.0,
|
||||
"collector_rss_mib": 190.9453
|
||||
},
|
||||
{
|
||||
"t": 172.3,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0435,
|
||||
"db_p95_s": 0.0046,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 192.2148
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,414 @@
|
||||
{
|
||||
"scenario": "worker-stop",
|
||||
"marks_s": {
|
||||
"worker stopped": 20.7,
|
||||
"both alerts firing": 98.3,
|
||||
"worker started": 113.3,
|
||||
"alerts resolved, backlog empty": 158.5
|
||||
},
|
||||
"alerts_first_firing_s": {
|
||||
"JobQueueLagGrowing": 98.3,
|
||||
"WorkerHeartbeatMissing": 98.3
|
||||
},
|
||||
"alerts_resolved_s": {
|
||||
"WorkerHeartbeatMissing": 138.0,
|
||||
"JobQueueLagGrowing": 158.5
|
||||
},
|
||||
"uploads_accepted": 78,
|
||||
"uploads_not_ready_after_recovery": 0,
|
||||
"queue_ready_peak": 34.0,
|
||||
"api_accepted_logs_during_outage": 46,
|
||||
"worker_logs_during_outage": 0,
|
||||
"detection_s": {
|
||||
"JobQueueLagGrowing": 77.6,
|
||||
"WorkerHeartbeatMissing": 77.6
|
||||
},
|
||||
"recovery_s": {
|
||||
"JobQueueLagGrowing": 45.2,
|
||||
"WorkerHeartbeatMissing": 24.7
|
||||
},
|
||||
"http_during_outage": {
|
||||
"requests": 276,
|
||||
"ok": 276,
|
||||
"errors": 0,
|
||||
"error_statuses": [],
|
||||
"p50_ms": 15.4,
|
||||
"p95_ms": 37.4,
|
||||
"p99_ms": 75.3
|
||||
},
|
||||
"timeline": [
|
||||
{
|
||||
"t": 0.7,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": null,
|
||||
"db_p95_s": 0.0025,
|
||||
"queue_lag_s": null,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": null,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 159.8984
|
||||
},
|
||||
{
|
||||
"t": 21.6,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.131,
|
||||
"db_p95_s": 0.0049,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 166.1602
|
||||
},
|
||||
{
|
||||
"t": 26.6,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0483,
|
||||
"db_p95_s": 0.0049,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 167.8047
|
||||
},
|
||||
{
|
||||
"t": 31.7,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0483,
|
||||
"db_p95_s": 0.0047,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 2.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 167.8047
|
||||
},
|
||||
{
|
||||
"t": 36.8,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0436,
|
||||
"db_p95_s": 0.0047,
|
||||
"queue_lag_s": 7.0425,
|
||||
"queue_ready": 4.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 168.8203
|
||||
},
|
||||
{
|
||||
"t": 41.9,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0436,
|
||||
"db_p95_s": 0.0045,
|
||||
"queue_lag_s": 7.0425,
|
||||
"queue_ready": 7.0,
|
||||
"workers_capacity": null,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 168.8203
|
||||
},
|
||||
{
|
||||
"t": 47.0,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0433,
|
||||
"db_p95_s": 0.0045,
|
||||
"queue_lag_s": 17.0557,
|
||||
"queue_ready": 9.0,
|
||||
"workers_capacity": null,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 169.0859
|
||||
},
|
||||
{
|
||||
"t": 52.1,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0433,
|
||||
"db_p95_s": 0.0045,
|
||||
"queue_lag_s": 17.0557,
|
||||
"queue_ready": 12.0,
|
||||
"workers_capacity": null,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 169.0859
|
||||
},
|
||||
{
|
||||
"t": 57.2,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0408,
|
||||
"db_p95_s": 0.0045,
|
||||
"queue_lag_s": 27.0656,
|
||||
"queue_ready": 14.0,
|
||||
"workers_capacity": null,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 171.043
|
||||
},
|
||||
{
|
||||
"t": 62.3,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0408,
|
||||
"db_p95_s": 0.004,
|
||||
"queue_lag_s": 27.0656,
|
||||
"queue_ready": 17.0,
|
||||
"workers_capacity": null,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 171.043
|
||||
},
|
||||
{
|
||||
"t": 67.6,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0393,
|
||||
"db_p95_s": 0.004,
|
||||
"queue_lag_s": 37.0758,
|
||||
"queue_ready": 19.0,
|
||||
"workers_capacity": null,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 173.8867
|
||||
},
|
||||
{
|
||||
"t": 72.8,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0393,
|
||||
"db_p95_s": 0.0037,
|
||||
"queue_lag_s": 37.0758,
|
||||
"queue_ready": 22.0,
|
||||
"workers_capacity": null,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 173.8867
|
||||
},
|
||||
{
|
||||
"t": 77.9,
|
||||
"alerts": {
|
||||
"JobQueueLagGrowing": "pending",
|
||||
"WorkerHeartbeatMissing": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0342,
|
||||
"db_p95_s": 0.0037,
|
||||
"queue_lag_s": 47.1036,
|
||||
"queue_ready": 24.0,
|
||||
"workers_capacity": null,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 174.7188
|
||||
},
|
||||
{
|
||||
"t": 83.0,
|
||||
"alerts": {
|
||||
"JobQueueLagGrowing": "pending",
|
||||
"WorkerHeartbeatMissing": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0342,
|
||||
"db_p95_s": 0.0044,
|
||||
"queue_lag_s": 47.1036,
|
||||
"queue_ready": 27.0,
|
||||
"workers_capacity": null,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 174.7188
|
||||
},
|
||||
{
|
||||
"t": 88.1,
|
||||
"alerts": {
|
||||
"JobQueueLagGrowing": "pending",
|
||||
"WorkerHeartbeatMissing": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.045,
|
||||
"db_p95_s": 0.0044,
|
||||
"queue_lag_s": 57.1166,
|
||||
"queue_ready": 29.0,
|
||||
"workers_capacity": null,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 174.9297
|
||||
},
|
||||
{
|
||||
"t": 93.2,
|
||||
"alerts": {
|
||||
"JobQueueLagGrowing": "pending",
|
||||
"WorkerHeartbeatMissing": "pending"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.045,
|
||||
"db_p95_s": 0.0046,
|
||||
"queue_lag_s": 57.1166,
|
||||
"queue_ready": 32.0,
|
||||
"workers_capacity": null,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 174.9297
|
||||
},
|
||||
{
|
||||
"t": 98.3,
|
||||
"alerts": {
|
||||
"JobQueueLagGrowing": "firing",
|
||||
"WorkerHeartbeatMissing": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0488,
|
||||
"db_p95_s": 0.0045,
|
||||
"queue_lag_s": 67.1494,
|
||||
"queue_ready": 34.0,
|
||||
"workers_capacity": null,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 174.9727
|
||||
},
|
||||
{
|
||||
"t": 117.5,
|
||||
"alerts": {
|
||||
"JobQueueLagGrowing": "firing",
|
||||
"WorkerHeartbeatMissing": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0491,
|
||||
"db_p95_s": 0.0047,
|
||||
"queue_lag_s": 87.1689,
|
||||
"queue_ready": 43.0,
|
||||
"workers_capacity": null,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 175.1758
|
||||
},
|
||||
{
|
||||
"t": 122.6,
|
||||
"alerts": {
|
||||
"JobQueueLagGrowing": "firing",
|
||||
"WorkerHeartbeatMissing": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0491,
|
||||
"db_p95_s": 0.0048,
|
||||
"queue_lag_s": 87.1689,
|
||||
"queue_ready": 46.0,
|
||||
"workers_capacity": null,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 175.1758
|
||||
},
|
||||
{
|
||||
"t": 127.7,
|
||||
"alerts": {
|
||||
"JobQueueLagGrowing": "firing",
|
||||
"WorkerHeartbeatMissing": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0557,
|
||||
"db_p95_s": 0.0048,
|
||||
"queue_lag_s": 97.1806,
|
||||
"queue_ready": 48.0,
|
||||
"workers_capacity": null,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 175.3164
|
||||
},
|
||||
{
|
||||
"t": 132.8,
|
||||
"alerts": {
|
||||
"JobQueueLagGrowing": "firing",
|
||||
"WorkerHeartbeatMissing": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0557,
|
||||
"db_p95_s": 0.0054,
|
||||
"queue_lag_s": 97.1806,
|
||||
"queue_ready": 48.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 175.3164
|
||||
},
|
||||
{
|
||||
"t": 138.0,
|
||||
"alerts": {
|
||||
"JobQueueLagGrowing": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.055,
|
||||
"db_p95_s": 0.0054,
|
||||
"queue_lag_s": 56.1344,
|
||||
"queue_ready": 28.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 175.3711
|
||||
},
|
||||
{
|
||||
"t": 143.2,
|
||||
"alerts": {
|
||||
"JobQueueLagGrowing": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.055,
|
||||
"db_p95_s": 0.0068,
|
||||
"queue_lag_s": 56.1344,
|
||||
"queue_ready": 14.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 175.3711
|
||||
},
|
||||
{
|
||||
"t": 148.3,
|
||||
"alerts": {
|
||||
"JobQueueLagGrowing": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.055,
|
||||
"db_p95_s": 0.007,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 175.4375
|
||||
},
|
||||
{
|
||||
"t": 153.4,
|
||||
"alerts": {
|
||||
"JobQueueLagGrowing": "firing"
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.055,
|
||||
"db_p95_s": 0.0061,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 175.4375
|
||||
},
|
||||
{
|
||||
"t": 158.5,
|
||||
"alerts": {},
|
||||
"error_ratio": 0.0,
|
||||
"api_p95_s": 0.0544,
|
||||
"db_p95_s": 0.0061,
|
||||
"queue_lag_s": 0.0,
|
||||
"queue_ready": 0.0,
|
||||
"workers_capacity": 4.0,
|
||||
"db_pool_waiting_api": 0.0,
|
||||
"collector_queue": 0.0,
|
||||
"collector_rss_mib": 175.4531
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
# 2026-11-21T20:01:39Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ dc exec -T api python -m messenger jobs failed --limit 20
|
||||
{
|
||||
"failed": [
|
||||
{
|
||||
"job_id": "7e27c9a9-3142-404f-9bcb-2a10665b3aec",
|
||||
"attachment_id": "ba26c359-2438-45eb-a463-68caec1cff88",
|
||||
"pipeline_version": 1,
|
||||
"error_code": "invalid_image",
|
||||
"error_detail": "OSError: broken data stream when reading image file",
|
||||
"attempt": 1,
|
||||
"claims": 1,
|
||||
"replays": 0,
|
||||
"failed_at": "2026-11-21 19:27:10.802973+00:00",
|
||||
"replayable": false
|
||||
},
|
||||
{
|
||||
"job_id": "00a3a193-62a9-4bd4-8f88-8af124640677",
|
||||
"attachment_id": "901dd139-d599-4177-bad1-afd7bae63828",
|
||||
"pipeline_version": 1,
|
||||
"error_code": "invalid_image",
|
||||
"error_detail": "OSError: broken data stream when reading image file",
|
||||
"attempt": 2,
|
||||
"claims": 1,
|
||||
"replays": 1,
|
||||
"failed_at": "2026-11-21 19:21:16.636634+00:00",
|
||||
"replayable": true
|
||||
},
|
||||
{
|
||||
"job_id": "da0acd1e-ac00-40e5-9351-0a5abd717d40",
|
||||
"attachment_id": "fee90bba-4e47-4779-98ce-c506f351f6f7",
|
||||
"pipeline_version": 1,
|
||||
"error_code": "invalid_image",
|
||||
"error_detail": "OSError: broken data stream when reading image file",
|
||||
"attempt": 1,
|
||||
"claims": 1,
|
||||
"replays": 0,
|
||||
"failed_at": "2026-11-21 19:21:04.496141+00:00",
|
||||
"replayable": true
|
||||
}
|
||||
],
|
||||
"count": 3
|
||||
}
|
||||
exit=0
|
||||
@@ -0,0 +1,24 @@
|
||||
# 2026-11-21T20:01:40Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ dc exec -T api python -m messenger jobs invariants --settled --verify-bytes
|
||||
{
|
||||
"ok": true,
|
||||
"violations": {},
|
||||
"violation_counts": {},
|
||||
"stats": {
|
||||
"attachments": 696,
|
||||
"jobs": 701,
|
||||
"variants": 2091,
|
||||
"events": 4394,
|
||||
"job_status": {
|
||||
"failed": 3,
|
||||
"ready": 696,
|
||||
"superseded": 2
|
||||
},
|
||||
"attachment_status": {
|
||||
"failed": 3,
|
||||
"ready": 693
|
||||
},
|
||||
"s3_objects": 2786
|
||||
}
|
||||
}
|
||||
exit=0
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"lab": 6,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 30.0,
|
||||
"elapsed_seconds": 30.062,
|
||||
"concurrency": 4,
|
||||
"successful_requests": 5438,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 180.893,
|
||||
"successful_latency_ms": {
|
||||
"p50": 16.941,
|
||||
"p95": 53.059,
|
||||
"p99": 107.154
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
# 2026-11-21T20:01:49Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ python3 tests/load.py --base-url http://127.0.0.1:8080 --duration 30 --concurrency 4 --output evidence/load.json
|
||||
{
|
||||
"lab": 6,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 30.0,
|
||||
"elapsed_seconds": 30.062,
|
||||
"concurrency": 4,
|
||||
"successful_requests": 5438,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 180.893,
|
||||
"successful_latency_ms": {
|
||||
"p50": 16.941,
|
||||
"p95": 53.059,
|
||||
"p99": 107.154
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
exit=0
|
||||
@@ -0,0 +1,5 @@
|
||||
# 2026-11-21T18:58:12Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ make check
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
exit=0
|
||||
@@ -0,0 +1,6 @@
|
||||
# 2026-11-21T20:01:47Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ dc run --rm --no-deps migrate
|
||||
Container mtusi-lab6-migrate-run-08460db58929 Creating
|
||||
Container mtusi-lab6-migrate-run-08460db58929 Created
|
||||
{"applied": []}
|
||||
exit=0
|
||||
@@ -0,0 +1,20 @@
|
||||
# 2026-11-21T18:58:11Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ sh -c docker compose --env-file .env exec -T postgres psql -U messenger -d messenger -c 'SELECT version, left(checksum,12) AS checksum, applied_at FROM schema_migrations ORDER BY version'; docker compose --env-file .env logs --no-log-prefix migrate
|
||||
version | checksum | applied_at
|
||||
--------------------------------+--------------+-------------------------------
|
||||
0001_init | 64c1576d88cc | 2026-11-21 18:57:54.841805+00
|
||||
0002_cache_invalidation_outbox | fcebf1c9345a | 2026-11-21 18:57:54.850032+00
|
||||
0003_idempotency_keys | e2564612d780 | 2026-11-21 18:57:54.856713+00
|
||||
0004_attachments | 52090521af1b | 2026-11-21 18:57:54.880215+00
|
||||
0005_jobs | 34e5b9a70f4d | 2026-11-21 18:57:54.906048+00
|
||||
0006_observability | b56c84655e84 | 2026-11-21 18:57:54.909758+00
|
||||
(6 rows)
|
||||
|
||||
{"ts": "2026-11-21T18:57:54.844Z", "level": "info", "service": "messenger", "logger": "messenger.db", "event": "migration applied", "msg": "migration applied", "version": "0001_init"}
|
||||
{"ts": "2026-11-21T18:57:54.850Z", "level": "info", "service": "messenger", "logger": "messenger.db", "event": "migration applied", "msg": "migration applied", "version": "0002_cache_invalidation_outbox"}
|
||||
{"ts": "2026-11-21T18:57:54.858Z", "level": "info", "service": "messenger", "logger": "messenger.db", "event": "migration applied", "msg": "migration applied", "version": "0003_idempotency_keys"}
|
||||
{"ts": "2026-11-21T18:57:54.881Z", "level": "info", "service": "messenger", "logger": "messenger.db", "event": "migration applied", "msg": "migration applied", "version": "0004_attachments"}
|
||||
{"ts": "2026-11-21T18:57:54.907Z", "level": "info", "service": "messenger", "logger": "messenger.db", "event": "migration applied", "msg": "migration applied", "version": "0005_jobs"}
|
||||
{"ts": "2026-11-21T18:57:54.910Z", "level": "info", "service": "messenger", "logger": "messenger.db", "event": "migration applied", "msg": "migration applied", "version": "0006_observability"}
|
||||
{"applied": ["0001_init", "0002_cache_invalidation_outbox", "0003_idempotency_keys", "0004_attachments", "0005_jobs", "0006_observability"]}
|
||||
exit=0
|
||||
@@ -0,0 +1,7 @@
|
||||
# 2026-11-21T18:58:11Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ sh -c for c in $(docker compose --env-file .env ps -q api worker); do docker inspect -f '{{.Name}} ReadonlyRootfs={{.HostConfig.ReadonlyRootfs}} Tmpfs={{json .HostConfig.Tmpfs}} Mounts={{range .Mounts}}{{.Type}}:{{.Destination}} {{end}}' $c; done
|
||||
/mtusi-lab6-api-1 ReadonlyRootfs=true Tmpfs={"/tmp":""} Mounts=bind:/run/secrets/broker_url bind:/run/secrets/cache_url bind:/run/secrets/database_url bind:/run/secrets/s3_access_key_id bind:/run/secrets/s3_secret_access_key
|
||||
/mtusi-lab6-api-2 ReadonlyRootfs=true Tmpfs={"/tmp":""} Mounts=bind:/run/secrets/broker_url bind:/run/secrets/cache_url bind:/run/secrets/database_url bind:/run/secrets/s3_access_key_id bind:/run/secrets/s3_secret_access_key
|
||||
/mtusi-lab6-worker-1 ReadonlyRootfs=true Tmpfs={"/tmp":""} Mounts=bind:/run/secrets/broker_url bind:/run/secrets/database_url bind:/run/secrets/s3_access_key_id bind:/run/secrets/s3_secret_access_key
|
||||
/mtusi-lab6-worker-2 ReadonlyRootfs=true Tmpfs={"/tmp":""} Mounts=bind:/run/secrets/broker_url bind:/run/secrets/database_url bind:/run/secrets/s3_access_key_id bind:/run/secrets/s3_secret_access_key
|
||||
exit=0
|
||||
@@ -0,0 +1,79 @@
|
||||
# 2026-11-21T20:13:05Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ python3 research/obs_snapshot.py
|
||||
== Grafana 13.3.1
|
||||
datasource uid=loki type=loki url=http://loki:3100 readOnly=True health=OK
|
||||
datasource uid=prometheus type=prometheus url=http://prometheus:9090 readOnly=True health=OK
|
||||
datasource uid=tempo type=tempo url=http://tempo:3200 readOnly=True health=OK
|
||||
dashboard uid=messenger-overview provisioned=True panels=33 folder=Messenger
|
||||
|
||||
== Prometheus: правила и состояние
|
||||
alerting ApiHighErrorRate health=ok state=inactive
|
||||
alerting ApiLatencyHigh health=ok state=inactive
|
||||
alerting DbSlowQueries health=ok state=inactive
|
||||
alerting DbPoolSaturated health=ok state=inactive
|
||||
alerting JobQueueLagGrowing health=ok state=inactive
|
||||
alerting WorkerHeartbeatMissing health=ok state=inactive
|
||||
alerting JobsFailing health=ok state=inactive
|
||||
alerting TelemetryExportFailing health=ok state=inactive
|
||||
alerting OtelCollectorDown health=ok state=inactive
|
||||
alerting TelemetryLostInSdk health=ok state=firing
|
||||
recording sli:api_requests:rate1m health=ok state=-
|
||||
recording sli:api_errors:rate1m health=ok state=-
|
||||
recording sli:api_error_ratio:rate1m health=ok state=-
|
||||
recording sli:api_latency_p95:1m health=ok state=-
|
||||
recording sli:api_fast_ratio:rate5m health=ok state=-
|
||||
recording sli:time_to_ready_fast_ratio:rate15m health=ok state=-
|
||||
recording sli:queue_lag_seconds:max health=ok state=-
|
||||
recording sli:queue_oldest_age_seconds:max health=ok state=-
|
||||
|
||||
== Метрики приложения (Prometheus, имя → labels кроме ресурсных)
|
||||
container_cpu_time_seconds_total series=90 labels=
|
||||
container_memory_usage_bytes series=90 labels=
|
||||
db_client_connection_max series=90 labels=db_client_connection_pool_name
|
||||
db_client_connection_pending_requests series=90 labels=db_client_connection_pool_name
|
||||
db_client_connection_timeouts_total series=90 labels=db_client_connection_pool_name
|
||||
db_client_operation_duration_seconds_bucket series=8148 labels=db_operation_name,db_system_name,error_type
|
||||
http_server_active_requests series=77 labels=http_request_method
|
||||
http_server_request_duration_seconds_bucket series=5325 labels=http_request_method,http_response_status_class,http_response_status_code,http_route
|
||||
messenger_attachment_time_to_ready_seconds_bucket series=630 labels=job_type
|
||||
messenger_broker_ack_pending series=39 labels=queue
|
||||
messenger_broker_pending series=39 labels=queue
|
||||
messenger_container_cpu_limit series=90 labels=
|
||||
messenger_container_memory_limit_bytes series=90 labels=
|
||||
messenger_db_pool_wait_time_seconds_total series=90 labels=db_client_connection_pool_name
|
||||
messenger_job_duration_seconds_bucket series=804 labels=job_type,outcome
|
||||
messenger_job_queue_wait_seconds_bucket series=644 labels=job_type
|
||||
messenger_jobs_processed_total series=93 labels=job_type,messenger_pipeline_version,outcome
|
||||
messenger_outbox_lag_seconds series=39 labels=queue
|
||||
messenger_outbox_pending series=39 labels=queue
|
||||
messenger_outbox_publish_total series=46 labels=messaging_destination_name,outcome
|
||||
messenger_queue_depth series=156 labels=queue,state
|
||||
messenger_queue_lag_seconds series=39 labels=queue
|
||||
messenger_queue_oldest_age_seconds series=39 labels=queue
|
||||
messenger_uploads_total series=34 labels=outcome
|
||||
messenger_worker_busy series=48 labels=
|
||||
messenger_worker_capacity series=51 labels=
|
||||
otel_sdk_exporter_span_exported_total series=86 labels=error_type,otel_component_name,otel_component_type,server_address,server_port
|
||||
otel_sdk_exporter_span_inflight series=82 labels=otel_component_name,otel_component_type,server_address,server_port
|
||||
otel_sdk_processor_log_processed_total series=90 labels=otel_component_name,otel_component_type
|
||||
otel_sdk_processor_log_queue_capacity series=90 labels=otel_component_name,otel_component_type
|
||||
otel_sdk_processor_log_queue_size series=90 labels=otel_component_name,otel_component_type
|
||||
otel_sdk_processor_span_processed_total series=82 labels=otel_component_name,otel_component_type
|
||||
otel_sdk_processor_span_queue_capacity series=90 labels=otel_component_name,otel_component_type
|
||||
otel_sdk_processor_span_queue_size series=90 labels=otel_component_name,otel_component_type
|
||||
otel_sdk_span_live series=82 labels=otel_span_sampling_result
|
||||
otel_sdk_span_started_total series=212 labels=otel_span_parent_origin,otel_span_sampling_result
|
||||
process_cpu_time_seconds_total series=180 labels=cpu_mode
|
||||
process_memory_usage_bytes series=90 labels=
|
||||
|
||||
== Loki labels (index): deployment_environment_name,service_instance_id,service_name,service_namespace
|
||||
пример записи messenger-api: поля=deployment_environment_name,detected_level,duration_ms,event,flags,logger,method,observed_timestamp,request_id,route,scope_name,service_instance_id,service_name,service_namespace,service_version,severity_number,severity_text,span_id,status,telemetry_sdk_language,telemetry_sdk_name,telemetry_sdk_version,trace_id
|
||||
пример записи messenger-worker: поля=attachment_id,attempt,claims,deployment_environment_name,detected_level,duration_ms,event,flags,job_id,lease_token,logger,observed_timestamp,outcome,pipeline_version,scope_name,service_instance_id,service_name,service_namespace,service_version,severity_number,severity_text,span_id,telemetry_sdk_language,telemetry_sdk_name,telemetry_sdk_version,trace_id
|
||||
|
||||
== Tempo
|
||||
{ resource.service.name = "messenger-api" && kind = server } traces(1h, limit 20)=20
|
||||
{ span.messaging.operation.type = "process" } traces(1h, limit 20)=20
|
||||
{ status = error } traces(1h, limit 20)=20
|
||||
|
||||
== Активные алерты: [["TelemetryLostInSdk", "firing"]]
|
||||
exit=0
|
||||
@@ -0,0 +1,79 @@
|
||||
# 2026-11-21T18:58:47Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ python3 research/obs_snapshot.py
|
||||
== Grafana 13.3.1
|
||||
datasource uid=loki type=loki url=http://loki:3100 readOnly=True health=OK
|
||||
datasource uid=prometheus type=prometheus url=http://prometheus:9090 readOnly=True health=OK
|
||||
datasource uid=tempo type=tempo url=http://tempo:3200 readOnly=True health=OK
|
||||
dashboard uid=messenger-overview provisioned=True panels=33 folder=Messenger
|
||||
|
||||
== Prometheus: правила и состояние
|
||||
alerting ApiHighErrorRate health=ok state=inactive
|
||||
alerting ApiLatencyHigh health=ok state=inactive
|
||||
alerting DbSlowQueries health=ok state=inactive
|
||||
alerting DbPoolSaturated health=ok state=inactive
|
||||
alerting JobQueueLagGrowing health=ok state=inactive
|
||||
alerting WorkerHeartbeatMissing health=ok state=inactive
|
||||
alerting JobsFailing health=ok state=inactive
|
||||
alerting TelemetryExportFailing health=ok state=inactive
|
||||
alerting OtelCollectorDown health=ok state=inactive
|
||||
alerting TelemetryLostInSdk health=ok state=inactive
|
||||
recording sli:api_requests:rate1m health=ok state=-
|
||||
recording sli:api_errors:rate1m health=ok state=-
|
||||
recording sli:api_error_ratio:rate1m health=ok state=-
|
||||
recording sli:api_latency_p95:1m health=ok state=-
|
||||
recording sli:api_fast_ratio:rate5m health=ok state=-
|
||||
recording sli:time_to_ready_fast_ratio:rate15m health=ok state=-
|
||||
recording sli:queue_lag_seconds:max health=ok state=-
|
||||
recording sli:queue_oldest_age_seconds:max health=ok state=-
|
||||
|
||||
== Метрики приложения (Prometheus, имя → labels кроме ресурсных)
|
||||
container_cpu_time_seconds_total series=5 labels=
|
||||
container_memory_usage_bytes series=5 labels=
|
||||
db_client_connection_max series=5 labels=db_client_connection_pool_name
|
||||
db_client_connection_pending_requests series=5 labels=db_client_connection_pool_name
|
||||
db_client_connection_timeouts_total series=5 labels=db_client_connection_pool_name
|
||||
db_client_operation_duration_seconds_bucket series=406 labels=db_operation_name,db_system_name
|
||||
http_server_active_requests series=6 labels=http_request_method
|
||||
http_server_request_duration_seconds_bucket series=525 labels=http_request_method,http_response_status_class,http_response_status_code,http_route
|
||||
messenger_attachment_time_to_ready_seconds_bucket series=14 labels=job_type
|
||||
messenger_broker_ack_pending series=3 labels=queue
|
||||
messenger_broker_pending series=3 labels=queue
|
||||
messenger_container_cpu_limit series=5 labels=
|
||||
messenger_container_memory_limit_bytes series=5 labels=
|
||||
messenger_db_pool_wait_time_seconds_total series=5 labels=db_client_connection_pool_name
|
||||
messenger_job_duration_seconds_bucket series=36 labels=job_type,outcome
|
||||
messenger_job_queue_wait_seconds_bucket series=28 labels=job_type
|
||||
messenger_jobs_processed_total series=3 labels=job_type,messenger_pipeline_version,outcome
|
||||
messenger_outbox_lag_seconds series=3 labels=queue
|
||||
messenger_outbox_pending series=3 labels=queue
|
||||
messenger_outbox_publish_total series=1 labels=messaging_destination_name,outcome
|
||||
messenger_queue_depth series=12 labels=queue,state
|
||||
messenger_queue_lag_seconds series=3 labels=queue
|
||||
messenger_queue_oldest_age_seconds series=3 labels=queue
|
||||
messenger_uploads_total series=1 labels=outcome
|
||||
messenger_worker_busy series=2 labels=
|
||||
messenger_worker_capacity series=2 labels=
|
||||
otel_sdk_exporter_span_exported_total series=4 labels=otel_component_name,otel_component_type,server_address,server_port
|
||||
otel_sdk_exporter_span_inflight series=4 labels=otel_component_name,otel_component_type,server_address,server_port
|
||||
otel_sdk_processor_log_processed_total series=5 labels=otel_component_name,otel_component_type
|
||||
otel_sdk_processor_log_queue_capacity series=5 labels=otel_component_name,otel_component_type
|
||||
otel_sdk_processor_log_queue_size series=5 labels=otel_component_name,otel_component_type
|
||||
otel_sdk_processor_span_processed_total series=4 labels=otel_component_name,otel_component_type
|
||||
otel_sdk_processor_span_queue_capacity series=5 labels=otel_component_name,otel_component_type
|
||||
otel_sdk_processor_span_queue_size series=5 labels=otel_component_name,otel_component_type
|
||||
otel_sdk_span_live series=4 labels=otel_span_sampling_result
|
||||
otel_sdk_span_started_total series=9 labels=otel_span_parent_origin,otel_span_sampling_result
|
||||
process_cpu_time_seconds_total series=10 labels=cpu_mode
|
||||
process_memory_usage_bytes series=5 labels=
|
||||
|
||||
== Loki labels (index): deployment_environment_name,service_instance_id,service_name,service_namespace
|
||||
пример записи messenger-api: поля=deployment_environment_name,detected_level,duration_ms,event,flags,logger,method,observed_timestamp,request_id,route,scope_name,service_instance_id,service_name,service_namespace,service_version,severity_number,severity_text,span_id,status,telemetry_sdk_language,telemetry_sdk_name,telemetry_sdk_version,trace_id
|
||||
пример записи messenger-worker: поля=attachment_id,attempt,claims,deployment_environment_name,detected_level,duration_ms,event,flags,job_id,lease_token,logger,observed_timestamp,outcome,pipeline_version,scope_name,service_instance_id,service_name,service_namespace,service_version,severity_number,severity_text,span_id,telemetry_sdk_language,telemetry_sdk_name,telemetry_sdk_version,trace_id
|
||||
|
||||
== Tempo
|
||||
{ resource.service.name = "messenger-api" && kind = server } traces(1h, limit 20)=20
|
||||
{ span.messaging.operation.type = "process" } traces(1h, limit 20)=3
|
||||
{ status = error } traces(1h, limit 20)=1
|
||||
|
||||
== Активные алерты: []
|
||||
exit=0
|
||||
@@ -0,0 +1,5 @@
|
||||
# 2026-11-21T19:20:06Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ python3 tests/resilience.py --mode persistence --action-script scripts/restart.sh --base-url http://127.0.0.1:8080
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
exit=0
|
||||
@@ -0,0 +1,16 @@
|
||||
# 2026-11-21T18:58:12Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ sh -c docker compose --env-file .env ps --format '{{.Service}} {{.Ports}}' | sort -u
|
||||
api 8080/tcp
|
||||
api-ttl 8080/tcp
|
||||
grafana 127.0.0.1:3000->3000/tcp
|
||||
lb 127.0.0.1:8080-8082->8080-8082/tcp, 127.0.0.1:8404->8404/tcp
|
||||
loki
|
||||
nats
|
||||
otel-collector
|
||||
postgres
|
||||
prometheus
|
||||
redis
|
||||
s3
|
||||
tempo
|
||||
worker 8080/tcp
|
||||
exit=0
|
||||
@@ -0,0 +1,54 @@
|
||||
== 2026-11-21T19:20:09Z before restart
|
||||
api mtusi-lab6-api-1 status=running started=2026-11-21T18:59:39.635658169Z pid=11662
|
||||
api mtusi-lab6-api-2 status=running started=2026-11-21T19:19:59.867932045Z pid=1029
|
||||
api-ttl mtusi-lab6-api-ttl-1 status=running started=2026-11-21T18:59:43.740476992Z pid=12265
|
||||
broker-init mtusi-lab6-broker-init-1 status=exited started=2026-11-21T19:01:47.611250271Z pid=0
|
||||
grafana mtusi-lab6-grafana-1 status=running started=2026-11-21T18:59:16.762720587Z pid=9695
|
||||
lb mtusi-lab6-lb-1 status=running started=2026-11-21T18:59:47.866767668Z pid=12973
|
||||
loki mtusi-lab6-loki-1 status=running started=2026-11-21T19:13:42.511623661Z pid=4940
|
||||
migrate mtusi-lab6-migrate-1 status=exited started=2026-11-21T19:01:47.4337162Z pid=0
|
||||
nats mtusi-lab6-nats-1 status=running started=2026-11-21T18:59:16.3703735Z pid=9466
|
||||
otel-collector mtusi-lab6-otel-collector-1 status=running started=2026-11-21T19:15:52.258053507Z pid=14597
|
||||
postgres mtusi-lab6-postgres-1 status=running started=2026-11-21T18:59:16.571171922Z pid=9614
|
||||
prometheus mtusi-lab6-prometheus-1 status=running started=2026-11-21T18:59:16.516798581Z pid=9552
|
||||
redis mtusi-lab6-redis-1 status=running started=2026-11-21T18:59:16.497489889Z pid=9550
|
||||
s3 mtusi-lab6-s3-1 status=running started=2026-11-21T18:59:17.609330359Z pid=9960
|
||||
s3-init mtusi-lab6-s3-init-1 status=exited started=2026-11-21T19:01:47.210074838Z pid=0
|
||||
tempo mtusi-lab6-tempo-1 status=running started=2026-11-21T19:13:43.331107648Z pid=5112
|
||||
tempo-init mtusi-lab6-tempo-init-1 status=exited started=2026-11-21T19:13:42.682492554Z pid=0
|
||||
worker mtusi-lab6-worker-1 status=running started=2026-11-21T19:01:50.433806313Z pid=21409
|
||||
worker mtusi-lab6-worker-2 status=running started=2026-11-21T19:01:50.6995321Z pid=21486
|
||||
volume mtusi-lab6_grafanadata
|
||||
volume mtusi-lab6_lokidata
|
||||
volume mtusi-lab6_natsdata
|
||||
volume mtusi-lab6_pgdata
|
||||
volume mtusi-lab6_promdata
|
||||
volume mtusi-lab6_s3data
|
||||
volume mtusi-lab6_tempodata
|
||||
== 2026-11-21T19:20:55Z after restart
|
||||
api mtusi-lab6-api-1 status=running started=2026-11-21T19:20:45.594915217Z pid=5946
|
||||
api mtusi-lab6-api-2 status=running started=2026-11-21T19:20:45.815634018Z pid=6024
|
||||
api-ttl mtusi-lab6-api-ttl-1 status=running started=2026-11-21T19:20:50.234402807Z pid=6546
|
||||
broker-init mtusi-lab6-broker-init-1 status=exited started=2026-11-21T19:20:51.342250944Z pid=0
|
||||
grafana mtusi-lab6-grafana-1 status=running started=2026-11-21T19:20:19.771295996Z pid=3701
|
||||
lb mtusi-lab6-lb-1 status=running started=2026-11-21T19:20:55.229584398Z pid=7289
|
||||
loki mtusi-lab6-loki-1 status=running started=2026-11-21T19:20:19.87079258Z pid=3749
|
||||
migrate mtusi-lab6-migrate-1 status=exited started=2026-11-21T19:20:51.055582073Z pid=0
|
||||
nats mtusi-lab6-nats-1 status=running started=2026-11-21T19:20:19.345071566Z pid=3471
|
||||
otel-collector mtusi-lab6-otel-collector-1 status=running started=2026-11-21T19:20:19.600339631Z pid=3638
|
||||
postgres mtusi-lab6-postgres-1 status=running started=2026-11-21T19:20:19.616612332Z pid=3639
|
||||
prometheus mtusi-lab6-prometheus-1 status=running started=2026-11-21T19:20:19.559626741Z pid=3550
|
||||
redis mtusi-lab6-redis-1 status=running started=2026-11-21T19:20:19.354224044Z pid=3469
|
||||
s3 mtusi-lab6-s3-1 status=running started=2026-11-21T19:20:20.685593694Z pid=3974
|
||||
s3-init mtusi-lab6-s3-init-1 status=exited started=2026-11-21T19:20:50.778768419Z pid=0
|
||||
tempo mtusi-lab6-tempo-1 status=running started=2026-11-21T19:20:24.235289508Z pid=4214
|
||||
tempo-init mtusi-lab6-tempo-init-1 status=exited started=2026-11-21T19:13:42.682492554Z pid=0
|
||||
worker mtusi-lab6-worker-1 status=running started=2026-11-21T19:20:54.082584884Z pid=7103
|
||||
worker mtusi-lab6-worker-2 status=running started=2026-11-21T19:20:54.275306102Z pid=7184
|
||||
volume mtusi-lab6_grafanadata
|
||||
volume mtusi-lab6_lokidata
|
||||
volume mtusi-lab6_natsdata
|
||||
volume mtusi-lab6_pgdata
|
||||
volume mtusi-lab6_promdata
|
||||
volume mtusi-lab6_s3data
|
||||
volume mtusi-lab6_tempodata
|
||||
@@ -0,0 +1,5 @@
|
||||
# 2026-11-21T19:19:34Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ ./scripts/start-replicas.sh
|
||||
api mtusi-lab6-api-1 status=running started=2026-11-21T18:59:39.635658169Z pid=11662
|
||||
api mtusi-lab6-api-2 status=running started=2026-11-21T19:19:34.682252358Z pid=30558
|
||||
exit=0
|
||||
@@ -0,0 +1,5 @@
|
||||
# 2026-11-21T19:19:59Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ ./scripts/start-replicas.sh
|
||||
api mtusi-lab6-api-1 status=running started=2026-11-21T18:59:39.635658169Z pid=11662
|
||||
api mtusi-lab6-api-2 status=running started=2026-11-21T19:19:59.867932045Z pid=1029
|
||||
exit=0
|
||||
@@ -0,0 +1,4 @@
|
||||
# 2026-11-21T18:58:11Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ dc logs --no-log-prefix s3-init
|
||||
{"bucket": "messenger-attachments", "created": true, "checks": {"anonymous ListObjects": ["403", 403, true], "anonymous GetObject": ["403", 403, true], "anonymous PutObject": ["403", 403, true], "anonymous ListBuckets": ["403", 403, true], "api ListObjects own bucket": ["allowed", "allowed", true], "api CreateBucket": ["AccessDenied", "AccessDenied", true]}}
|
||||
exit=0
|
||||
@@ -0,0 +1,4 @@
|
||||
# 2026-11-21T18:58:12Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ python3 tests/smoke.py --base-url http://127.0.0.1:8080
|
||||
PASS: lab6 public API scenario; infrastructure and grading evidence remain separate.
|
||||
exit=0
|
||||
@@ -0,0 +1,62 @@
|
||||
# 2026-11-21T18:58:09Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
docker 29.10.0
|
||||
Docker Compose version v5.7.1
|
||||
CONTAINER REPOSITORY TAG PLATFORM IMAGE ID SIZE CREATED
|
||||
mtusi-lab6-api-1 mtusi-lab6-api local linux/amd64 757903805f05 224MB 4 minutes ago
|
||||
mtusi-lab6-api-2 mtusi-lab6-api local linux/amd64 757903805f05 224MB 4 minutes ago
|
||||
mtusi-lab6-api-ttl-1 mtusi-lab6-api local linux/amd64 757903805f05 224MB 4 minutes ago
|
||||
mtusi-lab6-broker-init-1 mtusi-lab6-api local linux/amd64 757903805f05 224MB 4 minutes ago
|
||||
mtusi-lab6-grafana-1 mtusi-local/grafana 13.3.1 linux/amd64 e5dc6fd6c2e0 2.03GB About an hour ago
|
||||
mtusi-lab6-lb-1 mtusi-local/haproxy 3.0 linux/amd64 4e29ffb6122e 76.2MB About an hour ago
|
||||
mtusi-lab6-loki-1 mtusi-local/loki 3.5.3 linux/amd64 4249c0ad0211 208MB About an hour ago
|
||||
mtusi-lab6-migrate-1 mtusi-lab6-api local linux/amd64 757903805f05 224MB 4 minutes ago
|
||||
mtusi-lab6-nats-1 mtusi-local/nats 2.11.9 linux/amd64 03b922ee87f1 75MB About an hour ago
|
||||
mtusi-lab6-otel-collector-1 mtusi-local/otelcol-contrib 0.130.0 linux/amd64 03c06afb86eb 439MB About an hour ago
|
||||
mtusi-lab6-postgres-1 mtusi-local/postgres 16 linux/amd64 c0a1aa3931fd 595MB About an hour ago
|
||||
mtusi-lab6-prometheus-1 mtusi-local/prometheus v3.5.0 linux/amd64 b78824a4b58b 487MB About an hour ago
|
||||
mtusi-lab6-redis-1 mtusi-local/redis 7 linux/amd64 5c0e94c0d499 68.8MB About an hour ago
|
||||
mtusi-lab6-s3-1 mtusi-local/seaweedfs 4.52 linux/amd64 cec1afdfce84 258MB About an hour ago
|
||||
mtusi-lab6-s3-init-1 mtusi-lab6-api local linux/amd64 757903805f05 224MB 4 minutes ago
|
||||
mtusi-lab6-tempo-1 mtusi-local/tempo 2.8.2 linux/amd64 68657d08d39e 183MB About an hour ago
|
||||
mtusi-lab6-tempo-init-1 mtusi-local/tempo 2.8.2 linux/amd64 68657d08d39e 183MB About an hour ago
|
||||
mtusi-lab6-worker-1 mtusi-lab6-api local linux/amd64 757903805f05 224MB 4 minutes ago
|
||||
mtusi-lab6-worker-2 mtusi-lab6-api local linux/amd64 757903805f05 224MB 4 minutes ago
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi-lab6-api-1 mtusi-lab6-api:local "python -m messenger…" api 23 seconds ago Up 8 seconds (healthy) 8080/tcp
|
||||
mtusi-lab6-api-2 mtusi-lab6-api:local "python -m messenger…" api 23 seconds ago Up 8 seconds (healthy) 8080/tcp
|
||||
mtusi-lab6-api-ttl-1 mtusi-lab6-api:local "python -m messenger…" api-ttl 23 seconds ago Up 7 seconds (healthy) 8080/tcp
|
||||
mtusi-lab6-broker-init-1 mtusi-lab6-api:local "python -m messenger…" broker-init 23 seconds ago Exited (0) 15 seconds ago
|
||||
mtusi-lab6-grafana-1 mtusi-local/grafana:13.3.1 "/run.sh" grafana 23 seconds ago Up 20 seconds (healthy) 127.0.0.1:3000->3000/tcp
|
||||
mtusi-lab6-lb-1 mtusi-local/haproxy:3.0 "haproxy -W -db -f /…" lb 23 seconds ago Up 21 seconds (healthy) 127.0.0.1:8080-8082->8080-8082/tcp, 127.0.0.1:8404->8404/tcp
|
||||
mtusi-lab6-loki-1 mtusi-local/loki:3.5.3 "/usr/bin/loki -conf…" loki 23 seconds ago Up 22 seconds
|
||||
mtusi-lab6-migrate-1 mtusi-lab6-api:local "python -m messenger…" migrate 23 seconds ago Exited (0) 15 seconds ago
|
||||
mtusi-lab6-nats-1 mtusi-local/nats:2.11.9 "nats-server --confi…" nats 23 seconds ago Up 22 seconds (healthy)
|
||||
mtusi-lab6-otel-collector-1 mtusi-local/otelcol-contrib:0.130.0 "/otelcol-contrib --…" otel-collector 23 seconds ago Up 22 seconds
|
||||
mtusi-lab6-postgres-1 mtusi-local/postgres:16 "docker-entrypoint.s…" postgres 23 seconds ago Up 21 seconds (healthy)
|
||||
mtusi-lab6-prometheus-1 mtusi-local/prometheus:v3.5.0 "/bin/prometheus --c…" prometheus 23 seconds ago Up 21 seconds (healthy)
|
||||
mtusi-lab6-redis-1 mtusi-local/redis:7 "sh -c 'umask 077\npr…" redis 23 seconds ago Up 21 seconds (healthy)
|
||||
mtusi-lab6-s3-1 mtusi-local/seaweedfs:4.52 "/usr/bin/weed -logt…" s3 23 seconds ago Up 21 seconds (healthy)
|
||||
mtusi-lab6-s3-init-1 mtusi-lab6-api:local "python -m messenger…" s3-init 23 seconds ago Exited (0) 8 seconds ago
|
||||
mtusi-lab6-tempo-1 mtusi-local/tempo:2.8.2 "/tempo -config.file…" tempo 23 seconds ago Up 20 seconds
|
||||
mtusi-lab6-tempo-init-1 mtusi-local/tempo:2.8.2 "chown -R 10001:1000…" tempo-init 23 seconds ago Exited (0) 20 seconds ago
|
||||
mtusi-lab6-worker-1 mtusi-lab6-api:local "python -m messenger…" worker 23 seconds ago Up 7 seconds (healthy) 8080/tcp
|
||||
mtusi-lab6-worker-2 mtusi-lab6-api:local "python -m messenger…" worker 23 seconds ago Up 7 seconds (healthy) 8080/tcp
|
||||
api mtusi-lab6-api-1 status=running started=2026-11-21T18:58:01.681543345Z pid=2776
|
||||
api mtusi-lab6-api-2 status=running started=2026-11-21T18:58:01.947852642Z pid=2855
|
||||
api-ttl mtusi-lab6-api-ttl-1 status=running started=2026-11-21T18:58:02.666248948Z pid=2971
|
||||
broker-init mtusi-lab6-broker-init-1 status=exited started=2026-11-21T18:57:53.028494218Z pid=0
|
||||
grafana mtusi-lab6-grafana-1 status=running started=2026-11-21T18:57:49.836736597Z pid=1843
|
||||
lb mtusi-lab6-lb-1 status=running started=2026-11-21T18:57:49.184169334Z pid=1608
|
||||
loki mtusi-lab6-loki-1 status=running started=2026-11-21T18:57:47.68953579Z pid=1092
|
||||
migrate mtusi-lab6-migrate-1 status=exited started=2026-11-21T18:57:53.925170786Z pid=0
|
||||
nats mtusi-lab6-nats-1 status=running started=2026-11-21T18:57:47.848213347Z pid=1158
|
||||
otel-collector mtusi-lab6-otel-collector-1 status=running started=2026-11-21T18:57:48.026547716Z pid=1224
|
||||
postgres mtusi-lab6-postgres-1 status=running started=2026-11-21T18:57:48.243808659Z pid=1284
|
||||
prometheus mtusi-lab6-prometheus-1 status=running started=2026-11-21T18:57:48.434191714Z pid=1353
|
||||
redis mtusi-lab6-redis-1 status=running started=2026-11-21T18:57:48.594620877Z pid=1422
|
||||
s3 mtusi-lab6-s3-1 status=running started=2026-11-21T18:57:48.791431799Z pid=1488
|
||||
s3-init mtusi-lab6-s3-init-1 status=exited started=2026-11-21T18:57:58.961524292Z pid=0
|
||||
tempo mtusi-lab6-tempo-1 status=running started=2026-11-21T18:57:49.684613781Z pid=1776
|
||||
tempo-init mtusi-lab6-tempo-init-1 status=exited started=2026-11-21T18:57:48.960422533Z pid=0
|
||||
worker mtusi-lab6-worker-1 status=running started=2026-11-21T18:58:02.221002868Z pid=2912
|
||||
worker mtusi-lab6-worker-2 status=running started=2026-11-21T18:58:03.071993847Z pid=3046
|
||||
@@ -0,0 +1,23 @@
|
||||
# 2026-11-21T19:21:35Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ python3 student-tests/test_api.py
|
||||
## API, auth, validation, ACL, transactions (http://127.0.0.1:8080)
|
||||
PASS password stored only as scrypt KDF hash; User has no secret fields 0.81s
|
||||
PASS wrong password and unknown user: identical 401 + Basic challenge 0.79s
|
||||
PASS malformed Basic / Bearer on /auth/sessions / body on login 0.04s
|
||||
PASS password with ':' and non-ASCII UTF-8 works (RFC 7617) 0.71s
|
||||
PASS opaque 256-bit token, unique per login, DB stores only SHA-256 1.19s
|
||||
PASS only Bearer accepted; Basic and X-User-Id never authenticate 0.02s
|
||||
PASS logout revokes only the current session; repeat -> 401 1.22s
|
||||
PASS strict JSON validation -> 400 0.03s
|
||||
PASS message text: 4000 code points OK, 4001 / whitespace / sender_id -> 400 0.03s
|
||||
PASS SQL is parameterized: injection payloads stored verbatim 0.02s
|
||||
PASS ACL: outsider gets 404 everywhere (even for invalid body) 0.03s
|
||||
PASS create chat validation: duplicates, caller missing, unknown member 0.01s
|
||||
PASS compound create-chat rolls back on FK failure (no orphan chat) 0.84s chats before=16, failed insert left 0 rows
|
||||
PASS registration race: 20 parallel same username -> exactly one 201 3.90s 201x1, 409x19, rows=1
|
||||
PASS keyset pagination: 120 msgs, varying limit, no gaps/duplicates 1.03s 4 pages
|
||||
PASS chat list: only own chats, ordered, cursor bound to user 0.55s
|
||||
PASS read-after-write: confirmed message visible to next read 0.01s
|
||||
PASS unknown route 404 / wrong method 405 in error format 0.00s
|
||||
summary: 18 passed, 0 failed
|
||||
exit=0
|
||||
@@ -0,0 +1,18 @@
|
||||
# 2026-11-21T20:04:44Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ python3 student-tests/test_attachments.py
|
||||
## attachments (http://127.0.0.1:8080)
|
||||
PASS valid PNG and JPEG: 202 queued → ready, byte-exact download by other member 0.74s
|
||||
PASS exactly-near limit (~10 MiB) accepted, Content-Length > limit -> 413 0.54s 10.00 MiB accepted
|
||||
PASS oversize rejected BEFORE body is read (early 413, socket) 0.02s HTTP/1.1 413 Content Too Large in 0.016s, 50 MiB never sent
|
||||
PASS pixel limit: 8000x6000 header -> 413 without decoding 0.09s 0.092s
|
||||
PASS decompression bomb: IDAT inflates beyond declared size -> 415 0.32s 65295-byte file claiming 64 MiB raw, rejected in 0.046s
|
||||
PASS corrupted images -> 415 (truncated, bad CRC, no EOI, garbage, empty) 0.29s 9 variants
|
||||
PASS MIME spoofing by Content-Type/filename -> 415 0.37s
|
||||
PASS dangerous/invalid filenames -> 400; filename never becomes a path 0.19s
|
||||
PASS missing/invalid Content-Length -> 400 (chunked upload is not accepted) 0.00s HTTP/1.1 400 Bad Request
|
||||
PASS ACL: outsider gets 404 for upload/metadata/content; anonymous 401 0.47s outsider 10 MiB upload rejected in 0.33s
|
||||
PASS variants (lab5): original/thumbnail/crop/optimized OK after ready, unknown -> 400 0.76s
|
||||
PASS message: foreign/unknown attachment_id -> 404, file of other chat -> 404, limits -> 400 0.15s
|
||||
PASS idempotency includes attachment_ids (replay same, conflict on change) 0.19s
|
||||
summary: 13 passed, 0 failed
|
||||
exit=0
|
||||
@@ -0,0 +1,15 @@
|
||||
# 2026-11-21T19:22:05Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ dc run --rm --no-deps -T -v /home/claude/work6/mtusi2026lab6/student-tests:/app/student-tests:ro --entrypoint python api student-tests/test_cache_race.py
|
||||
Container mtusi-lab6-api-run-b1fb72351b97 Creating
|
||||
Container mtusi-lab6-api-run-b1fb72351b97 Created
|
||||
PASS read-through put makes entry readable
|
||||
PASS entry TTL capped by SESSION_CACHE_TTL_SECONDS pttl=60000ms
|
||||
PASS invalidate removes entry
|
||||
PASS late put after logout is refused by tombstone
|
||||
PASS tombstone outlives any cache entry pttl=75000ms
|
||||
PASS entry never outlives session expiry pttl=1199ms
|
||||
PASS expired session not served from cache
|
||||
cache unavailable; falling back to PostgreSQL
|
||||
PASS degraded mode: cache is not read until outbox drained
|
||||
summary: all passed
|
||||
exit=0
|
||||
@@ -0,0 +1,8 @@
|
||||
# 2026-11-21T19:21:55Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ python3 student-tests/test_expiry.py
|
||||
## session expiry, SESSION_TTL_SECONDS=2 (http://127.0.0.1:8081)
|
||||
PASS expires_at = now + SESSION_TTL_SECONDS 0.97s remaining 2.00s
|
||||
PASS token valid before expiry, 401 Bearer after (cache warmed) 4.50s
|
||||
PASS re-login after expiry issues a new valid session 4.60s
|
||||
summary: 3 passed, 0 failed
|
||||
exit=0
|
||||
@@ -0,0 +1,7 @@
|
||||
# 2026-11-21T19:28:40Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ python3 student-tests/test_failures.py
|
||||
## dependency failures (http://127.0.0.1:8080)
|
||||
PASS Redis down: API bypasses cache via PostgreSQL, no anonymous trust 6.96s fallback latency 0.013s; outbox rows during outage=1, drained after recovery
|
||||
PASS PostgreSQL down: bounded 503 in error format; anonymous still 401 14.93s latency(s)={'ready': 1.51, 'post_message': 2.02, 'history': 2.02, 'login': 2.02, 'register': 2.02}; ready again in 2.2s
|
||||
summary: 2 passed, 0 failed
|
||||
exit=0
|
||||
@@ -0,0 +1,14 @@
|
||||
# 2026-11-21T19:21:49Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ python3 student-tests/test_idempotency.py
|
||||
## idempotency across replicas (http://127.0.0.1:8080)
|
||||
PASS sequential replays: same 201 + same Message from different replicas 0.39s replicas=2, rows=1
|
||||
PASS 30 concurrent POSTs, same key + body, via LB -> exactly one message 1.76s per-replica responses {'api-778c97df': 16, 'api-7c6946d6': 14}, rows=1
|
||||
PASS concurrent same key, two different bodies -> one message, others 201-same or 409 1.05s 201x10, 409x10
|
||||
PASS after commit: different body -> 409; reordered/whitespace JSON -> replay 0.03s
|
||||
PASS scope: user + chat + key (same key elsewhere is independent) 0.03s
|
||||
PASS key format: missing/empty/129 chars/invalid -> 400; 128 chars ok 0.04s
|
||||
PASS failed attempt does not claim the key (400/404 not recorded) 0.03s
|
||||
PASS replay re-checks session and access 0.36s
|
||||
PASS key older than IDEMPOTENCY_TTL_SECONDS is reusable (24 h window) 0.59s
|
||||
summary: 9 passed, 0 failed
|
||||
exit=0
|
||||
@@ -0,0 +1,14 @@
|
||||
# 2026-11-21T19:21:17Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ dc run --rm --no-deps -T -v /home/claude/work6/mtusi2026lab6/student-tests:/app/student-tests:ro --entrypoint python worker student-tests/test_imgproc.py
|
||||
Container mtusi-lab6-worker-run-9cf4e4401d71 Creating
|
||||
Container mtusi-lab6-worker-run-9cf4e4401d71 Created
|
||||
PASS fixture 320×200 → thumbnail 256×160, crop 128×128, optimized WebP 320×200 0.81s
|
||||
PASS rounding down and minimum 1 px: 3000×10 → 256×1, 1280×4 0.26s
|
||||
PASS EXIF orientation 6 applied (400×200 stored → 128×256); orientation tag not copied 0.26s
|
||||
PASS alpha composited on white for JPEG variants; WebP keeps alpha 0.26s
|
||||
PASS metadata removed: EXIF/XMP/ICC of the source are not in any variant 0.29s
|
||||
PASS deterministic output (same bytes on re-run) — basis of idempotent effect; v2 differs 0.98s
|
||||
PASS limits: pixels by header (413-class), memory (RLIMIT_AS), undecodable → permanent 0.78s too_large / resource_limit / invalid_image
|
||||
PASS worker wall-clock timeout kills the subprocess → transient (retry), not a hang 0.25s killed after 0.05s; undecodable → Permanent(invalid_image)
|
||||
summary: 8 passed, 0 failed
|
||||
exit=0
|
||||
@@ -0,0 +1,19 @@
|
||||
# 2026-11-21T20:04:50Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ python3 student-tests/test_jobs_failures.py
|
||||
## pipeline failures (http://127.0.0.1:8080)
|
||||
PASS defense: worker stopped → 202 → 409 → message ok → restart API+broker (volumes kept) → worker → ready 28.39s attachment 8fdfa0e4: stream held 1→1 msgs across restart; ready 1.9s after worker start
|
||||
PASS broker down: upload still 202 (job durable in outbox), ready after broker returns 10.26s 202 with broker stopped; events ['enqueued', 'published', 'claimed']
|
||||
PASS crash between COMMIT and publish: relay of another process publishes, job reaches ready 23.31s api-fault (api-876964dc) died after COMMIT; published by relay api-api-2ba718cd; events ['enqueued', 'published', 'claimed', 'committed', 'published_version_changed', 'staging_cleaned']
|
||||
PASS crash between publish ack and outbox mark: duplicate publish dropped by Nats-Msg-Id 24.24s second publish: duplicate=true, stream_seq=800; processed once
|
||||
PASS worker crash after claim, before any side effect → lease takeover → ready 23.62s ['enqueued', 'published', 'claimed', 'lease_takeover', 'committed', 'published_version_changed', 'staging_cleaned'] in 23.6s
|
||||
PASS worker crash after S3 writes, before COMMIT → takeover rewrites the same keys, one result 24.04s ['enqueued', 'published', 'claimed', 'lease_takeover', 'committed', 'published_version_changed', 'staging_cleaned'] in 23.6s; keys deterministic: ['crop.jpg', 'optimized.webp', 'thumbnail.jpg']
|
||||
PASS worker crash after COMMIT, before ack → redelivery is a no-op (duplicate_ignored) 22.52s ['enqueued', 'published', 'claimed', 'committed', 'published_version_changed', 'staging_cleaned', 'duplicate_ignored']
|
||||
PASS hung worker (event loop blocked 45 s) loses lease; takeover commits; zombie commit is fenced 47.14s claimed t799 → takeover t800 → committed t800; zombie (t799) → lease_lost
|
||||
PASS long but alive job (35 s > lease 20 s): heartbeat keeps the lease, no takeover, no duplicate 36.32s ready after 36.3s, ['enqueued', 'published', 'claimed', 'committed', 'published_version_changed', 'staging_cleaned']
|
||||
PASS transient errors: retry with backoff + jitter (2 failures), then ready 7.10s delays 1.56s, 3.97s (windows [1,2], [2,4]); actual gaps [1.7, 4.01]; attempts [1, 2, 3]
|
||||
PASS retries exhausted → failed retry_exhausted (in registry) → operator replay → ready 28.29s 5 attempts → retry_exhausted; replay (attempt 6) → ready
|
||||
PASS processing with expired lease and LOST message → reaper requeues → ready 15.50s purged 1 stream msgs; ['claimed', 'committed', 'published_version_changed', 'staging_cleaned']
|
||||
PASS bounded concurrency: never more than replicas × WORKER_CONCURRENCY jobs in processing 18.46s 8 jobs × ~4 s: peak concurrency 4 (limit 4), wall 10.0s
|
||||
PASS staging removed after ready; failed staging kept until retention, then replay refuses honestly 17.37s ready: staging gone, originals/ present; failed: staging kept, removed after retention; replay refused
|
||||
summary: 14 passed, 0 failed
|
||||
exit=0
|
||||
@@ -0,0 +1,15 @@
|
||||
# 2026-11-21T20:12:41Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ python3 student-tests/test_observability.py
|
||||
## lab6: наблюдаемость — provisioning, сигналы, корреляция, безопасность telemetry
|
||||
PASS provisioning: Prometheus/Loki/Tempo из Git, health OK 0.05s health OK: prometheus, loki, tempo
|
||||
PASS provisioning: dashboard импортирован, все запросы панелей выполняются 3.08s 33 панелей, 60 запросов без ошибок, с данными 57
|
||||
PASS HTTP: X-Request-Id → структурный лог → trace (server + DB spans) 1.69s request_id → trace 28b17ed52654…, 8 spans (5 DB)
|
||||
PASS безопасность: пароль, токен, тело сообщения не попадают в логи/трассы 3.81s проверено в Loki и 2 trace: пароль, токен, текст сообщения, Authorization
|
||||
PASS upload → create → send → process → S3/DB: один trace; лог worker с тем же trace_id 5.56s 55 spans: SERVER→create→send→process(messenger-worker)→S3×4; queue -0.00 с
|
||||
PASS retry: 2 временные ошибки + успех — три попытки в одном trace 9.66s попытки 1→2→3: ['retry', 'retry', 'ready']; паузы backoff 1.7 с и 3.7 с
|
||||
PASS метрики контракта: имена, низкая кардинальность, шаблоны маршрутов 0.23s 20 метрик; серий 5254 (HTTP count — 100); маршрутов 12; запрещённых labels нет
|
||||
PASS метрики отражают обработку: jobs, retry, time-to-ready, p95 из histogram 0.04s ready=16 retry=8 time_to_ready count=16; p95 HTTP 37 мс, p95 ready 2.77 с
|
||||
PASS алерты: правила загружены и вычисляются без ошибок 0.01s 18 правил (10 алертов), firing сейчас: ['TelemetryLostInSdk']
|
||||
PASS SDK: spans/logs не отбрасываются при работающем Collector 0.02s обработано spans 13125, отброшено 0
|
||||
summary: 10 passed, 0 failed
|
||||
exit=0
|
||||
@@ -0,0 +1,15 @@
|
||||
# 2026-11-21T18:58:16Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ python3 student-tests/test_observability.py
|
||||
## lab6: наблюдаемость — provisioning, сигналы, корреляция, безопасность telemetry
|
||||
PASS provisioning: Prometheus/Loki/Tempo из Git, health OK 0.07s health OK: prometheus, loki, tempo
|
||||
PASS provisioning: dashboard импортирован, все запросы панелей выполняются 1.23s 33 панелей, 60 запросов без ошибок, с данными 3
|
||||
PASS HTTP: X-Request-Id → структурный лог → trace (server + DB spans) 2.75s request_id → trace 2e5e8df8dff7…, 8 spans (5 DB)
|
||||
PASS безопасность: пароль, токен, тело сообщения не попадают в логи/трассы 2.42s проверено в Loki и 2 trace: пароль, токен, текст сообщения, Authorization
|
||||
PASS upload → create → send → process → S3/DB: один trace; лог worker с тем же trace_id 11.88s 55 spans: SERVER→create→send→process(messenger-worker)→S3×4; queue 0.00 с
|
||||
PASS retry: 2 временные ошибки + успех — три попытки в одном trace 9.72s попытки 1→2→3: ['retry', 'retry', 'ready']; паузы backoff 2.0 с и 3.0 с
|
||||
PASS метрики контракта: имена, низкая кардинальность, шаблоны маршрутов 0.24s 20 метрик; серий 1180 (HTTP count — 35); маршрутов 12; запрещённых labels нет
|
||||
PASS метрики отражают обработку: jobs, retry, time-to-ready, p95 из histogram 2.12s ready=3 retry=2 time_to_ready count=3; p95 HTTP 466 мс, p95 ready 9.75 с
|
||||
PASS алерты: правила загружены и вычисляются без ошибок 0.02s 18 правил (10 алертов), firing сейчас: нет
|
||||
PASS SDK: spans/logs не отбрасываются при работающем Collector 0.02s обработано spans 577, отброшено 0
|
||||
summary: 10 passed, 0 failed
|
||||
exit=0
|
||||
@@ -0,0 +1,13 @@
|
||||
# 2026-11-21T19:20:57Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ python3 student-tests/test_pipeline.py
|
||||
## attachment pipeline (http://127.0.0.1:8080)
|
||||
PASS upload → 202 queued snapshot, then ready; original byte-exact; three variants by contract 1.20s ready 0.94s after 202; thumbnail 256×160, crop 128×128, optimized 320×200 WebP
|
||||
PASS big image: optimized fits 1280 without upscale, thumbnail rounds down 1.15s thumbnail 256x170, optimized 1280x852
|
||||
PASS EXIF orientation applied (stored 400×200, orientation 6 → 200×400); tiny image not upscaled 2.10s
|
||||
PASS variant parameter: unknown → 400; default original; outsider → 404 0.67s
|
||||
PASS undecodable image → failed with safe error_code, no retries; content 409; cannot attach (409) 2.54s events ['enqueued', 'published', 'claimed', 'failed']; listed in failed registry
|
||||
PASS queued/processing attachment can be attached to a message right away 0.69s
|
||||
PASS duplicate deliveries of a finished job are no-ops (5 raw duplicates) 6.57s committed ×1, duplicate_ignored ×5, metadata unchanged
|
||||
PASS replay is safe: ready → noop; failed (permanent) → re-executed once, failed again 3.48s ready: noop; failed: replayed (audit by student) → failed again (permanent error)
|
||||
summary: 8 passed, 0 failed
|
||||
exit=0
|
||||
@@ -0,0 +1,10 @@
|
||||
# 2026-11-21T19:27:17Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ python3 student-tests/test_storage_failures.py
|
||||
## object storage failures (http://127.0.0.1:8080)
|
||||
PASS bucket is private outside API: anonymous GET/LIST/PUT denied, API key limited 5.14s anon GET 403; s3-check 6/6 PASS
|
||||
PASS S3 down: upload/download 503 fast, text messages and readiness keep working 30.19s 503 in 0.03s/0.02s; after start: reads 4.3s, writes 23.5s
|
||||
PASS interrupted upload: no object and no intent left behind 10.15s objects 2, intents 1 — unchanged
|
||||
PASS uploads rejected at the very end (truncated PNG) leave no staging object (race regression) 9.18s 30 × 415 at finish(); staging objects 2 → 2
|
||||
PASS crash between staging PUT and DB COMMIT: intent recorded, janitor removes object after grace 26.63s orphan staging/a0244d5cebee… removed 11.2s after crash (grace 10 s)
|
||||
summary: 5 passed, 0 failed
|
||||
exit=0
|
||||
@@ -0,0 +1,9 @@
|
||||
# 2026-11-21T18:58:48Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ python3 student-tests/test_telemetry_persistence.py
|
||||
## lab6: сохранность истории telemetry после перезапуска
|
||||
PASS до рестарта: лог, trace и метрика контрольного запроса сохранены 17.70s request_id → trace e7fcbc6308a9…, счётчик POST messages = 13
|
||||
PASS перезапуск всех сервисов и хранилищ (volumes сохраняются) 43.11s hook scripts/restart.sh + готовность за 43 с
|
||||
PASS после рестарта: тот же лог, тот же trace, то же значение метрики в прошлом 0.19s лог, trace (8 spans), метрика (13) и dashboard на месте
|
||||
PASS после рестарта: новые данные доходят во все три хранилища 3.82s новый trace 1bd7c465a6c1…, текущий RPS API 0.98
|
||||
summary: 4 passed, 0 failed
|
||||
exit=0
|
||||
@@ -0,0 +1,12 @@
|
||||
# 2026-11-21T19:29:03Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ python3 student-tests/test_pipeline_idempotency.py
|
||||
## track 2: pipeline idempotency (http://127.0.0.1:8080)
|
||||
PASS D: 8 duplicate copies of one job delivered concurrently → one claim, one commit 32.45s 9 deliveries: claimed 1, committed 1, duplicate_ignored 8
|
||||
PASS R: reorder — stale attempts (1, 2) and a future one arrive DURING attempt 3 → ignored 22.85s during attempt 3: attempts 2, 1 → stale_ignored; 9 → stale_ignored(future) + term; one commit
|
||||
PASS C: crash before/after side effect, after COMMIT, hung worker — all reach one result 46.64s {'crash-before-s3': 'takeover', 'crash-after-s3': 'takeover', 'crash-after-commit': 'dup_ignored', 'hang-40': 'takeover'}
|
||||
PASS V1: stale v1 job after v2 is published → superseded, no v1 side effects 22.25s v2 ready first; v1 → superseded at claim; variants only v2, pointer 2
|
||||
PASS V2: version race — slow v1 commits after v2 → pointer stays on v2 (no overwrite by older) 16.43s v1 finished after v2 → superseded at commit; pointer history [(None, 2)]
|
||||
PASS V3: redelivered v1 after v2 rollout and repeated reprocess are no-ops 7.65s v1 ready → v2 ready (pointer 1→2); 3 v1 duplicates ignored; reprocess v1/v2 again → noop
|
||||
PASS invariants I1–I7 hold for everything this suite produced (settled, bytes verified) 3.37s attachments 9, jobs 12 {'ready': 10, 'superseded': 2}, variants 33, events 91
|
||||
summary: 7 passed, 0 failed
|
||||
exit=0
|
||||
@@ -0,0 +1,283 @@
|
||||
# 2026-11-21T19:33:37Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ python3 research/telemetry_cost.py --reps 3 --rate 60 --window 60 --out evidence/track1
|
||||
[22:33:37] run off: apply config
|
||||
[22:35:47] run off: {"ok_rps": 58.8, "lat_p50_ms": 6.3, "lat_p95_ms": 27.2, "lat_p99_ms": 56.5}
|
||||
[22:35:47] run full: apply config
|
||||
[22:38:01] run full: {"ok_rps": 58.8, "lat_p50_ms": 8.6, "lat_p95_ms": 43.2, "lat_p99_ms": 106.8, "errors_found_in_tempo": [45, 45], "slow_found_in_tempo": [45, 45]}
|
||||
[22:38:01] run head10: apply config
|
||||
[22:40:16] run head10: {"ok_rps": 58.8, "lat_p50_ms": 7.1, "lat_p95_ms": 29.2, "lat_p99_ms": 68.5, "errors_found_in_tempo": [2, 45], "slow_found_in_tempo": [2, 45]}
|
||||
[22:40:16] run tail: apply config
|
||||
[22:42:44] run tail: {"ok_rps": 58.8, "lat_p50_ms": 9.7, "lat_p95_ms": 67.0, "lat_p99_ms": 243.0, "errors_found_in_tempo": [45, 45], "slow_found_in_tempo": [45, 45]}
|
||||
[22:42:44] run off: apply config
|
||||
[22:45:07] run off: {"ok_rps": 58.8, "lat_p50_ms": 6.2, "lat_p95_ms": 21.5, "lat_p99_ms": 41.5}
|
||||
[22:45:07] run full: apply config
|
||||
[22:47:22] run full: {"ok_rps": 58.8, "lat_p50_ms": 9.8, "lat_p95_ms": 50.5, "lat_p99_ms": 113.0, "errors_found_in_tempo": [45, 45], "slow_found_in_tempo": [45, 45]}
|
||||
[22:47:22] run head10: apply config
|
||||
[22:49:40] run head10: {"ok_rps": 58.8, "lat_p50_ms": 6.7, "lat_p95_ms": 24.6, "lat_p99_ms": 53.6, "errors_found_in_tempo": [1, 45], "slow_found_in_tempo": [4, 45]}
|
||||
[22:49:40] run tail: apply config
|
||||
[22:52:07] run tail: {"ok_rps": 58.8, "lat_p50_ms": 9.1, "lat_p95_ms": 55.7, "lat_p99_ms": 140.1, "errors_found_in_tempo": [45, 45], "slow_found_in_tempo": [45, 45]}
|
||||
[22:52:07] run off: apply config
|
||||
[22:54:29] run off: {"ok_rps": 58.8, "lat_p50_ms": 5.5, "lat_p95_ms": 18.7, "lat_p99_ms": 40.4}
|
||||
[22:54:29] run full: apply config
|
||||
[22:56:45] run full: {"ok_rps": 58.8, "lat_p50_ms": 8.7, "lat_p95_ms": 42.8, "lat_p99_ms": 132.1, "errors_found_in_tempo": [45, 45], "slow_found_in_tempo": [45, 45]}
|
||||
[22:56:45] run head10: apply config
|
||||
[22:59:01] run head10: {"ok_rps": 58.8, "lat_p50_ms": 5.9, "lat_p95_ms": 22.2, "lat_p99_ms": 51.5, "errors_found_in_tempo": [2, 45], "slow_found_in_tempo": [3, 45]}
|
||||
[22:59:01] run tail: apply config
|
||||
[23:01:31] run tail: {"ok_rps": 58.8, "lat_p50_ms": 7.6, "lat_p95_ms": 37.8, "lat_p99_ms": 97.0, "errors_found_in_tempo": [45, 45], "slow_found_in_tempo": [45, 45]}
|
||||
[23:01:31] restore config full
|
||||
{
|
||||
"meta": {
|
||||
"rate_rps": 60.0,
|
||||
"window_s": 60,
|
||||
"warmup_s": 15,
|
||||
"reps": 3,
|
||||
"configs": {
|
||||
"off": {
|
||||
"OTEL_SDK_DISABLED": "true",
|
||||
"OTEL_TRACES_SAMPLER_ARG": "1.0",
|
||||
"OTEL_COLLECTOR_CONFIG": "collector.yaml"
|
||||
},
|
||||
"full": {
|
||||
"OTEL_SDK_DISABLED": "false",
|
||||
"OTEL_TRACES_SAMPLER_ARG": "1.0",
|
||||
"OTEL_COLLECTOR_CONFIG": "collector.yaml"
|
||||
},
|
||||
"head10": {
|
||||
"OTEL_SDK_DISABLED": "false",
|
||||
"OTEL_TRACES_SAMPLER_ARG": "0.1",
|
||||
"OTEL_COLLECTOR_CONFIG": "collector.yaml"
|
||||
},
|
||||
"tail": {
|
||||
"OTEL_SDK_DISABLED": "false",
|
||||
"OTEL_TRACES_SAMPLER_ARG": "1.0",
|
||||
"OTEL_COLLECTOR_CONFIG": "collector-tail.yaml"
|
||||
}
|
||||
},
|
||||
"host_cpus": 2,
|
||||
"date": "2026-11-21T20:01:39Z"
|
||||
},
|
||||
"table": {
|
||||
"off": {
|
||||
"runs": 3,
|
||||
"ok_rps": 58.8,
|
||||
"p50_ms": 6.2,
|
||||
"p95_ms": 21.5,
|
||||
"p99_ms": 41.5,
|
||||
"p95_ms_runs": [
|
||||
27.2,
|
||||
21.5,
|
||||
18.7
|
||||
],
|
||||
"unexpected_errors": 0,
|
||||
"cpu_api_pct": 30.5,
|
||||
"mem_api_mib": 106.4,
|
||||
"cpu_worker_pct": 52.3,
|
||||
"mem_worker_mib": 87.2,
|
||||
"cpu_collector_pct": 0.1,
|
||||
"mem_collector_mib": 31.2,
|
||||
"cpu_backends_pct": 2.5,
|
||||
"mem_backends_mib": 362.6,
|
||||
"cpu_postgres_pct": 8.0,
|
||||
"mem_postgres_mib": 73.1
|
||||
},
|
||||
"full": {
|
||||
"runs": 3,
|
||||
"ok_rps": 58.8,
|
||||
"p50_ms": 8.7,
|
||||
"p95_ms": 43.2,
|
||||
"p99_ms": 113.0,
|
||||
"p95_ms_runs": [
|
||||
43.2,
|
||||
50.5,
|
||||
42.8
|
||||
],
|
||||
"unexpected_errors": 0,
|
||||
"cpu_api_pct": 43.4,
|
||||
"mem_api_mib": 124.0,
|
||||
"cpu_worker_pct": 39.0,
|
||||
"mem_worker_mib": 97.1,
|
||||
"cpu_collector_pct": 1.3,
|
||||
"mem_collector_mib": 45.8,
|
||||
"cpu_backends_pct": 4.6,
|
||||
"mem_backends_mib": 373.4,
|
||||
"cpu_postgres_pct": 8.7,
|
||||
"mem_postgres_mib": 89.1,
|
||||
"col_spans_in_per_s": 482.8,
|
||||
"col_spans_out_per_s": 482.8,
|
||||
"tempo_bytes_per_s": 147204.9,
|
||||
"tempo_spans_per_s": 482.8,
|
||||
"loki_bytes_per_s": 18815.5,
|
||||
"loki_lines_per_s": 62.2,
|
||||
"col_points_in_per_s": 35.8,
|
||||
"prom_samples_per_s": 1274.8,
|
||||
"sdk_lost": 0,
|
||||
"col_refused": 0,
|
||||
"col_send_failed": 0,
|
||||
"sdk_sampled_share": 1.0,
|
||||
"red_5xx_vs_injected": [
|
||||
[
|
||||
45.0,
|
||||
45
|
||||
],
|
||||
[
|
||||
45.0,
|
||||
45
|
||||
],
|
||||
[
|
||||
45.0,
|
||||
45
|
||||
]
|
||||
],
|
||||
"spanmetrics_vs_sdk_calls": [
|
||||
[
|
||||
4500.0,
|
||||
4500.0
|
||||
],
|
||||
[
|
||||
4500.0,
|
||||
4500.0
|
||||
],
|
||||
[
|
||||
4500.0,
|
||||
4500.0
|
||||
]
|
||||
],
|
||||
"errors_found_in_tempo": "135/135",
|
||||
"slow_found_in_tempo": "135/135",
|
||||
"natural_slow_found_in_tempo": "12/12"
|
||||
},
|
||||
"head10": {
|
||||
"runs": 3,
|
||||
"ok_rps": 58.8,
|
||||
"p50_ms": 6.7,
|
||||
"p95_ms": 24.6,
|
||||
"p99_ms": 53.6,
|
||||
"p95_ms_runs": [
|
||||
29.2,
|
||||
24.6,
|
||||
22.2
|
||||
],
|
||||
"unexpected_errors": 0,
|
||||
"cpu_api_pct": 32.2,
|
||||
"mem_api_mib": 116.0,
|
||||
"cpu_worker_pct": 28.1,
|
||||
"mem_worker_mib": 97.5,
|
||||
"cpu_collector_pct": 0.6,
|
||||
"mem_collector_mib": 51.4,
|
||||
"cpu_backends_pct": 3.4,
|
||||
"mem_backends_mib": 349.7,
|
||||
"cpu_postgres_pct": 7.7,
|
||||
"mem_postgres_mib": 78.7,
|
||||
"col_spans_in_per_s": 48.2,
|
||||
"col_spans_out_per_s": 48.2,
|
||||
"tempo_bytes_per_s": 15248.0,
|
||||
"tempo_spans_per_s": 48.2,
|
||||
"loki_bytes_per_s": 18812.7,
|
||||
"loki_lines_per_s": 62.3,
|
||||
"col_points_in_per_s": 36.6,
|
||||
"prom_samples_per_s": 1253.6,
|
||||
"sdk_lost": 0,
|
||||
"col_refused": 0,
|
||||
"col_send_failed": 0,
|
||||
"sdk_sampled_share": 0.4533439069521544,
|
||||
"red_5xx_vs_injected": [
|
||||
[
|
||||
7.0,
|
||||
45
|
||||
],
|
||||
[
|
||||
45.0,
|
||||
45
|
||||
],
|
||||
[
|
||||
45.0,
|
||||
45
|
||||
]
|
||||
],
|
||||
"spanmetrics_vs_sdk_calls": [
|
||||
[
|
||||
406.0,
|
||||
4492.0
|
||||
],
|
||||
[
|
||||
483.0,
|
||||
4500.0
|
||||
],
|
||||
[
|
||||
431.0,
|
||||
4500.0
|
||||
]
|
||||
],
|
||||
"errors_found_in_tempo": "5/135",
|
||||
"slow_found_in_tempo": "9/135",
|
||||
"natural_slow_found_in_tempo": "0/3"
|
||||
},
|
||||
"tail": {
|
||||
"runs": 3,
|
||||
"ok_rps": 58.8,
|
||||
"p50_ms": 9.1,
|
||||
"p95_ms": 55.7,
|
||||
"p99_ms": 140.1,
|
||||
"p95_ms_runs": [
|
||||
67.0,
|
||||
55.7,
|
||||
37.8
|
||||
],
|
||||
"unexpected_errors": 0,
|
||||
"cpu_api_pct": 42.8,
|
||||
"mem_api_mib": 123.5,
|
||||
"cpu_worker_pct": 30.2,
|
||||
"mem_worker_mib": 97.3,
|
||||
"cpu_collector_pct": 1.4,
|
||||
"mem_collector_mib": 50.2,
|
||||
"cpu_backends_pct": 5.4,
|
||||
"mem_backends_mib": 574.7,
|
||||
"cpu_postgres_pct": 8.6,
|
||||
"mem_postgres_mib": 91.3,
|
||||
"col_spans_in_per_s": 482.8,
|
||||
"col_spans_out_per_s": 79.6,
|
||||
"tempo_bytes_per_s": 27868.7,
|
||||
"tempo_spans_per_s": 79.6,
|
||||
"loki_bytes_per_s": 18806.3,
|
||||
"loki_lines_per_s": 62.2,
|
||||
"col_points_in_per_s": 36.1,
|
||||
"prom_samples_per_s": 1269.0,
|
||||
"sdk_lost": 0,
|
||||
"col_refused": 0,
|
||||
"col_send_failed": 0,
|
||||
"sdk_sampled_share": 1.0,
|
||||
"red_5xx_vs_injected": [
|
||||
[
|
||||
45.0,
|
||||
45
|
||||
],
|
||||
[
|
||||
45.0,
|
||||
45
|
||||
],
|
||||
[
|
||||
45.0,
|
||||
45
|
||||
]
|
||||
],
|
||||
"spanmetrics_vs_sdk_calls": [
|
||||
[
|
||||
539.0,
|
||||
4500.0
|
||||
],
|
||||
[
|
||||
543.0,
|
||||
4500.0
|
||||
],
|
||||
[
|
||||
584.0,
|
||||
4500.0
|
||||
]
|
||||
],
|
||||
"errors_found_in_tempo": "135/135",
|
||||
"slow_found_in_tempo": "135/135",
|
||||
"natural_slow_found_in_tempo": "15/34"
|
||||
}
|
||||
}
|
||||
}
|
||||
exit=0
|
||||
@@ -0,0 +1,857 @@
|
||||
[
|
||||
{
|
||||
"config": "off",
|
||||
"window_s": 60.0,
|
||||
"requests": 3600,
|
||||
"ok_rps": 58.8,
|
||||
"unexpected_errors": 0,
|
||||
"injected_errors": 45,
|
||||
"lat_p50_ms": 6.3,
|
||||
"lat_p95_ms": 27.2,
|
||||
"lat_p99_ms": 56.5,
|
||||
"resources": {
|
||||
"api": {
|
||||
"cpu_pct_avg": 31.1,
|
||||
"mem_mib_avg": 107.4,
|
||||
"mem_mib_max": 152.6
|
||||
},
|
||||
"worker": {
|
||||
"cpu_pct_avg": 52.3,
|
||||
"mem_mib_avg": 87.2,
|
||||
"mem_mib_max": 119.8
|
||||
},
|
||||
"collector": {
|
||||
"cpu_pct_avg": 0.1,
|
||||
"mem_mib_avg": 50.3,
|
||||
"mem_mib_max": 50.7
|
||||
},
|
||||
"backends": {
|
||||
"cpu_pct_avg": 2.4,
|
||||
"mem_mib_avg": 406.2,
|
||||
"mem_mib_max": 510.0
|
||||
},
|
||||
"postgres": {
|
||||
"cpu_pct_avg": 8.8,
|
||||
"mem_mib_avg": 64.5,
|
||||
"mem_mib_max": 66.7
|
||||
}
|
||||
},
|
||||
"rep": 1
|
||||
},
|
||||
{
|
||||
"config": "full",
|
||||
"window_s": 60.0,
|
||||
"requests": 3600,
|
||||
"ok_rps": 58.8,
|
||||
"unexpected_errors": 0,
|
||||
"injected_errors": 45,
|
||||
"lat_p50_ms": 8.6,
|
||||
"lat_p95_ms": 43.2,
|
||||
"lat_p99_ms": 106.8,
|
||||
"resources": {
|
||||
"api": {
|
||||
"cpu_pct_avg": 43.4,
|
||||
"mem_mib_avg": 124.0,
|
||||
"mem_mib_max": 166.6
|
||||
},
|
||||
"worker": {
|
||||
"cpu_pct_avg": 36.6,
|
||||
"mem_mib_avg": 97.1,
|
||||
"mem_mib_max": 116.1
|
||||
},
|
||||
"collector": {
|
||||
"cpu_pct_avg": 1.3,
|
||||
"mem_mib_avg": 52.3,
|
||||
"mem_mib_max": 53.1
|
||||
},
|
||||
"backends": {
|
||||
"cpu_pct_avg": 4.6,
|
||||
"mem_mib_avg": 355.3,
|
||||
"mem_mib_max": 450.9
|
||||
},
|
||||
"postgres": {
|
||||
"cpu_pct_avg": 8.3,
|
||||
"mem_mib_avg": 71.1,
|
||||
"mem_mib_max": 81.3
|
||||
}
|
||||
},
|
||||
"telemetry_delta": {
|
||||
"col_spans_in": 36443.0,
|
||||
"col_spans_out": 36443.0,
|
||||
"col_logs_in": 4696.0,
|
||||
"col_points_in": 2681.0,
|
||||
"col_refused": 0.0,
|
||||
"col_send_failed": 0.0,
|
||||
"tempo_bytes": 11113140.0,
|
||||
"tempo_spans": 36443.0,
|
||||
"loki_bytes": 1420263.0,
|
||||
"loki_lines": 4696.0,
|
||||
"prom_samples": 96969.0,
|
||||
"sdk_started": 35147.0,
|
||||
"sdk_sampled": 35147.0,
|
||||
"sdk_lost": 0.0,
|
||||
"red_5xx": 45.0,
|
||||
"red_all": 4500.0,
|
||||
"spanmetrics_calls": 4500.0
|
||||
},
|
||||
"per_second": {
|
||||
"col_spans_in": 482.8,
|
||||
"col_spans_out": 482.8,
|
||||
"col_logs_in": 62.2,
|
||||
"col_points_in": 35.5,
|
||||
"tempo_bytes": 147225.6,
|
||||
"tempo_spans": 482.8,
|
||||
"loki_bytes": 18815.5,
|
||||
"loki_lines": 62.2,
|
||||
"prom_samples": 1284.6
|
||||
},
|
||||
"errors_found_in_tempo": [
|
||||
45,
|
||||
45
|
||||
],
|
||||
"slow_found_in_tempo": [
|
||||
45,
|
||||
45
|
||||
],
|
||||
"natural_slow_requests": 0,
|
||||
"natural_slow_found_in_tempo": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"rep": 1
|
||||
},
|
||||
{
|
||||
"config": "head10",
|
||||
"window_s": 60.0,
|
||||
"requests": 3600,
|
||||
"ok_rps": 58.8,
|
||||
"unexpected_errors": 0,
|
||||
"injected_errors": 45,
|
||||
"lat_p50_ms": 7.1,
|
||||
"lat_p95_ms": 29.2,
|
||||
"lat_p99_ms": 68.5,
|
||||
"resources": {
|
||||
"api": {
|
||||
"cpu_pct_avg": 34.2,
|
||||
"mem_mib_avg": 116.7,
|
||||
"mem_mib_max": 147.4
|
||||
},
|
||||
"worker": {
|
||||
"cpu_pct_avg": 39.0,
|
||||
"mem_mib_avg": 97.5,
|
||||
"mem_mib_max": 150.7
|
||||
},
|
||||
"collector": {
|
||||
"cpu_pct_avg": 0.6,
|
||||
"mem_mib_avg": 52.9,
|
||||
"mem_mib_max": 53.1
|
||||
},
|
||||
"backends": {
|
||||
"cpu_pct_avg": 3.4,
|
||||
"mem_mib_avg": 326.1,
|
||||
"mem_mib_max": 329.5
|
||||
},
|
||||
"postgres": {
|
||||
"cpu_pct_avg": 7.7,
|
||||
"mem_mib_avg": 72.9,
|
||||
"mem_mib_max": 82.3
|
||||
}
|
||||
},
|
||||
"telemetry_delta": {
|
||||
"col_spans_in": 3487.0,
|
||||
"col_spans_out": 3487.0,
|
||||
"col_logs_in": 4696.0,
|
||||
"col_points_in": 2765.0,
|
||||
"col_refused": 0.0,
|
||||
"col_send_failed": 0.0,
|
||||
"tempo_bytes": 1106907.0,
|
||||
"tempo_spans": 3487.0,
|
||||
"loki_bytes": 1418988.0,
|
||||
"loki_lines": 4696.0,
|
||||
"prom_samples": 99872.0,
|
||||
"sdk_started": 1637.0,
|
||||
"sdk_sampled": -2521.0,
|
||||
"sdk_lost": 0.0,
|
||||
"red_5xx": 7.0,
|
||||
"red_all": 4492.0,
|
||||
"spanmetrics_calls": 406.0
|
||||
},
|
||||
"per_second": {
|
||||
"col_spans_in": 46.2,
|
||||
"col_spans_out": 46.2,
|
||||
"col_logs_in": 62.2,
|
||||
"col_points_in": 36.6,
|
||||
"tempo_bytes": 14664.2,
|
||||
"tempo_spans": 46.2,
|
||||
"loki_bytes": 18798.6,
|
||||
"loki_lines": 62.2,
|
||||
"prom_samples": 1323.1
|
||||
},
|
||||
"errors_found_in_tempo": [
|
||||
2,
|
||||
45
|
||||
],
|
||||
"slow_found_in_tempo": [
|
||||
2,
|
||||
45
|
||||
],
|
||||
"natural_slow_requests": 3,
|
||||
"natural_slow_found_in_tempo": [
|
||||
0,
|
||||
3
|
||||
],
|
||||
"rep": 1
|
||||
},
|
||||
{
|
||||
"config": "tail",
|
||||
"window_s": 60.0,
|
||||
"requests": 3600,
|
||||
"ok_rps": 58.8,
|
||||
"unexpected_errors": 0,
|
||||
"injected_errors": 45,
|
||||
"lat_p50_ms": 9.7,
|
||||
"lat_p95_ms": 67.0,
|
||||
"lat_p99_ms": 243.0,
|
||||
"resources": {
|
||||
"api": {
|
||||
"cpu_pct_avg": 43.4,
|
||||
"mem_mib_avg": 124.0,
|
||||
"mem_mib_max": 165.8
|
||||
},
|
||||
"worker": {
|
||||
"cpu_pct_avg": 30.2,
|
||||
"mem_mib_avg": 97.3,
|
||||
"mem_mib_max": 134.9
|
||||
},
|
||||
"collector": {
|
||||
"cpu_pct_avg": 1.5,
|
||||
"mem_mib_avg": 49.7,
|
||||
"mem_mib_max": 56.8
|
||||
},
|
||||
"backends": {
|
||||
"cpu_pct_avg": 5.4,
|
||||
"mem_mib_avg": 576.7,
|
||||
"mem_mib_max": 599.4
|
||||
},
|
||||
"postgres": {
|
||||
"cpu_pct_avg": 8.6,
|
||||
"mem_mib_avg": 89.9,
|
||||
"mem_mib_max": 101.1
|
||||
}
|
||||
},
|
||||
"telemetry_delta": {
|
||||
"col_spans_in": 36443.0,
|
||||
"col_spans_out": 5964.0,
|
||||
"col_logs_in": 4696.0,
|
||||
"col_points_in": 2696.0,
|
||||
"col_refused": 0.0,
|
||||
"col_send_failed": 0.0,
|
||||
"tempo_bytes": 2095361.0,
|
||||
"tempo_spans": 5964.0,
|
||||
"loki_bytes": 1420629.0,
|
||||
"loki_lines": 4696.0,
|
||||
"prom_samples": 108641.0,
|
||||
"sdk_started": 35147.0,
|
||||
"sdk_sampled": 35147.0,
|
||||
"sdk_lost": 0.0,
|
||||
"red_5xx": 45.0,
|
||||
"red_all": 4500.0,
|
||||
"spanmetrics_calls": 539.0
|
||||
},
|
||||
"per_second": {
|
||||
"col_spans_in": 482.8,
|
||||
"col_spans_out": 79.0,
|
||||
"col_logs_in": 62.2,
|
||||
"col_points_in": 35.7,
|
||||
"tempo_bytes": 27759.1,
|
||||
"tempo_spans": 79.0,
|
||||
"loki_bytes": 18820.3,
|
||||
"loki_lines": 62.2,
|
||||
"prom_samples": 1439.3
|
||||
},
|
||||
"errors_found_in_tempo": [
|
||||
45,
|
||||
45
|
||||
],
|
||||
"slow_found_in_tempo": [
|
||||
45,
|
||||
45
|
||||
],
|
||||
"natural_slow_requests": 35,
|
||||
"natural_slow_found_in_tempo": [
|
||||
15,
|
||||
30
|
||||
],
|
||||
"rep": 1
|
||||
},
|
||||
{
|
||||
"config": "off",
|
||||
"window_s": 60.0,
|
||||
"requests": 3600,
|
||||
"ok_rps": 58.8,
|
||||
"unexpected_errors": 0,
|
||||
"injected_errors": 45,
|
||||
"lat_p50_ms": 6.2,
|
||||
"lat_p95_ms": 21.5,
|
||||
"lat_p99_ms": 41.5,
|
||||
"resources": {
|
||||
"api": {
|
||||
"cpu_pct_avg": 30.5,
|
||||
"mem_mib_avg": 106.4,
|
||||
"mem_mib_max": 128.4
|
||||
},
|
||||
"worker": {
|
||||
"cpu_pct_avg": 54.2,
|
||||
"mem_mib_avg": 88.9,
|
||||
"mem_mib_max": 128.2
|
||||
},
|
||||
"collector": {
|
||||
"cpu_pct_avg": 0.1,
|
||||
"mem_mib_avg": 30.7,
|
||||
"mem_mib_max": 32.1
|
||||
},
|
||||
"backends": {
|
||||
"cpu_pct_avg": 2.5,
|
||||
"mem_mib_avg": 322.0,
|
||||
"mem_mib_max": 323.7
|
||||
},
|
||||
"postgres": {
|
||||
"cpu_pct_avg": 8.0,
|
||||
"mem_mib_avg": 73.1,
|
||||
"mem_mib_max": 75.3
|
||||
}
|
||||
},
|
||||
"rep": 2
|
||||
},
|
||||
{
|
||||
"config": "full",
|
||||
"window_s": 60.0,
|
||||
"requests": 3600,
|
||||
"ok_rps": 58.8,
|
||||
"unexpected_errors": 0,
|
||||
"injected_errors": 45,
|
||||
"lat_p50_ms": 9.8,
|
||||
"lat_p95_ms": 50.5,
|
||||
"lat_p99_ms": 113.0,
|
||||
"resources": {
|
||||
"api": {
|
||||
"cpu_pct_avg": 43.4,
|
||||
"mem_mib_avg": 122.4,
|
||||
"mem_mib_max": 146.8
|
||||
},
|
||||
"worker": {
|
||||
"cpu_pct_avg": 39.0,
|
||||
"mem_mib_avg": 98.3,
|
||||
"mem_mib_max": 138.6
|
||||
},
|
||||
"collector": {
|
||||
"cpu_pct_avg": 1.3,
|
||||
"mem_mib_avg": 45.5,
|
||||
"mem_mib_max": 50.6
|
||||
},
|
||||
"backends": {
|
||||
"cpu_pct_avg": 4.6,
|
||||
"mem_mib_avg": 373.4,
|
||||
"mem_mib_max": 478.6
|
||||
},
|
||||
"postgres": {
|
||||
"cpu_pct_avg": 9.6,
|
||||
"mem_mib_avg": 89.1,
|
||||
"mem_mib_max": 98.7
|
||||
}
|
||||
},
|
||||
"telemetry_delta": {
|
||||
"col_spans_in": 36443.0,
|
||||
"col_spans_out": 36443.0,
|
||||
"col_logs_in": 4696.0,
|
||||
"col_points_in": 2701.0,
|
||||
"col_refused": 0.0,
|
||||
"col_send_failed": 0.0,
|
||||
"tempo_bytes": 11111565.0,
|
||||
"tempo_spans": 36443.0,
|
||||
"loki_bytes": 1420353.0,
|
||||
"loki_lines": 4696.0,
|
||||
"prom_samples": 96223.0,
|
||||
"sdk_started": 35147.0,
|
||||
"sdk_sampled": 35147.0,
|
||||
"sdk_lost": 0.0,
|
||||
"red_5xx": 45.0,
|
||||
"red_all": 4500.0,
|
||||
"spanmetrics_calls": 4500.0
|
||||
},
|
||||
"per_second": {
|
||||
"col_spans_in": 482.8,
|
||||
"col_spans_out": 482.8,
|
||||
"col_logs_in": 62.2,
|
||||
"col_points_in": 35.8,
|
||||
"tempo_bytes": 147204.9,
|
||||
"tempo_spans": 482.8,
|
||||
"loki_bytes": 18816.7,
|
||||
"loki_lines": 62.2,
|
||||
"prom_samples": 1274.8
|
||||
},
|
||||
"errors_found_in_tempo": [
|
||||
45,
|
||||
45
|
||||
],
|
||||
"slow_found_in_tempo": [
|
||||
45,
|
||||
45
|
||||
],
|
||||
"natural_slow_requests": 9,
|
||||
"natural_slow_found_in_tempo": [
|
||||
9,
|
||||
9
|
||||
],
|
||||
"rep": 2
|
||||
},
|
||||
{
|
||||
"config": "head10",
|
||||
"window_s": 60.0,
|
||||
"requests": 3600,
|
||||
"ok_rps": 58.8,
|
||||
"unexpected_errors": 0,
|
||||
"injected_errors": 45,
|
||||
"lat_p50_ms": 6.7,
|
||||
"lat_p95_ms": 24.6,
|
||||
"lat_p99_ms": 53.6,
|
||||
"resources": {
|
||||
"api": {
|
||||
"cpu_pct_avg": 32.2,
|
||||
"mem_mib_avg": 116.0,
|
||||
"mem_mib_max": 157.4
|
||||
},
|
||||
"worker": {
|
||||
"cpu_pct_avg": 28.1,
|
||||
"mem_mib_avg": 98.5,
|
||||
"mem_mib_max": 129.1
|
||||
},
|
||||
"collector": {
|
||||
"cpu_pct_avg": 0.7,
|
||||
"mem_mib_avg": 50.6,
|
||||
"mem_mib_max": 50.9
|
||||
},
|
||||
"backends": {
|
||||
"cpu_pct_avg": 3.4,
|
||||
"mem_mib_avg": 349.7,
|
||||
"mem_mib_max": 358.4
|
||||
},
|
||||
"postgres": {
|
||||
"cpu_pct_avg": 8.1,
|
||||
"mem_mib_avg": 78.7,
|
||||
"mem_mib_max": 85.7
|
||||
}
|
||||
},
|
||||
"telemetry_delta": {
|
||||
"col_spans_in": 3777.0,
|
||||
"col_spans_out": 3777.0,
|
||||
"col_logs_in": 4701.0,
|
||||
"col_points_in": 2761.0,
|
||||
"col_refused": 0.0,
|
||||
"col_send_failed": 0.0,
|
||||
"tempo_bytes": 1183927.0,
|
||||
"tempo_spans": 3777.0,
|
||||
"loki_bytes": 1421285.0,
|
||||
"loki_lines": 4701.0,
|
||||
"prom_samples": 94630.0,
|
||||
"sdk_started": 7835.0,
|
||||
"sdk_sampled": 3742.0,
|
||||
"sdk_lost": 0.0,
|
||||
"red_5xx": 45.0,
|
||||
"red_all": 4500.0,
|
||||
"spanmetrics_calls": 483.0
|
||||
},
|
||||
"per_second": {
|
||||
"col_spans_in": 50.0,
|
||||
"col_spans_out": 50.0,
|
||||
"col_logs_in": 62.3,
|
||||
"col_points_in": 36.6,
|
||||
"tempo_bytes": 15684.5,
|
||||
"tempo_spans": 50.0,
|
||||
"loki_bytes": 18829.0,
|
||||
"loki_lines": 62.3,
|
||||
"prom_samples": 1253.6
|
||||
},
|
||||
"errors_found_in_tempo": [
|
||||
1,
|
||||
45
|
||||
],
|
||||
"slow_found_in_tempo": [
|
||||
4,
|
||||
45
|
||||
],
|
||||
"natural_slow_requests": 0,
|
||||
"natural_slow_found_in_tempo": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"rep": 2
|
||||
},
|
||||
{
|
||||
"config": "tail",
|
||||
"window_s": 60.0,
|
||||
"requests": 3600,
|
||||
"ok_rps": 58.8,
|
||||
"unexpected_errors": 0,
|
||||
"injected_errors": 45,
|
||||
"lat_p50_ms": 9.1,
|
||||
"lat_p95_ms": 55.7,
|
||||
"lat_p99_ms": 140.1,
|
||||
"resources": {
|
||||
"api": {
|
||||
"cpu_pct_avg": 42.8,
|
||||
"mem_mib_avg": 123.5,
|
||||
"mem_mib_max": 147.6
|
||||
},
|
||||
"worker": {
|
||||
"cpu_pct_avg": 42.0,
|
||||
"mem_mib_avg": 98.3,
|
||||
"mem_mib_max": 148.3
|
||||
},
|
||||
"collector": {
|
||||
"cpu_pct_avg": 1.3,
|
||||
"mem_mib_avg": 50.2,
|
||||
"mem_mib_max": 56.9
|
||||
},
|
||||
"backends": {
|
||||
"cpu_pct_avg": 4.8,
|
||||
"mem_mib_avg": 574.7,
|
||||
"mem_mib_max": 623.5
|
||||
},
|
||||
"postgres": {
|
||||
"cpu_pct_avg": 8.3,
|
||||
"mem_mib_avg": 91.3,
|
||||
"mem_mib_max": 98.9
|
||||
}
|
||||
},
|
||||
"telemetry_delta": {
|
||||
"col_spans_in": 36443.0,
|
||||
"col_spans_out": 6008.0,
|
||||
"col_logs_in": 4696.0,
|
||||
"col_points_in": 2790.0,
|
||||
"col_refused": 0.0,
|
||||
"col_send_failed": 0.0,
|
||||
"tempo_bytes": 2103644.0,
|
||||
"tempo_spans": 6008.0,
|
||||
"loki_bytes": 1419168.0,
|
||||
"loki_lines": 4696.0,
|
||||
"prom_samples": 95678.0,
|
||||
"sdk_started": 35148.0,
|
||||
"sdk_sampled": 35148.0,
|
||||
"sdk_lost": 0.0,
|
||||
"red_5xx": 45.0,
|
||||
"red_all": 4500.0,
|
||||
"spanmetrics_calls": 543.0
|
||||
},
|
||||
"per_second": {
|
||||
"col_spans_in": 482.8,
|
||||
"col_spans_out": 79.6,
|
||||
"col_logs_in": 62.2,
|
||||
"col_points_in": 37.0,
|
||||
"tempo_bytes": 27868.7,
|
||||
"tempo_spans": 79.6,
|
||||
"loki_bytes": 18800.9,
|
||||
"loki_lines": 62.2,
|
||||
"prom_samples": 1267.5
|
||||
},
|
||||
"errors_found_in_tempo": [
|
||||
45,
|
||||
45
|
||||
],
|
||||
"slow_found_in_tempo": [
|
||||
45,
|
||||
45
|
||||
],
|
||||
"natural_slow_requests": 4,
|
||||
"natural_slow_found_in_tempo": [
|
||||
0,
|
||||
4
|
||||
],
|
||||
"rep": 2
|
||||
},
|
||||
{
|
||||
"config": "off",
|
||||
"window_s": 60.0,
|
||||
"requests": 3600,
|
||||
"ok_rps": 58.8,
|
||||
"unexpected_errors": 0,
|
||||
"injected_errors": 45,
|
||||
"lat_p50_ms": 5.5,
|
||||
"lat_p95_ms": 18.7,
|
||||
"lat_p99_ms": 40.4,
|
||||
"resources": {
|
||||
"api": {
|
||||
"cpu_pct_avg": 26.3,
|
||||
"mem_mib_avg": 106.4,
|
||||
"mem_mib_max": 128.5
|
||||
},
|
||||
"worker": {
|
||||
"cpu_pct_avg": 35.0,
|
||||
"mem_mib_avg": 85.7,
|
||||
"mem_mib_max": 128.9
|
||||
},
|
||||
"collector": {
|
||||
"cpu_pct_avg": 0.1,
|
||||
"mem_mib_avg": 31.2,
|
||||
"mem_mib_max": 33.3
|
||||
},
|
||||
"backends": {
|
||||
"cpu_pct_avg": 2.5,
|
||||
"mem_mib_avg": 362.6,
|
||||
"mem_mib_max": 364.8
|
||||
},
|
||||
"postgres": {
|
||||
"cpu_pct_avg": 7.6,
|
||||
"mem_mib_avg": 79.3,
|
||||
"mem_mib_max": 82.8
|
||||
}
|
||||
},
|
||||
"rep": 3
|
||||
},
|
||||
{
|
||||
"config": "full",
|
||||
"window_s": 60.0,
|
||||
"requests": 3600,
|
||||
"ok_rps": 58.8,
|
||||
"unexpected_errors": 0,
|
||||
"injected_errors": 45,
|
||||
"lat_p50_ms": 8.7,
|
||||
"lat_p95_ms": 42.8,
|
||||
"lat_p99_ms": 132.1,
|
||||
"resources": {
|
||||
"api": {
|
||||
"cpu_pct_avg": 43.2,
|
||||
"mem_mib_avg": 125.1,
|
||||
"mem_mib_max": 165.3
|
||||
},
|
||||
"worker": {
|
||||
"cpu_pct_avg": 39.2,
|
||||
"mem_mib_avg": 93.4,
|
||||
"mem_mib_max": 149.7
|
||||
},
|
||||
"collector": {
|
||||
"cpu_pct_avg": 1.3,
|
||||
"mem_mib_avg": 45.8,
|
||||
"mem_mib_max": 51.2
|
||||
},
|
||||
"backends": {
|
||||
"cpu_pct_avg": 4.7,
|
||||
"mem_mib_avg": 377.6,
|
||||
"mem_mib_max": 541.6
|
||||
},
|
||||
"postgres": {
|
||||
"cpu_pct_avg": 8.7,
|
||||
"mem_mib_avg": 93.0,
|
||||
"mem_mib_max": 103.1
|
||||
}
|
||||
},
|
||||
"telemetry_delta": {
|
||||
"col_spans_in": 36443.0,
|
||||
"col_spans_out": 36443.0,
|
||||
"col_logs_in": 4696.0,
|
||||
"col_points_in": 2781.0,
|
||||
"col_refused": 0.0,
|
||||
"col_send_failed": 0.0,
|
||||
"tempo_bytes": 11109054.0,
|
||||
"tempo_spans": 36443.0,
|
||||
"loki_bytes": 1418209.0,
|
||||
"loki_lines": 4693.0,
|
||||
"prom_samples": 94986.0,
|
||||
"sdk_started": 35148.0,
|
||||
"sdk_sampled": 35148.0,
|
||||
"sdk_lost": 0.0,
|
||||
"red_5xx": 45.0,
|
||||
"red_all": 4500.0,
|
||||
"spanmetrics_calls": 4500.0
|
||||
},
|
||||
"per_second": {
|
||||
"col_spans_in": 482.8,
|
||||
"col_spans_out": 482.8,
|
||||
"col_logs_in": 62.2,
|
||||
"col_points_in": 36.8,
|
||||
"tempo_bytes": 147171.3,
|
||||
"tempo_spans": 482.8,
|
||||
"loki_bytes": 18788.2,
|
||||
"loki_lines": 62.2,
|
||||
"prom_samples": 1258.4
|
||||
},
|
||||
"errors_found_in_tempo": [
|
||||
45,
|
||||
45
|
||||
],
|
||||
"slow_found_in_tempo": [
|
||||
45,
|
||||
45
|
||||
],
|
||||
"natural_slow_requests": 3,
|
||||
"natural_slow_found_in_tempo": [
|
||||
3,
|
||||
3
|
||||
],
|
||||
"rep": 3
|
||||
},
|
||||
{
|
||||
"config": "head10",
|
||||
"window_s": 60.0,
|
||||
"requests": 3600,
|
||||
"ok_rps": 58.8,
|
||||
"unexpected_errors": 0,
|
||||
"injected_errors": 45,
|
||||
"lat_p50_ms": 5.9,
|
||||
"lat_p95_ms": 22.2,
|
||||
"lat_p99_ms": 51.5,
|
||||
"resources": {
|
||||
"api": {
|
||||
"cpu_pct_avg": 31.2,
|
||||
"mem_mib_avg": 115.8,
|
||||
"mem_mib_max": 136.8
|
||||
},
|
||||
"worker": {
|
||||
"cpu_pct_avg": 21.6,
|
||||
"mem_mib_avg": 93.7,
|
||||
"mem_mib_max": 123.9
|
||||
},
|
||||
"collector": {
|
||||
"cpu_pct_avg": 0.6,
|
||||
"mem_mib_avg": 51.4,
|
||||
"mem_mib_max": 52.0
|
||||
},
|
||||
"backends": {
|
||||
"cpu_pct_avg": 3.3,
|
||||
"mem_mib_avg": 391.0,
|
||||
"mem_mib_max": 396.0
|
||||
},
|
||||
"postgres": {
|
||||
"cpu_pct_avg": 7.4,
|
||||
"mem_mib_avg": 86.1,
|
||||
"mem_mib_max": 93.3
|
||||
}
|
||||
},
|
||||
"telemetry_delta": {
|
||||
"col_spans_in": 3640.0,
|
||||
"col_spans_out": 3640.0,
|
||||
"col_logs_in": 4700.0,
|
||||
"col_points_in": 2745.0,
|
||||
"col_refused": 0.0,
|
||||
"col_send_failed": 0.0,
|
||||
"tempo_bytes": 1150983.0,
|
||||
"tempo_spans": 3640.0,
|
||||
"loki_bytes": 1420061.0,
|
||||
"loki_lines": 4700.0,
|
||||
"prom_samples": 94420.0,
|
||||
"sdk_started": 7566.0,
|
||||
"sdk_sampled": 3430.0,
|
||||
"sdk_lost": 0.0,
|
||||
"red_5xx": 45.0,
|
||||
"red_all": 4500.0,
|
||||
"spanmetrics_calls": 431.0
|
||||
},
|
||||
"per_second": {
|
||||
"col_spans_in": 48.2,
|
||||
"col_spans_out": 48.2,
|
||||
"col_logs_in": 62.3,
|
||||
"col_points_in": 36.4,
|
||||
"tempo_bytes": 15248.0,
|
||||
"tempo_spans": 48.2,
|
||||
"loki_bytes": 18812.7,
|
||||
"loki_lines": 62.3,
|
||||
"prom_samples": 1250.9
|
||||
},
|
||||
"errors_found_in_tempo": [
|
||||
2,
|
||||
45
|
||||
],
|
||||
"slow_found_in_tempo": [
|
||||
3,
|
||||
45
|
||||
],
|
||||
"natural_slow_requests": 0,
|
||||
"natural_slow_found_in_tempo": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"rep": 3
|
||||
},
|
||||
{
|
||||
"config": "tail",
|
||||
"window_s": 60.0,
|
||||
"requests": 3600,
|
||||
"ok_rps": 58.8,
|
||||
"unexpected_errors": 0,
|
||||
"injected_errors": 45,
|
||||
"lat_p50_ms": 7.6,
|
||||
"lat_p95_ms": 37.8,
|
||||
"lat_p99_ms": 97.0,
|
||||
"resources": {
|
||||
"api": {
|
||||
"cpu_pct_avg": 37.6,
|
||||
"mem_mib_avg": 123.3,
|
||||
"mem_mib_max": 157.3
|
||||
},
|
||||
"worker": {
|
||||
"cpu_pct_avg": 25.5,
|
||||
"mem_mib_avg": 86.5,
|
||||
"mem_mib_max": 107.2
|
||||
},
|
||||
"collector": {
|
||||
"cpu_pct_avg": 1.4,
|
||||
"mem_mib_avg": 50.7,
|
||||
"mem_mib_max": 57.6
|
||||
},
|
||||
"backends": {
|
||||
"cpu_pct_avg": 6.0,
|
||||
"mem_mib_avg": 496.0,
|
||||
"mem_mib_max": 703.4
|
||||
},
|
||||
"postgres": {
|
||||
"cpu_pct_avg": 9.6,
|
||||
"mem_mib_avg": 97.7,
|
||||
"mem_mib_max": 102.6
|
||||
}
|
||||
},
|
||||
"telemetry_delta": {
|
||||
"col_spans_in": 36451.0,
|
||||
"col_spans_out": 6298.0,
|
||||
"col_logs_in": 4696.0,
|
||||
"col_points_in": 2728.0,
|
||||
"col_refused": 0.0,
|
||||
"col_send_failed": 0.0,
|
||||
"tempo_bytes": 2200416.0,
|
||||
"tempo_spans": 6298.0,
|
||||
"loki_bytes": 1419574.0,
|
||||
"loki_lines": 4696.0,
|
||||
"prom_samples": 95786.0,
|
||||
"sdk_started": 35155.0,
|
||||
"sdk_sampled": 35155.0,
|
||||
"sdk_lost": 0.0,
|
||||
"red_5xx": 45.0,
|
||||
"red_all": 4500.0,
|
||||
"spanmetrics_calls": 584.0
|
||||
},
|
||||
"per_second": {
|
||||
"col_spans_in": 482.9,
|
||||
"col_spans_out": 83.4,
|
||||
"col_logs_in": 62.2,
|
||||
"col_points_in": 36.1,
|
||||
"tempo_bytes": 29150.7,
|
||||
"tempo_spans": 83.4,
|
||||
"loki_bytes": 18806.3,
|
||||
"loki_lines": 62.2,
|
||||
"prom_samples": 1269.0
|
||||
},
|
||||
"errors_found_in_tempo": [
|
||||
45,
|
||||
45
|
||||
],
|
||||
"slow_found_in_tempo": [
|
||||
45,
|
||||
45
|
||||
],
|
||||
"natural_slow_requests": 0,
|
||||
"natural_slow_found_in_tempo": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"rep": 3
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,255 @@
|
||||
{
|
||||
"meta": {
|
||||
"rate_rps": 60.0,
|
||||
"window_s": 60,
|
||||
"warmup_s": 15,
|
||||
"reps": 3,
|
||||
"configs": {
|
||||
"off": {
|
||||
"OTEL_SDK_DISABLED": "true",
|
||||
"OTEL_TRACES_SAMPLER_ARG": "1.0",
|
||||
"OTEL_COLLECTOR_CONFIG": "collector.yaml"
|
||||
},
|
||||
"full": {
|
||||
"OTEL_SDK_DISABLED": "false",
|
||||
"OTEL_TRACES_SAMPLER_ARG": "1.0",
|
||||
"OTEL_COLLECTOR_CONFIG": "collector.yaml"
|
||||
},
|
||||
"head10": {
|
||||
"OTEL_SDK_DISABLED": "false",
|
||||
"OTEL_TRACES_SAMPLER_ARG": "0.1",
|
||||
"OTEL_COLLECTOR_CONFIG": "collector.yaml"
|
||||
},
|
||||
"tail": {
|
||||
"OTEL_SDK_DISABLED": "false",
|
||||
"OTEL_TRACES_SAMPLER_ARG": "1.0",
|
||||
"OTEL_COLLECTOR_CONFIG": "collector-tail.yaml"
|
||||
}
|
||||
},
|
||||
"host_cpus": 2,
|
||||
"date": "2026-11-21T20:01:39Z"
|
||||
},
|
||||
"table": {
|
||||
"off": {
|
||||
"runs": 3,
|
||||
"ok_rps": 58.8,
|
||||
"p50_ms": 6.2,
|
||||
"p95_ms": 21.5,
|
||||
"p99_ms": 41.5,
|
||||
"p95_ms_runs": [
|
||||
27.2,
|
||||
21.5,
|
||||
18.7
|
||||
],
|
||||
"unexpected_errors": 0,
|
||||
"cpu_api_pct": 30.5,
|
||||
"mem_api_mib": 106.4,
|
||||
"cpu_worker_pct": 52.3,
|
||||
"mem_worker_mib": 87.2,
|
||||
"cpu_collector_pct": 0.1,
|
||||
"mem_collector_mib": 31.2,
|
||||
"cpu_backends_pct": 2.5,
|
||||
"mem_backends_mib": 362.6,
|
||||
"cpu_postgres_pct": 8.0,
|
||||
"mem_postgres_mib": 73.1
|
||||
},
|
||||
"full": {
|
||||
"runs": 3,
|
||||
"ok_rps": 58.8,
|
||||
"p50_ms": 8.7,
|
||||
"p95_ms": 43.2,
|
||||
"p99_ms": 113.0,
|
||||
"p95_ms_runs": [
|
||||
43.2,
|
||||
50.5,
|
||||
42.8
|
||||
],
|
||||
"unexpected_errors": 0,
|
||||
"cpu_api_pct": 43.4,
|
||||
"mem_api_mib": 124.0,
|
||||
"cpu_worker_pct": 39.0,
|
||||
"mem_worker_mib": 97.1,
|
||||
"cpu_collector_pct": 1.3,
|
||||
"mem_collector_mib": 45.8,
|
||||
"cpu_backends_pct": 4.6,
|
||||
"mem_backends_mib": 373.4,
|
||||
"cpu_postgres_pct": 8.7,
|
||||
"mem_postgres_mib": 89.1,
|
||||
"col_spans_in_per_s": 482.8,
|
||||
"col_spans_out_per_s": 482.8,
|
||||
"tempo_bytes_per_s": 147204.9,
|
||||
"tempo_spans_per_s": 482.8,
|
||||
"loki_bytes_per_s": 18815.5,
|
||||
"loki_lines_per_s": 62.2,
|
||||
"col_points_in_per_s": 35.8,
|
||||
"prom_samples_per_s": 1274.8,
|
||||
"sdk_lost": 0,
|
||||
"col_refused": 0,
|
||||
"col_send_failed": 0,
|
||||
"sdk_sampled_share": 1.0,
|
||||
"red_5xx_vs_injected": [
|
||||
[
|
||||
45.0,
|
||||
45
|
||||
],
|
||||
[
|
||||
45.0,
|
||||
45
|
||||
],
|
||||
[
|
||||
45.0,
|
||||
45
|
||||
]
|
||||
],
|
||||
"spanmetrics_vs_sdk_calls": [
|
||||
[
|
||||
4500.0,
|
||||
4500.0
|
||||
],
|
||||
[
|
||||
4500.0,
|
||||
4500.0
|
||||
],
|
||||
[
|
||||
4500.0,
|
||||
4500.0
|
||||
]
|
||||
],
|
||||
"errors_found_in_tempo": "135/135",
|
||||
"slow_found_in_tempo": "135/135",
|
||||
"natural_slow_found_in_tempo": "12/12"
|
||||
},
|
||||
"head10": {
|
||||
"runs": 3,
|
||||
"ok_rps": 58.8,
|
||||
"p50_ms": 6.7,
|
||||
"p95_ms": 24.6,
|
||||
"p99_ms": 53.6,
|
||||
"p95_ms_runs": [
|
||||
29.2,
|
||||
24.6,
|
||||
22.2
|
||||
],
|
||||
"unexpected_errors": 0,
|
||||
"cpu_api_pct": 32.2,
|
||||
"mem_api_mib": 116.0,
|
||||
"cpu_worker_pct": 28.1,
|
||||
"mem_worker_mib": 97.5,
|
||||
"cpu_collector_pct": 0.6,
|
||||
"mem_collector_mib": 51.4,
|
||||
"cpu_backends_pct": 3.4,
|
||||
"mem_backends_mib": 349.7,
|
||||
"cpu_postgres_pct": 7.7,
|
||||
"mem_postgres_mib": 78.7,
|
||||
"col_spans_in_per_s": 48.2,
|
||||
"col_spans_out_per_s": 48.2,
|
||||
"tempo_bytes_per_s": 15248.0,
|
||||
"tempo_spans_per_s": 48.2,
|
||||
"loki_bytes_per_s": 18812.7,
|
||||
"loki_lines_per_s": 62.3,
|
||||
"col_points_in_per_s": 36.6,
|
||||
"prom_samples_per_s": 1253.6,
|
||||
"sdk_lost": 0,
|
||||
"col_refused": 0,
|
||||
"col_send_failed": 0,
|
||||
"sdk_sampled_share": 0.4533439069521544,
|
||||
"red_5xx_vs_injected": [
|
||||
[
|
||||
7.0,
|
||||
45
|
||||
],
|
||||
[
|
||||
45.0,
|
||||
45
|
||||
],
|
||||
[
|
||||
45.0,
|
||||
45
|
||||
]
|
||||
],
|
||||
"spanmetrics_vs_sdk_calls": [
|
||||
[
|
||||
406.0,
|
||||
4492.0
|
||||
],
|
||||
[
|
||||
483.0,
|
||||
4500.0
|
||||
],
|
||||
[
|
||||
431.0,
|
||||
4500.0
|
||||
]
|
||||
],
|
||||
"errors_found_in_tempo": "5/135",
|
||||
"slow_found_in_tempo": "9/135",
|
||||
"natural_slow_found_in_tempo": "0/3"
|
||||
},
|
||||
"tail": {
|
||||
"runs": 3,
|
||||
"ok_rps": 58.8,
|
||||
"p50_ms": 9.1,
|
||||
"p95_ms": 55.7,
|
||||
"p99_ms": 140.1,
|
||||
"p95_ms_runs": [
|
||||
67.0,
|
||||
55.7,
|
||||
37.8
|
||||
],
|
||||
"unexpected_errors": 0,
|
||||
"cpu_api_pct": 42.8,
|
||||
"mem_api_mib": 123.5,
|
||||
"cpu_worker_pct": 30.2,
|
||||
"mem_worker_mib": 97.3,
|
||||
"cpu_collector_pct": 1.4,
|
||||
"mem_collector_mib": 50.2,
|
||||
"cpu_backends_pct": 5.4,
|
||||
"mem_backends_mib": 574.7,
|
||||
"cpu_postgres_pct": 8.6,
|
||||
"mem_postgres_mib": 91.3,
|
||||
"col_spans_in_per_s": 482.8,
|
||||
"col_spans_out_per_s": 79.6,
|
||||
"tempo_bytes_per_s": 27868.7,
|
||||
"tempo_spans_per_s": 79.6,
|
||||
"loki_bytes_per_s": 18806.3,
|
||||
"loki_lines_per_s": 62.2,
|
||||
"col_points_in_per_s": 36.1,
|
||||
"prom_samples_per_s": 1269.0,
|
||||
"sdk_lost": 0,
|
||||
"col_refused": 0,
|
||||
"col_send_failed": 0,
|
||||
"sdk_sampled_share": 1.0,
|
||||
"red_5xx_vs_injected": [
|
||||
[
|
||||
45.0,
|
||||
45
|
||||
],
|
||||
[
|
||||
45.0,
|
||||
45
|
||||
],
|
||||
[
|
||||
45.0,
|
||||
45
|
||||
]
|
||||
],
|
||||
"spanmetrics_vs_sdk_calls": [
|
||||
[
|
||||
539.0,
|
||||
4500.0
|
||||
],
|
||||
[
|
||||
543.0,
|
||||
4500.0
|
||||
],
|
||||
[
|
||||
584.0,
|
||||
4500.0
|
||||
]
|
||||
],
|
||||
"errors_found_in_tempo": "135/135",
|
||||
"slow_found_in_tempo": "135/135",
|
||||
"natural_slow_found_in_tempo": "15/34"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
# 2026-11-21T19:31:36Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
|
||||
$ python3 research/track2_chaos.py --seed 1 --uploads 60 --output evidence/track2/chaos-seed1.json
|
||||
{
|
||||
"seed": 1,
|
||||
"uploads_requested": 60,
|
||||
"counters": {
|
||||
"uploads_202": 60,
|
||||
"upload_errors": 0,
|
||||
"kills": 2,
|
||||
"duplicates_sent": 19,
|
||||
"stale_sent": 0,
|
||||
"reprocess_v2": 2,
|
||||
"v1_after_v2_sent": 4
|
||||
},
|
||||
"planned_faults": {
|
||||
"fault-crash-after-commit": 4,
|
||||
"fault-crash-after-s3": 6,
|
||||
"fault-crash-before-s3": 7,
|
||||
"fault-hang-30": 3,
|
||||
"fault-slow-3": 2,
|
||||
"fault-transient-1": 7,
|
||||
"fault-transient-2": 8,
|
||||
"none": 23
|
||||
},
|
||||
"chaos_seconds": 50.4,
|
||||
"settle_seconds": 46.9,
|
||||
"accepted_202": 60,
|
||||
"accepted_not_terminal": 0,
|
||||
"attachment_status": {
|
||||
"ready": "60"
|
||||
},
|
||||
"job_status": {
|
||||
"1:ready": "60",
|
||||
"2:ready": "2"
|
||||
},
|
||||
"events": {
|
||||
"claimed": "87",
|
||||
"committed": "62",
|
||||
"duplicate_ignored": "26",
|
||||
"enqueued": "62",
|
||||
"lease_lost": "2",
|
||||
"lease_takeover": "29",
|
||||
"published": "87",
|
||||
"published_version_changed": "62",
|
||||
"retry_scheduled": "25",
|
||||
"staging_cleaned": "60"
|
||||
},
|
||||
"enqueue_to_commit_seconds_v1": {
|
||||
"p50": 44.09,
|
||||
"p95": 64.59,
|
||||
"max": 79.28
|
||||
},
|
||||
"invariants": {
|
||||
"ok": true,
|
||||
"violations": {},
|
||||
"violation_counts": {},
|
||||
"stats": {
|
||||
"attachments": 60,
|
||||
"jobs": 62,
|
||||
"variants": 186,
|
||||
"events": 502,
|
||||
"job_status": {
|
||||
"ready": 62
|
||||
},
|
||||
"attachment_status": {
|
||||
"ready": 60
|
||||
},
|
||||
"s3_objects": 990
|
||||
}
|
||||
}
|
||||
}
|
||||
exit=0
|
||||
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"seed": 1,
|
||||
"uploads_requested": 60,
|
||||
"counters": {
|
||||
"uploads_202": 60,
|
||||
"upload_errors": 0,
|
||||
"kills": 2,
|
||||
"duplicates_sent": 19,
|
||||
"stale_sent": 0,
|
||||
"reprocess_v2": 2,
|
||||
"v1_after_v2_sent": 4
|
||||
},
|
||||
"planned_faults": {
|
||||
"fault-crash-after-commit": 4,
|
||||
"fault-crash-after-s3": 6,
|
||||
"fault-crash-before-s3": 7,
|
||||
"fault-hang-30": 3,
|
||||
"fault-slow-3": 2,
|
||||
"fault-transient-1": 7,
|
||||
"fault-transient-2": 8,
|
||||
"none": 23
|
||||
},
|
||||
"chaos_seconds": 50.4,
|
||||
"settle_seconds": 46.9,
|
||||
"accepted_202": 60,
|
||||
"accepted_not_terminal": 0,
|
||||
"attachment_status": {
|
||||
"ready": "60"
|
||||
},
|
||||
"job_status": {
|
||||
"1:ready": "60",
|
||||
"2:ready": "2"
|
||||
},
|
||||
"events": {
|
||||
"claimed": "87",
|
||||
"committed": "62",
|
||||
"duplicate_ignored": "26",
|
||||
"enqueued": "62",
|
||||
"lease_lost": "2",
|
||||
"lease_takeover": "29",
|
||||
"published": "87",
|
||||
"published_version_changed": "62",
|
||||
"retry_scheduled": "25",
|
||||
"staging_cleaned": "60"
|
||||
},
|
||||
"enqueue_to_commit_seconds_v1": {
|
||||
"p50": 44.09,
|
||||
"p95": 64.59,
|
||||
"max": 79.28
|
||||
},
|
||||
"invariants": {
|
||||
"ok": true,
|
||||
"violations": {},
|
||||
"violation_counts": {},
|
||||
"stats": {
|
||||
"attachments": 60,
|
||||
"jobs": 62,
|
||||
"variants": 186,
|
||||
"events": 502,
|
||||
"job_status": {
|
||||
"ready": 62
|
||||
},
|
||||
"attachment_status": {
|
||||
"ready": 60
|
||||
},
|
||||
"s3_objects": 990
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user