What is the minimum CPU and memory requirement for load test 6000 request per sec.?

How to perform load test with 6000 per sec for my REST Api.?
What is the system and hardware requirement for this load test?

As with anything, depends on a number of factors.

Benchmark your test scripts and work it out based on your use case.

I have test the scenario of bellow code. I am getting Connection Refused Error. I am using the Intel Xeon CPU @ 2.7GHz(2 processor) with 8gb ram.

How can i model the scenario to test the 5k request per sec. The error comes due to my hardware issue or else what is the exact problem ?


package LoadTesting

import java.util.concurrent.TimeUnit

import akka.util.Timeout
import io.gatling.core.Predef._
import io.gatling.core.structure.ScenarioBuilder
import io.gatling.http.Predef._
import io.gatling.http.protocol.HttpProtocolBuilder

import scala.concurrent.duration._
import scala.language.postfixOps

class LoadTest extends Simulation{
// implicit timeout for the request
val timeoutSec: Int = 10000
implicit val timeout: Timeout = Timeout(timeoutSec, TimeUnit.SECONDS)

// URL details for the request
val baseUrl: String = “http://localhost:8000
val postUrl: String = “/ingestion”
val bodyMsg = “SampleText”
// Output status code
val statusCodeOK = 200

val httpProtocol: HttpProtocolBuilder = http

val ingestionScn: ScenarioBuilder = scenario(“Service”)
.check(status is statusCodeOK))

nothingFor(2 seconds),
rampUsersPerSec(10) to 1000 during(10 seconds)