Pangea: Monolithic Distributed Storage for Data Analytics

Jia Zou, Arun Iyengar, Chris Jermaine

TL;DR

Pangea is a monolithic distributed storage system that eliminates the performance "tax" of heavily layered data analytics stacks (like HDFS + Alluxio + Spark). By unifying persistent storage, in-memory caching, and execution data into a single layer with a "locality set" abstraction, it achieves up to 20x speedups over traditional layered systems.

What Problem Does This Paper Address?

Modern big data stacks are built like a wedding cake: a distributed file system (HDFS) at the bottom, an in-memory cache (Alluxio) in the middle, and a computation framework (Spark) on top, all running inside a Java Virtual Machine (JVM). While this modularity is flexible, it creates three major "perils":

  1. Interfacing Overhead: Data is constantly serialized, de-serialized, and copied as it moves between layers, wasting CPU and RAM.
  2. Redundant Data Placement: The same data often exists in multiple forms across layers, consuming up to 30% more memory than necessary.
  3. Uncoordinated Resource Management: Because no single layer has a global view, the system makes poor decisions about which data to "page out" to disk when memory gets tight.

Pangea tackles these by collapsing these layers into one monolithic C++ system.

Methods

The core of Pangea is the Locality Set Abstraction. Borrowing and modernizing an idea from the 1980s (DBMIN), Pangea treats every dataset—whether it's long-lived user data or transient "shuffle" data—as a locality set with specific tags.

Locality Set Attributes

Key technical components include:

  • Unified Buffer Pool: A large chunk of shared memory (allocated via mmap) that both the storage and computation processes can access directly, eliminating memory copies.
  • Data-Aware Paging: Instead of a generic "Least Recently Used" (LRU) policy, Pangea uses locality set attributes (like access pattern and durability) to calculate the "expected cost" of evicting a page. For example, it knows that evicting "write-back" data is more expensive than "write-through" data because of the extra I/O required.
  • Heterogeneous Replication: Unlike HDFS, which just makes identical copies for safety, Pangea can store replicas in different physical formats (e.g., partitioned by different keys). This allows it to provide fault tolerance while simultaneously speeding up joins by picking the best-formatted replica at runtime.

Datasets

The authors evaluated Pangea using:

  • k-means Clustering: Tested with 1 to 3 billion 10-dimension points (up to 360GB of data).
  • TPC-H Benchmark: A standard relational query benchmark at Scale-100 (~100GB).
  • Micro-benchmarks: Custom tests for sequential read/write, shuffle operations, and hash aggregations.

Key Insights and Ideas

  • The "No Layering" Mantra: By using direct I/O and shared memory, Pangea bypasses the OS buffer cache and JVM overhead entirely.
  • Bridging the Knowledge Gap: In layered systems, the storage layer doesn't know what the application is doing. In Pangea, the storage system understands high-level operations like "shuffling" or "hash aggregation," allowing it to optimize data placement and eviction (see Figure 1).
  • Double-Duty Replicas: Replication shouldn't just be for backup. By allowing replicas to have different partition schemes, Pangea turns a storage overhead into a computational advantage.
A k-means Example

Key Results

  • k-means: Pangea achieved a 6x speedup over Spark. Much of this came from faster initialization; because Pangea manages the data natively, it doesn't need to spend time loading and de-serializing data from an external file system.
  • TPC-H: Pangea showed up to a 20x speedup (specifically in Q17). This was largely due to its ability to use pre-partitioned replicas to avoid expensive network shuffles during joins.
  • Paging Efficiency: When data exceeded available RAM, Pangea’s data-aware paging was 1.8x to 5x faster than standard LRU or MRU policies.
  • Service Performance: Pangea’s internal hash aggregation service outperformed Redis by 30x and standard C++ STL maps by 50x for massive datasets.

Limitations and Future Work

  • Developer Effort: The authors admit that building applications directly on a monolithic base like Pangea requires more effort than using high-level frameworks like Spark. They suggest that an operator library (like the one used in their related project, PlinyCompute) is necessary to shield end-users from this complexity.
  • Collision Management: While heterogeneous replication is powerful, it risks "colliding objects" where all replicas of a specific object end up on the same failed node. Pangea includes a recovery mechanism for this, but it requires careful monitoring as cluster sizes scale.
  • Security: The current implementation relies on a light-weight manager and public-key infrastructure, which may need further hardening for multi-tenant cloud environments.

Summary updated

BibTeX
@article{zou2019pangea,
  author = {Jia Zou and Arun Iyengar and Chris Jermaine},
  title = {{Pangea: Monolithic Distributed Storage for Data Analytics}},
  journal = {Proc. VLDB Endow.},
  year = {2019},
  doi = {10.14778/3311880.3311885},
}
Figure