![]()
Setting up Secured communication between JMeter Master and workers(slave).įrom Jmeter version 4 onwards, secured communication channel between Jmeter master and worker possible and enabled by default. Before that we can look at the jks file generation and why do we need that in the jmeter bin directory. Now we are all set to bring up the image and containers. Then I placed the respective dockerfiles in these directories. So I created three different folders from my C:\users\xxxx directory named as Jmeter-base, Jmeter-Master, Jmeter-slave. The easier way is to have three different directories. to run the setup, either I need to create three different directories to hold the dockerfiles or I can run my Docker compose command by specifying the file location. Now we have totally 3 different dockerfiles. First 2 options I am specifying port numbers and the final one is I am passing keystore file location so that I can establish secured communication with Jmeter master and slave. From line 3, I am starting Jmeter server with few options. FROM jmeterbase1ĮNTRYPOINT $JMETER_HOME/bin/jmeter-server =50000 -Dserver_port=1099 .file=$JMETER_HOME/bin/rmi_keystore.jksįrom line 2, I exposed ports 100 in the image. So I specified an entry point in the dockerfile. Since the moment, you tried to trigger the test Jmeter Master will reach out to all workers where Jmeter server is running. Also I need to make sure to start the Jmeter server while the container start up. ![]() Step 3 : JMeter workers (Slave ) Dockerfile:įrom the image we created, I exposed 2 ports to communicate with JMeter master. also I exposed port 60000 for communication with workers. On top of that I created a directory to store the scripts. Line 1 shows, I am going to use my custom image build as part of Step 1 above. To send the test details to the workers also to collect the results back from the workers and reports the listener data to the backend listeners configured in the test plan, FROM jmeterbase1 For Jmeter master or controller ,we know the purpose. We can look at the directory structure after we look at the dockerfile for Jmeter Master and worker.įrom the base image we created, we can alter a little bit to create the dockerfile for JMeter master. This dockerfile is enough to create our base image. Line 9, 10
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |