1. Install docker and docker-compose on you server - https://docs.docker.com/engine/install/ubuntu/
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh ./get-docker.sh --dry-run
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
2. Create directory structure as follows,
jmeter[main directory] ->[sub directories]jmeter-base, jmeter-master, jmeter-slave, temp, script
3. Create docker-compose.yml, start-jmeter.sh, and start-jmeter.sh files inside the jmeter main directory.
4. Start the docker-compose
docker-compose up
If something happened at the midle, you can run follows
docker-compose up --build
5. Disable the 'server.rmi.ssl' to ignor the ssl varification on jmeter.properties file in master and slave node/s
uncomment the
#server.rmi.ssl.disable=false
and enable it
server.rmi.ssl.disable=true
6. Run the start-jmeter.sh file as follows
sudo sh start-jmeter.sh
7. Login to the jmeter_slave docker and start using following command
./jmeter-server
8. Copy the performance test jmx file to the master container
9. Start the jmx from master container as follows,
[jmeter_master_home/bin] nohup jmeter -n -t /scripts/[script_name].jmx -R [slave_IP/s] &
No comments:
Post a Comment