All Products
Search
Document Center

Function Compute:CustomHealthCheckConfig

Last Updated:Sep 23, 2024
ParameterTypeDescriptionExample
object

The custom health check configurations of custom runtimes and Custom Container runtimes.

httpGetUrlstring

The custom health check URL of the container. The URL length cannot exceed 2,048 characters.

/ready
initialDelaySecondsinteger

The duration after the container is started before health checks are initiated. Valid values: 0 to 120. Unit: seconds. Default value: 0.

1
periodSecondsinteger

The interval between two consecutive health checks. Valid values: 1 to 120. Unit: seconds. Default value: 3.

1
timeoutSecondsinteger

The timeout period of a health check. Valid values: 1 to 3. Unit: seconds. Default value: 1.

2
failureThresholdinteger

The threshold for health check failures. When this value is reached, the system considers the check failed. Valid values: 1 to 120. Unit: seconds. Default value: 3.

1
successThresholdinteger

The threshold for health check successes. When this value is reached, the system considers the check succeeded. Valid values: 1 to 120. Unit: seconds. Default value: 1.

2