CLB routes requests to real server instances that are running normally. This document describes how to add or delete real servers as needed or when you use CLB for the first time.
You have created a CLB instance and configured a listener. For more information, see Getting Started with CLB.
Note:
- If a CLB instance is associated with an auto scaling group, CVMs in the group will be automatically added to the real servers of CLB. When a CVM instance is removed from the auto scaling group, it will be automatically deleted from the real servers of CLB.
- For details on how to add real servers using the API, see RegisterInstancesWithLoadBalancer.
- If you have a bill-by-CVM account and select a non-BGP ISP (China Mobile/China Unicom/China Telecom), you can only bind bill-by-traffic and bill-by-bandwidth package CVM instances. For more information about account and ISP types, see Checking Account Type and Product Attribute Selection.
Note:
- The pop-up window only displays available CVMs that are not isolated nor expired, in the same region, in the same network environment, and have peak bandwidth greater than 0.
- When the CLB instance is bound with multiple real servers, it use the hash algorithm to forward traffic.
- The larger the weight is, the more the requests are forwarded. Value range is 0-100 (default: 10). If it is set to 0, the real server stops receiving new requests. If session persistence is enabled, the requests from the real server may be not evenly distributed. For more details, see Algorithms and Weight Configuration.
The real server weight determines the number of CVM requests to be forwarded. When binding a real server, you need to preset its weight. The following shows an example of how to change the real server weight when a HTTP/HTTPS listener is used (which is also applied to a TCP/UDP/TCP SSL listener).
Note:
- For details on how to modify the real server weight with the API, see ModifyLoadBalancerBackends.
- For more information on weight of the load balancing real server, refer to Cloud Load Balancer Round-robin Method.
Note:The larger the weight is, the more the requests are forwarded. Value range is 0-100 (default: 10). If it is set to 0, the real server stops receiving new requests. If session persistence is enabled, the requests from the real server may be not evenly distributed. For more details, see Algorithms and Weight Configuration.
Note:After you perform batch modification, the backend CVMs will use the same weight.
You can modify real server ports in the CLB console. The following shows an example of how to change the real server port when a HTTP/HTTPS listener is used (which is also applied to a TCP/UDP/TCP SSL listener).
Note:For details on how to modify the real server port with the API, see ModifyTargetPort.
Note:After you perform batch modification, the backend CVMs will use the same port.
You can unbind bound real servers in the CLB console. The following shows an example of how to unbind the real server when a HTTP/HTTPS listener is used (which is also applied to a TCP/UDP/TCP SSL listener).
Note:
- Unbinding a real server will unbind the CLB instance from the CVM instance, and CLB will immediately stop forwarding requests to it.
- Unbinding a real server will not affect the lifecycle of your CVM instance, which can also be added to the real server cluster again.
- For details on how to unbind real servers with the API, see DeregisterTargets.
Was this page helpful?