Technology Encyclopedia Home >How to specify the CLB instance type (public or private)?

How to specify the CLB instance type (public or private)?

To specify the CLB (Cloud Load Balancer) instance type as either public or private, you typically need to configure the load balancer's network settings during its creation or modification. Here’s how you can do it:

For Public CLB:

  • Definition: A public CLB is accessible from the internet. It distributes incoming traffic from the internet to multiple backend servers.
  • Configuration: When setting up the CLB, you will need to bind it to a public IP address or a domain name that is resolvable on the internet.
  • Example: If you have a web application that needs to be accessible from the internet, you would create a public CLB, bind it to your domain name, and configure the backend servers to handle the requests.

For Private CLB:

  • Definition: A private CLB is only accessible within a specific virtual network (like a VPC - Virtual Private Cloud). It distributes traffic among backend servers within that network.
  • Configuration: During setup, you will specify the VPC and subnets within which the CLB will operate. It will not have a direct route to the internet.
  • Example: If you have internal services that should only be accessible within your company’s network, you would set up a private CLB within your VPC, ensuring that only internal servers can connect to it.

Recommendation for Tencent Cloud:

If you are using Tencent Cloud, you can easily specify the CLB instance type through the Tencent Cloud Console or API. When creating a new CLB instance, you will be prompted to choose between a public or private network. For a public CLB, you can bind an elastic IP or a domain name. For a private CLB, you will select the VPC and subnets where it should reside.

This approach ensures that your load balancer is configured according to your security and accessibility requirements.