实时应用中微服务扩展策略的优化OA
OPTIMIZATION OF MICROSERVICE SCALING STRATEGIES IN REAL-TIME APPLICATIONS
动态负载的平衡驱动着弹性扩展技术的发展,但微服务架构下的实时应用采用 Kubernetes 内置扩展策略时仍存在滞后性,并且单一扩展指标也具有局限性.因此基于 HPA 策略进行优化,部署应对负载扰动的动态扩展窗口,提出一种满足多元扩展指标的自适应扩展策略,并在扩展窗口内通过 ARIMA 模型实现微服务主动式预测扩展来满足响应结果的高时效性需求,最后设计 MAPE 通道实现自适应扩展策略.实验结果表明,与原生HPA 策略相比,该策略消除了 pod 数量的乒乓效应,将平均响应时间缩短21.3%,更适用于时延敏感型服务.
Dynamic load balancing drives the development of elastic scaling techniques.However,real-time applications under microservice architectures still suffer from hysteresis when using the native scaling strategy of Kubernetes,and a single scaling metric also has limitations.Therefore,we optimized the HPA strategy,and deployed a dynamic scaling window to cope with load perturbation.We proposed an adaptive scaling strategy to satisfy multiple scaling metrics.Meanwhile microservices proactive scaling was realized to meet the high timeliness demand of the response results through ARIMA model within the scaling window.The channel of MAPE was designed to implement the adaptive scaling strategy.Experimental results show that this strategy eliminates the ping-pong effect of the number of pods and reduces the average response time by 21.3%compared with the native HPA strategy,which is more suitable for latency-sensitive services.
任雪容;冯兴乐;王晨航
长安大学信息工程学院 陕西 西安 710064长安大学信息工程学院 陕西 西安 710064长安大学信息工程学院 陕西 西安 710064
信息技术与安全科学
微服务Kubernetes主动式扩展策略实时应用
MicroserviceKubernetesProactive scaling strategyReal-time applications
《计算机应用与软件》 2026 (9)
10-18,9
国家重点研发计划项目(2019YFB1600100)国家自然科学基金面上项目(61973045).
评论