Skip to content

Run Gatling over Docker with InfluxDB and Grafana

License

Notifications You must be signed in to change notification settings

Taso69/gatling-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gatling-docker

Run Gatling over Docker with InfluxDB No pre-configuration is necessary. As soon as you run the cluster, you will end up a configured benchmark environment.

pre-reqs

To run this demo you need:

  • docker
  • docker-compose

How to run

From root directory execute the following:

bash gatling/3.6.1/build.sh
docker-compose up -d

Or, in order to see the distributed effect of the gatling tester, you can scale your tester node as follow:

docker-compose up --scale gatling-runner=4 -d

How to stop

Destroy the whole stack: docker-compose down Stop and erase all containers and volumes: docker-compose down -v

Mess around

The Gatling script being run is located at ./gatling/simulations/sample/SampleService.scala

It tests a service written in Node.js locate at ./sample-service/hello-http.js, very simple and responds with random errors so there is no need to stress to much the system to get a nice graph.

Data from Gatling is stored on InfluxDB using the graphite protocol.

./docker-compose.yml has a description on how to start and link all of this together.

About

Run Gatling over Docker with InfluxDB and Grafana

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 45.9%
  • JavaScript 27.9%
  • Shell 16.2%
  • Dockerfile 10.0%