Skip to content

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

ClickHouse 12 min read Case study easyNovice

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

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.

Related posts

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

    ClickHouse mediumAdept

    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.

  • Why m3ter chose ClickHouse Cloud

    ClickHouse mediumAdept

    m3ter, a usage-based billing service, picked ClickHouse Cloud for its usage-data plane after proof-of-concept tests against Snowflake, Firebolt, Redshift and Aurora Postgres. Usage events had to stay unaggregated so bills could be recalculated after retrospective config changes. The tests scored each database on ingest rate, deduplication, query concurrency, export, deletion, scalability and cost. ClickHouse delivered 10x ingest, 17x QPS, 11.4x compression, sub-100ms queries (144ms vs Redshift's 3927ms at similar cost) and ~85% cost savings. Its weak spots were deduplication, which relies on background merges or FINAL and so needs pre-insert dedup, and heavier deletes than OLTP stores.

  • How trip.com migrated from Elasticsearch and built a 50PB logging solution with ClickHouse

    ClickHouse mediumAdept

    Trip.com replaced its Elasticsearch-based centralized logging platform with ClickHouse after hitting stability, ingestion and cost limits at 4PB, and has since grown it toward 50PB. The migration used a ReplicatedMergeTree schema with daily partitions, ZSTD codecs, LowCardinality columns, tag key/value arrays and tokenbf_v1 bloom-filter indexes. Kibana was extended with custom ClickHouse panels, and scripts migrated 95% of dashboards automatically. The result was over 50% storage savings and queries 4–30x faster (P90 under 300ms). Further growth caused ZooKeeper-driven DDL timeouts, which led trip.com to split into multiple clusters and to evaluate ClickHouse Cloud with SharedMergeTree.

  • How HighLevel rebuilt its data platform for speed, scale, and simplicity on ClickHouse Cloud

    ClickHouse mediumAdept

    HighLevel replaced MySQL, Elasticsearch, Firestore and a document database with ClickHouse Cloud for lead activity, workflow logs, notifications and billing dashboards. Results: an 11 TB MySQL table compressed to 1.3 TB, P99 latency fell from over 6 s to under 200 ms, and a 60 TB Elasticsearch log store shrank to 6.27 TB served by three replicas. Notifications were modeled as MergeTree raw events plus ReplacingMergeTree read/delete state, with argMax instead of FINAL, Bloom filters and two-month partitions. Dashboards moved from daily cron reprocessing to SummingMergeTree materialized views. Key lessons are to model data as immutable, iterate on schemas, use bulk inserts, and instrument the client with per-service query observability.

  • Contentsquare Migration from Elasticsearch to ClickHouse

    ClickHouse mediumAdept

    Contentsquare replaced 14 Elasticsearch clusters with ClickHouse over a phased migration. They first built a new product on ClickHouse, then shadowed production queries endpoint by endpoint to compare results, then moved customers one at a time over six months with zero regressions. The result was 11x lower infrastructure cost, 10x better p99 latency, and longer query windows and retention. Key design pieces were a Kafka-fed ingestion service (clickin) that writes shard-aligned data in ClickHouse native format via clickhouse-local, and an AST-based query optimizer that propagates partition/sort-key conditions and distributed_group_by_no_merge, merges subqueries, and gave a 10x speedup on the slowest 5% of queries.

The quest for software engineering knowledge.

Look:
Layout: