LoadBalancerHealthcheck

data class LoadBalancerHealthcheck(val checkIntervalSeconds: Int? = null, val healthyThreshold: Int? = null, val path: String? = null, val port: Int, val protocol: String, val responseTimeoutSeconds: Int? = null, val unhealthyThreshold: Int? = null)

Constructors

Link copied to clipboard
constructor(checkIntervalSeconds: Int? = null, healthyThreshold: Int? = null, path: String? = null, port: Int, protocol: String, responseTimeoutSeconds: Int? = null, unhealthyThreshold: Int? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The number of seconds between two consecutive health checks. If not specified, the default value is 10.

Link copied to clipboard
val healthyThreshold: Int? = null

The number of times a health check must pass for a backend Droplet to be marked "healthy" and be re-added to the pool. If not specified, the default value is 5.

Link copied to clipboard
val path: String? = null

The path on the backend Droplets to which the Load Balancer instance will send a request.

Link copied to clipboard
val port: Int

An integer representing the port on the backend Droplets on which the health check will attempt a connection.

Link copied to clipboard

The protocol used for health checks sent to the backend Droplets. The possible values are http, https or tcp.

Link copied to clipboard

The number of seconds the Load Balancer instance will wait for a response until marking a health check as failed. If not specified, the default value is 5.

Link copied to clipboard
val unhealthyThreshold: Int? = null

The number of times a health check must fail for a backend Droplet to be marked "unhealthy" and be removed from the pool. If not specified, the default value is 3.