MetaDB: Putting File-System Structure Back into Distributed Databases
Zebin Ren, Biao Cao, Kang Chen, Zhihui Yin, Qiushi Chen, Jielong Jian, Jiwei Xiong, Xinxing Wang, Yan Xing, Liguo Duan, Ran Zheng, Xianjun Meng, Zhenyu Hou
Abstract
Storage systems in production increasingly rely on distributed databases for metadata management, yet our experience at Baidu shows that treating a general-purpose database as a black box leaves substantial performance and efficiency untapped. File-system metadata exhibits directory-tree locality, differentiated consistency requirements, and clustered deletions that general-purpose databases largely ignore. We thus propose MetaDB, a metadata-aware distributed transactional database that serves as the shared metadata layer for Baidu's large-scale storage systems. MetaDB addresses three key mismatches between general-purpose databases and metadata workloads: Data Model Mismatch, Transaction Model Mismatch, and Storage Implementation Mismatch. To bridge these gaps, MetaDB combines (1) tree-topology-induced sharding and execution, (2) semantic-aware off-critical-path processing, and (3) a lifecycle-aware storage engine with in-memory MVCC and locality-aware compaction. MetaDB achieves 2.2x-4.1x the throughput of our previous general-purpose database and halves the number of metadata machines. Deployed in production at Baidu for over five years, MetaDB unifies metadata management across the company's storage fleet and scales to over 1,000 metadata nodes, tens of trillions of metadata records, and exabyte-scale storage in a single cluster.
Create a lesson
Related papers
QuarkDB: A Hybrid Database System for Quantum Data Management
Shared title terminology · Wenrui Zhang, Yu Wang, Xiao Zhang
Towards Unified File Management for Data Lakehouse Systems
Shared title terminology · Keonwoo Oh, Akshay Mehra, Joshua Kimball et al.
Stop Handcrafting Your Engine! GenDB-V: Towards AI-Generated and Formally Verified Database Systems
Shared title terminology · Jiale Lao, Immanuel Trummer
When the Application Layer Is Disposable: Putting Integrity Constraints Back in the Database
Shared title terminology · Hasara Kalumin, Amol Deshpande
JetStream: Generating Verified Query Accelerators for Existing Database Systems
Shared title terminology · Akhilesh Balasingam, Amadou Ngom, Geoffrey X. Yu et al.
Should Your Database Systems Use Hardware-Assisted Memory Safety Extensions in Production?
Shared title terminology · Ilya Meignan--Masson, Martin Fink, Masanori Misono et al.