摘要
随着云计算、大数据、人工智能等领域的快速发展,企业对计算资源的需求不断增加,在传统的应用部署方式下,当业务压力增大时,往往需要手动调整服务器的配置或者增加服务器数量,这种方法不仅效率低下,而且容易出现失误。为了解决以上问题,使用Kubernetes作为容器管理和编排工具,利用KEDA实现基于事件的弹性伸缩功能。项目中采用RabbitMQ作为业务服务应用,并通过预先编写的Python脚本模拟访问量的增加和减少情况。同时,也利用KEDA来实现RabbitMQ消息队列的弹性伸缩能力。实验结果表明,基于事件驱动的弹性扩缩方案可以更加高效和稳定地运行,并且具有一定的灵活性和可扩展性。本研究将为企业在Kubernetes平台上实现自动化扩缩提供新思路和新方法。
With the rapid development of cloud computing,big data,artificial intelligence and other fields,enterprises'demand for computing resources is constantly increasing.Under traditional application deployment methods,when business pressure increases,it is often necessary to manually adjust the configuration of servers or increase the number of servers.This method is not only ineffi-cient,but also prone to errors.To address the above issues,this project uses Kubernetes as a container management and orchestration tool,and utilizes KEDA to implement event based elastic scaling functionality.The project adopts RabbitMQ as a business service application and simulates the increase and decrease of access through pre written Python scripts.At the same time,KEDA is also used to achieve the elastic scalability of RabbitMQ message queues.The experimental results show that the event driven elastic scal-ing scheme can operate more efficiently and stably,and has a certain degree of flexibility and scalability.This study will provide new ideas and methods for enterprises to achieve automated scaling on the Kubernetes platform.
作者
周兆聪
王煜林
赵育祺
刘绍然
ZHOU Zhao-cong;WANG Yu-lin;ZHAO Yu-qi;LIU Shao-ran(Guangzhou Institute of Science and Technology,Guangzhou510540,Guangdong)
出处
《电脑与电信》
2023年第10期11-15,共5页
Computer & Telecommunication
基金
2022年广东省本科高校教学质量与教学改革项目“以工作室为载体,构建科产教协同培养卓越工程人才‘一一二’新模式探索”,项目编号:1104
2022年大学生创新创业训练计划项目,项目编号:S202212668009。