In the subdirectory
~/ncsexamples/batchMode
you will find the
runBatchJPetStore.py command.
This script creates a set of instances running on mobile devices, one instance for each load generator.
In the default example provided, we want 6 successful instances
endFrame = 6
,
so we set
nWorkers = 10
to allow some launched instances to fail.
startFrame = 1,
endFrame = 6,
nWorkers = 10,
And we ask for the devices to be located in USA or India, and we ask for them to be Gold-Rated Devices, with Device Performance Rating (DPR) of at least 48, at least 2.8GB of RAM, and the most up-to-date Neocortix software installed on them:
filter = '{ "regions": ["usa", "india"], "dpr": ">=48", "ram:": ">=2800000000", "app-version": ">=2.1.11" }',
We also set the following time limits for the JPetStore example:
timeLimit = 60*60,
instTimeLimit = 12*60,
frameTimeLimit = 12*60,
The actual duration of the JPetStore example is 10 minutes (600 seconds), so we set
frameTimeLimit = 12*60
(12 minutes, a little longer than the required 10 minutes of the test),
instTimeLimit = 12*60
(up to 12 minutes to install all needed software on the instances), and
timeLimit = 60*60
(up to one hour for the total duration of the test). Ordinarily, everything will be done faster than these time limits; these are just the time limits that will be used if something goes wrong and the run has to be terminated because it ran for too long. If you increase the duration of the test, say, from 10 minutes to 60 minutes, you should increase the time limits accordingly, like this:
timeLimit = 90*60,
instTimeLimit = 12*60,
frameTimeLimit = 66*60,
You will also find the subdirectory
~/ncsexamples/batchMode/jmeterWorker
, which contains all the files and additional subdirectories that are needed to run the advanced JMeter test. In particular, it contains the following files:
JPetstore_JMeter5.4.1.jmx
: Classic JPetStore load test demo, with various task categories like 01_Launch, 02_Login, 03_Fish, 04_Dogs, 05_Cats.
user.csv
: A .csv data file containing user identifiers.
jmeter-plugins-cmn-jmeter-0.6.jar
: Required JMeter plugin file.
jmeter-plugins-graphs-additional-2.0.jar
: Required JMeter plugin file.
jmeter-plugins-graphs-basic-2.0.jar
: Required JMeter plugin file.
jmeter-plugins-manager-1.6.jar
: Required JMeter plugin file.
All of these files in the
jmeterWorker
directory will be sent to each instance, in its own
jmeterWorker
directory.