Versions Compared

Key

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

Table of Contents

Introduction 

OpenStack Octavia service enables the deployment of load balancing solutions in OpenStack projects.  We refer to Octavia's official documentation for a full description of Octavia features.

...

In this guide, we exemplify the procedure based on the OpenStack CLI and the OpenStack Octavia plugin 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.  

...

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:

...

Code Block
sudo apt-get update 
sudo apt-get install -y nginx && \
    echo "Hello! This is $(hostname)" > /var/www/html/index.html

Procedure

1. Request to be enabled to the service

...