PolarStore: High-Performance Data Compression for Large-Scale Cloud-Native Databases
summary
PolarStore implements dual-layer compression: a software layer compresses 16 KB pages with per-page adaptive selection between LZ4 and ZSTD (default LZ4 at ~20% CPU, try both when page density >30% using a saved-bytes-per-microsecond threshold), then a CSD hardware layer compresses 4 KB blocks with byte-level indexing via a variable-length FTL. Redo logs bypass compression; a per-page log background merge cuts worst-case page reads from 5+ IOs to 2. Deployed across ~20,000 SSDs, Poly SSD2 + dual-layer reaches 3.55× compression and ~60% storage cost reduction.
AI-written summary · about
chapters (14)
- 0:00Introduction to PolarStore
- 0:19Cloud-native database background
- 2:07Compression trade-offs explained
- 4:20Original PolarDB approaches
- 5:20Dual layer compression design
- 6:02Key IO metrics and optimizations
- 6:25Bypassing redo log compression
- 7:09Adaptive algorithm selection
- 8:57Per-page log mechanism
- 10:23Hardware redesign lessons
- 12:11Cluster-level compression challenges
- 13:33Compression-aware scheduling
- 14:15Production results overview
- 15:41Key contributions summary
related talks
21mPolarDB: Alibaba Cloud-Native Relational Database Service
42mPOLARDB architecture
19mPolyStore: Exploiting Combined Capabilities of Heterogeneous Storage
34mIn core compression-How to shrink your database
32mOn compression of everything in Postgres
14mRe-think Data Management Software Design Upon the Arrival of Storage Hardware with
28mHow Can Databases Capitalize on Computational Storage?
46mColumnar Store for PostgreSQL
