Creating a Self-Service Load Balancing Configuration

Updated by Richard Seroter on Oct 26, 2021
Article Code: kb/913

Description

In order to build highly available web applications, Lumen Cloud customers can use a load balancer. While customers are free to set up a dedicated load balancer with the help of support, customers can also use a shared load balancer that is managed through the Control Portal. In this KB article, we walk through the shared load balancer and how to configure pools of servers.

Audience

  • Lumen Cloud customers (Application developers, system administrators).

Prerequisites

  • Must have Account Administrator permissions on the platform.

Detailed Steps

1. Log on to the Control Portal. Using the left side navigation bar, click Network > Load Balancer.

Navigate to Firewall

2. Select the appropriate Data Center.

3. Click the button labeled Create load balancer group. A "group" is comprised of a VIP (virtual IP) and a set of servers grouped by pools (i.e. access ports). Provide a friendly name and description for your new group and select Create.

4. After clicking the "create" button the pool configuration dialog box will appear. TIP:  The public VIP for this load balancer pool is present at the top next to the name you provided the configuration. Proceed to Configure your pools.

Choose the VIP port to load balancer for this pool. At this time, the choices are port 80 for standard HTTP traffic and port 443 for secure HTTP traffic.

Select a load balancing method. The choices include "round robin" or "least connection." For the round robin option, the load balancer cycles through a list of all the servers bound to it. It does not take into account server workload or latency and simply distributes traffic evenly across servers. The least connection option routes traffic to the server with the fewest active connections. An "active" connection is considered one where the HTTP request has not yet received a response. This is considered the best performing of the two algorithms. 

Choose a load balancer persistence type. The choices include "none" or "Source Ip." The standard (none) option employs no persistence and is best for stateless web applications. If an application does require server-based state, then choose the Source Ip option. The Source Ip choice uses source IP + destination IP address-based persistence to tie users to the target server.

How do the load balancer method and persistence work together? If you choose round robin or least connection along with None persistence, then requests are routed without any concern for where the last user's request came from. If you choose round robin or least connection along with Source IP persistence, then the FIRST request will be routed based on either round robin or least connection, and each subsequent request from that source IP address will return to the server that responded to the initial request.
Persistence

Add a line item for each server that is included in this load balancing pool. Include the server's private IP address (visible from the server overview page) and the port that is serving the content. To add a server to the pool, but not have it respond to requests yet, set its "enabled" status to "off."

5. Click the "save" button to commit this configuration to the device. View the configuration overview that shows the VIP, name, description, and pool settings.

6. Test the load balancer by deploying a web application on multiple servers and observing the configured behavior.

FAQ's

Q:  What algorithm does Source Ip use?

A:  The Source IP option uses source IP + destination IP address-based persistence to tie users to the target server

Q:  What is the Source IP time-out value?

A:  The Time-out value is 2 minutes

Q:  How many load balancer pools may I deploy?

A:  5 be default. More can be alloted by contacting help@ctl.io.