Throttle not working?

217 views
Skip to first unread message

Abhinav Gogna

unread,
Oct 27, 2014, 12:09:45 AM10/27/14
to gat...@googlegroups.com
So I have the following setup 

val scn = scenario("Users").exec(ProfilePage.page, AjaxCalls.calls)

  setUp(
    scn.inject(atOnceUsers(1))
      .throttle(reachRps(50) in (250 seconds), holdFor(50 minutes))
  ).protocols(httpProtocol)


But when I run the engine, I only get results for a single users (all OK) and simulation finishes in seconds.

Fwiw, I am using 2.0.1.

Stéphane Landelle

unread,
Oct 27, 2014, 12:59:43 AM10/27/14
to gat...@googlegroups.com
http://gatling.io/docs/2.0.1/general/simulation_setup.html?highlight=throttling#throttling

"Throttling tries to ensure a targeted throughput with the given scenarios and their injection profiles, it’s a bottleneck."

You're not injecting enough load.


--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Abhinav Gogna

unread,
Oct 27, 2014, 2:17:17 AM10/27/14
to gat...@googlegroups.com
So I changed my setup to the following

setUp(
    scn.inject(rampUsers(50) over (250 seconds))
      .throttle(reachRps(50) in (250 seconds), holdFor(50 minutes))
  ).protocols(httpProtocol)

Still the simulation finished in 4-5 minutes. For some reason holdFor didn't work or I am doing something wrong.
Reply all
Reply to author
Forward
0 new messages