不要为溢出的记录哭泣:数据并行应用程序的内存弹性及其在集群调度中的应用
Don't cry over spilled records: Memory elasticity of data-parallel applications and its application to cluster scheduling
摘要:
了解资源受限时数据并行工作负载的性能具有重要的实际意义,但不幸的是只受到有限的关注。本文识别,量化和演示内存弹性,数据并行任务的内在属性。内存弹性允许任务在运行时使用比理想情况少得多的内存,同时只付出适度的性能损失。例如,我们发现,只要给出10%的理想内存,PageRank和NutchIndexing Hadoop Reducer就只会慢1.2倍/1.75倍和1.08倍。我们发现,内存弹性是普遍存在的Hadoop,Spark,Tez和Flink框架。我们还通过为Hadoop构建简单的模型并将其扩展到Tez和Spark,证明了内存弹性在本质上是可预测的。为了证明利用内存弹性的潜在好处,本文进一步探讨了它的应用程序集群调度。在这种情况下,我们观察到,由内存弹性实现的资源与时间的权衡变成了任务排队时间与任务运行时间的权衡。任务在调度时使用较少的内存可以更快地完成,因为它们的等待时间减少了。我们表明,调度程序可以把这个任务级的权衡到改进的作业完成时间和集群范围内的内存利用率。我们已经将内存弹性集成到Apache YARN中。我们在一个50节点的Hadoop集群上展示了高达60%的平均作业完成时间增益。大量的模拟显示了在大量的情况下类似的改进。
英文摘要:
Understanding the performance of data-parallel workloads when resource-constrained has significant practical importance but unfortunately has received only limited attention. This paper identifies, quantifies and demonstrates memory elasticity, an intrinsic property of data-parallel tasks. Memory elasticity allows tasks to run with significantly less memory that they would ideally want while only paying a moderate performance penalty. For example, we find that given as little as 10% of ideal memory, PageRank and NutchIndexing Hadoop reducers become only 1.2x/1.75x and 1.08x slower. We show that memory elasticity is prevalent in the Hadoop, Spark, Tez and Flink frameworks. We also show that memory elasticity is predictable in nature by building simple models for Hadoop and extending them to Tez and Spark. To demonstrate the potential benefits of leveraging memory elasticity, this paper further explores its application to cluster scheduling. In this setting, we observe that the resource vs. time trade-off enabled by memory elasticity becomes a task queuing time vs task runtime trade-off. Tasks may complete faster when scheduled with less memory because their waiting time is reduced. We show that a scheduler can turn this task-level trade-off into improved job completion time and cluster-wide memory utilization. We have integrated memory elasticity into Apache YARN. We show gains of up to 60% in average job completion time on a 50-node Hadoop cluster. Extensive simulations show similar improvements over a large number of scenarios.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。