Setup request per second

Hi, saw some old topic here related to request per second setup
I can’t make gatling run desired RPS for some duration.
Here is my setup:

setUp(scn.inject(atOnceUsers(10000))).throttle(
reachRps(1000) in (10 seconds),
holdFor(3 minutes),
jumpToRps(5000),
holdFor(10 minutes)
).protocols(httpConf).maxDuration(10 minutes)

Gatling runs 10000 requests and stops.
I want it to run for minutes trying to reach desired RPS. What do I do wrong?

Your scn does one request and then quits. You then start, all at the same time, 10,000 of them. Thus, it does 10,000 requests and then exits. To get it to run continuously, you need to use a different injector, or use a loop inside your scenario. I encourage you to change your injector.