RegionBackendServiceConnectionTrackingPolicyArgs

data class RegionBackendServiceConnectionTrackingPolicyArgs(val connectionPersistenceOnUnhealthyBackends: Output<String>? = null, val enableStrongAffinity: Output<Boolean>? = null, val idleTimeoutSec: Output<Int>? = null, val trackingMode: Output<String>? = null) : ConvertibleToJava<RegionBackendServiceConnectionTrackingPolicyArgs>

Constructors

constructor(connectionPersistenceOnUnhealthyBackends: Output<String>? = null, enableStrongAffinity: Output<Boolean>? = null, idleTimeoutSec: Output<Int>? = null, trackingMode: Output<String>? = null)

Properties

Link copied to clipboard

Specifies connection persistence when backends are unhealthy. If set to DEFAULT_FOR_PROTOCOL, the existing connections persist on unhealthy backends only for connection-oriented protocols (TCP and SCTP) and only if the Tracking Mode is PER_CONNECTION (default tracking mode) or the Session Affinity is configured for 5-tuple. They do not persist for UDP. If set to NEVER_PERSIST, after a backend becomes unhealthy, the existing connections on the unhealthy backend are never persisted on the unhealthy backend. They are always diverted to newly selected healthy backends (unless all backends are unhealthy). If set to ALWAYS_PERSIST, existing connections always persist on unhealthy backends regardless of protocol and session affinity. It is generally not recommended to use this mode overriding the default. Default value is DEFAULT_FOR_PROTOCOL. Possible values are: DEFAULT_FOR_PROTOCOL, NEVER_PERSIST, ALWAYS_PERSIST.

Link copied to clipboard
val enableStrongAffinity: Output<Boolean>? = null

Enable Strong Session Affinity for Network Load Balancing. This option is not available publicly.

Link copied to clipboard
val idleTimeoutSec: Output<Int>? = null

Specifies how long to keep a Connection Tracking entry while there is no matching traffic (in seconds). For L4 ILB the minimum(default) is 10 minutes and maximum is 16 hours. For NLB the minimum(default) is 60 seconds and the maximum is 16 hours.

Link copied to clipboard
val trackingMode: Output<String>? = null

Specifies the key used for connection tracking. There are two options: PER_CONNECTION: The Connection Tracking is performed as per the Connection Key (default Hash Method) for the specific protocol. PER_SESSION: The Connection Tracking is performed as per the configured Session Affinity. It matches the configured Session Affinity. Default value is PER_CONNECTION. Possible values are: PER_CONNECTION, PER_SESSION.

Functions

Link copied to clipboard
open override fun toJava(): RegionBackendServiceConnectionTrackingPolicyArgs