Skip to main content
Version: 2.0

Create and attach load balancer

Load balancers distribute incoming network traffic across multiple instances to improve the availability and reliability of your applications. This page describes how to create a load balancer and configure its forwarding rules. Load balancers can be used to load balance between existing instances or used with ASG to dynamically respond to workload changes.

Before you begin​

info

A load balancer can only attach to a private network. To allow external access to the load balancer, attach a Floating IP.

Create and attach load balancer to VM or ASG workloads​

  1. In the CubeCMP management console, go to Networking.

  2. Click the Load Balancers tab.

  3. Click Add Load Balancer.

  4. Select a VPC Network.

    A Virtual Private Cloud (VPC) network provides a logical security boundary for your resources. The load balancer operates within this network boundary to manage traffic.

  5. Select a Flavor.

    The flavor determines the capacity and performance scale of the load balancer. The available flavors are:

    FlavorCPUMemorySupported QPS
    Default1102415,000 - 20,000
    Small2204830,000 - 45,000
    Medium4409670,000 - 90,000
    Large88192120,000 - 150,000
  6. Configure the forwarding rules. Forwarding rules define how the load balancer routes traffic to your instances.

    1. Select a Protocol and enter a Port for the load balancer.

      create-load-balancer-1
    2. Select a Protocol and enter a Port for your instances.

      create-load-balancer-2
    3. In the Member Data Timeout field, enter the maximum time, in seconds, that the load balancer waits for a response from a member after it forwards a request.

    4. In the Client Data Timeout field, enter the maximum time, in seconds, that the load balancer waits for a response from a client after it forwards a request.

    5. In the Allowed CIDRs field, enter the CIDR ranges that can access the load balancer.

      warning

      Entering 0.0.0.0/0 allows all network traffic to access the load balancer.

    6. To attach resources to the load balancer, select Instances or Auto Scaling Group, and then add the resources.

    7. To add another forwarding rule, click Add Rule and repeat these steps.

  7. Enter the following details for the load balancer:

    • Name: A name for the load balancer.
    • Project: The project that the load balancer belongs to.
  8. Click Create Load Balancer.