arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1610.05121cs.DCcs.DB
收藏

抗偏度和方差的并行流处理

Parallel Stream Processing Against Workload Skewness and Variance

Junhua Fang, Rong Zhang, Tom Z. J. Fu, Zhenjie Zhang, Aoying Zhou, Junhua Zhu

摘要:

基于键的工作负载分区是并行流处理引擎中使用的常见策略,其实现逻辑运算符中的工作线程上的有效键-值元组分布。虽然当键通常遵循静态分布时,对键的随机化散列能够平衡基于键的分区的工作负载,但是当传入数据流上发生工作负载变化时,它可能会生成较差的平衡性能。本文提出了一种新的基于键的工作负载划分框架,并给出了支持有状态操作员动态工作负载分配的实用算法。该框架结合了基于散列和显式基于键的路由策略来进行工作负载分配,该策略为少数键指定目标工作线程,并为其他键分配散列函数。当传入数据流发生短期分布波动时,系统自适应地更新包含所选键的路由表,以便在有状态操作符内以最小的迁移开销重新平衡工作负载。我们制定的再平衡操作作为一个优化问题,具有多个目标,最大限度地减少状态迁移成本,控制路由表的大小,打破工作线程之间的工作负载不平衡。尽管NP-硬度的性质背后的优化配方,我们仔细研究和证明背后的关键(重新)路由和状态迁移的算法,以促进快速响应的工作量变化与可分配的成本在分布式系统中的正常处理。对合成数据和真实世界流应用的实证研究验证了我们的建议的有用性,并证明了我们的方法在文献中的最先进的解决方案的巨大优势。

英文摘要:

Key-based workload partitioning is a common strategy used in parallel stream processing engines, enabling effective key-value tuple distribution over worker threads in a logical operator. While randomized hashing on the keys is capable of balancing the workload for key-based partitioning when the keys generally follow a static distribution, it is likely to generate poor balancing performance when workload variance occurs on the incoming data stream. This paper presents a new key-based workload partitioning framework, with practical algorithms to support dynamic workload assignment for stateful operators. The framework combines hash-based and explicit key-based routing strategies for workload distribution, which specifies the destination worker threads for a handful of keys and assigns the other keys with the hashing function. When short-term distribution fluctuations occur to the incoming data stream, the system adaptively updates the routing table containing the chosen keys, in order to rebalance the workload with minimal migration overhead within the stateful operator. We formulate the rebalance operation as an optimization problem, with multiple objectives on minimizing state migration costs, controlling the size of the routing table and breaking workload imbalance among worker threads. Despite of the NP-hardness nature behind the optimization formulation, we carefully investigate and justify the heuristics behind key (re)routing and state migration, to facilitate fast response to workload variance with ignorable cost to the normal processing in the distributed system. Empirical studies on synthetic data and real-world stream applications validate the usefulness of our proposals and prove the huge advantage of our approaches over state-of-the-art solutions in the literature.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑