pub struct ConsistentHashLoadBalancerSettings {
pub http_cookie: Option<ConsistentHashLoadBalancerSettingsHttpCookie>,
pub http_header_name: Option<String>,
pub minimum_ring_size: Option<i64>,
}
Expand description
This message defines settings for a consistent hash style load balancer.
This type is not used in any activity, and only used as part of another schema.
Fields§
Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity is set to HTTP_COOKIE. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
http_header_name: Option<String>
The hash based on the value of the specified header field. This field is applicable if the sessionAffinity is set to HEADER_FIELD.
minimum_ring_size: Option<i64>
The minimum number of virtual nodes to use for the hash ring. Defaults to 1024. Larger ring sizes result in more granular load distributions. If the number of hosts in the load balancing pool is larger than the ring size, each host will be assigned a single virtual node.
Trait Implementations§
Source§impl Clone for ConsistentHashLoadBalancerSettings
impl Clone for ConsistentHashLoadBalancerSettings
Source§fn clone(&self) -> ConsistentHashLoadBalancerSettings
fn clone(&self) -> ConsistentHashLoadBalancerSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for ConsistentHashLoadBalancerSettings
impl Default for ConsistentHashLoadBalancerSettings
Source§fn default() -> ConsistentHashLoadBalancerSettings
fn default() -> ConsistentHashLoadBalancerSettings
Source§impl<'de> Deserialize<'de> for ConsistentHashLoadBalancerSettings
impl<'de> Deserialize<'de> for ConsistentHashLoadBalancerSettings
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 ConsistentHashLoadBalancerSettings
Auto Trait Implementations§
impl Freeze for ConsistentHashLoadBalancerSettings
impl RefUnwindSafe for ConsistentHashLoadBalancerSettings
impl Send for ConsistentHashLoadBalancerSettings
impl Sync for ConsistentHashLoadBalancerSettings
impl Unpin for ConsistentHashLoadBalancerSettings
impl UnwindSafe for ConsistentHashLoadBalancerSettings
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