Class LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZoneOrBuilder, Serializable
Enclosing class:
LocalityLbConfig.ZoneAwareLbConfig

public static final class LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone extends com.google.protobuf.GeneratedMessageV3 implements LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZoneOrBuilder
 Configures Envoy to always route requests to the local zone regardless of the
 upstream zone structure. In Envoy's default configuration, traffic is distributed proportionally
 across all upstream hosts while trying to maximize local routing when possible. The approach
 with force_local_zone aims to be more predictable and if there are upstream hosts in the local
 zone, they will receive all traffic.
 * :ref:`runtime values <config_cluster_manager_cluster_runtime_zone_routing>`.
 * :ref:`Zone aware routing support <arch_overview_load_balancing_zone_aware_routing>`.
 
Protobuf type envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone
See Also:
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • hasMinSize

      public boolean hasMinSize()
       Configures the minimum number of upstream hosts in the local zone required when force_local_zone
       is enabled. If the number of upstream hosts in the local zone is less than the specified value,
       Envoy will fall back to the default proportional-based distribution across localities.
       If not specified, the default is 1.
       * :ref:`runtime values <config_cluster_manager_cluster_runtime_zone_routing>`.
       * :ref:`Zone aware routing support <arch_overview_load_balancing_zone_aware_routing>`.
       
      .google.protobuf.UInt32Value min_size = 1;
      Specified by:
      hasMinSize in interface LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZoneOrBuilder
      Returns:
      Whether the minSize field is set.
    • getMinSize

      public com.google.protobuf.UInt32Value getMinSize()
       Configures the minimum number of upstream hosts in the local zone required when force_local_zone
       is enabled. If the number of upstream hosts in the local zone is less than the specified value,
       Envoy will fall back to the default proportional-based distribution across localities.
       If not specified, the default is 1.
       * :ref:`runtime values <config_cluster_manager_cluster_runtime_zone_routing>`.
       * :ref:`Zone aware routing support <arch_overview_load_balancing_zone_aware_routing>`.
       
      .google.protobuf.UInt32Value min_size = 1;
      Specified by:
      getMinSize in interface LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZoneOrBuilder
      Returns:
      The minSize.
    • getMinSizeOrBuilder

      public com.google.protobuf.UInt32ValueOrBuilder getMinSizeOrBuilder()
       Configures the minimum number of upstream hosts in the local zone required when force_local_zone
       is enabled. If the number of upstream hosts in the local zone is less than the specified value,
       Envoy will fall back to the default proportional-based distribution across localities.
       If not specified, the default is 1.
       * :ref:`runtime values <config_cluster_manager_cluster_runtime_zone_routing>`.
       * :ref:`Zone aware routing support <arch_overview_load_balancing_zone_aware_routing>`.
       
      .google.protobuf.UInt32Value min_size = 1;
      Specified by:
      getMinSizeOrBuilder in interface LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZoneOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      Throws:
      IOException
    • parseFrom

      public static LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone> parser()
    • getParserForType

      public com.google.protobuf.Parser<LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder