APP下载

基于Q-Learning的虚拟机动态伸缩算法

2016-04-14赵勉,李烨

电子科技 2016年3期
关键词:云计算

赵 勉,李 烨

(上海理工大学 光电信息与计算机工程学院,上海 200093)



基于Q-Learning的虚拟机动态伸缩算法

赵勉,李烨

(上海理工大学 光电信息与计算机工程学院,上海200093)

摘要针对大规模云环境中业务量变化时平台服务质量和资源消耗的问题,提出一种基于Q-Learning的虚拟机扩容/缩容决策算法。将该问题转换为马尔科夫决策模型,为了在业务平台服务质量和资源消耗之间取得较好的平衡,智能体根据平台当前状态计算出最佳策略,执行决策并转到下一状态。仿真结果表明,该算法可根据业务量的变化实时作出伸缩决策,并提供最合适的虚拟机资源以满足业务需求,且能提高平台的稳定性。

关键词云计算;虚拟机;动态伸缩;Q-Learning;资源利用率

Q-Learning Based Auto-scaling Algorithm for Virtual Machines

ZHAO Mian,LI Ye

(School of Optical-Electrical and Computer Engineering,University of Shanghai for Science and Technology,Shanghai 200093,China)

AbstractTo solve the problem of service quality and resources cost when the service volume changed in large cloud environment,this paper proposes a scaling method for virtual machines based on the Q-Learning algorithm.First,the problem is modeled as a Markov decision process.In order to achieve a better balance between platform service quality and resources consuming,the agent outputs the best decision according to the current state of the platform.The platform executes the decision and transfers to the corresponding state.The simulation results show that the method can make scaling decisions in real time according to the change of service volume so as to provide appropriate resources of virtual machines matching the requirements of service.The method also can enhance the stability of the platform.

Keywordscloud computing;virtual machine;auto-scaling;Q-Learning;resource utilization

一个良好的云计算平台应该具有高可扩展性、高可用性、高可靠性、能按需分配资源和负载均衡等特性。可伸缩性是分布式及并行计算中的重要指标之一,描述了应用系统通过改变可用硬件资源和调度方式来动态调整自身整体性能的能力[1]。在大规模虚拟环境系统中,利用云计算可伸缩性的特点,可根据业务的资源需求动态伸缩平台资源,降低运营成本,提高资源利用率。

可伸缩性是当前云计算的研究热点[2-3]。CloudScale[4]应用快速傅里叶变换识别资源并预测周期性的资源需求,以实现云平台资源的动态伸缩。在文献[5]中,利用自回归滑动平均模型预测虚拟机负载以减少资源消耗。文献[6~7]提出了混合多种算法的模型来预测虚拟机数量需求,能根据预测误差自动选择最优算法。……

登录APP查看全文

猜你喜欢

云计算
云计算虚拟化技术在电信领域的应用研究
基于云计算的医院信息系统数据安全技术的应用探讨
谈云计算与信息资源共享管理
志愿服务与“互联网+”结合模式探究
云计算与虚拟化
基于云计算的移动学习平台的设计
基于云计算环境下的ERP教学改革分析
基于MapReduce的故障诊断方法
实验云:理论教学与实验教学深度融合的助推器
云计算中的存储虚拟化技术应用