Datadog's Husky event store has evolved its query engine and underlying data storage layer to handle trillions of events per day. This includes optimizing compaction strategies for efficient merging of small fragments into larger ones, balancing query performance, parallelism, and storage layout. The system uses a columnar storage format similar to Parquet, with custom optimizations for observability data, including a skip list for column offsets to quickly find specific columns. Compaction is performed lazily and efficiently, aiming for a fixed amount of memory and saturating CPU while minimizing storage API requests. The goal is to reduce the number of fragments fetched from object storage and the number of events scanned per query.
All Datadog trails