Spike testing injection

Hi Team,

My requirement is to inject 10k requests at once every 30 seconds , so that every 30 seconds interval 10 request should be hit at a time.

10k requests ----30 seconds-----10k requests-----30seconds------10k requests—…

  • 30seconds=do Nothing

PFA for spike image.

Thanks
Atul

Hi Atul,
You can use something like
atOnceUsers(10000),
doNothingFor(30)
in your load setup

Hi Team,

Kindly go through below mail trail and suggest me complete injection.

Thanks
Atul

Please read the documentation: https://gatling.io/docs/gatling/reference/current/general/simulation_setup/#open-model

Hi Team,

I am using below injection but it is able to hit only 5000 request/second at a time not 25000 . Is there any way to hit 25000 request at a time??

setUp(scn.inject(
(1 to 1).flatMap(i => Seq(atOnceUsers(25000), nothingFor(30000.milliseconds))))
).maxDuration(600.seconds).protocols(jmsConfig)

Hey!

You read a mean.But what is the distribution?
(can be really 5000req/s, but can be 25000request at once, then nothing for remaining time… we cannot know for sure)

What is your full scenario? If the user has big computation to do (or sleep) before the request…
What is your hardware? (cpu, ram…)

So many questions…

Cheers!