摘要
传统智慧云平台任务分配方法无法实时调用任务信息,导致任务分配效率以及任务分配负载均衡性均较差。提出基于微服务架构的智慧云平台任务分配方法。方法通过构建由服务网关层、任务分配层、服务层和配置集群层等组成的基于Spring Cloud微服务的智慧云平台,利用pc端与服务网关层调用服务层和用户层任务信息,任务分配层通过GIT仓库和配置集群层拉取配置,根据用户需求调用云数据库内任务数据,建立云任务分配模型,采用动态规划算法实现智慧云平台任务分配。实验结果表明:上述方法在任务数量为100个时,其分配完成时间仅为45s;分配任务的负载数值与任务数量成正比,同等任务数量的负载值最低,具有较高负载平衡性;在无负载情况下,资源使用率较平稳,具有较高可靠性。
Traditional smart cloud platform task allocation methods cannot call task information in real time,resulting in poor task allocation efficiency and load balance.Therefore,this paper reports a novel task allocation method of smart cloud platform based on micro service architecture.Firstly,the smart cloud platform based on spring cloud microservices was composed of service gateway layer,task allocation layer,service layer and configuration cluster layer.Secondly,the PC side and the service gateway layer were applied to call the task information of the service layer and the user layer,and according to the GIT warehouse and the configuration cluster layer,the task allocation layer was adopted to pull the configuration.Then,based on user requirements,the task data in the cloud database was called to establish the cloud task allocation model.Finally,the dynamic programming algorithm was utilized to achieve the task allocation of smart cloud platform.The experimental results show that when the number of tasks is 100,the allocation completion time is only 45 s;The load value of assigned tasks is directly proportional to the number of tasks,and the load value of the same number of tasks is the lowest,which has high load balance;Under no-load condition,the resource utilization rate is stable and has high reliability.
作者
徐瑛楠
孙景睿
XU Ying-nan;SUN Jing-rui(School of Management Engineering,Jilin University of Architecture and Technology,Jilin Changchun 130114,China;School of Artificial Intelligence,Changchun University of Science and Technology,Jilin Changchun 130022,China)
出处
《计算机仿真》
北大核心
2021年第10期482-486,共5页
Computer Simulation
基金
吉林省教育厅“十三五”社会科学项目(JJKH20201242SK)。
关键词
微服务架构
智慧云平台
任务分配
动态规划
负载均衡性
云数据库
Microservice architecture
Smart cloud platform
Task allocation
Dynamic planning
Load balancing
Cloud database