Load balancing methods

Knowledge Base

Load balancing methods


Icons/System/eye-open Created with Sketch. 64 Views 24.10.2025 Cloud / OVHcloud Load Balancer

Objective

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

This guide introduces the various load balancing methods and explains how to modify them.

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 the Load Balancer Introduction guide.

AlgorithmFeatures
FirstDirects the connection to the first available server based on its ID (smallest to largest).
LeastConnSelects the server with the lowest number of active connections. This is recommended for long-duration sessions with light traffic. The RoundRobin algorithm is used for tie-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 farm’s load balancing method via the OVHcloud Control Panel

  • In the Server farms section (1), locate the desired farm. You can edit it by clicking the three dots on the right-hand side (2), then on Change.

Modify a farm

In Advanced settings, modify the Load balancing method.

Modify a farm

Once your preferred method is selected, click Update, then click Apply configuration in the yellow banner that appears.

Apply configuration

Modify a server farm’s load balancing method via the OVHcloud API

The load balancing method is changed by updating the corresponding field within the server farm configuration.

View details on a server farm

Use this api call to view the details of a server farm given its ID. In this example, we work with an HTTP farm:

SettingMeaning
serviceName*Your Load Balancer service ID
farmId*The farm’s ID number
Response (BackendHttp)Meaning
farmIdThe farm’s ID number
balanceThe load balancing algorithm currently set for the farm
zoneName of the zone in which the farm is configured
portPort used to contact the servers configured on the farm
probeType of probe currently configured on the farm
displayNameName given to this farm
stickinessConnection monitoring method currently set for the farm

Modify a server farm’s load balancing method

Use this api call to edit the settings of a server farm given its ID. In this example, we work with an HTTP farm. To modify the balancing method, update the BackendHttp.balance field with an available algorithm:

SettingMeaning
serviceName*Your Load Balancer service ID
farmId*The farm’s ID number
BackendHttp.balancePreferred balancing method for this farm

Apply the modifications

SettingMeaning
serviceName*Your Load Balancer service ID
zone*Name of the zone in which to deploy the configuration

Go further

Join our community of users.

Related articles