缓解Kubernetes自动扩展中的时间盲区:一种注意力双LSTM框架
Learning to Remember: Attentive Reinforcement Learning for Edge Serverless Autoscaling
AI总结:
本文提出一种结合工作负载预测与控制的稳定性感知自动扩展框架,通过注意力增强的双堆叠LSTM架构与PPO智能体,有效降低边缘环境中的时间盲区,减少延迟和副本波动。
摘要:
在边缘计算新兴领域中,服务器less工作负载的随机性和突发性对自主资源编排构成了重大挑战。传统反应式控制器如Kubernetes水平容器自动扩展器(HPA)由于固有的反应延迟,在流量激增时导致服务级别目标(SLO)违规,在降级时导致资源波动。尽管深度强化学习(DRL)提供了主动管理的途径,但标准智能体在非马尔可夫边缘环境中无法有效捕捉长期依赖,即时间盲区。为弥补这一差距,我们提出了一种新的稳定性感知自动扩展框架,通过注意力增强的双堆叠LSTM架构整合到近端策略优化(PPO)智能体中,统一工作负载预测与控制。与浅层递归模型不同,我们的方法采用深度时间注意力机制,选择性加权历史状态,有效过滤高频噪声,同时保留需求变化的关键前驱。我们在异构集群上使用真实世界Azure Functions跟踪验证了该框架。与行业标准HPA、无状态双DQN和单层LSTM消融相比,我们的方法在减少90百分位延迟约29%的同时,同时减少了39%的副本波动,相对于单层LSTM基线。这些结果证实,通过深度注意力记忆缓解时间盲区是生产边缘环境中可靠、低抖动自动扩展的前提条件。
英文摘要:
In edge computing, the stochastic and bursty nature of serverless workloads challenges autonomous resource orchestration. Traditional reactive controllers, such as the Kubernetes Horizontal Pod Autoscaler (HPA), suffer from reaction latency, leading to Service Level Objective (SLO) violations during traffic spikes and resource flapping during ramp-downs. While Deep Reinforcement Learning (DRL) offers a pathway toward proactive management, standard agents suffer from \textit{temporal blindness}, an inability to exploit the recent temporal context in non-Markovian edge environments. To bridge this gap, we propose a stability-aware autoscaling framework unifying short-horizon temporal context and control via an Attention-Enhanced Double-Stacked LSTM architecture integrated within a Proximal Policy Optimization (PPO) agent. Unlike shallow recurrent models, our approach employs a learned attention mechanism that weights recent historical states non-uniformly, suppressing high-frequency jitter while preserving the trend that precedes demand shifts. We validate the framework on two independent Kubernetes clusters using real-world Azure Functions traces. Against the single-layer LSTM ablation and the static HPA baseline, our approach reduces P90 latency by $\approx$67\%, and holds average latency within the 50ms hard SLO for 98.8\% of the run against 49.6\% and 43.5\% respectively. Against Kubernetes Event-Driven Autoscaling (KEDA), it matches latency performance at 75\% fewer replica-steps and 59\% less churn, with P90 hard-SLO violation bursts of at most 5 consecutive intervals against up to 24 for KEDA. These results indicate that mitigating temporal blindness through deep attentive memory improves the reliability and stability of Kubernetes autoscaling under bursty edge workloads.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。