Networking is a black box, we used eBPF to open it
Railway's Network Flows feature uses eBPF hooks on container packet ingress and egress to show real-time traffic between services as pipes on the project canvas, with click-through access to flow logs and kernel drop codes. Raw socket buffers are enriched with ports, addresses, cgroup-to-service and peer-service lookups, batched at 10,000 flows, and written to ClickHouse at roughly a million rows per second. The first design had about a thousand hosts writing directly to ClickHouse, and ReplacingMergeTree merge overhead degraded the cluster. An intermediate ingestion service that cut the writers to three and made inserts far larger fixed it. The feature was motivated by support tickets blaming the platform network for what were almost always application misconfigurations.
Related posts
- How BENOCS uses ClickHouse to monitor network traffic for the world’s biggest telcos
ClickHouse easyNovice
BENOCS builds its Flow Analytics network-traffic monitoring for large telcos on ClickHouse, processing dozens of terabytes of asynchronous feeds per day through a self-healing push pipeline that computes results as each feed's data arrives and backfills when late data shows up. Time is the primary key of the MergeTree tables, so DISTINCT queries on it can check data availability across terabytes in seconds, and processing a time range costs the same regardless of table size. ASOF joins handle fuzzy matching between feeds with very different time resolutions by joining on the nearest timestamp instead of an exact one.
- How LY Corporation uses ClickHouse to observe one of the largest Kafka deployments on earth
ClickHouse mediumAdept
LY Corporation (LINE + Yahoo! Japan) runs a Kafka platform of 200+ brokers serving 25,000+ clients and handling 31M messages/sec at peak, over 1 trillion messages and 2.6 PB of I/O per day. Its observability stack spans end-to-end latency probes, Async Profiler, eBPF and kernel delay accounting, and disk SMART data. The key layer is a Kafka API request log pipeline: requests are intercepted, serialized with Protocol Buffers, sent through an internal Kafka cluster and batch-ingested into ClickHouse at 7M rows/sec, about 4.1 trillion rows on 24 nodes. SQL queries over these logs confirmed a race condition between Produce and ListOffsets that caused non-monotonic offsets and halted replication, which led to an upstream patch.
- Our New Observability Platform for 100B Logs
Railway mediumAdeptRailway rebuilt its logging backend on ClickHouse to power Log Explorer, handling about 1 billion new logs per day, 100 billion stored logs and 60 queries/sec at roughly 50ms average latency on a 2-shard/2-replica cluster. The previous system (local filesystem plus GCS, filtering in a single Go process) couldn't do cross-service search, fast far-back queries, horizontal scaling or aggregates. ClickHouse compressed 28TB of tagged logs to 5TB, and the team rolled it out within a week by dual-writing via Vector and translating their filter DSL to SQL. The main production surprise was asynchronous replication omitting recent logs, which an HAProxy primary-routing attempt didn't fix but the insert_distributed_sync setting did.
- Why Flock Safety turned to ClickHouse for real-time vehicle traffic analytics
ClickHouse mediumAdept
Flock Safety replaced a once-daily Redshift, DBT, Prefect and QuickSight SPICE pipeline with ClickHouse Cloud. The old setup had refreshes of up to four hours during which data was unavailable, and SPICE capped datasets at 1TB or 1 billion rows. Before choosing ClickHouse, the team found direct Redshift queries hit concurrency limits, and both Aurora PostgreSQL and S3 with Trino exceeded QuickSight's query timeouts. The new design ingests ML predictions via SNS, Firehose, S3 and ClickPipes (peaking above 20 MB/s, over 1 billion predictions a day) and uses materialized views with uniqState into AggregatingMergeTree tables, so transformation happens on insert and DBT and Prefect are no longer needed. QuickSight now queries ClickHouse directly, with queries finishing in under five seconds, no downtime and longer retention.
- OONI Powers its Measurement of Internet Censorship with ClickHouse
ClickHouse mediumAdept
OONI, a non-profit that measures internet censorship through volunteer-run probes, replaced flat files, MongoDB and PostgreSQL with ClickHouse to store measurement metadata in a single 1.4-billion-row ReplacingMergeTree table, while raw JSON stays on S3. Aggregation queries behind the Measurement Aggregation Toolkit, which use countIf grouped by user-chosen dimensions, now run directly on the dataset. This removed the pre-computed counter tables PostgreSQL required. Heavy queries dropped from up to 20 minutes to hundreds of milliseconds, a sample query scanned 59M rows in 600 ms, and on-disk size halved.