public static final class DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder> implements DestinationRuleOuterClass.LocalityLoadBalancerSettingOrBuilder
Locality-weighted load balancing allows administrators to control the
distribution of traffic to endpoints based on the localities of where the
traffic originates and where it will terminate. These localities are
specified using arbitrary labels that designate a hierarchy of localities in
{region}/{zone}/{sub-zone} form. For additional detail refer to
[Locality Weight](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/locality_weight)
The following example shows how to setup locality weights mesh-wide.
Given a mesh with workloads and their service deployed to "us-west/zone1/*"
and "us-west/zone2/*". This example specifies that when traffic accessing a
service originates from workloads in "us-west/zone1/*", 80% of the traffic
will be sent to endpoints in "us-west/zone1/*", i.e the same zone, and the
remaining 20% will go to endpoints in "us-west/zone2/*". This setup is
intended to favor routing traffic to endpoints in the same locality.
A similar setting is specified for traffic originating in "us-west/zone2/*".
```yaml
distribute:
- from: us-west/zone1/*
to:
"us-west/zone1/*": 80
"us-west/zone2/*": 20
- from: us-west/zone2/*
to:
"us-west/zone1/*": 20
"us-west/zone2/*": 80
```
If the goal of the operator is not to distribute load across zones and
regions but rather to restrict the regionality of failover to meet other
operational requirements an operator can set a 'failover' policy instead of
a 'distribute' policy.
The following example sets up a locality failover policy for regions.
Assume a service resides in zones within us-east, us-west & eu-west
this example specifies that when endpoints within us-east become unhealthy
traffic should failover to endpoints in any zone or sub-zone within eu-west
and similarly us-west should failover to us-east.
```yaml
failover:
- from: us-east
to: eu-west
- from: us-west
to: us-east
```
Locality load balancing settings.
Protobuf type istio.networking.v1alpha3.LocalityLoadBalancerSettinggetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder clear()
clear 在接口中 com.google.protobuf.Message.Builderclear 在接口中 com.google.protobuf.MessageLite.Builderclear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.Message.BuildergetDescriptorForType 在接口中 com.google.protobuf.MessageOrBuildergetDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>public DestinationRuleOuterClass.LocalityLoadBalancerSetting getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderpublic DestinationRuleOuterClass.LocalityLoadBalancerSetting build()
build 在接口中 com.google.protobuf.Message.Builderbuild 在接口中 com.google.protobuf.MessageLite.Builderpublic DestinationRuleOuterClass.LocalityLoadBalancerSetting buildPartial()
buildPartial 在接口中 com.google.protobuf.Message.BuilderbuildPartial 在接口中 com.google.protobuf.MessageLite.Builderpublic DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder clone()
clone 在接口中 com.google.protobuf.Message.Builderclone 在接口中 com.google.protobuf.MessageLite.Builderclone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField 在接口中 com.google.protobuf.Message.BuildersetField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField 在接口中 com.google.protobuf.Message.BuilderclearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof 在接口中 com.google.protobuf.Message.BuilderclearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField 在接口中 com.google.protobuf.Message.BuildersetRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField 在接口中 com.google.protobuf.Message.BuilderaddRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder mergeFrom(DestinationRuleOuterClass.LocalityLoadBalancerSetting other)
public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在接口中 com.google.protobuf.MessageLite.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>IOExceptionpublic List<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute> getDistributeList()
Optional: only one of distribute or failover can be set. Explicitly specify loadbalancing weight across different zones and geographical locations. Refer to [Locality weighted load balancing](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/locality_weight) If empty, the locality weight is set according to the endpoints number within it.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Distribute distribute = 1;public int getDistributeCount()
Optional: only one of distribute or failover can be set. Explicitly specify loadbalancing weight across different zones and geographical locations. Refer to [Locality weighted load balancing](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/locality_weight) If empty, the locality weight is set according to the endpoints number within it.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Distribute distribute = 1;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute getDistribute(int index)
Optional: only one of distribute or failover can be set. Explicitly specify loadbalancing weight across different zones and geographical locations. Refer to [Locality weighted load balancing](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/locality_weight) If empty, the locality weight is set according to the endpoints number within it.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Distribute distribute = 1;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder setDistribute(int index, DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute value)
Optional: only one of distribute or failover can be set. Explicitly specify loadbalancing weight across different zones and geographical locations. Refer to [Locality weighted load balancing](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/locality_weight) If empty, the locality weight is set according to the endpoints number within it.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Distribute distribute = 1;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder setDistribute(int index, DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder builderForValue)
Optional: only one of distribute or failover can be set. Explicitly specify loadbalancing weight across different zones and geographical locations. Refer to [Locality weighted load balancing](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/locality_weight) If empty, the locality weight is set according to the endpoints number within it.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Distribute distribute = 1;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder addDistribute(DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute value)
Optional: only one of distribute or failover can be set. Explicitly specify loadbalancing weight across different zones and geographical locations. Refer to [Locality weighted load balancing](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/locality_weight) If empty, the locality weight is set according to the endpoints number within it.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Distribute distribute = 1;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder addDistribute(int index, DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute value)
Optional: only one of distribute or failover can be set. Explicitly specify loadbalancing weight across different zones and geographical locations. Refer to [Locality weighted load balancing](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/locality_weight) If empty, the locality weight is set according to the endpoints number within it.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Distribute distribute = 1;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder addDistribute(DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder builderForValue)
Optional: only one of distribute or failover can be set. Explicitly specify loadbalancing weight across different zones and geographical locations. Refer to [Locality weighted load balancing](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/locality_weight) If empty, the locality weight is set according to the endpoints number within it.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Distribute distribute = 1;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder addDistribute(int index, DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder builderForValue)
Optional: only one of distribute or failover can be set. Explicitly specify loadbalancing weight across different zones and geographical locations. Refer to [Locality weighted load balancing](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/locality_weight) If empty, the locality weight is set according to the endpoints number within it.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Distribute distribute = 1;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder addAllDistribute(Iterable<? extends DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute> values)
Optional: only one of distribute or failover can be set. Explicitly specify loadbalancing weight across different zones and geographical locations. Refer to [Locality weighted load balancing](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/locality_weight) If empty, the locality weight is set according to the endpoints number within it.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Distribute distribute = 1;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder clearDistribute()
Optional: only one of distribute or failover can be set. Explicitly specify loadbalancing weight across different zones and geographical locations. Refer to [Locality weighted load balancing](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/locality_weight) If empty, the locality weight is set according to the endpoints number within it.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Distribute distribute = 1;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder removeDistribute(int index)
Optional: only one of distribute or failover can be set. Explicitly specify loadbalancing weight across different zones and geographical locations. Refer to [Locality weighted load balancing](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/locality_weight) If empty, the locality weight is set according to the endpoints number within it.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Distribute distribute = 1;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder getDistributeBuilder(int index)
Optional: only one of distribute or failover can be set. Explicitly specify loadbalancing weight across different zones and geographical locations. Refer to [Locality weighted load balancing](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/locality_weight) If empty, the locality weight is set according to the endpoints number within it.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Distribute distribute = 1;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.DistributeOrBuilder getDistributeOrBuilder(int index)
Optional: only one of distribute or failover can be set. Explicitly specify loadbalancing weight across different zones and geographical locations. Refer to [Locality weighted load balancing](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/locality_weight) If empty, the locality weight is set according to the endpoints number within it.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Distribute distribute = 1;public List<? extends DestinationRuleOuterClass.LocalityLoadBalancerSetting.DistributeOrBuilder> getDistributeOrBuilderList()
Optional: only one of distribute or failover can be set. Explicitly specify loadbalancing weight across different zones and geographical locations. Refer to [Locality weighted load balancing](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/locality_weight) If empty, the locality weight is set according to the endpoints number within it.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Distribute distribute = 1;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder addDistributeBuilder()
Optional: only one of distribute or failover can be set. Explicitly specify loadbalancing weight across different zones and geographical locations. Refer to [Locality weighted load balancing](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/locality_weight) If empty, the locality weight is set according to the endpoints number within it.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Distribute distribute = 1;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder addDistributeBuilder(int index)
Optional: only one of distribute or failover can be set. Explicitly specify loadbalancing weight across different zones and geographical locations. Refer to [Locality weighted load balancing](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/locality_weight) If empty, the locality weight is set according to the endpoints number within it.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Distribute distribute = 1;public List<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder> getDistributeBuilderList()
Optional: only one of distribute or failover can be set. Explicitly specify loadbalancing weight across different zones and geographical locations. Refer to [Locality weighted load balancing](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/locality_weight) If empty, the locality weight is set according to the endpoints number within it.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Distribute distribute = 1;public List<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Failover> getFailoverList()
Optional: only failover or distribute can be set. Explicitly specify the region traffic will land on when endpoints in local region becomes unhealthy. Should be used together with OutlierDetection to detect unhealthy endpoints. Note: if no OutlierDetection specified, this will not take effect.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Failover failover = 2;public int getFailoverCount()
Optional: only failover or distribute can be set. Explicitly specify the region traffic will land on when endpoints in local region becomes unhealthy. Should be used together with OutlierDetection to detect unhealthy endpoints. Note: if no OutlierDetection specified, this will not take effect.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Failover failover = 2;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Failover getFailover(int index)
Optional: only failover or distribute can be set. Explicitly specify the region traffic will land on when endpoints in local region becomes unhealthy. Should be used together with OutlierDetection to detect unhealthy endpoints. Note: if no OutlierDetection specified, this will not take effect.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Failover failover = 2;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder setFailover(int index, DestinationRuleOuterClass.LocalityLoadBalancerSetting.Failover value)
Optional: only failover or distribute can be set. Explicitly specify the region traffic will land on when endpoints in local region becomes unhealthy. Should be used together with OutlierDetection to detect unhealthy endpoints. Note: if no OutlierDetection specified, this will not take effect.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Failover failover = 2;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder setFailover(int index, DestinationRuleOuterClass.LocalityLoadBalancerSetting.Failover.Builder builderForValue)
Optional: only failover or distribute can be set. Explicitly specify the region traffic will land on when endpoints in local region becomes unhealthy. Should be used together with OutlierDetection to detect unhealthy endpoints. Note: if no OutlierDetection specified, this will not take effect.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Failover failover = 2;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder addFailover(DestinationRuleOuterClass.LocalityLoadBalancerSetting.Failover value)
Optional: only failover or distribute can be set. Explicitly specify the region traffic will land on when endpoints in local region becomes unhealthy. Should be used together with OutlierDetection to detect unhealthy endpoints. Note: if no OutlierDetection specified, this will not take effect.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Failover failover = 2;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder addFailover(int index, DestinationRuleOuterClass.LocalityLoadBalancerSetting.Failover value)
Optional: only failover or distribute can be set. Explicitly specify the region traffic will land on when endpoints in local region becomes unhealthy. Should be used together with OutlierDetection to detect unhealthy endpoints. Note: if no OutlierDetection specified, this will not take effect.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Failover failover = 2;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder addFailover(DestinationRuleOuterClass.LocalityLoadBalancerSetting.Failover.Builder builderForValue)
Optional: only failover or distribute can be set. Explicitly specify the region traffic will land on when endpoints in local region becomes unhealthy. Should be used together with OutlierDetection to detect unhealthy endpoints. Note: if no OutlierDetection specified, this will not take effect.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Failover failover = 2;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder addFailover(int index, DestinationRuleOuterClass.LocalityLoadBalancerSetting.Failover.Builder builderForValue)
Optional: only failover or distribute can be set. Explicitly specify the region traffic will land on when endpoints in local region becomes unhealthy. Should be used together with OutlierDetection to detect unhealthy endpoints. Note: if no OutlierDetection specified, this will not take effect.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Failover failover = 2;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder addAllFailover(Iterable<? extends DestinationRuleOuterClass.LocalityLoadBalancerSetting.Failover> values)
Optional: only failover or distribute can be set. Explicitly specify the region traffic will land on when endpoints in local region becomes unhealthy. Should be used together with OutlierDetection to detect unhealthy endpoints. Note: if no OutlierDetection specified, this will not take effect.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Failover failover = 2;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder clearFailover()
Optional: only failover or distribute can be set. Explicitly specify the region traffic will land on when endpoints in local region becomes unhealthy. Should be used together with OutlierDetection to detect unhealthy endpoints. Note: if no OutlierDetection specified, this will not take effect.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Failover failover = 2;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder removeFailover(int index)
Optional: only failover or distribute can be set. Explicitly specify the region traffic will land on when endpoints in local region becomes unhealthy. Should be used together with OutlierDetection to detect unhealthy endpoints. Note: if no OutlierDetection specified, this will not take effect.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Failover failover = 2;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Failover.Builder getFailoverBuilder(int index)
Optional: only failover or distribute can be set. Explicitly specify the region traffic will land on when endpoints in local region becomes unhealthy. Should be used together with OutlierDetection to detect unhealthy endpoints. Note: if no OutlierDetection specified, this will not take effect.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Failover failover = 2;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.FailoverOrBuilder getFailoverOrBuilder(int index)
Optional: only failover or distribute can be set. Explicitly specify the region traffic will land on when endpoints in local region becomes unhealthy. Should be used together with OutlierDetection to detect unhealthy endpoints. Note: if no OutlierDetection specified, this will not take effect.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Failover failover = 2;public List<? extends DestinationRuleOuterClass.LocalityLoadBalancerSetting.FailoverOrBuilder> getFailoverOrBuilderList()
Optional: only failover or distribute can be set. Explicitly specify the region traffic will land on when endpoints in local region becomes unhealthy. Should be used together with OutlierDetection to detect unhealthy endpoints. Note: if no OutlierDetection specified, this will not take effect.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Failover failover = 2;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Failover.Builder addFailoverBuilder()
Optional: only failover or distribute can be set. Explicitly specify the region traffic will land on when endpoints in local region becomes unhealthy. Should be used together with OutlierDetection to detect unhealthy endpoints. Note: if no OutlierDetection specified, this will not take effect.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Failover failover = 2;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Failover.Builder addFailoverBuilder(int index)
Optional: only failover or distribute can be set. Explicitly specify the region traffic will land on when endpoints in local region becomes unhealthy. Should be used together with OutlierDetection to detect unhealthy endpoints. Note: if no OutlierDetection specified, this will not take effect.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Failover failover = 2;public List<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Failover.Builder> getFailoverBuilderList()
Optional: only failover or distribute can be set. Explicitly specify the region traffic will land on when endpoints in local region becomes unhealthy. Should be used together with OutlierDetection to detect unhealthy endpoints. Note: if no OutlierDetection specified, this will not take effect.
repeated .istio.networking.v1alpha3.LocalityLoadBalancerSetting.Failover failover = 2;public boolean hasEnabled()
enable locality load balancing, this is DestinationRule-level and will override mesh wide settings in entirety. e.g. true means that turn on locality load balancing for this DestinationRule no matter what mesh wide settings is.
.google.protobuf.BoolValue enabled = 3;hasEnabled 在接口中 DestinationRuleOuterClass.LocalityLoadBalancerSettingOrBuilderpublic com.google.protobuf.BoolValue getEnabled()
enable locality load balancing, this is DestinationRule-level and will override mesh wide settings in entirety. e.g. true means that turn on locality load balancing for this DestinationRule no matter what mesh wide settings is.
.google.protobuf.BoolValue enabled = 3;getEnabled 在接口中 DestinationRuleOuterClass.LocalityLoadBalancerSettingOrBuilderpublic DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder setEnabled(com.google.protobuf.BoolValue value)
enable locality load balancing, this is DestinationRule-level and will override mesh wide settings in entirety. e.g. true means that turn on locality load balancing for this DestinationRule no matter what mesh wide settings is.
.google.protobuf.BoolValue enabled = 3;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder setEnabled(com.google.protobuf.BoolValue.Builder builderForValue)
enable locality load balancing, this is DestinationRule-level and will override mesh wide settings in entirety. e.g. true means that turn on locality load balancing for this DestinationRule no matter what mesh wide settings is.
.google.protobuf.BoolValue enabled = 3;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder mergeEnabled(com.google.protobuf.BoolValue value)
enable locality load balancing, this is DestinationRule-level and will override mesh wide settings in entirety. e.g. true means that turn on locality load balancing for this DestinationRule no matter what mesh wide settings is.
.google.protobuf.BoolValue enabled = 3;public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder clearEnabled()
enable locality load balancing, this is DestinationRule-level and will override mesh wide settings in entirety. e.g. true means that turn on locality load balancing for this DestinationRule no matter what mesh wide settings is.
.google.protobuf.BoolValue enabled = 3;public com.google.protobuf.BoolValue.Builder getEnabledBuilder()
enable locality load balancing, this is DestinationRule-level and will override mesh wide settings in entirety. e.g. true means that turn on locality load balancing for this DestinationRule no matter what mesh wide settings is.
.google.protobuf.BoolValue enabled = 3;public com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder()
enable locality load balancing, this is DestinationRule-level and will override mesh wide settings in entirety. e.g. true means that turn on locality load balancing for this DestinationRule no matter what mesh wide settings is.
.google.protobuf.BoolValue enabled = 3;public final DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields 在接口中 com.google.protobuf.Message.BuildersetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>public final DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields 在接口中 com.google.protobuf.Message.BuildermergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>Copyright © 2018–2023 Alibaba Group. All rights reserved.