Files
mtusi2026lab6/evidence/lab6-20261119-203024-observability-cost/README.md
T

23 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Observability cost — 19.11.2026
Команда:
```powershell
powershell -File scripts/experiment-observability-cost.ps1 `
-BaseUrl http://127.0.0.1:18080 -LoadSeconds 45 -Concurrency 4 `
-WarmupSeconds 10 -StatsIntervalSeconds 5
```
Режимы выполнялись последовательно: telemetry off; full 100%/10s; economy 5%/60s; balanced 25%/30s. Перед каждым режимом API и worker пересоздавались, затем выполнялся одинаковый прогрев. `summary.json` и `comparison.csv` содержат итог; `*-result.json`, `*-load.json` и `*-resource-samples.json` — raw данные. Ingest измерен дельтами Collector/Tempo/Loki/Prometheus counters, CPU/RAM — `docker stats`.
| mode | RPS | p50/p95/p99 ms | trace retention vs full | backend B/request | Collector lost spans |
| --- | ---: | ---: | ---: | ---: | ---: |
| off | 40.547 | 97.186 / 198.133 / 275.316 | 0% | 0 | 0 |
| full | 22.419 | 185.241 / 315.289 / 405.961 | 100% | 6918.72 | 0 |
| economy | 14.622 | 287.141 / 405.639 / 502.152 | 5.52% | 1108.25 | 0 |
| balanced | 16.934 | 209.980 / 391.490 / 409.089 | 23.48% | 2200.52 | 0 |
`balanced-head-sampling-probe.json` — 40 synthetic `GET /health/not-found` responses со status 500: 8 sampled, 32 unsampled. В sampled example Tempo вернул 200; в unsampled — 404. Evidence не содержит credentials, request bodies или message text.
Ограничение: это один closed-loop прогон на локальном Docker Desktop. Он годится для измерения порядка накладных расходов и ingest, но не для статистического ранжирования latency близких sampling-профилей.