- use Docker Compose to run all at once
- use InfluxDB + Grafana to collect metrics from Gatling
- use dc scale gatling=N to make more load for app
- added support of Vagrant
In order to run fake service execute from project root directory:
./gradlew :patient-service:runShadow
In order to create a deployable jar file:
./gradlew :patient-service:shadowJar
- Run all required parts
./gradlew :patient-service:runShadow
dc up -d grafana
- Add datasource for InfluxDB
curl -u admin:admin -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{
"name":"gatling",
"type":"influxdb",
"url":"http://192.168.176.128:8086",
"access":"proxy",
"password": "admin",
"user": "admin",
"database": "gatling",
"basicAuth": false,
"basicAuthUser": "",
"basicAuthPassword": "",
"isDefault": false,
"jsonData": null
}' 'http://192.168.176.128/api/datasources'
* Open browser to check results
- Login http://192.168.176.128/login ```admin/admin```
- Dashboard http://192.168.176.128/dashboard/script/perfdash.js
* Make a load
```sh
dc scale gatling=5