Configuring a Health Check
Scenarios
You can modify the health check configuration after creating a backend server group. After the health check protocol is changed, the load balancer uses the new protocol to check the backend servers. If the backend servers are detected healthy, the load balancer continues routing traffic to them.
During the protocol-change window, if the backend servers cannot be connected using the new health check protocol, the backend servers will be considered unhealthy and removed from the forwarding list. If no backend server is available, the load balancer returns error code 503, causing temporary request failures. Before changing the health check protocol, ensure that the backend servers support the new health check protocol. Alternatively, change the protocol during off-peak hours to minimize the impact of the change.
Constraints
- The health check protocol does not have to be the same as the backend protocol of the backend server group. However, in some special scenarios (for example, incompatible protocol message formats), service faults may occur. Therefore, using the same protocol is recommended.
- To reduce the vCPU usage of the backend servers, it is recommended that you use TCP for health checks. If you want to use HTTP for health checks, you can use static files to return the health check results.
- If health check is enabled, security group rules must allow traffic from the health check port to the backend servers over the health check protocol. For details, see Security Group and Network ACL Rules.
After you enable health check, the load balancer immediately checks the health of backend servers.
- If a backend server is detected healthy, the load balancer will start routing requests to it over new connections based on the configured load balancing algorithms and weights.
- If a backend server is detected unhealthy, the load balancer will stop routing traffic to it.
Enabling Health Check
- Go to the backend server group list page.
- On the Backend Server Groups page, locate the backend server group and click its name.
- On the Summary page, click Health Check on the right.
- In the Configure Health Check dialog box, enable health check and configure the parameters based on Table 1.
- Click OK.
Disabling Health Check
- Go to the backend server group list page.
- On the Backend Server Groups page, click the name of the target backend server group.
- On the Summary page, click Health Check on the right.
- In the Configure Health Check dialog box, disable health check.
- Click OK.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot