MetaFlow: a Scalable Metadata Lookup Service for Distributed File Systems in Data Centers

Peng Sun, Yonggang Wen, Ta Nguyen Binh Duong, Haiyong XieIEEE Transactions on Big Data 2016 · DOI

Abstract

In large-scale distributed file systems, efficient metadata operations are critical since most file operations must interact with metadata servers first. Existing distributed hash table (DHT) based systems often suffer from a lookup bottleneck that can reduce throughput by up to 70% and increase latency by a factor of 8. We present MetaFlow, a scalable lookup service that utilizes software-defined networking (SDN) to offload workload to network components. By leveraging a B-tree-based routing scheme mapped to physical topology, MetaFlow achieves "Zero-Hop" lookups. Evaluations show MetaFlow increases throughput by up to 3.2x and reduces latency by up to 5x compared to traditional DHT-based systems.

Introduction

In large-scale distributed file systems (DFS) like HDFS or Ceph, metadata—the "data about data"—is the gatekeeper for every operation. Before reading a file, a client must locate its metadata. Traditional systems using Distributed Hash Tables (DHTs) consume significant CPU cycles on storage servers to perform these lookups. This "lookup tax" competes with actual I/O tasks, creating a performance bottleneck that worsens as clusters grow. MetaFlow addresses this by moving the lookup logic out of the software layer and into the network hardware.

Methodology: Offloading Lookups to the Network

MetaFlow's core innovation is treating metadata identifiers (MetaDataIDs) as destination addresses. It utilizes two primary techniques to achieve high-speed lookups:

  1. SDN-Enabled Routing: Using the OpenFlow protocol, MetaFlow programs network switches to forward requests directly to the correct storage server based on MetaDataIDs.
  2. B-tree Overlay and CIDR Mapping: MetaFlow constructs a logical B-tree that maps to the physical network topology. The controller translates B-tree partitions into CIDR (Classless Inter-Domain Routing) blocks, allowing switches to use native hardware-based "longest prefix matching" to route requests.

This architecture enables Zero-Hop Lookups, where a client's request reaches its target destination immediately without intermediate software-based lookup queries.

MetaFlow architecture overview showing the decoupling of lookup and storage subsystems via SDN switches.

Performance Evaluation

The system was evaluated using simulations of up to 2,000 servers and a physical testbed with 200 containers. To ensure broad applicability, MetaFlow was integrated with various storage backends, including Redis (in-memory), LevelDB (HDD/SSD), and MySQL (HDD).

Key Results

  • Throughput Gains: MetaFlow demonstrated near-linear scaling. In large-scale simulations, it increased system throughput by up to 3.2x compared to Chord and 2.0x compared to One-Hop DHT systems.
  • Latency and Efficiency: System latency was reduced by up to 5x. Furthermore, while traditional DHT lookups can consume 70-80% of a server's CPU, MetaFlow's lightweight NAT agent overhead is typically less than 15%.
Maximum throughput comparison across different storage backends (MySQL, LevelDB, Redis) as cluster size increases, showing MetaFlow's superior scalability.

Conclusion

By turning the network switching fabric into a high-speed search engine, MetaFlow effectively decouples metadata lookups from I/O processing. This approach eliminates the lookup bottleneck and allows distributed file systems to scale more efficiently. Future work will explore offloading NAT tasks to server NICs and applying this "Zero-Hop" architecture to other distributed systems, such as machine learning parameter servers.

Summary updated

BibTeX
@article{sun2016metaflow,
  author = {Peng Sun and Yonggang Wen and Ta Nguyen Binh Duong and Haiyong Xie},
  title = {{MetaFlow: a Scalable Metadata Lookup Service for Distributed File Systems in Data Centers}},
  journal = {IEEE Transactions on Big Data},
  year = {2016},
  doi = {10.1109/tbdata.2016.2612241},
}
Figure