Table of contents :

1 — Setup agent & JMeter

2 — Generation du jks + copie sur les slaves (sur la machine master )

3 — Setup JMeter slaves :

4- Copy rmi_keystore.jks on each slave machine :

5- run ./jmeter-server on each slave :

1 — Setup agent & JMeter

dir jmeter-master
cd jmeter-master
wget https://dlcdn.apache.org//jmeter/binaries/apache-jmeter-5.5.tgz

tar xvf apache-jmeter-5.5.tgz
cd apache-jmeter-5.5/bin/

Téléchargement du client:


curl https://vstsagentpackage.azureedge.net/agent/2.204.0/vsts-agent-linux-x64-2.204.0.tar.gz-o vsts-agent-linux-x64–2.204.0.tar.gz
extraction du zip: tar zxvf vsts-agent-linux-x64–2.204.0.tar.gz

lancer la configuration:

./config.sh — unattended — agent “jmeter-master” — url “https://dev.azure.com/EcomDevOps" — auth PAT — token “kv7bccnrszkinx3khhayjzfwtfj5xowy5tvqxc7uojbkppavn4nq” — pool “perf” — work “_work” — replace — acceptTeeEula & wait $!

démarrer l’agent:


./run.sh &

2 — Generation du jks + copie sur les slaves (sur la machine master )

master01-vm:~/jmeter-master/apache-jmeter-5.5/bin$ ./create-rmi-keystore.sh
What is your first and last name?
[Unknown]: mydomain
What is the name of your organizational unit?
[Unknown]:
master01-vm:~/jmeter-master/apache-jmeter-5.5/bin$ ./create-rmi-keystore.sh
What is your first and last name?
[Unknown]: mydomain
What is the name of your organizational unit?
[Unknown]: userdomain
What is the name of your organization?
[Unknown]: userdomain
What is the name of your City or Locality?
[Unknown]: Paris
What is the name of your State or Province?
[Unknown]: Paris
What is the two-letter country code for this unit?
[Unknown]: FR
Is CN=userdomain, OU=userdomain, O=userdomain, L=Paris, ST=Paris, C=FR correct?
[no]: yes

Copy the generated rmi_keystore.jks to jmeter/bin folder or reference it in property ‘server.rmi.ssl.keystore.file

Add host ip address in user.properties for all slaves machines

Now open the jmeter.properties in a text editor. Find ‘Remote hosts and RMI configuration’ enter the IP’s that you wanted to run the load testing. Save the configuration.

3 — Setup JMeter slaves :

run this block of code on each machines slaves : 172.30.42.181–172.30.42.182 -172.30.42.183–172.30.42.184

mkdir jmeter-master
cd jmeter-master/
wget https://dlcdn.apache.org//jmeter/binaries/apache-jmeter-5.5.tgz
tar xvf apache-jmeter-5.5.tgz
cd apache-jmeter-5.5/bin/
./jmeter-server --version
cd /tmp/
git clone https://github.com/achrafnh/pluginsjmeter.git
cd pluginsjmeter/
cp -r *.jar /home/achraf/jmeter-master/apache-jmeter-5.5/lib/ext/
cd /home/achraf/jmeter-master/apache-jmeter-5.5/bin

4- Copy rmi_keystore.jks on each slave machine :

5- run ./jmeter-server on each slave :

--

--