usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From toddn...@apache.org
Subject [53/58] [abbrv] git commit: README for load tests
Date Tue, 21 Oct 2014 17:40:53 GMT
README for load tests


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/215186cc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/215186cc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/215186cc

Branch: refs/heads/loadtest
Commit: 215186ccae930764c4d4546c61d0d5755144db98
Parents: 3b23880
Author: amuramoto <amuramoto@apigee.com>
Authored: Wed Oct 1 12:29:14 2014 -0700
Committer: amuramoto <amuramoto@apigee.com>
Committed: Wed Oct 1 12:29:14 2014 -0700

----------------------------------------------------------------------
 stack/loadtests/README.md | 49 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/215186cc/stack/loadtests/README.md
----------------------------------------------------------------------
diff --git a/stack/loadtests/README.md b/stack/loadtests/README.md
new file mode 100644
index 0000000..da2763b
--- /dev/null
+++ b/stack/loadtests/README.md
@@ -0,0 +1,49 @@
+To make it easy for you to load test your instance of Usergrid, we have bundledin the Gatling
load test tool, along with some pre-built tests of different functionality. To get started
do the following:
+
+### Setting up Gatling
+1. Unzip loadtest.zip
+2. cd to the 'gatling' dir
+3. Run 'sh loadtest_setup.sh'. This will do the following:
+	- Add some handy options to gatling/bin/gatling.sh that will allow you to set certain test
parameters using environment variables (more on this later)
+	- Run the PostUsersSimulation, which will load 5k users with geolocation data into a specified
UG org/app. This is just to seed some data entities to make it easier to run some of the tests.
+4. Set the following environment variables:
+- GATLING_BASE_URL - Required. UG base url, e.g. http://api.usergrid.com/.
+- GATLING_ORG      - Required. UG organization name.
+- GATLING_APP      - Required. UG application name.
+
+- GATLING_NUMUSERS - Number of users in the simulation. Default is 100.
+- GATLING_DURATION - Duration of the simulation. Default is 300.
+- GATLING_RAMPTIME - Time period to inject the users over. Default is 0.
+- GATLING_THROTTLE - Requests per second the simulation to try to reach. Default is 50.
+
+- GATLING_NOTIFIER - Name of the notifier to use for PushNotificationSimulation.
+- GATLING_PROVIDER - Push notification provider that corresponds to the notifier, e.g. apple,
google, etc.
+
+### Running load tests
+To run Gatling, do the following:
+1. Run 'gatling/bin/gatling.sh'
+2. Enter the number of the test you want to run from the list (see below for an explanation
of each test)
+3. Optional. Set a identifier for the results of this run of the simulation
+4. Optional. Set a description for this run of the simulation
+
+### Viewing results
+Results of the test are output to the gatling/results. The output directory is shown once
the test has successfully run. The location of the generated report is also shown.
+
+### Default tests
+The following default tests are available. Not that the GATLING_BASE_URL, GATLING_ORG, and
GATLING_APP environment variables must be set before any tests can be run. Each test also
requires certain additional env variables to be set.
+
+- PostUsersSimulation
+
+POSTs 5k entities with geolocation data to /users. Entities are named sequentially, i.e.
user1, user2, etc.
+
+- GetEntitySimulation
+
+Performs simple GETs on the /users collection. You should run PostUsersSimulation or loadtest_Setup.sh
first to load data into the collection.
+
+- PostDevicesSimulation
+
+POSTs a user-specified number of entities in the /devices collection. This is useful if you
want to load test push notifications
+
+- PushNotificationSimulation
+
+Sends push notifications. To run this, you will need to do create a notifier, then set the
GATLING_NOTIFIER environment variable to equal the name or UUID of the notifier. You'll also
need to set GATLING_PROVIDER to match the provider in the notifier.
\ No newline at end of file


Mime
View raw message