How to control the request volume by Ramp-up and Throttling

The number of requests the framework is to make, can be limited with @Throttle annotation on entity classes. The @RampUp annotation is used to control the request volume while load testing starts.

Ramp up requires three attributes, start RPS, that is the request-per-second at start, and a target RPS and the duration, in which the ramp up is applied:

@Simulation(name = "Reactive Test", durationInMins = 5)
@Runner(clazz = ReactiveHttpSimulationRunner.class)
@UserRepository(factory = OAuthUserRepositoryFactory.class)
@RampUp(startRps = 10, targetRps = 2000, duration = 1)
public class RhinoEntity {
}

and the throttling is similar to ramp-up setup:

@Simulation(name = "Reactive Test", durationInMins = 5)
@Runner(clazz = ReactiveHttpSimulationRunner.class)
@UserRepository(factory = OAuthUserRepositoryFactory.class)
@Throttle(numberOfRequests = 1000, durationInMins = 1)
public class RhinoEntity {
}

at this time, the number of request, that the framework is to make, is limited by numberOfRequests value till the durationInMins expires.