Hi,
I have started using gatling recently & seen this behaviour. To start with my application can scale upto 4000 tps which i have tested seperately using jmeter.
With gatling when i use 300 users, it translates to 300 RPS. When 400 users is used, translates to 400 rps and so on. Does it mean 1 user can return back only 1 rps? Would that mean i would need 4000 users to generate 4000rps?
Even with sync threads( of jmeter) 1 user was able to do close to 5 rps because my application takes about 200ms for 1 request.
Can you let me know what am i doing wrong here? I expect 300 users to translate to atleast 300*5( even if sync requests)
thank you,
santosh
package test
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import scala.concurrent.duration._
class Delay_1sec extends Simulation {
val httpConf = http
.baseURL(“http://server:port”)
val scn = scenario(“ScenarioName”)
.exec(http(“request_1”) // 8
.post("/test-stub-restful/throttling-default/resources/employees/post_sizing?size=1&delay=1000")
.body(StringBody("""{ “myContent”: “my content” }""")).asJSON
.header(“Content-Type”, “application/json”)
)
setUp(
scn.inject(constantUsersPerSec(300) during(900 seconds))
.throttle(
reachRps(4000) in (120 seconds),holdFor(900 seconds)
).protocols(httpConf)
/*
setUp(
scn.inject(
rampUsersPerSec(1) to (300) during(90 seconds),
constantUsersPerSec(300) during(900 seconds)
)
.throttle(
reachRps(4000) in (120 seconds),
holdFor(900 seconds)
)
).protocols(httpConf)
*/
}