Distribute Requests Against Set Probabilities

Hi!

I’m trying to make random requests to my API based on the relative throughput of each endpoint, as follows: if Endpoint A gets 40% of the total throughput, and Endpoint B gets 60% of the total throughput, I want my simulation to send requests to Endpoint A with probability 4/10 and Endpoint B with probability 6/10. I’m new to Gatling but have been through much of the documentation, both tutorials, and have built several simple simulations, but I’m wondering if this is a common usage for Gatling, and, if so, if there is an elegant way to implement it.

Any advice would be much appreciated.

Thanks!
-Mitch

but have been through much of the documentation

Still, you've missed randomSwitch :slight_smile:

*Stéphane Landelle*
*GatlingCorp CEO*
slandelle@gatling.io