Simply run
python3 ./launchAgents.py
The script will print a lot of progress messages. After several minutes, at the end, it will print lines like the following:
forwarding: localhost:7102, localhost:7103, localhost:7104, localhost:7105, localhost:7106
when you want to terminate these instances, use python3 terminateAgents.py "data/neoload_<timestamp>/recruitLaunched.json"
It will also save some logs and diagnostics to a
data/neoload_<timeStamp>
directory, including an
agentForwarding.csv
file for reference, and a world map showing the locations of the instances
worldMap.png
.
Now run the NeoLoad controller application. In the Runtime Scenarios tab, there is a "Load Generators" list with a Plus Sign for adding generators.
Click the Plus Sign. Then copy the list of host:port pairs from the "forwarding" line of the launchAgents output, and paste it into the "Add Load Generators" edit box.
When you click OK, you should see your load generator addresses in the list, with little green dots next to them. Now click the checkbox next to each one, to enable it. If any of little dots are red, don't enable those. (If ALL of them are RED, it probably means there is a problem with the IP address of the launchAgents machine, or possibly that the firewall has not been configured properly.)
Make whatever other NeoLoad settings you like. We have found that it's good to allocate several simulated users for each load generator you have launched.
Click the "play" button to start a test. It may take up to 5 minutes for the test to initialize and get going. Occasionally, you may find that one or two of the agents does not work. This can happen due to real-world network circumstances.
Here is an output graph and World Map for a 12-minute test (with 10 1-minute ramp steps) on 10 load generators.
When you are done testing, you may terminate the instances using the command printed out by
launchAgents.py
:
python3 terminateAgents.py "data/neoload_<timestamp>/recruitLaunched.json"