Abhishek
Abhishek

Reputation: 11

Is there any configuration available for Master to divide the load between the slaves in Distributed testing with JMeter?

Is there any configuration available for Master to divide the load between the slaves?

Actually my test has many scripts with odd and even number of threads in it, for e.g. Script_1 = 15 users, Script_2 = 14 users etc.

So it will be difficult to set the number of threads or slaves. Please suggest.

Upvotes: 1

Views: 595

Answers (1)

Dmitri T
Dmitri T

Reputation: 168072

It is

  1. In Thread Groups define "Number of Threads" value using __P() function like ${__P(threads,)}
  2. In user.properties file (lives under "bin" folder of JMeter installation) on each slave node define "threads" property like:

    • threads=14 - for slave 1
    • threads=15 - for slave 2
    • etc.

You can also pass the property via -J command line option like:

jmeter-server.bat -Jthreads=15

See Apache JMeter Properties Customization Guide for more information on different JMeter properties types and ways of setting and overriding them

Upvotes: 1

Related Questions