摘要
针对目前采用的最少连接数算法无法解决因不同业务请求消耗资源差异大而导致的平均响应时间长的问题,本文提出了CM(CPU-Memory)算法。CM算法根据CPU和内存使用率作为判断因素,计算服务器权值,并引入新的参数负载冗余参数,来判断服务器能够处理的新的请求的能力。通过仿真实验,模拟系统平台同时发送多个不同的请求,分别用最少连接数算法和CM算法进行了分析验证。结果表明,利用CM算法可以实现更快的响应时间,这就有效地提高了系统平台处理业务请求的效率。
For the least connections algorithm currently used cannot solve the long average response time problem caused by the situation that the difference of resources consumed by different requests is very big, this paper designs a new algorithm named CM algorithm. It means use the utilization rate of the CPU and Memory as the actor to calculate the weight of the server, and introduces a new parameter named load redundant parameter to judge the ability to deal with new requests. By simulation, it simulates a circumstance that many requests are sent synchronously. The least-connections algorithm and CM algorithm are used in the system. The result indicates that using the CM algorithm has a shorter response time, and it means saving the time that the system deals with the service requests.
出处
《科技通报》
北大核心
2016年第4期160-164,共5页
Bulletin of Science and Technology
关键词
电子商务平台
负载均衡
CPU使用率
内存使用率
e-commerce business platform
load balance
CPU utilization rate
memory utilization rate