jmeter的master-slave模式

Posted 沧海一粟,何以久远

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jmeter的master-slave模式相关的知识,希望对你有一定的参考价值。

  要求:

  • 1、相同的jmeter版本
  • 2、最好相同的java版本

  jmeter可以通过master-slave的方式实现更大的并发,但是作为master的机器将会消耗更多的资源,因为所有的slave的压测数据都要通过网络传输到master机器上,然后由master机器完成这些数据的整理和输出。

  各个slave并非分布式,而是都跑相同的测试用例。Note: The same test plan is run by all the servers. JMeter does not distribute the load between servers, each runs the full test plan. So if you set 1000 Threads and have 6 JMeter server, you end up injecting 6000 Threads.

  压测时,master会把jmx脚本内容发给所有的slave,由slave执行压测任务。但是数据文件不会被master发给slave,因此过程中如果需要从csv中获取数据,需要提前放到slave机器里去,或者slave机器可以连接读取的文件服务器等。If the test uses any data files, note that these are not sent across by the client so make sure that these are available in the appropriate directory on each server

  sd

 

  

 

原文:http://jmeter.apache.org/usermanual/remote-test.html

参考翻译:https://www.jianshu.com/p/1a4dc49b1993

以上是关于jmeter的master-slave模式的主要内容,如果未能解决你的问题,请参考以下文章

MySQL数据库设置为只读及测试

redis 集群热备自动切换sentinel配置实战

ActiveMQ集群Master-Slave + Broker Cluster模式

master-slave

KETTLE集群搭建

jmater分布式压力测试总结