Classic CLB is easy to configure and supports simple load balancing scenarios:
CLB instances can be classified into two types: CLB (formerly "application CLB") and classic CLB.
CLB includes all features of classic CLB. Based on their features and performance, we recommend using CLB. For detailed comparison, see Instance Types.
Note:
Currently, there are two types of Tencent Cloud accounts: bill-by-EIP/CLB and bill-by-CVM. All Tencent Cloud accounts registered after June 17, 2020 00:00:00 are bill-by-EIP/CLB accounts. For Tencent Cloud accounts registered before June 17, 2020, check your account types in the console. Bill-by-EIP/CLB accounts no longer support classic CLB. You can now only purchase a CLB instance.
This document introduces classic CLB instances. After creating an instance, you need to configure a listener for it. The listener listens to requests on the CLB instance and distributes traffic to the real server based on the load balancing policy.
You need to configure a CLB listener as follows:
Note:
If you configure multiple listeners to a classic CLB instance and bind multiple real servers, each listener will forward requests to all real servers based on its configuration.
A CLB listener can listen to Layer-4 and Layer-7 requests on a CLB instance and distribute them to real servers for processing. The main difference between Layer-4 CLB and Layer-7 CLB is which protocol is used to forward traffic when load balancing user requests.
Note:
- A classic CLB instance receives requests and forwards traffic to the real server via VIP and port. Layer-7 protocols do not support forwarding based on domain name and URL.
- A private network classic CLB instance only supports Layer-4 protocols, not Layer-7 protocols.
- If you need aforementioned advanced features, we recommend choosing CLB over classic CLB. For more information, see Instance Types.
Listening Port (frontend port) | Service Port (backend port) | Description |
---|---|---|
The listening port is used by a CLB instance to receive and forward requests to real servers for load balancing. You can configure CLB for the port range 1-65535, such as 21 (FTP), 25 (SMTP), 80 (HTTP), and 443 (HTTPS). |
A service port is used by the CVM to provide services, receives and processes traffic from the CLB instance. On a CLB instance, one listening port can forward traffic to ports of multiple CVM instances. |
On a CLB instance, For example, `TCP:80` and `HTTP:80` listeners cannot be created at the same time. For example, you can create both `TCP:80` and `UDP:80` listeners. The same service ports can be used on a CLB instance. For example, `HTTP:80` and `HTTPS:443` listeners can be bound to the same port of a CVM instance. |
Was this page helpful?