arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2206.05035cs.DC
收藏

划分(CPU负载)和征服:半灵活的云资源分配

Divide (CPU Load) and Conquer: Semi-Flexible Cloud Resource Allocation

Bartłomiej Przybylski, Paweł Żuk, Krzysztof Rzadca

摘要:

云资源管理通常通过二维装箱来建模,其中一组项目对应于具有固定CPU和内存需求的任务。然而,在云中运行的应用程序要灵活得多:现代框架允许将单个应用程序(水平)扩展到数十个,甚至数百个实例;然后负载均衡器可以精确地在它们之间划分工作负载。我们分析了一个模型,捕捉这种(半)云资源管理的灵活性。每个云应用程序的特征在于其内存占用和瞬时CPU负载。结合调度器和负载平衡器,资源管理器决定将创建每个应用程序的多少个实例以及如何在它们之间平衡CPU负载。与可分负载模型相反,应用程序的每个实例都需要一定量的内存,与实例的数量无关。因此,资源管理器有效地用额外的内存来换取更均匀的负载平衡。我们研究两个目标:所用机器数量的装箱式最小化;以及所有机器之间的最大负载的完工式最小化。我们证明了NP-困难的一般问题,但也提出了多项式时间精确算法的边界特殊情况。值得注意的是,我们表明,(半)的灵活性可能会导致减少所需的机器数量的一个紧张的因素$2-\varepsilon$。对于一般情况下,我们提出了我们通过模拟从Azure跟踪派生的实例来验证的算法。

英文摘要:

Cloud resource management is often modeled by two-dimensional bin packing with a set of items that correspond to tasks having fixed CPU and memory requirements. However, applications running in clouds are much more flexible: modern frameworks allow to (horizontally) scale a single application to dozens, even hundreds of instances; and then the load balancer can precisely divide the workload between them. We analyze a model that captures this (semi)-flexibility of cloud resource management. Each cloud application is characterized by its memory footprint and its momentary CPU load. Combining the scheduler and the load balancer, the resource manager decides how many instances of each application will be created and how the CPU load will be balanced between them. In contrast to the divisible load model, each instance of the application requires a certain amount of memory, independent of the number of instances. Thus, the resource manager effectively trades additional memory for more evenly balanced load. We study two objectives: the bin-packing-like minimization of the number of machines used; and the makespan-like minimization of the maximum load among all the machines. We prove NP-hardness of the general problems, but also propose polynomial-time exact algorithms for boundary special cases. Notably, we show that (semi)-flexibility may result in reducing the required number of machines by a tight factor of $2-\varepsilon$. For the general case, we propose heuristics that we validate by simulation on instances derived from the Azure trace.

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

↑