interface HealthCheck {
    checkDelay?: string;
    checkMaxRetries: number;
    checkSendProxy: boolean;
    checkTimeout?: string;
    httpConfig?: HealthCheckHttpConfig;
    httpsConfig?: HealthCheckHttpsConfig;
    ldapConfig?: HealthCheckLdapConfig;
    mysqlConfig?: HealthCheckMysqlConfig;
    pgsqlConfig?: HealthCheckPgsqlConfig;
    port: number;
    redisConfig?: HealthCheckRedisConfig;
    tcpConfig?: HealthCheckTcpConfig;
    transientCheckDelay?: string;
}

Properties

checkDelay?: string

Time to wait between two consecutive health checks.

checkMaxRetries: number

Number of consecutive unsuccessful health checks after which the server will be considered dead.

checkSendProxy: boolean

Defines whether proxy protocol should be activated for the health check.

checkTimeout?: string

Maximum time a backend server has to reply to the health check.

Object to configure an HTTP health check.

One-of ('config'): at most one of 'tcpConfig', 'mysqlConfig', 'pgsqlConfig', 'ldapConfig', 'redisConfig', 'httpConfig', 'httpsConfig' could be set.

Object to configure an HTTPS health check.

One-of ('config'): at most one of 'tcpConfig', 'mysqlConfig', 'pgsqlConfig', 'ldapConfig', 'redisConfig', 'httpConfig', 'httpsConfig' could be set.

Object to configure an LDAP health check. The response is analyzed to find the LDAPv3 response message.

One-of ('config'): at most one of 'tcpConfig', 'mysqlConfig', 'pgsqlConfig', 'ldapConfig', 'redisConfig', 'httpConfig', 'httpsConfig' could be set.

Object to configure a MySQL health check. The check requires MySQL >=3.22, for older versions, use a TCP health check.

One-of ('config'): at most one of 'tcpConfig', 'mysqlConfig', 'pgsqlConfig', 'ldapConfig', 'redisConfig', 'httpConfig', 'httpsConfig' could be set.

Object to configure a PostgreSQL health check.

One-of ('config'): at most one of 'tcpConfig', 'mysqlConfig', 'pgsqlConfig', 'ldapConfig', 'redisConfig', 'httpConfig', 'httpsConfig' could be set.

port: number

Port to use for the backend server health check.

Object to configure a Redis health check. The response is analyzed to find the +PONG response message.

One-of ('config'): at most one of 'tcpConfig', 'mysqlConfig', 'pgsqlConfig', 'ldapConfig', 'redisConfig', 'httpConfig', 'httpsConfig' could be set.

Object to configure a basic TCP health check.

One-of ('config'): at most one of 'tcpConfig', 'mysqlConfig', 'pgsqlConfig', 'ldapConfig', 'redisConfig', 'httpConfig', 'httpsConfig' could be set.

transientCheckDelay?: string

Time to wait between two consecutive health checks when a backend server is in a transient state (going UP or DOWN).