We assume that you have an existing JMeter script
YourScript.jmx
that you are already using professionally, and running it on conventional On-Premises or Cloud instances, likely on a high-performance server with many cores and a lot of memory, with many Virtual Users. We will show you how to modify
YourScript.jmx
so that you can run it on many small Neocortix instances, rather than on one huge conventional server.
The key idea is to modify
YourScript.jmx
so that it has at most 20 Virtual Users active at any time, and then you will need more instances to achieve the desired load. For example, if your
YourScript.jmx
has 4000 Virtual Users active at its peak, you will modify it to have only 20 Virtual Users active, and use 200 Neocortix instances to achieve the desired load.
Please create
YourModifiedScript.jmx
so that it has at most 20 Virtual Users active at any time, and make a note of the number of instances you will need to achieve your desired Load.
Please note that the Output File Name for the View Results Tree method should be set to
jmeterOut/VRT.jtl
as shown here:
Please note also that the “Save as XML” checkbox should be unchecked in the JMeter Sample Result Save Configuration popup, so that the .jtl files will be in the right format, as shown here:
And then, finally, you will need to put
YourModifiedScript.jmx
into the
~/ncsexamples/batchMode/jmeterWorker
directory, so that it can be found by the
runBatchJPetStore.py
script. And you will also have to copy any other files into that directory that your script may need, like plugin .jar files, user.csv files, etc.