[论文解读] ADARES: Adaptive Resource Management for Virtual Machines
AdaRes 是一种自适应资源管理系统,通过上下文多臂赌博机(contextual bandits)和迁移学习,动态调整虚拟机(VM)的虚拟CPU(vCPUs)和内存,以优化资源利用率。它将CPU和内存的资源配置分别减少了高达35%和60%,同时在真实企业集群中保持了可预测的VM性能。
Virtual execution environments allow for consolidation of multiple applications onto the same physical server, thereby enabling more efficient use of server resources. However, users often statically configure the resources of virtual machines through guesswork, resulting in either insufficient resource allocations that hinder VM performance, or excessive allocations that waste precious data center resources. In this paper, we first characterize real-world resource allocation and utilization of VMs through the analysis of an extensive dataset, consisting of more than 250k VMs from over 3.6k private enterprise clusters. Our large-scale analysis confirms that VMs are often misconfigured, either overprovisioned or underprovisioned, and that this problem is pervasive across a wide range of private clusters. We then propose ADARES, an adaptive system that dynamically adjusts VM resources using machine learning techniques. In particular, ADARES leverages the contextual bandits framework to effectively manage the adaptations. Our system exploits easily collectible data, at the cluster, node, and VM levels, to make more sensible allocation decisions, and uses transfer learning to safely explore the configurations space and speed up training. Our empirical evaluation shows that ADARES can significantly improve system utilization without sacrificing performance. For instance, when compared to threshold and prediction-based baselines, it achieves more predictable VM-level performance and also reduces the amount of virtual CPUs and memory provisioned by up to 35% and 60% respectively for synthetic workloads on real clusters.
研究动机与目标
- 对数千个企业集群中的真实VM资源分配与利用率进行表征。
- 识别由于静态、基于猜测的配置而普遍存在的过度配置和配置不足问题。
- 设计并实现AdaRes,一种利用机器学习动态调整VM资源的自适应系统。
- 通过基于模拟的预训练和迁移学习,实现配置空间的安全且高效的探索。
- 在保持可预测的VM性能的同时,提升整体系统的资源效率。
提出的方法
- AdaRes 采用上下文多臂赌博机框架,对VM的vCPU和内存分配做出实时、数据驱动的决策。
- 它利用多层次系统遥测数据——包括集群、节点和VM级别的指标——来支持资源自适应决策。
- 系统通过在基于基准数据构建的集群模拟器上预训练模型,实现迁移学习,从而在生产环境中实现更快、更安全的部署。
- 模拟器支持模型的离线预热,减少生产环境中的高风险在线探索,并加速真实集群中的收敛速度。
- 它采用上下文多臂赌博机的建模方式,利用历史和实时工作负载特征,在探索与利用之间实现平衡。
- 该方法与现有集群调度器兼容,无需修改VM工作负载或底层基础设施。
实验结果
研究问题
- RQ1在真实企业集群中,VM的过度配置或配置不足程度如何?
- RQ2随时间变化的工作负载波动在多大程度上影响静态资源分配的有效性?
- RQ3基于上下文多臂赌博机的系统能否在生产环境中安全且高效地自适应调整VM资源分配?
- RQ4从模拟环境迁移学习如何提升在线资源自适应的性能与安全性?
- RQ5与基于阈值和预测的基线方法相比,可实现多大程度的资源节省和性能稳定性?
主要发现
- 与基线方法相比,AdaRes 在合成工作负载上将虚拟CPU资源配置减少了高达35%,内存资源配置减少了高达60%。
- 即使在动态工作负载下,该系统在VM级别的性能也比基于阈值和预测的基线方法更具可预测性。
- 从集群模拟器进行的迁移学习可使训练速度加快最多2倍,并提升生产集群中探索的安全性。
- 大规模分析揭示,在超过3.6k个企业集群中的25万个以上VM中,普遍存在过度配置和配置不足现象。
- 资源配置错误普遍存在且持续存在,利用率随时间和VM之间存在显著差异。
- 系统利用多层次遥测数据(集群、节点、VM)实现了更明智且更有效的资源分配决策。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。