forked from mtusi2026/mtusi2026lab6
644 B
644 B
Observability cost experiment
Run the same synthetic load for each mode and record docker stats, request latency percentiles and backend ingest volume:
MODE=off python tests/load.py --duration 60 --concurrency 8
MODE=on OTEL_SAMPLING_RATIO=1.0 python tests/load.py --duration 60 --concurrency 8
MODE=0.1 OTEL_SAMPLING_RATIO=0.1 python tests/load.py --duration 60 --concurrency 8
The expected decision is to retain full metrics and error signals, while using 0.1 trace sampling for normal traffic and temporarily raising it to 1.0 during an incident. Measurements must be repeated on the same host and resource limits.