---
title: "Seeing the Big Picture: Shopee’s Journey to Distributed Tracing with ClickHouse"
description: "Shopee runs dozens of ClickHouse clusters on Kubernetes, fronted by managed services (Manager, Gateway, Console, Monitoring), and uses them to store and query distributed traces of the ClickHouse service itself."
url: "https://swe.quest/articles/seeing-the-big-picture-shopee-s-journey-to-distributed-tracing-with-clickhouse-3d442ea100c6757c"
canonical: "https://clickhouse.com/blog/seeing-the-big-picture-shopees-journey-to-distributed-tracing-with-clickhouse"
source: "ClickHouse"
published: "2024-06-17"
difficulty: "easy"
kind: "Case study"
reading_minutes: 7
tags: ["observability","analytics","kubernetes","debugging"]
---

# Seeing the Big Picture: Shopee’s Journey to Distributed Tracing with ClickHouse

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2024-06-17, 7 min read, Case study. Original: [https://clickhouse.com/blog/seeing-the-big-picture-shopees-journey-to-distributed-tracing-with-clickhouse](https://clickhouse.com/blog/seeing-the-big-picture-shopees-journey-to-distributed-tracing-with-clickhouse)

## Summary

Shopee runs dozens of ClickHouse clusters on Kubernetes, fronted by managed services (Manager, Gateway, Console, Monitoring), and uses them to store and query distributed traces of the ClickHouse service itself. Cluster types include SSD and HDD MPP, compute-storage separation via zero-copy replication on Apache Ozone, and hot/cold tiering. Traces are stored in system tables and materialized views, ingesting up to 3M rows/s on 20 cores at about 1:8 compression, with trace-ID lookups over 30B rows taking seconds. The traces exposed slow client uploads that compression fixed, a Kubernetes DNS cache misrouting queries, inefficient distributed joins, blocking DDL on a single node, and INSERT failures caused by materialized views.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Kubernetes](https://swe.quest/tags/kubernetes.md) (Infrastructure)
- [Debugging](https://swe.quest/tags/debugging.md) (Engineering practices)

## Prerequisites

- distributed tracing basics ([easy posts on Observability](https://swe.quest/tags/observability.md?difficulty=easy))
- OLAP databases ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))

## Keywords

ClickHouse, Shopee, Apache Ozone, Elasticsearch, Kubernetes

## Related posts

- [How Mercado Libre rebuilt its observability platform on ClickHouse Cloud with 75x faster trace queries](https://swe.quest/articles/how-mercado-libre-rebuilt-its-observability-platform-on-clickhouse-cloud-with-a3245c05609a41cc.md): ClickHouse · 2026-08-04 · Medium · 8 min read · Observability, Analytics & OLAP, Scaling, Performance engineering
  Mercado Libre moved the storage layer of its OpenTelemetry-based tracing platform, O11y events, to ClickHouse Cloud.
- [Observing in style: How Poizon rebuilt its data platform with ClickHouse Enterprise Edition](https://swe.quest/articles/observing-in-style-how-poizon-rebuilt-its-data-platform-with-clickhouse-fd5f014575f8d9e5.md): ClickHouse · 2025-03-31 · Medium · 9 min read · Analytics & OLAP, Observability, Scaling, Cost optimization, Cloud platforms
  Poizon moved its distributed-tracing observability store, which ingests petabytes of trace data daily, from self-hosted single-replica ClickHouse on cloud disks to ClickHouse Enterprise Edition on Alibaba Cloud.
- [How the D. E. Shaw group powers high-cardinality observability at scale with ClickHouse](https://swe.quest/articles/how-the-d-e-shaw-group-powers-high-cardinality-observability-at-scale-with-b74a9887c2072ab0.md): ClickHouse · 2026-05-15 · Medium · 7 min read · Observability, Analytics & OLAP, Scaling, Capacity planning
  The D. E. Shaw group moved per-task resource metrics from its HPC grid, millions of high-cardinality time series keyed by unique task IDs, from an InfluxDB-protocol time-series platform to ClickHouse.
- [A Quadrillion Rows across three Clouds: scaling LogHouse](https://swe.quest/articles/a-quadrillion-rows-across-three-clouds-scaling-loghouse-ac5a7813ca827fb9.md): ClickHouse · 2026-06-30 · Medium · 20 min read · Observability, Analytics & OLAP, Scaling, Distributed databases, Storage engines
  LogHouse, ClickHouse Cloud's internal logging platform, has grown to 431 PiB uncompressed (27 PiB on disk) and 1.59 quadrillion rows across 36 cells in 33 geoshards on three clouds, ingesting up to 80 GiB/s and 190M rows/s.
- [Didi Migrates from Elasticsearch to ClickHouse for a new Generation Log Storage System](https://swe.quest/articles/didi-migrates-from-elasticsearch-to-clickhouse-for-a-new-generation-log-storage-50fcb56512cab39a.md): ClickHouse · 2024-04-19 · Medium · 11 min read · Analytics & OLAP, Observability, Storage engines, Scaling, Cost optimization
  Didi replaced Elasticsearch with ClickHouse for petabyte-per-day log and trace storage, cutting machine cost by 30% and speeding up queries about 4x on a 400+ node single-replica deployment peaking at 40 GB/s writes and ~200 QPS.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
