Versions Compared

Key

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

Due to the a current malfunctioning of OpenStack Horizon, it is not possible to create load balancers  through the ADA Cloud Dashboard.

We provide users with an alternative procedure based on the Openstack CLI and OpenStack Octavia plugin. We refer to Octavia documentation:  Basic Load Balancing Cookbook

Environment requirements

You will need the Openstack OpenStack Client and the Octavia plugin.  

Code Block
pip install python-octaviaclient

How to deploy a basic HTTP load balancer

...

with an associated floating-IP

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. This configuration will help distribute incoming traffic across the two servers. In this use case, we will create a ...

Prerequisites 

Before creating a load balancer, ensure that the following resources are

...

available in your tenant:

  • 1 network.
  • 1 router.
  • Desired security groups for the VMs. 
  • 2 instances
  • At least 3 floating IP: two associated to the VMs and an additional one available for the load balancer and the other two associated to the VMs.

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>

(Note: Wait until creation is completed. It will take a while and the next steps will return an error if the load balancer is not available. 

...