Dynamic Configuration of Partitioning in Spark Applications

作者:Gounaris Anastasios*; Kougka Georgia; Tous Ruben; Montes Carlos Tripiana; Torres Jordi
来源:IEEE Transactions on Parallel and Distributed Systems, 2017, 28(7): 1891-1904.
DOI:10.1109/TPDS.2017.2647939

摘要

Spark has become one of the main options for large-scale analytics running on top of shared-nothing clusters. This work aims to make a deep dive into the parallelism configuration and shed light on the behavior of parallel spark jobs. It is motivated by the fact that running a Spark application on all the available processors does not necessarily imply lower running time, while may entail waste of resources. We first propose analytical models for expressing the running time as a function of the number of machines employed. We then take another step, namely to present novel algorithms for configuring dynamic partitioning with a view to minimizing resource consumption without sacrificing running time beyond a user-defined limit. The problem we target is NP-hard. To tackle it, we propose a greedy approach after introducing the notions of dependency graphs and of the benefit from modifying the degree of partitioning at a stage; complementarily, we investigate a randomized approach. Our polynomial solutions are capable of judiciously use the resources that are potentially at user's disposal and strike interesting trade-offs between running time and resource consumption. Their efficiency is thoroughly investigated through experiments based on real execution data.

  • 出版日期2017-7-1