Load balancers can be created to direct traffic to internal instances spread over a pool of hosts.
Create a Load Balancer
-
Select the appropriate project from the drop down menu at the top left.
-
On the Project tab, open the Network tab and click Load Balancers category.
-
Click ‘+ Add Load Balancer’
-
In the Add Load Balancer dialog box, enter the following values:
- Name: A name for the Load Balancer
- Description: A description for the Load Balancer
- IP Address: Optional internal IP address of the Load Balancer
- Subnet: Select the internal subnet for the Load Balancer
-
Click ‘Listener Details’ button, enter the following values:
- Name: A name for the Listener
- Description: A description for the Listener
- Protocol: The protocol for the Listener (HTTP, TCP, TERMINATED_HTTPS or HTTPS)
- Port: The port for the Listener
- Client Data Timeout:
- TCP Inspect Timeout:
- Member Connect Timeout:
- Member Data Timeout:
- Connection Limit:
- Insert Headers
- X-Forwarded-For:
- X-Forwarded-Port:
-
Click ‘Pool Details’ button, enter the following values:
- Name: A name for the Pool
- Description: A description for the Pool
- Algorithm: The algorithm to use for balancing over the pool (LEAST_CONNECTIONS, ROUND_ROBIN, SOURCE_IP)
- Session Persistance: Persist sessions to backend node based on (SOURCE_IP, HTTP_COOKIE, APP_COOKIE)
-
Click ‘Pool Member’ button, enter the following values:
- Click ‘Add’ next to the members for the pool
- Enter the backend port for each member added
-
Click ‘Monitor Details’ button, enter the following values:
- Name: A name for the Health Monitor
- Type: The type of Health Monitor (HTTP, HTTPS, TCP, PING, TLS-HELLO)
- Max Retries Down:
- Delay (sec):
- Max Retries:
- Timeout (sec):
-
Click ‘Create Load Balancer’
The dashboard shows the Load Balancer
Assigning a floating IP
To make the load balanced service available externally, you can assign a floating ip.
-
Select the appropriate project from the drop down menu at the top left.
-
On the Project tab, open the Network tab and click Load Balancers category.
-
Click ‘Floating IP’ from the action dropdown
- Select the Network to assign the floating IP from
-
Click Add
The dashboard shows the Load Balancer
Layer 7 processing
Load balancers can be configured to perform advanced later 7 processing on requests using the CLI