Check Method | Check Principle | Applicable Scenarios |
TCP | Initiates a TCP three-way handshake (SYN packet) with the backend service to probe whether the port is alive, only verifying port connectivity without sensing the application-layer status. | Suitable for scenarios where the backend is a generic TCP service or only port reachability needs to be confirmed. It has low performance overhead and is the default health check method. |
HTTP | Sends an HTTP request (HEAD or GET) to a backend service and determines whether the backend application is normal based on the returned HTTP status code. | Suitable for scenarios where the backend is an HTTP application and service availability needs to be confirmed at the application layer. |
HTTPS | Sends a TLS-encrypted HTTP request to a backend service and determines whether the backend application is normal based on the returned HTTP status code. | Suitable for scenarios where the backend is an HTTPS application and service availability needs to be confirmed over an encrypted link. |
gRPC | Sends a gRPC health check request to a backend service and determines whether the backend application is normal based on the returned gRPC status code. | Suitable for scenarios where the backend is a gRPC application. |
gRPCs | Sends a TLS-encrypted gRPC health check request to a backend service and determines whether the backend application is normal based on the returned gRPC status code. | Suitable for scenarios where the backend is an encrypted gRPCs application. |
Parameter | Description |
Health Check | Determine whether to enable the health check. After it is enabled, ALB automatically checks for and removes abnormal backend services. It is recommended that you keep it enabled. |
Check Method | Select the protocol used for the health check. The available options are linked to the backend protocol of the target group: When the backend protocol is HTTP or HTTPS, the supported health check methods are TCP, HTTP, and HTTPS. When the backend protocol is gRPC, the supported health check methods are TCP and gRPC. When the backend protocol is gRPCs, the supported health check methods are TCP and gRPCs. |
Check Port | Enter the port used for health check probes. It defaults to the port of the backend service. If the health check port of the backend service differs from the business port, you can specify a dedicated port here. Leave it empty unless otherwise required. |
Parameter | Description |
Check Domain Name | It can contain 1–80 characters. It is the forwarding domain name by default. Regular expressions are not supported. If your forwarding domain name is a wildcard domain name, you need to specify a fixed (non-regular) domain name as the health check domain name. Supported character sets include letters (a–z), digits (0–9), periods (.), and hyphens (-). |
Check Path | Set the health check path to the backend server root directory or a specified URL: It can contain 1–200 characters. The path name starts with / by default and is required to start with /. Regular expressions are not supported. It is recommended that you specify a fixed URL path (static page) for the health check. Supported character sets include lowercase letters (a–z), uppercase letters (A–Z), digits (0–9), and the following special characters: .-_/=? |
HTTP Request Method | Select an HTTP request method for the health check. Valid values: GET and HEAD. Default value: HEAD. If the HEAD method is used, the server only returns the HTTP header information, which can reduce backend overhead and improve request efficiency. The corresponding backend service needs to support HEAD. If the GET method is used, the backend service only needs to support GET. |
HTTP Status Code Detection | Use a set of response status codes to determine whether the backend service is alive. If a probe returns any status code in this set, the service is considered alive. You can select http_1xx, http_2xx, http_3xx, http_4xx, and http_5xx. When the returned status code matches any selected category, the real server is considered alive. |
Parameter | Description |
Check Domain Name | It can contain 1–80 characters. It is the forwarding domain name by default. Regular expressions are not supported. If your forwarding domain name is a wildcard domain name, you need to specify a fixed (non-regular) domain name as the health check domain name. Supported character sets include letters (a–z), digits (0–9), periods (.), and hyphens (-). |
Check Path | When the gRPC protocol is selected for health checks, the path defaults to /TCLOUD.CLB/healthcheck, and can also be customized in the /Package.Class/method format. |
gRPC Status Code Detection | The gRPC status code used to determine whether the backend service is alive. Default value: 12. Value range: 0–99. The input value can be a single digit, multiple digits, a range, or a combination, for example, 20, 20,25, 0–99, or a combination of 12, 25, 30–40. The real server is considered alive when the gRPC status code returned matches the configured status code. |
Parameter | Description | Value Range | Default Value |
Response Timeout Period | The maximum wait period for a single health check. If the backend service does not respond correctly within this period, the probe is marked as failed. | 2–60 (seconds) | 2 (seconds) |
Detection Interval | The time interval between 2 consecutive health checks. A shorter interval leads to quicker anomaly detection but higher probing overhead. | 2–300 (seconds) | 5 (seconds) |
Unhealthy Threshold | After the number of consecutive probe failures reaches this threshold, the backend service is marked as abnormal and traffic is drained from it. | 2–10 (times) | 3 (times) |
Healthy Threshold | After the number of consecutive successful probes reaches this threshold, the backend service is marked as healthy and traffic is restored to it. | 2–10 (times) | 3 (times) |
Status | Description |
Healthy | The backend service passes consecutive health checks (meeting the healthy threshold) and normally participates in traffic distribution. |
Abnormal | The backend service fails consecutive health checks (meeting the unhealthy threshold) and has been drained from traffic distribution. |
Unknown | No backend service exists in the bound target group. |
Probing | The status of a newly bound real server within the check interval multiplied by the healthy threshold. |
Disabled | The health check status (disabled). ALB forwards traffic to all backend services. |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback