Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Due to a current malfunctioning of OpenStack Horizon, it is not possible to create load balancers through the ADA Cloud Dashboard. The users can still deploy load balancing solutions using alternative procedures based on the OpenStack Command Line Interface (CLI) or infrastructure as code tools, such as Ansible,  Terraform, or OpenTofu.   

In this guide, we provide users with an alternative exemplify the procedure based on the OpenStack CLI and the OpenStack Octavia plugin following the with a simple use case: the deployment of a basic HTTP load balancer with an associated Floating-IP.  For further details and additional use cases, including step-by-step examples, refer to the Octavia Basic Load Balancing Cookbook. This resource provides comprehensive instructions on applying the same procedure to various scenarios. 

Load balancing

A load balancer functions as a traffic intermediary, directing network or application traffic to multiple server endpoints. It helps manage capacity during high traffic periods and enhances the reliability of applications. The main components of a load balancer are the following: 

...

A load balancer determines which server to send a request to based on a desired algorithms (e.g., Round Robin, Least Connections, Random). The choice among the load balancing algorithms depends on the requirements of the specific use case. 

How to deploy a basic HTTP load balancer with an associated Floating-IP

In this section, we will walk you through the steps to create a setup where two instances running nginx servers are connected to an HTTP load balancer. The load balancer will use the round-robin algorithm to evenly distribute incoming HTTP traffic across the two servers. 

Environment requirements

You will need the OpenStack Client and the Octavia plugin.  

Code Block
pip install python-octaviaclient

Follow the instructions provided in the AdaCloud User Guide on how to  setup your cloud environment and  the OpenStack CLI.

Prerequisites 

Before creating a load balancer, ensure that the following resources are available in your tenant:

...

If you need to create these resources, you can follow our user guides

Procedure

1. Create a Load Balancer

Code Block
openstack loadbalancer create --name <loadbalancer_name> --vip-subnet-id <subnet_id>

...