简体   繁体   English

分布式负载测试 jmeter

[英]Distributed load testing jmeter

What is the best way to manage multiple slaves(for eg:50 slaves) and run a load test?管理多个从站(例如:50 个从站)并运行负载测试的最佳方法是什么?

When using distributed testing for jmeter, we need to manually handle all the agent start and stop, copy the files into each slave etc. Any suggestions to automate these type of activities.当对 jmeter 使用分布式测试时,我们需要手动处理所有代理的启动和停止,将文件复制到每个从站等。任何自动化这些类型活动的建议。 Is there any open source framework to handle all these?是否有任何开源框架来处理所有这些?

Depending on where your slaves live there could be different approaches:根据您的奴隶居住的地方,可能会有不同的方法:

  1. Use "infrastructure as code" solutions like Terraform to provision machines, install Java runtime and start JMeter slave process使用Terraform等“基础设施即代码”解决方案来配置机器,安装 Java 运行时并启动 JMeter 从进程
  2. If you have machines already but look for an automated way of configuring them you can use orchestration engine like Ansible如果您已经拥有机器但正在寻找一种自动配置它们的方式,您可以使用编排引擎,如Ansible
  3. You can go for containers and container management systems like Kubernetes @ Openshift您可以 go 用于容器和容器管理系统,例如Kubernetes @ Openshift
  4. You can go for JMeter EC2 shell scripts collection您可以 go 为JMeter EC2 shell 脚本集合
  5. And finally you can consider cloud-based solutions which offer "JMeter as a service" like LoadRunner Cloud or BlazeMeter最后,您可以考虑提供“JMeter 即服务”的基于云的解决方案,例如LoadRunner CloudBlazeMeter

You can use Taurus你可以使用金牛座

Distributed mode for JMeter is enabled with simple option distributed under execution settings, listing JMeter servers under it: JMeter 的分布式模式通过执行设置下的简单选项分布式启用,在其下列出 JMeter 服务器:

 execution:
  • distributed:分散式:
    • host1.mynet.com主机1.mynet.com
    • host2.mynet.com host2.mynet.com
    • host3.mynet.com主机3.mynet.com

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM