Files
mtusi2026lab6/evidence/track1-observability-cost.json
T

209 lines
6.5 KiB
JSON

{
"experiment": "telemetry overhead under fixed-rate synthetic POST load",
"hypothesis": "Trace sampling lowers API/worker CPU and Tempo ingest; metrics and logs remain enabled.",
"method": {
"duration_seconds": 15,
"concurrency": 2,
"target_rps": 20,
"warmup_seconds": 3,
"telemetry_flush_wait_seconds": 15,
"hardware": {
"platform": "macOS-27.2.1-arm64-arm-64bit-Mach-O",
"processor": "arm",
"logical_cpus": 10
},
"sampled_span_estimate": "The first 20 matching message traces per mode are opened in Tempo; the resulting mean spans per trace is extrapolated to all sampled messages.",
"storage_method": "Filesystem byte deltas in Prometheus, Loki and Tempo named volumes; this includes indexes/WAL and is not network wire size."
},
"limitations": [
"The generator paces arrivals but has finite concurrency and can catch up after delays; it is not a production open-loop load model.",
"Database history grows between modes; all modes use identical duration and concurrency.",
"Sampling is head-based and random: errors and rare slow requests can be omitted along with successful requests.",
"Span loss is an estimate based on sampled message traces, not Collector exporter delivery counters.",
"CPU and memory are sampled Docker container totals for API, worker, publisher and Collector; the monitor adds equal overhead to all modes."
],
"results": [
{
"configuration": "off",
"sdk_disabled": true,
"trace_sampling_ratio": 1.0,
"load": {
"workload": "paced synthetic POST messages; no automatic retries",
"requested_duration_seconds": 15,
"target_rps": 20,
"elapsed_seconds": 17.135,
"concurrency": 2,
"successful_requests": 300,
"failed_requests": 0,
"error_ratio": 0.0,
"successful_rps": 17.508,
"successful_latency_ms": {
"p50": 8.449,
"p95": 15.118,
"p99": 21.618
},
"docker_resource_samples": 4,
"docker_resources": {
"mean_cpu_percent_sum": 21.28,
"peak_cpu_percent_sum": 38.75,
"peak_memory_bytes_sum": 567678072,
"services": [
"api",
"worker",
"publisher",
"otel-collector"
]
}
},
"window_unix_seconds": {
"start": 1794559044,
"end": 1794559061
},
"sampled_message_trace_count": 0,
"estimated_spans_per_message_trace": 0.0,
"persistent_storage_bytes_delta": {
"prometheus": 1492625,
"loki": 0,
"tempo": 0
},
"estimated_spans_not_recorded": 2400.0
},
{
"configuration": "sample-100-percent",
"sdk_disabled": false,
"trace_sampling_ratio": 1.0,
"load": {
"workload": "paced synthetic POST messages; no automatic retries",
"requested_duration_seconds": 15,
"target_rps": 20,
"elapsed_seconds": 18.348,
"concurrency": 2,
"successful_requests": 300,
"failed_requests": 0,
"error_ratio": 0.0,
"successful_rps": 16.35,
"successful_latency_ms": {
"p50": 8.284,
"p95": 15.915,
"p99": 18.98
},
"docker_resource_samples": 4,
"docker_resources": {
"mean_cpu_percent_sum": 31.85,
"peak_cpu_percent_sum": 41.59,
"peak_memory_bytes_sum": 550523370,
"services": [
"api",
"worker",
"publisher",
"otel-collector"
]
}
},
"window_unix_seconds": {
"start": 1794559100,
"end": 1794559118
},
"sampled_message_trace_count": 300,
"estimated_spans_per_message_trace": 8.0,
"persistent_storage_bytes_delta": {
"prometheus": 36951,
"loki": 204007,
"tempo": 422028
},
"estimated_spans_not_recorded": 0.0
},
{
"configuration": "sample-25-percent",
"sdk_disabled": false,
"trace_sampling_ratio": 0.25,
"load": {
"workload": "paced synthetic POST messages; no automatic retries",
"requested_duration_seconds": 15,
"target_rps": 20,
"elapsed_seconds": 17.76,
"concurrency": 2,
"successful_requests": 300,
"failed_requests": 0,
"error_ratio": 0.0,
"successful_rps": 16.891,
"successful_latency_ms": {
"p50": 7.793,
"p95": 14.838,
"p99": 16.862
},
"docker_resource_samples": 4,
"docker_resources": {
"mean_cpu_percent_sum": 15.26,
"peak_cpu_percent_sum": 36.45,
"peak_memory_bytes_sum": 550554827,
"services": [
"api",
"worker",
"publisher",
"otel-collector"
]
}
},
"window_unix_seconds": {
"start": 1794559157,
"end": 1794559175
},
"sampled_message_trace_count": 88,
"estimated_spans_per_message_trace": 8.0,
"persistent_storage_bytes_delta": {
"prometheus": 40456,
"loki": 269949,
"tempo": 1026146
},
"estimated_spans_not_recorded": 1696.0
},
{
"configuration": "sample-10-percent",
"sdk_disabled": false,
"trace_sampling_ratio": 0.1,
"load": {
"workload": "paced synthetic POST messages; no automatic retries",
"requested_duration_seconds": 15,
"target_rps": 20,
"elapsed_seconds": 18.355,
"concurrency": 2,
"successful_requests": 300,
"failed_requests": 0,
"error_ratio": 0.0,
"successful_rps": 16.344,
"successful_latency_ms": {
"p50": 7.625,
"p95": 14.84,
"p99": 18.012
},
"docker_resource_samples": 4,
"docker_resources": {
"mean_cpu_percent_sum": 22.53,
"peak_cpu_percent_sum": 39.51,
"peak_memory_bytes_sum": 550198311,
"services": [
"api",
"worker",
"publisher",
"otel-collector"
]
}
},
"window_unix_seconds": {
"start": 1794559215,
"end": 1794559233
},
"sampled_message_trace_count": 38,
"estimated_spans_per_message_trace": 8.0,
"persistent_storage_bytes_delta": {
"prometheus": 42617,
"loki": 240135,
"tempo": 1924562
},
"estimated_spans_not_recorded": 2096.0
}
],
"balanced_configuration": "sample-25-percent"
}