Skip to content

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

ClickHouse 12 min read Article easyNovice

Ten years of ClickHouse in open source

ClickHouse marks ten years as open source, with more than 2000 contributors and the stated aim of being a fully open project: public roadmap, CI, code review and a learning resource for C++ and database engineering. It grew out of two custom prototypes for a web analytics system: OLAPServer, a column-per-file store for non-aggregated integer data, and Metrage, a merge tree of CRDT aggregates. Combining columnar storage with background-merged sorted parts and adding SQL produced ClickHouse. It was built from scratch in steps: in-memory columns, aggregate functions, table engines, LZ4 compression, block streams, a recursive descent SQL parser, custom ReadBuffer/WriteBuffer replacing iostreams, MergeTree, and ReplicatedMergeTree on ZooKeeper for multi-DC availability, before being open-sourced in 2016.

Related posts

  • ClickHouse 22.3 LTS Released

    ClickHouse mediumAdept

    ClickHouse 22.3 is a long-term support release (supported through March 2023) focused on maturity and reliability. ClickHouse Keeper, a Jepsen-tested drop-in ZooKeeper replacement, is now production ready. So are AArch64 builds, which already give better price/performance in major clouds, and MergeTree/ReplicatedMergeTree on S3, though zero-copy replication is not yet ready and GCP has known issues. The release also adds reproducible hermetic builds, X.509 authentication, more fuzzing with randomized settings and backward-compatibility tests, and an experimental JSON type that stores inferred dynamic subcolumns in columnar form. Other changes include up to 2x faster MergeTree inserts, up to 3x faster large IN lists, and a hybrid RAM/disk cache for remote filesystems.

  • NYC Meetup Report: Large Scale Financial Market Analytics with ClickHouse (Bloomberg)

    ClickHouse easyNovice

    Bloomberg's Structured Products team uses ClickHouse to power a Terminal application where a few users run interactive filter-and-group queries across roughly 100 million securities. The dataset is about 5 billion rows and 100 columns. Columnar storage keeps rarely used columns available without holding them in memory. The team prioritized ingestion over query speed: they build a new table for each change, such as adding a column, and stage data through buffer tables, which lets them load 4 TB in under an hour while keeping data fresh. Every query puts load on ZooKeeper, a single point of failure the team tests with disaster-recovery drills, and they plan to try Kubernetes, S3-backed storage and ClickHouse Keeper.

  • ClickHouse Cloud boosts performance with SharedMergeTree and Lightweight Updates

    ClickHouse mediumAdept

    SharedMergeTree is a new ClickHouse Cloud table engine that replaces ReplicatedMergeTree (and its zero-copy replication variant) by moving both data and part metadata off the servers into shared object storage and ClickHouse Keeper. Servers become stateless compute nodes: they cache subsets of metadata locally and learn about new parts through Keeper subscriptions rather than a replication log and exclusive locks. New nodes can join almost instantly, and inserts are durable once the part is in object storage and its metadata is in Keeper. This removes the replication-log contention and local-disk dependencies that limited scaling beyond a few replicas. Lightweight updates are introduced alongside and benefit from the shared-metadata design.

  • Singapore Meetup Report: How ClickHouse Powers Ahrefs, the World's Most Active Web Crawler

    ClickHouse easyNovice

    Ahrefs moved its web-crawler and analytics storage from a custom system built on Quantcast File System plus Elasticsearch to ClickHouse in 2019. It now runs hundreds of self-hosted ClickHouse hosts with a geo-replicated main cluster, where replicas are dedicated to read-heavy or write-heavy work and tables hold trillions of rows. The team buffers inserts to cut merge work and uses FETCH/ATTACH to move parts between servers. Ahrefs also upstreamed mark compression, which splits marks into blocks with a custom compression scheme and removes mutexes, cutting mark-cache memory by 3-6x.

  • 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.

The quest for software engineering knowledge.

Look:
Layout: