TraceGrid Docs

Transport & Storage Architecture

Lock-Free Ingestion Pipeline

Collectors write fixed 64-byte metric envelopes into a pre-allocated single-producer, single-consumer ring buffer. The serializer drains batches on a monotonic timer and compresses payloads with Zstandard level 3 before handing them to the TLS transport layer.

Scheduler Isolation

Background compaction and metric rollups execute under SCHED_IDLE and Nice=19 so data-plane networking workloads experience zero tail-latency interference even during bursty telemetry exports.

Linux High-BDP Tuning Baseline

For trans-continental telemetry relays, TraceGrid recommends enabling tcp_bbr with root fq pacing, tcp_slow_start_after_idle = 0, and 32 MiB socket buffer ceilings to maintain steady throughput across 150–220 ms RTT paths.