GithubHelp home page GithubHelp logo

docker-locust's Introduction

docker-locust

Docker base image for locust master/slave/standalone.

How to use

This is a base image of locust. So you have to build your own docker image from this image like this.

FROM hakobera/locust

ADD ./test /test
ENV SCENARIO_FILE /test/locustfile.py

Then build it and run.

$ docker build -t locust-test .

standalone

$ docker run -e LOCUST_MODE=standalone -e TARGET_URL=http://127.0.0.1 locust-test

distribution

master

$ docker run \
  -e LOCUST_MODE=master \
  -e TARGET_URL=http://<your-target-server> \
  locust-test

slave

$ docker run \
  -e LOCUST_MODE=slave \
  -e MASTER_HOST=http://<master-server-ip> \
  -e TARGET_URL=https://<your-target-server> \
  locust-test

docker-locust's People

Contributors

hakobera avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docker-locust's Issues

web 8089

I have started master likes below, but I can't access 8089 yet.

[root@localhost ~]# docker run -e LOCUST_MODE=master -e TARGET_URL=http://10.16.16.17 locust-test
INFO[0131] POST /v1.19/containers/create
INFO[0132] POST /v1.19/containers/35628c7618218236c92d1a35b1e24d6f4509a87ebed178950cddef00cc150a65/attach?stderr=1&stdout=1&stream=1
INFO[0132] POST /v1.19/containers/35628c7618218236c92d1a35b1e24d6f4509a87ebed178950cddef00cc150a65/start
2016/01/19 06:51:33 http: multiple response.WriteHeader calls
Usage of loopback devices is strongly discouraged for production use. Either use --storage-opt dm.thinpooldev or use --storage-opt dm.no_warn_on_loop_devices=true to suppress this warning.
=> Starting locust
/usr/local/bin/locust -f /test/main.py --host=http://10.16.16.17 --master
[2016-01-19 11:51:33,774] 35628c761821/INFO/locust.main: Starting web monitor at *:8089
[2016-01-19 11:51:33,776] 35628c761821/INFO/locust.main: Starting Locust 0.7.2

Run Locust WebUI inside container.

Dear Hakobera,
Thank you for your sharing. Would you help me to start Locust WebUI inside the container cause I do not know the way to run WebUI to change the Hatch rate and Number of users stimulate.

Thank you for your help.

master mode does not work?

when I run the docker image with master mode,my other slave docker can not connect to master.But,if I run
locust master without your docker image,and I run docker image with slave mode,the slaves can connect to master and work well.I don't know why.

The image does not get build on my local machine.

I need to add two more environment variables to the container and hence I want the run.sh file to be updated and for that I am trying to build the image but the build fails with multiple errors on locustio install command

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.