gatling-docker-test

所属分类:Docker
开发工具:HTML
文件大小:114871KB
下载次数:0
上传日期:2019-07-23 02:46:14
上 传 者sh-1993
说明:  加特林码头试验,,
(gatling-docker-test,,)

文件列表:
LICENSE (11357, 2019-07-23)
docker-compose-test.yml (492, 2019-07-23)
docker-compose.yml (1071, 2019-07-23)
docs (0, 2019-07-23)
docs\InfluxDB_config_on_grafana.png (441834, 2019-07-23)
docs\Sample_Graphic.png (446771, 2019-07-23)
gatling-maven-plugin-demo (0, 2019-07-23)
gatling-maven-plugin-demo\pom.xml (2114, 2019-07-23)
gatling-maven-plugin-demo\src (0, 2019-07-23)
gatling-maven-plugin-demo\src\test (0, 2019-07-23)
gatling-maven-plugin-demo\src\test\resources (0, 2019-07-23)
gatling-maven-plugin-demo\src\test\resources\gatling-akka.conf (207, 2019-07-23)
gatling-maven-plugin-demo\src\test\resources\gatling.conf (753, 2019-07-23)
gatling-maven-plugin-demo\src\test\resources\logback-test.xml (571, 2019-07-23)
gatling-maven-plugin-demo\src\test\scala (0, 2019-07-23)
gatling-maven-plugin-demo\src\test\scala\Engine.scala (386, 2019-07-23)
gatling-maven-plugin-demo\src\test\scala\IDEPathHelper.scala (732, 2019-07-23)
gatling-maven-plugin-demo\src\test\scala\Recorder.scala (438, 2019-07-23)
gatling-maven-plugin-demo\src\test\scala\computerdatabase (0, 2019-07-23)
gatling-maven-plugin-demo\src\test\scala\computerdatabase\BasicSimulation.scala (1879, 2019-07-23)
gatling (0, 2019-07-23)
gatling\2.3.0 (0, 2019-07-23)
gatling\2.3.0\Dockerfile (253, 2019-07-23)
gatling\2.3.0\gatling-2.3.0.tar.gz (58032631, 2019-07-23)
gatling\2.3.0\gatling.conf (534, 2019-07-23)
gatling\2.3.0\simulations (0, 2019-07-23)
gatling\2.3.0\simulations\sample (0, 2019-07-23)
gatling\2.3.0\simulations\sample\SampleService.scala (577, 2019-07-23)
gatling\bin (0, 2019-07-23)
gatling\bin\gatling.bat (3124, 2019-07-23)
gatling\bin\gatling.sh (2191, 2019-07-23)
gatling\bin\recorder.bat (2112, 2019-07-23)
gatling\bin\recorder.sh (1183, 2019-07-23)
gatling\conf (0, 2019-07-23)
gatling\conf\gatling.conf (752, 2019-07-23)
... ...

# gatling-docker Run [Gatling](http://gatling.io/) over [Docker](https://www.docker.com/) with [InfluxDB](https://www.influxdata.com/) and [Grafana](https://grafana.com/) 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: ``` 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 ``` After a few seconds access Grafana site at http://localhost:3000/dashboard/db/sample-service or replace the ip with the correct one. Default user and password are: `admin/admin` You should be presented with a screen that looks like this: ![graphic](docs/Sample_Graphic.png) ### 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](gatling/simulations/sample/SampleService.scala) It tests a service written in Node.js locate at [./sample-service/hello-http.js](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. Grafana is used to present this data in fancy graphics on real time. [./docker-compose.yml](docker-compose.yml) has a description on how to start and link all of this together.

近期下载者

相关文件


收藏者