Jmeter distribute test on taurus broken with long delay analysis and fail in the end

76 views
Skip to first unread message

fandya...@gmail.com

unread,
Jun 12, 2019, 11:45:14 AM6/12/19
to codename-taurus
Hi all, i want to try to make distribute test using taurus jmeter. But it always fail at the end with long delay on the report graph. Here the fail message:

Screen Shot 2019-06-12 at 22.17.20.png







Here the report graph, for the almost 2 minutes, the graph only move 3 times.
Screen Shot 2019-06-12 at 22.22.36.png













Here is my script, simple test to google.com


execution
:
- concurrency: 60
 ramp
-up: 1m

 hold
-for: 1m
 scenario
: google-search
 distributed
:
 
- slave
 
- slave_2
scenarios
:
 google
-search:
 requests
:
 
- url: http://google.com
settings
:
 artifacts
-dir: /artifacts/%Y-%m-%d_%H-%M-%S
modules
:
 jmeter
:
 path
: ~/.bzt/jmeter-taurus/5.1.1/bin/jmeter




For distribute test i am using docker, 1 container as master and 2 container as slave. The master will do remote to the 2 slave. Here the docker-compose file:

version: '3'
services
:
 master
:
  build
:
   context
: .
   dockerfile
: ./Dockerfile
  tty
: true
  volumes
:
 
- ./:/root/distributed-test
  working_dir
: /root/distributed-test

 slave
:
  build
:
   context
: .
   dockerfile
: ./DockerfileSlave
  tty
: true
  expose
:
 
- "1099"

 slave_2
:
  build
:
   context
: .
   dockerfile
: ./DockerfileSlave
  tty
: true
  expose
:
 
- "1099"


And here the Dockerfile for the image. Dockerfile is DockerfileSlave with extra installed bzt, the other all the same.


FROM ubuntu
:18.04
# Install java
RUN apt
-get update && \
 apt
-get update && \
 apt
-get -y install software-properties-common && \
 add
-apt-repository -y ppa:webupd8team/java && \
 echo debconf shared
/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
 echo debconf shared
/accepted-oracle-license-v1-1 seen true | debconf-set-selections && \
 apt
-get update && \
 apt
-get -y install default-jdk

# Jmeter Env
ENV JMETER_VERSION
5.1.1
ENV JMETER_HOME
/root/.bzt/jmeter-taurus/$JMETER_VERSION
ENV JMETER_WORK
/root/.bzt/jmeter-taurus/$JMETER_VERSION
ENV PATH $JMETER_HOME
/bin:$PATH

# Install Jmeter
RUN
\
 apt install wget
-y && \
 mkdir
-p $JMETER_HOME && \
 wget
-q -O /tmp/jmeter.tgz http://archive.apache.org/dist/jmeter/binaries/apache-jmeter-$JMETER_VERSION.tgz && \
 tar
-xzf /tmp/jmeter.tgz -C $JMETER_HOME --strip-components=1 && \
 rm
-f /tmp/jmeter.tgz

# Copy distribute-test-configured jmeter.properties to image
WORKDIR $JMETER_WORK
COPY jmeter
.properties bin/
COPY jmeter
-plugins-casutg-2.8.jar lib/
# Install taurus
RUN apt
-get install python-pip -y && \
 pip install bzt
CMD
["bash"]

For the jmeter setting to distribute testing configuration i refer to this:

Is there any configuration that i miss, please let me know if i need to add something.

Regards,
Fandy

Alla Levental

unread,
Jun 13, 2019, 7:05:29 AM6/13/19
to codename-taurus
Hello Fandy,

I believe you may have omitted some necessary files, that can be crusial in solving you problem. Furthermore, you may have some files or directories on you PC (outside of your Docker container), that make your code work. Likely the problem lies not within Taurus, but Docker and your Dockerfile.

BR,
Alla

fandya...@gmail.com

unread,
Jun 14, 2019, 3:44:23 AM6/14/19
to codename-taurus
Hello Alla,

Thanks for the reply, after one day grinding to find the problem, i found that Taurus have no problem with that, but my internet connection is the main reason why the graph is so delay. 


Regards,
Fandy
Reply all
Reply to author
Forward
0 new messages