类 DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>
istio.networking.v1alpha3.DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder
- 所有已实现的接口:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,DestinationRuleOuterClass.LocalityLoadBalancerSettingOrBuilder,Cloneable
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.LocalityLoadBalancerSetting-
方法概要
修饰符和类型方法说明addAllDistribute(Iterable<? extends DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute> values) Optional: only one of distribute or failover can be set.addAllFailover(Iterable<? extends DestinationRuleOuterClass.LocalityLoadBalancerSetting.Failover> values) Optional: only failover or distribute can be set.Optional: only one of distribute or failover can be set.addDistribute(int index, DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder builderForValue) Optional: only one of distribute or failover can be set.Optional: only one of distribute or failover can be set.addDistribute(DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder builderForValue) Optional: only one of distribute or failover can be set.Optional: only one of distribute or failover can be set.addDistributeBuilder(int index) Optional: only one of distribute or failover can be set.addFailover(int index, DestinationRuleOuterClass.LocalityLoadBalancerSetting.Failover value) Optional: only failover or distribute can be set.addFailover(int index, DestinationRuleOuterClass.LocalityLoadBalancerSetting.Failover.Builder builderForValue) Optional: only failover or distribute can be set.Optional: only failover or distribute can be set.Optional: only failover or distribute can be set.Optional: only failover or distribute can be set.addFailoverBuilder(int index) Optional: only failover or distribute can be set.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Optional: only one of distribute or failover can be set.enable locality load balancing, this is DestinationRule-level and will override mesh wide settings in entirety.Optional: only failover or distribute can be set.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDistribute(int index) Optional: only one of distribute or failover can be set.getDistributeBuilder(int index) Optional: only one of distribute or failover can be set.Optional: only one of distribute or failover can be set.intOptional: only one of distribute or failover can be set.Optional: only one of distribute or failover can be set.getDistributeOrBuilder(int index) Optional: only one of distribute or failover can be set.Optional: only one of distribute or failover can be set.com.google.protobuf.BoolValueenable locality load balancing, this is DestinationRule-level and will override mesh wide settings in entirety.com.google.protobuf.BoolValue.Builderenable locality load balancing, this is DestinationRule-level and will override mesh wide settings in entirety.com.google.protobuf.BoolValueOrBuilderenable locality load balancing, this is DestinationRule-level and will override mesh wide settings in entirety.getFailover(int index) Optional: only failover or distribute can be set.getFailoverBuilder(int index) Optional: only failover or distribute can be set.Optional: only failover or distribute can be set.intOptional: only failover or distribute can be set.Optional: only failover or distribute can be set.getFailoverOrBuilder(int index) Optional: only failover or distribute can be set.Optional: only failover or distribute can be set.booleanenable locality load balancing, this is DestinationRule-level and will override mesh wide settings in entirety.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeEnabled(com.google.protobuf.BoolValue value) enable locality load balancing, this is DestinationRule-level and will override mesh wide settings in entirety.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeDistribute(int index) Optional: only one of distribute or failover can be set.removeFailover(int index) Optional: only failover or distribute can be set.Optional: only one of distribute or failover can be set.setDistribute(int index, DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder builderForValue) Optional: only one of distribute or failover can be set.setEnabled(com.google.protobuf.BoolValue value) enable locality load balancing, this is DestinationRule-level and will override mesh wide settings in entirety.setEnabled(com.google.protobuf.BoolValue.Builder builderForValue) enable locality load balancing, this is DestinationRule-level and will override mesh wide settings in entirety.setFailover(int index, DestinationRuleOuterClass.LocalityLoadBalancerSetting.Failover value) Optional: only failover or distribute can be set.setFailover(int index, DestinationRuleOuterClass.LocalityLoadBalancerSetting.Failover.Builder builderForValue) Optional: only failover or distribute can be set.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 从类继承的方法 com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3从类继承的方法 com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString从类继承的方法 com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException从接口继承的方法 com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom从接口继承的方法 com.google.protobuf.MessageLite.Builder
mergeFrom从接口继承的方法 com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
方法详细资料
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- 指定者:
internalGetFieldAccessorTable在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>
-
clear
- 指定者:
clear在接口中com.google.protobuf.Message.Builder- 指定者:
clear在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clear在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- 指定者:
getDescriptorForType在接口中com.google.protobuf.Message.Builder- 指定者:
getDescriptorForType在接口中com.google.protobuf.MessageOrBuilder- 覆盖:
getDescriptorForType在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>
-
getDefaultInstanceForType
- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageLiteOrBuilder- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageOrBuilder
-
build
- 指定者:
build在接口中com.google.protobuf.Message.Builder- 指定者:
build在接口中com.google.protobuf.MessageLite.Builder
-
buildPartial
- 指定者:
buildPartial在接口中com.google.protobuf.Message.Builder- 指定者:
buildPartial在接口中com.google.protobuf.MessageLite.Builder
-
clone
- 指定者:
clone在接口中com.google.protobuf.Message.Builder- 指定者:
clone在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clone在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>
-
setField
public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - 指定者:
setField在接口中com.google.protobuf.Message.Builder- 覆盖:
setField在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>
-
clearField
public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - 指定者:
clearField在接口中com.google.protobuf.Message.Builder- 覆盖:
clearField在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>
-
clearOneof
public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - 指定者:
clearOneof在接口中com.google.protobuf.Message.Builder- 覆盖:
clearOneof在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>
-
setRepeatedField
public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - 指定者:
setRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
setRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>
-
addRepeatedField
public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - 指定者:
addRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
addRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>
-
mergeFrom
public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder mergeFrom(com.google.protobuf.Message other) - 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- 指定者:
isInitialized在接口中com.google.protobuf.MessageLiteOrBuilder- 覆盖:
isInitialized在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>
-
mergeFrom
public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 指定者:
mergeFrom在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>- 抛出:
IOException
-
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; -
getDistributeCount
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; -
getDistribute
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; -
setDistribute
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; -
setDistribute
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; -
addDistribute
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; -
addDistribute
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; -
addDistribute
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; -
addDistribute
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; -
addAllDistribute
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; -
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; -
removeDistribute
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; -
getDistributeBuilder
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; -
getDistributeOrBuilder
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; -
getDistributeOrBuilderList
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; -
addDistributeBuilder
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; -
addDistributeBuilder
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; -
getDistributeBuilderList
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; -
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; -
getFailoverCount
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; -
getFailover
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; -
setFailover
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; -
setFailover
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; -
addFailover
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; -
addFailover
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; -
addFailover
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; -
addFailover
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; -
addAllFailover
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; -
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; -
removeFailover
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; -
getFailoverBuilder
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; -
getFailoverOrBuilder
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; -
getFailoverOrBuilderList
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; -
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; -
addFailoverBuilder
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; -
getFailoverBuilderList
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; -
hasEnabled
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.LocalityLoadBalancerSettingOrBuilder- 返回:
- Whether the enabled field is set.
-
getEnabled
public 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.LocalityLoadBalancerSettingOrBuilder- 返回:
- The enabled.
-
setEnabled
public 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; -
setEnabled
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; -
mergeEnabled
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; -
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; -
getEnabledBuilder
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; -
getEnabledOrBuilder
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; -
setUnknownFields
public final DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - 指定者:
setUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
setUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>
-
mergeUnknownFields
public final DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - 指定者:
mergeUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Builder>
-