基于强化学习的 Kubernetes 自定义调度器用于计算密集型 pods
A Kubernetes custom scheduler based on reinforcement learning for compute-intensive pods
AI总结:
本文提出基于强化学习的自定义 Kubernetes 调度器 SDQN 和 SDQN-n,用于优化计算密集型 pods 的调度,提升资源利用率和能源效率。
摘要:
随着云计算和轻量容器的兴起,Docker 已经成为快速服务部署的领先技术,Kubernetes 负责 pod 的编排。然而,对于计算密集型的工作负载——特别是执行容器化机器学习训练的 Web 服务,默认的 Kubernetes 调度器并不总是能实现最优的放置。为此,我们提出了两个基于深度 Q 网络(DQN)框架的自定义强化学习调度器,SDQN 和 SDQN-n。在计算密集型场景中,这些模型在默认的 Kubernetes 调度器以及基于 Transformer 和 LSTM 的替代方案中表现更优,将集群节点的平均 CPU 利用率降低了 10%,当使用 SDQN-n 时,这一降幅超过 20%。此外,我们的结果表明,SDQN-n 通过将 pods 聚合到更少的节点上,进一步放大了资源节省,并有助于推进更绿色、更节能的数据中心。因此,pod 调度必须针对每种场景采用不同的策略以实现更好的性能。由于本文提出的 SDQN 和 SDQN-n 架构中的强化学习组件可以通过调整其参数轻松调优,因此它们可以适应各种未来场景的需求。
英文摘要:
With the rise of cloud computing and lightweight containers, Docker has emerged as a leading technology for rapid service deployment, with Kubernetes responsible for pod orchestration. However, for compute-intensive workloads-particularly web services executing containerized machine-learning training-the default Kubernetes scheduler does not always achieve optimal placement. To address this, we propose two custom, reinforcement-learning-based schedulers, SDQN and SDQN-n, both built on the Deep Q-Network (DQN) framework. In compute-intensive scenarios, these models outperform the default Kubernetes scheduler as well as Transformer-and LSTM-based alternatives, reducing average CPU utilization per cluster node by 10%, and by over 20% when using SDQN-n. Moreover, our results show that SDQN-n approach of consolidating pods onto fewer nodes further amplifies resource savings and helps advance greener, more energy-efficient data centers.Therefore, pod scheduling must employ different strategies tailored to each scenario in order to achieve better performance.Since the reinforcement-learning components of the SDQN and SDQN-n architectures proposed in this paper can be easily tuned by adjusting their parameters, they can accommodate the requirements of various future scenarios.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。