K8S Power Irrigation: 面向性能感知的Kubernetes云原生微服务能效的深度强化学习
K8S Power Irrigation: Deep Reinforcement Learning for Performance-Aware Power Efficiency of Kubernetes Cloud-Native Microservices
AI总结:
提出一种分层强化学习控制器K8SPI,通过联合优化CPU核心和末级缓存频率,在保证性能违规率低于2-3%的同时降低节点功耗23-30%。
摘要:
现代云平台正面临由AI应用快速普及驱动的电力需求急剧增长,使得在净零承诺和可持续性目标下优化功耗变得紧迫。然而,对于延迟敏感的微服务,在生产环境中降低功耗仍然具有挑战性,因为性能违规直接影响用户体验和运营风险。此类服务表现出异构的工作负载特征和动态负载模式。在多租户环境中,共享非核心资源(包括末级缓存和内存带宽)上的争用会降低性能,尤其是对于内存密集型工作负载。作为保障,提供商通常以性能模式运行服务器,将核心和非核心频率固定在高水平。现有的功耗调控器大多忽略应用级性能需求和非核心干扰,导致系统性的功耗过度配置。为解决此问题,我们引入了K8SPI,一种分层强化学习控制器,联合优化云原生部署的CPU核心和非核心频率。K8SPI采用两阶段架构:粗粒度代理快速缓解性能违规,而细粒度代理在满足需求后最小化功耗。利用来自硬件、Kubernetes和应用层的遥测数据,K8SPI适应工作负载异构性和跨微服务干扰。我们在Kubernetes测试平台上跨多个场景评估了K8SPI。结果表明,与Linux性能调控器相比,K8SPI将节点级功耗降低23-30%,同时即使在严重的非核心争用和动态负载波动下,也将性能违规率保持在2-3%以下。
英文摘要:
Modern cloud platforms are facing a sharp increase in power demand driven by the rapid adoption of AI-powered applications, making power optimization urgent under net-zero commitments and sustainability goals. Yet, reducing power in production remains challenging for latency-sensitive microservices, where performance violations directly affect user experience and operational risk. Such services exhibit heterogeneous workload characteristics and dynamic load patterns. In multi-tenant environments, contention on shared uncore resources, including last-level cache and memory bandwidth, can degrade performance, especially for memory-intensive workloads. As a safeguard, providers often run servers in performance mode, fixing core and uncore frequencies at high levels. Existing power governors largely ignore application-level performance requirements and uncore interference, leading to systematic power over-provisioning. To address this, we introduce K8SPI, a hierarchical reinforcement learning controller that jointly optimizes CPU core and uncore frequencies for cloud-native deployments. K8SPI uses a two-stage architecture: a coarse-grained agent rapidly mitigates performance violations, while a fine-grained agent minimizes power once requirements are satisfied. Using telemetry from hardware, Kubernetes, and application layers, K8SPI adapts to workload heterogeneity and cross-microservice interference. We evaluate K8SPI on a Kubernetes testbed across multiple scenarios. Results show that K8SPI reduces node-level power by 23--30\% compared with the Linux performance governor while keeping performance requirement violations below 2--3\%, even under severe uncore contention and dynamic load fluctuations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。