Learn how to configure an OVHcloud Load Balancer with the help of this guide.
Our Public Cloud Load Balancer is based on OpenStack Octavia and is fully integrated into the Public Cloud universe.
Requirements
- a Public Cloud project in your OVHcloud account
- an understanding of Load Balancer concepts
- an understanding of Public Cloud Networking concepts
- a subnet (read this guide for more information)
- (Optional): This guide explains the load balancer configuration through a Graphical Interface & Command Line Interface. If you want to use the latter, prepare your OpenStack command line environment.
Instructions
Creating the Load Balancer
Open your Public Cloud project and click Load Balancer
(under Network) in the left menu, then click the Create your Load Balancer
button.
Discover the Public Cloud Load Balancer
, create a private network, and return to the Load Balancer
section.
Step 1: Select the size
The interface contains a link to the website on which the characteristics/benchmarks of all sizes are provided. Once you have chosen your size, click Next
.
Step 2: Select a region
Only regions on which you have a private network and at least one subnet can be selected. Select the region and click Next
.
Step 3: Attach a public IP (or not)
At this stage, you need to know if your Load Balancer will be receiving public traffic or not (for more details, read our Public Cloud Networking concepts page).
If your Load Balancer is processing public traffic, you have two options:
-
New Public IP
: this option will create a new Floating IP for your Load Balancer. - If you already have a Floating IP, the interface will offer you to pick one.
If your Load Balancer is processing private traffic, choose No Public IP
.
When you have made your selection, click Next
.
Step 4: Select a private network
The interface will inform you if the private network/subnet is not compliant with the prerequisites (see Public Cloud Networking concepts).
Step 5 (optional): Define the listener(s) and the members
First, choose the listener protocol & the port according to the traffic you will receive. Note that a specific listener called Prometheus
is available to monitor your Load Balancer. In that case, it is not possible to add members. For more information on this listener, read this page.
Then, choose the Health Monitor type. Note that since some health monitor types are not compatible with some protocols, the user interface filters those types so that you can only choose compatible items. For more information on the health monitor compatibility, read this page.
Finally, from the instances of your region, choose the member IP & port that will be part of the pool. Note that to simplify the configuration workflow, it is only possible to have a pool with the same protocol as the listener, and that the member can only be chosen from the instance. Those limitations can be bypassed by skipping this part of the configuration and using the pool/member configuration once the Load Balancer is created.
Step 6: Finalize
You can update the name according to your choice and click on Create a Load Balancer
.
You will be redirected to the Load Balancer listing page. Among the attributes that are displayed, the Operating status
and Provisioning status
provide information on the state of your load balancer. Find more information on the Load Balancer concepts page.
Configuring your private network
Before creating a Load Balancer, you will need to set up a private network:
You can now attach your instances to the new network. We recommend following our guide to integrate an instance into vRack. List the addresses of your instances in your network with the following command:
In the next step, configure the network interfaces of your instances according to this output.
Creating the Load Balancer
You can view a list of the different Load Balancer flavors we offer with this command:
To find your subnet ID, use the following command:
You can now create your Load Balancer with the following command. In this example, we will create a "Small" Load Balancer.
Your Load Balancer will be configured with an IP address of the private network. If you want to have access from the internet, you will need to attach a Floating IP address.
Attaching a Floating IP address to a Load Balancer
This is how to attach a Floating IP address to a Load Balancer:
openstack loadbalancer show my_load_balancer
.
Configuring your Load Balancer
In this example, we will configure an HTTP Load Balancer. To listen on port 80 of the Load Balancer, create a Listener with this command:
Once the Listener has been created, you need to add each instance that can respond to external requests. To do this, you must create an Instance Pool:
Add your instances to the Instance Pool:
You can now access your Load Balancer via the Floating IP or private IP address from an instance in your private network.
Public IP
Currently, the Load Balancer details page in the OVHcloud Control Panel doesn't mention the Floating IP associated to a Load Balancer. Instructions for finding this information are in this guide.
View or add a health monitor
From the OVHcloud Control Panel:
- Select
Public Cloud
from the top navigation bar. - Click
Load Balancer
from the left-hand navigation menu. - Select your load balancer's
Name
.
On the following screen, choose the Pools
tab and select your Pool's Name
.
On the following screen, select the Health monitor
tab. From here you can edit or delete an existing health monitor. For more information about Health monitor, please see our Concepts - Load Balancer guide.
Access L7 policies
From the OVHcloud Control Panel:
- Select
Public Cloud
from the top navigation bar. - Click
Load Balancer
from the left-hand navigation menu. - Select your load balancer's
Name
.
On the following screen, choose the Listeners
tab. To the right of your listener, click the more options ...
button and select See L7 policies
.
On the following you can view, edit, delete, or create L7 policies. For more information about L7 policies, please see our Concepts - Load Balancer.
Go further
For further information about OpenStack Octavia, please see the official documentation of OpenStack Octavia or the Cookbook OpenStack Octavia resource.
For more information and tutorials, please see our other Public Cloud Networking support guides or explore the guides for other OVHcloud products and services.
If you need training or technical assistance to implement our solutions, contact your sales representative or click on this link to get a quote and ask our Professional Services experts for a custom analysis of your project.