pub struct BackendServiceConnectionTrackingPolicy {
pub connection_persistence_on_unhealthy_backends: Option<String>,
pub enable_strong_affinity: Option<bool>,
pub idle_timeout_sec: Option<i32>,
pub tracking_mode: Option<String>,
}
Expand description
Connection Tracking configuration for this BackendService.
This type is not used in any activity, and only used as part of another schema.
Fields§
§connection_persistence_on_unhealthy_backends: Option<String>
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.
enable_strong_affinity: Option<bool>
Enable Strong Session Affinity for external passthrough Network Load Balancers. This option is not available publicly.
idle_timeout_sec: Option<i32>
Specifies how long to keep a Connection Tracking entry while there is no matching traffic (in seconds). For internal passthrough Network Load Balancers: - 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 external passthrough Network Load Balancers the default is 60 seconds. This option is not available publicly.
tracking_mode: Option<String>
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.
Trait Implementations§
Source§impl Clone for BackendServiceConnectionTrackingPolicy
impl Clone for BackendServiceConnectionTrackingPolicy
Source§fn clone(&self) -> BackendServiceConnectionTrackingPolicy
fn clone(&self) -> BackendServiceConnectionTrackingPolicy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for BackendServiceConnectionTrackingPolicy
impl Default for BackendServiceConnectionTrackingPolicy
Source§fn default() -> BackendServiceConnectionTrackingPolicy
fn default() -> BackendServiceConnectionTrackingPolicy
Source§impl<'de> Deserialize<'de> for BackendServiceConnectionTrackingPolicy
impl<'de> Deserialize<'de> for BackendServiceConnectionTrackingPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for BackendServiceConnectionTrackingPolicy
Auto Trait Implementations§
impl Freeze for BackendServiceConnectionTrackingPolicy
impl RefUnwindSafe for BackendServiceConnectionTrackingPolicy
impl Send for BackendServiceConnectionTrackingPolicy
impl Sync for BackendServiceConnectionTrackingPolicy
impl Unpin for BackendServiceConnectionTrackingPolicy
impl UnwindSafe for BackendServiceConnectionTrackingPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more