/firehose

Project for generating random data for graphing

Primary LanguageJavaScript

firehose

Project for generating random data for graphing

To get started

  1. download this repo to your docker host
  2. launch your docker container for NGINX
    • example:
      • docker run --name nginx -p 80:80 -v /etc/docker/configs/firehose/nginx/nginx.conf:/etc/nginx/nginx.conf:ro -v /etc/docker/configs/firehose/nginx/nginx.js:/etc/nginx/nginx.js:ro -d nginx
  3. Launching WRK or WRK 2

Docker build then launch:

Webserver:

docker build --tag firehose-webserver -f Dockerfile-webserver . docker run --detach --publish=8881:80 --name=firehose-webserver firehose-webserver:latest

Load client:

docker build --tag firehose-wrk -f Dockerfile-wrk .

with randomness:

docker run --rm --net=host --name=client-random firehose-wrk:latest -s /wrk/data/loadGen.lua -t${threads} -c${connections} -d${duration} -R2000 ${target_fqdn}

without randomness:

docker run --rm --net=host --name=client-load firehose-wrk:latest -t${threads} -c${connections} -d${duration} -R2000 ${target_fqdn}