For AI agents: the complete documentation index is available at https://docs.us.ovhcloud.com/en/llms.txt, the full documentation bundle is available at https://docs.us.ovhcloud.com/en/llms-full.txt, and this page is available as Markdown at https://docs.us.ovhcloud.com/en/network/load-balancer/create-balancing.md.
  • English

Load balancing methods

View as Markdown

The OVHcloud Load Balancer service supports a variety of load balancing algorithms for your services. This setting determines how the OVHcloud Load Balancer distributes incoming client requests among the servers in a farm.

 

Requirements

 

Instructions

Available Load Balancing algorithms

The load balancing setting is applied at the server farm level and defines the method by which client requests are distributed among the servers within that farm.

For an overview of the OVHcloud Load Balancer service components, please refer to our Introduction to the OVHcloud Load Balancer guide.

AlgorithmFeatures
FirstDirects the connection to the first available server based on its ID (smallest to largest).
LeastConnSelects the server that has the lowest number of active connections. This setting is recommended for long-duration sessions with light traffic. The RoundRobin algorithm is used for tire-breaking among equally loaded servers.
RoundRobinDistributes connections sequentially, one after the other, for each new request. This is the default algorithm.
SourceUses a hash of the source IP address to consistently redirect the same client IP to the same server, provided the server remains operational.
URIUses a hash of part or all of the URI path to consistently redirect identical URIs to the same server, provided the server remains operational. (Applicable to HTTP/HTTPS farms only.)

 

Modify a server cluster’s load balancing method

Via OVHcloud Control Panel
Via API

Choose the Server clusters tab. Then click the more options ... button to the right of the cluster you wish to modify. From the drop-down menu, select Edit.

Server cluster more options

Scroll down to the Advanced settings area, where you can modify your Distribution mode.

Click Update to confirm your selection.

Server cluster advanced settings

When the Server clusters page reloads, click Apply configuration in the yellow banner.

On the next screen select ☑ your Datacenter and click Apply configuration again.

Apply configuration page

 

Go further

Browse all the Load Balancer guides.

Browse the rest of the OVHcloud US documentation for guides on our other products and services.

Learn more about Load Balancer on the OVHcloud US website.