File tree Expand file tree Collapse file tree 5 files changed +10
-3
lines changed
Expand file tree Collapse file tree 5 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1+ .vscode
2+ logs
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ RUN chmod +x /opt/jmeter/entrypoint.sh
3535
3636WORKDIR /logs
3737
38- EXPOSE 1099 4445 50000 51000
38+ EXPOSE 1099 50000 51000 4445/udp
3939
4040# default command in the entrypoint is 'minion'
4141ENTRYPOINT ["/opt/jmeter/entrypoint.sh" ]
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ services:
1515 environment :
1616 - MINION_HOSTS=minion1,minion2,minion3
1717 - JMETER_FLAGS=-X
18+ ports :
19+ - " 4445:4445/udp"
1820 minion1 :
1921 image : smithmicro/jmeter:latest
2022 minion2 :
Original file line number Diff line number Diff line change @@ -21,13 +21,16 @@ if [ ${1##*.} = 'jmx' ]; then
2121 HOSTNAME=$PUBLIC_HOSTNAME
2222 echo " Using Gru AWS Public HOSTNAME $HOSTNAME "
2323 fi
24+ # empty the logs directory, or jmeter may fail
25+ rm -rf /logs/report /logs/* .log
2426 # run jmeter in client (gru) mode
2527 exec jmeter -n $JMETER_FLAGS \
2628 -R $MINION_HOSTS \
2729 -Dclient.rmi.localport=51000 \
2830 -Djava.rmi.server.hostname=${PUBLIC_HOSTNAME} \
2931 -l $RESULTS_LOG \
30- -t $1
32+ -t $1 \
33+ -e -o /logs/report
3134
3235fi
3336
Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ ssh -i $PEM_PATH/$KEY_NAME.pem -o UserKnownHostsFile=/dev/null -o StrictHostKeyC
222222 " docker run -p 1099:1099 -p 51000:51000 -v /tmp:/plans -v /logs:/logs --env MINION_HOSTS=$MINION_HOSTS smithmicro/jmeter:$JMETER_VERSION $JMX_IN_COMTAINER "
223223
224224echo " Copying JTL files from Gru"
225- scp -i $PEM_PATH /$KEY_NAME .pem -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ec2-user@${GRU_HOST} :/logs/* /logs
225+ scp -r - i $PEM_PATH /$KEY_NAME .pem -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ec2-user@${GRU_HOST} :/logs/* /logs
226226
227227# Step 9 - Stop all tesks
228228echo " Stopping tasks"
You can’t perform that action at this time.
0 commit comments