Load-Balancing Parallel Relational Algebra
- 15 June 2020
- book chapter
- Published by Springer Nature
- Vol. 12151, 288-308
Abstract
Relational algebra (RA) comprises a basis of important operations, sufficient to power state-of-the-art reasoning engines for Datalog and related logic-programming languages. Parallel RA implementations can thus play a significant role in extracting parallelism inherent in a wide variety of analytic problems. In general, bottom-up logical inference can be implemented as fixed-point iteration over RA kernels; relations dynamically accumulate new tuples of information according to a set of rules until no new tuples can be discovered from previously inferred tuples and relevant rules (RA kernels). While this strategy has been quite successful in single-node contexts, it poses unique challenges when distributed over many-node, networked clusters—especially regarding how the work-load is balanced across available compute resources. In this paper, we identify two fundamental kinds of load imbalance and present a strategy to address each. We investigate both spatial load imbalance—imbalance across each relation (across compute nodes)—and temporal load imbalance–imbalance in tuples produced across fixed-point iterations. For spatial balancing, we implement refinement and consolidation procedures. For temporal balancing, we implement a technique that permits the residual workload from a busy iteration to roll over to a new iteration. In sum, these techniques permit fully dynamic load-balancing of relational algebra that is robust to changes across time.Keywords
This publication has 18 references indexed in Scilit:
- Distributed Relational Algebra at Scale2019
- Brie2019
- A specialized B-tree for concurrent datalog evaluation2019
- Distributed join algorithms on thousands of coresProceedings of the VLDB Endowment, 2017
- Soufflé: On Synthesis of Program Analyzers2016
- Multi-core, main-memory joinsProceedings of the VLDB Endowment, 2013
- Sort vs. Hash revisitedProceedings of the VLDB Endowment, 2009
- Scaling alltoall collective on multi-core systems2008 IEEE International Symposium on Parallel and Distributed Processing, 2008
- Realistic, Mathematically Tractable Graph Generation and Evolution, Using Kronecker Multiplication2005
- An overview of parallel strategies for transitive closure on algebraic machinesLecture Notes in Computer Science, 1991