I want to do performance test for below scenario: 100 users/seconds for 10mins with a peak of 500users/seconds for every 30seconds
I am using throttling to achieve this
scn.inject(constantUserPersecond(100) during (10 minutes))
.throttle(reachRps(500) in (30 seconds),
holdFor(1 sec)
)
I am not getting the expected output. As per my understanding, I should get 20 peaks in a graph per 30seconds. Am I correct or is there any other way to achieve this?
Please help, I am new to gatling
resolved it by following
SetUp(scn.inject(constantUserPersecond (100) during(600 seconds)), scn2.inject(nothingFor(10 seconds), splitUsers(500*20)) into atOnceUserd(500) separatedBy(30 seconds)))
Requirement was: 100users/sec for 10mins With a peak of 500users/30seconds