APP下载

云环境下实现容器部署的加速粒子群优化算法

2024-05-24陆海锋赵嘉凌欧阳学名周娜琴左利云

计算机应用研究 2024年3期
关键词:云计算

陆海锋 赵嘉凌 欧阳学名 周娜琴 左利云

摘 要:基于容器的微服务部署是一个具有挑战性的问题,为获得更好的用户体验并给云供应商带来更多的利润,需要在降低微服务的故障率和减少响应时间的同时提高资源利用率。提出了一种改进的加速粒子群优化算法,用于解决集群中微服务容器部署的多目标优化问题。该算法通过考虑微服务之间的调用关系,使得容器聚集在一起,从而降低服务的数据传输成本、减少故障率,并提高集群资源利用率。与现有部署算法相比,实验结果表明,所提出的优化算法在服务间的数据传输开销、故障率和资源利用率等性能指标上有明显改善。具体表现在:容器聚集度的提升达到40%以上,数据传输消耗平均有提升4%以上,故障率减少10%~20%,利用率提升3%左右。

关键词:云计算; 微服务; 容器; 加速粒子群算法; 多目标优化

中图分类号:TP393.09   文献标志码:A

文章编号:1001-3695(2024)03-016-0756-08

doi:10.19734/j.issn.1001-3695.2023.07.0312

Accelerated particle swarm optimization algorithm forcontainer deployment in cloud environments

Lu Haifeng1, Zhao Jialing1, Ouyang Xueming2, Zhou Naqin3, Zuo Liyun4

(1.Information Center Dept., Zhaoqing University, Zhaoqing Guangdong 526061, China; 2.School of Software, South China University of Technology, Guangzhou 510006, China; 3.Cyberspace Institute of Advanced technology, Guangzhou University, Guangzhou 510006, China; 4.School of Computer Science, Guangdong University of Petrochemical Technology, Maoming Guangdong 525000, China)

Abstract:Container-based microservice deployment is a challenging problem that aims to improve user experience and increase cloud providers profitability by reducing microservice failure rates and response times while maximizing resource utilization. This paper presented an enhanced accelerated particle swarm optimization algorithm to tackle the multi-objective optimization problem of microservice container deployment in a cluster. By considering the invocation relationships between microservices, the algorithm facilitated the aggregation of containers, thereby reducing data transmission costs, lowering failure rates, and enhancing cluster resource utilization. Experimental results demonstrate that the proposed optimization algorithm yields significant improvements in performance measures including data transmission overhead, failure rate, and resource utilization when compared to existing deployment algorithms. Specifically, the algorithm achieves a container aggregation improvement exceeding 40%, an average increase in data transmission consumption of over 4%, a decrease in failure rate by 10% to 20%, and an increase in utilization rate by roughly 3%. The aforementioned findings attest to the efficacy of the proposed algorithm.

Key words:cloud computing; microservices; container; accelerated particle swarm optimization; multi-objective optimization

0 引言

在云環境中,计算资源通常以虚拟机(VM)或容器的方式提供各种计算服务,而应用程序则采用微服务架构模式来向用户提供服务[1~3]。

微服务架构已被广泛应用于云应用系统的构建和部署。与传统的单体式应用不同,微服务架构采用强解耦的方式将单体应用程序拆分成一组小粒度的服务,这些服务通常以VM和容器的形式分布在云数据中心(CDC)中。这些服务通过轻量级的通信方式进行交互,并通过组合构建应用系统[4]。用户可以通过云平台提供的操作来部署应用系统,而这些应用系统通过基于容器的调度引擎协调使用CDC的计算资源并进行交互。……

登录APP查看全文

猜你喜欢

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