Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

ClickHouse 6 min read Case study mediumAdept

How Cloud CIRCUS used ClickHouse to speed up and simplify log analytics

Cloud CIRCUS replaced Amazon Athena with a self-managed ClickHouse instance on a single 4 vCPU / 32 GB EC2 machine to analyze CloudFront access logs from 2,000+ BlueMonkey customer sites. All distributions now share a single MergeTree table partitioned by day and sorted by host_header and date. Logs load from S3 via the s3 table function, run by EventBridge-scheduled ECS jobs that fan out across 20 Fargate tasks, which cut ingestion from hours to under 30 minutes while keeping memory below 80%. A per-site query dropped from about 16 s to 0.043 s, and a cross-site aggregation over 470M rows finishes in under 9 s, at a flat cost of about $300/month versus Athena's unpredictable per-scan billing.

Related posts

  • Clever ingests 200x more logs at the same cost with ClickHouse Cloud

    ClickHouse mediumAdept

    Clever replaced a split Datadog/Athena logging setup with ClickHouse Cloud. It now indexes all ~150 TB/month of logs from 400 services and 200 Lambdas with 60-day retention, a 200x increase in searchable volume, at no extra cost and with 10x compression. The schema extracts hot fields into columns and stores the rest as raw JSON plus an attributes map. It uses token bloom filter indexes at granularity 32 for full-text search, date partitions with a 60-day TTL, and orders by negative Unix timestamp for an 8-10x query speedup. Resilience comes from separate dev and per-region prod services joined via remoteSecure and merge tables, all managed with Terraform and Goose. A custom LogQL-to-SQL layer keeps Grafana familiar for engineers.

  • SIEM made simpler: How Huntress improved performance and slashed costs with ClickHouse

    ClickHouse mediumAdept

    Huntress rebuilt its SIEM on ClickHouse Cloud after finding Elasticsearch too expensive (over $70,000/month) and Postgres too awkward to scale. A comparable ClickHouse workload costs about $5,000/month. Logs from Rails services and other sources pass through Vector, which batches them and inserts over HTTP at up to 200,000 records per second. Their lessons: use ClickHouse partitions for lifecycle management such as TTL rather than per-tenant sharding, choose the sorting key (tenant ID first) carefully up front because it drives performance and is hard to change later, and don't expect data skipping indexes to behave like Postgres secondary indexes.

  • Migrating to ClickHouse Cloud in just three months with no downtime: A 120 terabyte data journey and its benefits

    ClickHouse easyNovice

    Azur Games moved a 120 TB self-managed ClickHouse 21.3 analytics deployment (45 servers, MinIO, old Airflow) to ClickHouse Cloud on AWS in three months with no analytics downtime. The approach was full duplication, verification, then an atomic switchover. ClickHouse Cloud won over self-managed AWS or bare metal mainly because S3-backed storage with zero-copy replication avoids paying for two full copies of the data. Total cost rose only slightly, but queries ran as fast or faster, Airflow shrank to 24–40 autoscaling vCPUs, and roughly 60% of an admin's and 40% of an ETL engineer's time was freed. Lessons include engineers being pulled onto business work, merge issues found late, and two query-behaviour bugs at cutover.

  • How we Built a 19 PiB Logging Platform with ClickHouse and Saved Millions

    ClickHouse mediumAdept

    ClickHouse replaced Datadog for internal logging with LogHouse, a per-region ClickHouse deployment holding over 19 PiB uncompressed (37 trillion rows) for its AWS regions. The data compresses about 17x on S3-backed SharedMergeTree storage with local NVMe caches, and the team claims the system is at least 200x cheaper than Datadog list pricing. A team of 1.5 engineers built it in under three months. Key design choices were OpenTelemetry collectors writing directly to ClickHouse with no Kafka buffer, no cross-region data transfer (queries span regions instead), and a move from plaintext to structured JSON logs. Frequently queried fields such as pod_name are extracted into ordering-key columns, while the rest is stored in a Map(String, String). Tradeoffs include higher in-transit drop rates, caused by uneven agent-to-gateway connections and the lack of autoscaling in the ingest layer.

  • How Buildkite transformed test analytics and cut costs with ClickHouse Cloud

    ClickHouse easyNovice

    Buildkite Test Engine replaced a Kafka/Flink pipeline that pre-aggregated test metrics into Postgres, DynamoDB and Iceberg with on-demand queries against ClickHouse Cloud, letting customers group and filter billions of test executions by arbitrary JSON tags in real time. ClickHouse's JSON type, which creates a column per tag key, and its high ingest rate (25K events/sec sustained, 12B events/month, 70B rows) were the deciding factors over Druid and Pinot. While ingestion quadrupled, net infrastructure spend fell by five figures per month. The savings came from scaling Flink down more than 60%, retiring DynamoDB and halving Aurora capacity, which works out to roughly $8 saved for every $1 spent on ClickHouse.

The quest for software engineering knowledge.

Look:
Layout: