You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by to...@apache.org on 2014/11/10 02:47:06 UTC

incubator-usergrid git commit: Small change to generate enough users to hit TPS

Repository: incubator-usergrid
Updated Branches:
  refs/heads/toddtest ac0913072 -> e3911549b


Small change to generate enough users to hit TPS


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

Branch: refs/heads/toddtest
Commit: e3911549b3009244ad6f267c961695d3475f9e76
Parents: ac09130
Author: Todd Nine <tn...@apigee.com>
Authored: Sun Nov 9 18:46:54 2014 -0700
Committer: Todd Nine <tn...@apigee.com>
Committed: Sun Nov 9 18:46:54 2014 -0700

----------------------------------------------------------------------
 .../usergrid/simulations/UserCreateGetSimulation.scala  | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/e3911549/stack/loadtests/src/main/scala/org/apache/usergrid/simulations/UserCreateGetSimulation.scala
----------------------------------------------------------------------
diff --git a/stack/loadtests/src/main/scala/org/apache/usergrid/simulations/UserCreateGetSimulation.scala b/stack/loadtests/src/main/scala/org/apache/usergrid/simulations/UserCreateGetSimulation.scala
index 4506328..e9b28f1 100644
--- a/stack/loadtests/src/main/scala/org/apache/usergrid/simulations/UserCreateGetSimulation.scala
+++ b/stack/loadtests/src/main/scala/org/apache/usergrid/simulations/UserCreateGetSimulation.scala
@@ -42,19 +42,19 @@ class UserCreateGetSimulation extends Simulation {
 
     //get our management token, then feed forever
 //      .exec(TokenScenarios.getManagementToken)
-      .feed(userFeeder)
+    .feed(userFeeder)
       //create the user
       .exec(UserScenarios.postUser)
       .exec( UserScenarios.getUserByUsername)
 
   setUp(
-    createScenario
+    createScenario.inject(constantUsersPerSec(1000000) during (60))
       //inject all our users over the ramp time
-      .inject(constantUsersPerSec(Settings.maxPossibleUsers) during (Settings.rampTime))
+//      .inject(constantUsersPerSec(Settings.maxPossibleUsers) during (Settings.duration))
       //ramp up to our max possible users over the ramp time.  We may not get there if we hit our max tps first
 //      .inject(rampUsers(Settings.maxPossibleUsers) over  (Settings.rampTime))
       //during the ramp time, try to hit our max TPS.  Then hold it for the duration of the test
-      .throttle(reachRps(Settings.throttle) in (Settings.rampTime.seconds), holdFor(Settings.duration))
-      .protocols(Settings.httpConf.acceptHeader("application/json"))
-  )
+
+
+  ).throttle(reachRps(Settings.throttle) in (Settings.rampTime.seconds), holdFor(Settings.duration)).maxDuration(120) .protocols(Settings.httpConf.acceptHeader("application/json"))
 }