信息安全研究 ›› 2019, Vol. 5 ›› Issue (3): 236-241.

• 学术论文 • 上一篇    下一篇

一种基于负载特征预测的容器云弹性伸缩策略

马小淋   

  1. 四川大学计算机学院2016级研究生
  • 收稿日期:2019-03-12 出版日期:2020-03-15 发布日期:2019-03-12
  • 通讯作者: 马小淋
  • 作者简介:马小淋 1993年生,硕士研究生,主要研究方向为云计算、信息安全. 2476848878@qq.com

A Container Cloud Elastic Scaling Strategy Based on Load Characteristics Prediction

  • Received:2019-03-12 Online:2020-03-15 Published:2019-03-12

摘要: 当前主流的容器云平台Kubernetes,利用基于阈值的弹性伸缩策略提供弹性伸缩服务时存在2个问题:一是不区分应用类型,采用单一指标不能准确衡量复合型应用负载情况;二是在应用遭遇暂时的负载增减时容易造成伸缩抖动,导致额外的系统耗费和资源浪费.针对上述问题,提出一种基于负载特征预测的容器云弹性伸缩策略,该策略利用不同的负载特征区分应用类型,对复合型应用类型采取多个指标衡量负载情况;为减少无谓的伸缩抖动,该策略同时利用应用的负载预测值和当前负载值共同进行伸缩决策.实验结果表明,与Kubernetes基于阈值的弹性伸缩策略相比较,该策略能更准确衡量CPUMEM复合型应用负载情况,在应用遭遇暂时性负载增减时能减少无谓的伸缩抖动.

关键词: 弹性伸缩, 容器云, 负载特征, ARIMA预测, 伸缩抖动

Abstract: Kubernetes, the current mainstream container cloud platform, has two problems when using the elastic scaling strategy based on threshold to provide elastic scaling services. First, it does not distinguish between application types, and it cannot accurately measure the load of composite applications with a single index. Second, when the application encounters temporary load increase or decrease, it is easy to cause scaling jitter, which leads to additional system consumption and resource waste. In view of the above problems, this paper proposes a container cloud elastic scaling strategy based on load feature prediction, which uses different load features to distinguish application types and adopts multiple indexes to measure the load of composite application types. In order to reduce unnecessary scaling jitter, the strategy uses both the predicted load value and the current load value to make scaling decisions. The experimental results show that compared with Kubernetes elastic scaling strategy based on threshold, this strategy can more accurately measure the CPUMEM composite application load and reduce unnecessary scaling jitter when the application is subject to temporary load increase or decrease.

Key words: elastic scaling, container cloud, load characteristics, ARIMA prediction, telescopic jitter