基于弹性伸缩集群的云负载测试技术
2020-07-09颜硕彦晋文明李昌建
颜硕彦 晋文明 李昌建



摘 要:为保障线上软件系统服务质量的可靠性,有必要对其进行有效的负载测试。随着云计算技术的发展,基于云端资源发起的负载测试可以方便大规模客户端负载的生成,且容易实施。然而,目前研究缺少相关实现参考,导致这样的云测试系统难以构建。文章提出了一套基于OpenStack的云负载测试平台实现方案,介绍了基于弹性伸缩集群的云负载测试技术,为实现基于云的负载测试系统提供了实现参考。
关键词:负载测试;云测试系统;OpenStack;弹性伸缩;测试集群
中图分类号:TP311 文献标识码:A 文章编号:2096-4706(2020)02-0098-04
Abstract:For online software systems,it is often necessary to conduct load testing to ensure the reliability of their services. With the development of cloud computing technology,launching load testing based on cloud resources can facilitate large-scale client-side load generation,and testing is easy conduct. However,existing research lack of relevant implementation reference,which results in these cloud testing systems are difficult to build. This paper proposes a set of cloud load testing platform implementation scheme based on OpenStack,introduces the cloud load testing technology based on elastic scaling cluster,and provides a reference for realizing the cloud-based load testing system.
Keywords:load testing;cloud testing system;OpenStack;elastic scaling;test cluster
0 引 言
负载测试作为软件测试的一种,是为了检测系统在负载方面的相关问题从而对系统进行评估的过程[1],是保障大型线上软件系统服务质量可靠性的有效手段[2]。随着云计算技术的发展,一些测试人员把负载测试迁移到云上[3],依托于云端资源发起负载测试可以方便大规模客户端负载的生成,同时降低负载测试的实施难度。文献[4]设计了一种准入控制和任务调度算法,实现云性能测试服务平台资源的共享管理和动态分配。文献[5]为保证分布式系统测试的可靠性,提出了云测试环境D-Cloud,实现自动化系统配置和测试流程。文献[6]提出了一个用于Web服务的负载测试平台,使得负载测试过程尽可能接近实际运行场景。文献[7]提出的云测试平台能够实现按需分配硬件资源,无需重新配置测试环境。
现有研究主要关注云测试系统的任务调度、测试自动化、负载测试真实性等方面,对系统实现层面的研究较少,导致云测试系统的构建缺乏实现参考。……
