Docker base image for locust master/slave/standalone.
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 .
$ docker run -e LOCUST_MODE=standalone -e TARGET_URL=http://127.0.0.1 locust-test
$ docker run \
-e LOCUST_MODE=master \
-e TARGET_URL=http://<your-target-server> \
locust-test
$ 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
Forkers
thachmai jimdelois addhewarman hannseman kjmkznr mirthy forsingh pszuster santiagocardin farshi hafizullah weiquzwq alexmnyc dknight1900 albertocsm njeudy thaiden sassembla lorenzo-biava snt aweeraman cvanvuren mambusskruj ulsa gogovan-vincentngai asusk7m550 teamproserve mahfuzsustdocker-locust's Issues
2 year old image
Can has new version?
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
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
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.
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.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.