public sealed class BackendServiceConnectionTrackingPolicy : IMessage<BackendServiceConnectionTrackingPolicy>, IEquatable<BackendServiceConnectionTrackingPolicy>, IDeepCloneable<BackendServiceConnectionTrackingPolicy>, IBufferMessage, IMessage
Connection Tracking configuration for this BackendService.
Implements
IMessage<BackendServiceConnectionTrackingPolicy>, IEquatable<BackendServiceConnectionTrackingPolicy>, IDeepCloneable<BackendServiceConnectionTrackingPolicy>, IBufferMessage, IMessageNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
BackendServiceConnectionTrackingPolicy()
public BackendServiceConnectionTrackingPolicy()
BackendServiceConnectionTrackingPolicy(BackendServiceConnectionTrackingPolicy)
public BackendServiceConnectionTrackingPolicy(BackendServiceConnectionTrackingPolicy other)
Parameter | |
---|---|
Name | Description |
other | BackendServiceConnectionTrackingPolicy |
Properties
ConnectionPersistenceOnUnhealthyBackends
public string ConnectionPersistenceOnUnhealthyBackends { get; set; }
Specifies connection persistence when backends are unhealthy. The default value is DEFAULT_FOR_PROTOCOL. 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. For more details, see Connection Persistence for Network Load Balancing and Connection Persistence for Internal TCP/UDP Load Balancing. Check the ConnectionPersistenceOnUnhealthyBackends enum for the list of possible values.
Property Value | |
---|---|
Type | Description |
String |
HasConnectionPersistenceOnUnhealthyBackends
public bool HasConnectionPersistenceOnUnhealthyBackends { get; }
Gets whether the "connection_persistence_on_unhealthy_backends" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasIdleTimeoutSec
public bool HasIdleTimeoutSec { get; }
Gets whether the "idle_timeout_sec" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasTrackingMode
public bool HasTrackingMode { get; }
Gets whether the "tracking_mode" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
IdleTimeoutSec
public int IdleTimeoutSec { get; set; }
Specifies how long to keep a Connection Tracking entry while there is no matching traffic (in seconds). For Internal TCP/UDP Load Balancing: - The minimum (default) is 10 minutes and the maximum is 16 hours. - It can be set only if Connection Tracking is less than 5-tuple (i.e. Session Affinity is CLIENT_IP_NO_DESTINATION, CLIENT_IP or CLIENT_IP_PROTO, and Tracking Mode is PER_SESSION). For Network Load Balancer the default is 60 seconds. This option is not available publicly.
Property Value | |
---|---|
Type | Description |
Int32 |
TrackingMode
public string TrackingMode { get; set; }
Specifies the key used for connection tracking. There are two options: - PER_CONNECTION: This is the default mode. 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. For more details, see Tracking Mode for Network Load Balancing and Tracking Mode for Internal TCP/UDP Load Balancing. Check the TrackingMode enum for the list of possible values.
Property Value | |
---|---|
Type | Description |
String |