Gatling Request Per Second and Timeout Threshold

I am working on a Gatling simulation. For my life, I cannot get my code to reach 10,000 requests per second. I read the documentation and I continue to communicate with different methods, and the fact that my requests per second seem to be closed at 5000 requests per second. I attached my current iteration of my code. URL information and path are blurred. Suppose I have no problem with the HTTP part of my simulation.

package computerdatabase

import io.gatling.core.Predef._
import io.gatling.http.Predef._
import scala.concurrent.duration._
//import assertions._

class userSimulation extends Simulation {

  object Query {
    val feeder = csv("firstfileSHUF.txt").random
    val query = repeat(2000) {
                feed(feeder).
                exec(http("user")
                .get("/path/path/" + "${userID}" + "?fullData=true"))
    }
  }

  val baseUrl = "http:URL:7777"

  val httpConf = http
    .baseURL(baseUrl) // Here is the root for all relative URLs

  val scn = scenario("user") // A scenario is a chain of requests and pauses
    .exec(Query.query)

   setUp(scn.inject(rampUsers(1500) over (60 seconds)))
        .throttle(reachRps(10000) in (2 minute),
                  holdFor(3 minutes))
        .protocols(httpConf)

}

In addition, I would like to set a maximum threshold for a timeout of 100 ms. I tried to do this with statements, as well as edit the configuration files, but it never appears during tests or in my reports. How can I ask a request in KO if the request took more than 100 ms? Thank you for your help in this matter!

+4
1

. , , , Gatling. RPS. , . . , 100 . , requestTimeout = 100 , .

+2

All Articles