1 research outputs found
Chasing Similarity: Distribution-aware Aggregation Scheduling (Extended Version)
Parallel aggregation is a ubiquitous operation in data analytics that is
expressed as GROUP BY in SQL, reduce in Hadoop, or segment in TensorFlow.
Parallel aggregation starts with an optional local pre-aggregation step and
then repartitions the intermediate result across the network. While local
pre-aggregation works well for low-cardinality aggregations, the network
communication cost remains significant for high-cardinality aggregations even
after local pre-aggregation. The problem is that the repartition-based
algorithm for high-cardinality aggregation does not fully utilize the network.
In this work, we first formulate a mathematical model that captures the
performance of parallel aggregation. We prove that finding optimal aggregation
plans from a known data distribution is NP-hard, assuming the Small Set
Expansion conjecture. We propose GRASP, a GReedy Aggregation Scheduling
Protocol that decomposes parallel aggregation into phases. GRASP is
distribution-aware as it aggregates the most similar partitions in each phase
to reduce the transmitted data size in subsequent phases. In addition, GRASP
takes the available network bandwidth into account when scheduling aggregations
in each phase to maximize network utilization. The experimental evaluation on
real data shows that GRASP outperforms repartition-based aggregation by 3.5x
and LOOM by 2.0x