Networking & infra - Quick anwers

How to create and configure a load balancer

Prerequisites:

Before starting this tutorial, make sure you have 2 (or more) instances running that you want to load balance.

Step 1 - Creating the load balancer pool.

First, go to dashboard.fuga.io and go to Network – Load Balancers.

Make sure the tab 'pools' is selected. You should see something similar to the following screen:

OpenStack loadbalancing

Click on Add pool and fill out the following screen:

Create and configure a load balancer

The fields are as follows:

After setting all the fields to your desired values, press the Add button. The load balancing pool will now be created.

Step 2: Add members to the load balancer.

After creating the load balancer, go to the Members tab. You should see a screen similar to this one:

Load balancer members

Click on the Add Member button and fill out the following screen:

Load balancer add member

The fields are as follows:

After setting all the fields to your desired values, press the Add button. The members will now be added to the pool.

Step 3: Creating a monitor.

Most likely you'll want the load balancers to automatically disable nodes that are having problems. To do this, we'll create a new monitor.

Start by going to the Monitors tab. You should get a screen like this:

Load balancer monitors

Click on the Add monitor button and fill out the following screen:

Load balancer add monitor

The fields are as follows:

After setting all the fields to your desired values, press the Add button. The monitor will now be created.

Next, we'll need to associate the monitor. Go back to the 'Pools' tab and press the
downward arrow next to 'Edit Pool'.

Next, click on the 'Associate monitor' button. You'll get a screen like this:

Load balancer associate monitor

Step 4: Creating a VIP.

To be able to use the actual load balancer, you'll need to create a VIP. A VIP is
a Virtual IP Address.

To do this, go back to the pools tab and click the downward arrow next to 'Edit Pool' and click the 'Add VIP' button:

Add VIP

You'll now see a screen where you can configure the new VIP:

Specify VIP

The fields are as follows:

Step 5: Adding a Floating IP address.

This step is optional and only needed if you want the load balancer to be accessible externally. If you are making a load balancer for database connectivity you probably don't want to do this.

If you are making a load balancer for web a web frontend though, you'll want to allocate a floating IP address.

To assign a floating IP address, go back to the pools tab and click the downward arrow next to 'Edit Pool' and click on the 'Associate Floating IP' button.

You'll see a screen where you can select an available floating IP. If you don't have a floating IP left, you can request one by pressing the + button next to the IP Address field.

Load balancer manage Floating IP

After entering the required data, press the ‘Associate’ Button. The Floating IP Address will now be assigned to the new load balancing pool.

Was this article helpful?


Go to the next tutorial in Networking & infra

OpenStack storage types

Introduction There are different types of storage in OpenStack: ephemeral storage and persistent volumes. It’s important you understand the difference so you can best determine which type to use. This guide explains the differences between the two. It also describes two varieties of persistent storage you can use. Ephemeral Storage This type of storage is associated with a single unique instance. It exists only as long as the instance itself. It’s generally used for the root file system and operating system of the instance.
Fuga OpenStack

Code.Build.Deploy

Terms of use