Struct google_api_proto::google::cloud::compute::v1::BackendServiceFailoverPolicy
source · pub struct BackendServiceFailoverPolicy {
pub disable_connection_drain_on_failover: Option<bool>,
pub drop_traffic_if_unhealthy: Option<bool>,
pub failover_ratio: Option<f32>,
}
Expand description
For load balancers that have configurable failover: Internal passthrough Network Load Balancers and external passthrough Network Load Balancers. On failover or failback, this field indicates whether connection draining will be honored. Google Cloud has a fixed connection draining timeout of 10 minutes. A setting of true terminates existing TCP connections to the active pool during failover and failback, immediately draining traffic. A setting of false allows existing TCP connections to persist, even on VMs no longer in the active pool, for up to the duration of the connection draining timeout (10 minutes).
Fields§
§disable_connection_drain_on_failover: Option<bool>
This can be set to true only if the protocol is TCP. The default is false.
drop_traffic_if_unhealthy: Option<bool>
If set to true, connections to the load balancer are dropped when all primary and all backup backend VMs are unhealthy.If set to false, connections are distributed among all primary VMs when all primary and all backup backend VMs are unhealthy. For load balancers that have configurable failover: Internal passthrough Network Load Balancers and external passthrough Network Load Balancers. The default is false.
failover_ratio: Option<f32>
The value of the field must be in the range [0, 1]. If the value is 0, the load balancer performs a failover when the number of healthy primary VMs equals zero. For all other values, the load balancer performs a failover when the total number of healthy primary VMs is less than this ratio. For load balancers that have configurable failover: Internal TCP/UDP Load Balancing and external TCP/UDP Load Balancing.
Implementations§
source§impl BackendServiceFailoverPolicy
impl BackendServiceFailoverPolicy
sourcepub fn drop_traffic_if_unhealthy(&self) -> bool
pub fn drop_traffic_if_unhealthy(&self) -> bool
Returns the value of drop_traffic_if_unhealthy
, or the default value if drop_traffic_if_unhealthy
is unset.
sourcepub fn disable_connection_drain_on_failover(&self) -> bool
pub fn disable_connection_drain_on_failover(&self) -> bool
Returns the value of disable_connection_drain_on_failover
, or the default value if disable_connection_drain_on_failover
is unset.
sourcepub fn failover_ratio(&self) -> f32
pub fn failover_ratio(&self) -> f32
Returns the value of failover_ratio
, or the default value if failover_ratio
is unset.
Trait Implementations§
source§impl Clone for BackendServiceFailoverPolicy
impl Clone for BackendServiceFailoverPolicy
source§fn clone(&self) -> BackendServiceFailoverPolicy
fn clone(&self) -> BackendServiceFailoverPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BackendServiceFailoverPolicy
impl Debug for BackendServiceFailoverPolicy
source§impl Message for BackendServiceFailoverPolicy
impl Message for BackendServiceFailoverPolicy
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for BackendServiceFailoverPolicy
impl PartialEq for BackendServiceFailoverPolicy
source§fn eq(&self, other: &BackendServiceFailoverPolicy) -> bool
fn eq(&self, other: &BackendServiceFailoverPolicy) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for BackendServiceFailoverPolicy
impl StructuralPartialEq for BackendServiceFailoverPolicy
Auto Trait Implementations§
impl Freeze for BackendServiceFailoverPolicy
impl RefUnwindSafe for BackendServiceFailoverPolicy
impl Send for BackendServiceFailoverPolicy
impl Sync for BackendServiceFailoverPolicy
impl Unpin for BackendServiceFailoverPolicy
impl UnwindSafe for BackendServiceFailoverPolicy
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request