Example 3 - Distributed Load Test Simulation
Explore how to run distributed load test simulations using Gatling by configuring multiple base URLs and executing tests across several client machines. Understand how to set up remote instances, automate script deployment, trigger simulations remotely, and aggregate reports to analyze scalability and performance accurately.
We'll cover the following...
Running the simulation against multiple hosts
In this simulation example, we will learn how to distribute the load equally against multiple target URLs or endpoints.
Gatling, out-of-the-box, provides this feature, assuming we have set an HTTP global configuration, which will be used by all the requests.
Consider the following simulation for a demonstration:
Most customer-facing URLs will have load balancers virtually behind them that distribute the load to the multiple instances of the application deployed on different hosts. This load balancing of requests to multiple hosts is what we will delegate to Gatling.
This simulation is no ...