pub struct Locality {
pub region: String,
pub zone: String,
pub sub_zone: String,
}Fields§
§region: StringRegion this :ref:zone <envoy_v3_api_field_config.core.v3.Locality.zone> belongs to.
zone: StringDefines the local service zone where Envoy is running. Though optional, it
should be set if discovery service routing is used and the discovery
service exposes :ref:zone data <envoy_v3_api_field_config.endpoint.v3.LocalityLbEndpoints.locality>,
either in this message or via :option:--service-zone. The meaning of zone
is context dependent, e.g. Availability Zone (AZ) <<https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html>>
on AWS, Zone <<https://cloud.google.com/compute/docs/regions-zones/>> on
GCP, etc.
sub_zone: StringWhen used for locality of upstream hosts, this field further splits zone into smaller chunks of sub-zones so they can be load balanced independently.
Trait Implementations§
Source§impl Message for Locality
impl Message for Locality
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self.