arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2111.02133cs.DCcs.LGcs.SYeess.SY
收藏

使用OpenStack Monasca进行预测性自动缩放

Predictive Auto-scaling with OpenStack Monasca

Scuola Normale Superiore(比萨高等师范学校);Scuola Superiore Sant’Anna(圣安娜高等研究院);University of Pisa(比萨大学);National Research Council(国家研究委员会)

Giacomo Lanciano, Filippo Galli, Tommaso Cucinotta, Davide Bacciu, Andrea Passarella

摘要:

云自动缩放机制通常基于反应式自动化规则,该反应式自动化规则每当某个度量(例如,实例之间的平均CPU使用率超过预定义的阈值。当扩展集群涉及到不可忽略的引导新实例的时间时,调整这些规则变得特别麻烦,因为它经常发生在生产云服务中。为了解决这个问题,我们提出了一个架构的基础上,系统预计在不久的将来发展的状态,自动扩展云服务。我们的方法利用时间序列预测技术,如基于机器学习和人工神经网络的技术,来预测关键指标的未来动态,例如,资源消耗指标,并对它们应用基于阈值的缩放策略。其结果是预测性自动化策略,例如,该策略能够自动预测云应用程序负载的峰值,并提前触发适当的缩放操作以适应预期的流量增加。我们将我们的方法原型化为一个开源的OpenStack组件,它依赖于并扩展了Monasca提供的监控功能,从而增加了可由Heat或Senlin等编排组件利用的预测指标。我们展示了使用递归神经网络和多层感知器作为预测器的实验结果,并与简单的线性回归和传统的非预测自动缩放策略进行了比较。然而,所提出的框架允许根据需要轻松定制预测策略。

英文摘要:

Cloud auto-scaling mechanisms are typically based on reactive automation rules that scale a cluster whenever some metric, e.g., the average CPU usage among instances, exceeds a predefined threshold. Tuning these rules becomes particularly cumbersome when scaling-up a cluster involves non-negligible times to bootstrap new instances, as it happens frequently in production cloud services. To deal with this problem, we propose an architecture for auto-scaling cloud services based on the status in which the system is expected to evolve in the near future. Our approach leverages on time-series forecasting techniques, like those based on machine learning and artificial neural networks, to predict the future dynamics of key metrics, e.g., resource consumption metrics, and apply a threshold-based scaling policy on them. The result is a predictive automation policy that is able, for instance, to automatically anticipate peaks in the load of a cloud application and trigger ahead of time appropriate scaling actions to accommodate the expected increase in traffic. We prototyped our approach as an open-source OpenStack component, which relies on, and extends, the monitoring capabilities offered by Monasca, resulting in the addition of predictive metrics that can be leveraged by orchestration components like Heat or Senlin. We show experimental results using a recurrent neural network and a multi-layer perceptron as predictor, which are compared with a simple linear regression and a traditional non-predictive auto-scaling policy. However, the proposed framework allows for the easy customization of the prediction policy as needed.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑