Random load balancing is one of the simplest strategies: each incoming request is directed to a randomly chosen target. While it doesn’t account for load or performance differences among backends, it can be surprisingly effective in distributing traffic in environments where the backends have similar capabilities or where simplicity is paramount.
Example: Creating an Upstream with Random Load Balancing
Below is an example of how to create an Upstream using the random algorithm. The configuration includes two targets, each connecting to different services.