Learn how to configure and utilize multiple zones to achieve enhanced performance and resilience.
The OVHcloud Load Balancer is a critical component for distributing network traffic across your infrastructure. To ensure the highest level of service and optimal user experience, it is essential to deploy your Load Balancer across multiple availability zones (AZ). When subscribing to an OVHcloud Load Balancer service, you may choose one or more availability zones in which the service will be located. You can also order additional zones for an existing service.
Configuring your OVHcloud Load Balancer in multiple availability zones will help you increase the reliability of your Load Balancer service in case a zone is unavailable, or minimize latency for your users by directing the traffic to the service nearest to them.
Due to technical restrictions, when configuring an OVHcloud Load Balancer with two zones, if one is located in an APAC region and the other is not, traffic will be preferentially routed through the non-APAC zone first, even when the Load Balancer service is unavailable in that zone.
This behavior is specific to cross-continent setups involving APAC zones. Therefore, we do not recommend configuring your Load Balancer in this manner.
You may find a list of OVHcloud regions on our website.
Requirements
- An OVHcloud Load Balancer service
- Access to the OVHcloud Control Panel
Introduction to availability zones
Multi-region configuration
Load balancing across multiple regions offers maximum disaster recovery against widespread regional outages and allows for worldwide entry points that significantly reduce latency by routing users to the nearest server. Most regions only have one availability zone, which means that working with several zones usually involves working with several regions.
By leveraging an Anycast network, the OVHcloud Load Balancer can redirect requests coming from a specific region to the geographically nearest backend servers.
To achieve this, you need to specify a frontend in each zone that uses a cluster in the same zone. This will allow you to declare backend servers in different clusters per zone and to control which backend servers are used in which zone.
Diagram representing a load balancer distributing traffic across two regions
For example, if you have backend servers in the Vint Hill (VIN) and Hillsboro (HIL) regions, you can order a Load Balancer service in the VIN and HIL zones and configure:
- A frontend in the VIN zone with a default cluster in the VIN zone, which contains servers in the Vint Hill datacenter.
- A frontend in the HIL zone with a default cluster in the HIL zone that contains servers in the Hillsboro datacenter.
Instructions
Add a zone
From the OVHcloud Control Panel
You can order an additional zone from the OVHcloud Control Panel. In the Network section, under Network services, click on Load Balancer.
Select your Load Balancer, then in the Home tab and the Configuration panel, next to Availability zones, click the more options ... and select Add.
Then select the zone(s) you wish to order and click Add.
From here, you will be redirected to our website to pay for your order.
From the API
-
To order a zone via the API, you must first create a cart:
-
Please note the cart number ("cart"), which will be needed later in the process. Then assign the cart to your customer account:
-
You can list the options available on your Load Balancer service:
-
When you have found the option corresponding to the desired area, you can add it to your shopping cart ("cart") using the following call:
-
Validate your cart ("cart"):
-
Pay for the order you just generated:
Configure your frontend
Once your zone order is finalized, you can add it to your Load Balancer from the OVHcloud Control Panel.
Select the Load Balancer you wish to modify, then create a new frontend, or edit an existing one, via the Frontends tab.
In the Datacenter field, choose the zone you wish to associate with your frontend.
If you want to use multiple zones, you can choose the special ALL zone. This special zone will allow you to deploy the same configuration on all zones subscribed to your Load Balancer service, which spares you from having to duplicate the configuration for all zones.
Once the frontend is configured, click Add or Modify depending on whether you are configuring a new frontend or an existing one.
Don't forget to deploy the configuration. To do this, click Apply configuration in the reminder banner stating that the configuration is not applied.
Go further
For more information and tutorials, please see our other OVHcloud Load Balancer guides or explore the guides for other OVHcloud products and services.