nuxeo/nuxeo-gatling-sample

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Nuxeo Gatling Sample

Requirements
Simulations
Setup Simulation

This simulation initializes the environment and needs to be run first, it is idempotent.

Create Documents Simulation

Simulates document creation in the bench workspace.

Cleanup Simulation

This simulation removes all documents, users and group from the Nuxeo instance.

Launching Simulations
All in One

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:

Default options: see below.

Running a Single Simulation on an Running Nuxeo Instance
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
Licensing

Apache License, Version 2.0 (the “License”)


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.