Name: nuxeo-gatling-sample
Owner: Nuxeo
Description: Sample to create a Gatling Simulation on Nuxeo
Created: 2016-04-25 10:09:00.0
Updated: 2016-04-25 10:09:01.0
Pushed: 2016-04-22 10:04:06.0
Homepage: null
Size: 14
Language: Scala
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
src/test/resources/data/admins.csv
src/test/resources/data/users.csv
.
Default file contains 100 users.nuxeo.conf
: nuxeo.*.max-pool-size
This simulation initializes the environment and needs to be run first, it is idempotent.
Simulates document creation in the bench workspace.
This simulation removes all documents, users and group from the Nuxeo instance.
Sets up a Nuxeo instance with the required packages and configuration, runs all the simulations and stops the Nuxeo instance.
mvn -nsu verify -Pbench
You can add the following profiles:
pgsql
: use a PostgreSQL database as a backend for Nuxeomonitor
: record metrics to GraphiteDefault options: see below.
mvn -nsu gatling:execute -Dgatling.simulationClass
...
Choose a simulation number:
[0] org.nuxeo.gatling.sample.Sim00Setup
[1] org.nuxeo.gatling.sample.Sim10CreateDocuments
[2] org.nuxeo.gatling.sample.Sim20Cleanup
Common options with default values:
# Nuxeo target URL
-Durl=http://localhost:8080/nuxeo
# Duration in seconds of the simulation
-Dduration=60
# Sleep time in seconds between document creations
-Dpause=1
# Number of concurrent users
-Dusers=10
# Time in seconds to reach the target number of concurrent users
-Dramp=5
Note that you may need to edit the administrator account if it is not the default one:
src/test/resources/data/admins.csv
You can also bypass the interactive mode and execute a given simulation:
mvn -nsu gatling:execute -Dgatling.simulationClass=org.nuxeo.gatling.sample.Sim00Setup