public static enum DestinationRuleOuterClass.LoadBalancerSettings.SimpleLB extends Enum<DestinationRuleOuterClass.LoadBalancerSettings.SimpleLB> implements com.google.protobuf.ProtocolMessageEnum
Standard load balancing algorithms that require no tuning.Protobuf enum
istio.networking.v1alpha3.LoadBalancerSettings.SimpleLB| 枚举常量和说明 |
|---|
LEAST_CONN
The least request load balancer uses an O(1) algorithm which selects
two random healthy hosts and picks the host which has fewer active
requests.
|
PASSTHROUGH
This option will forward the connection to the original IP address
requested by the caller without doing any form of load
balancing.
|
RANDOM
The random load balancer selects a random healthy host.
|
ROUND_ROBIN
Round Robin policy.
|
UNRECOGNIZED |
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
LEAST_CONN_VALUE
The least request load balancer uses an O(1) algorithm which selects
two random healthy hosts and picks the host which has fewer active
requests.
|
static int |
PASSTHROUGH_VALUE
This option will forward the connection to the original IP address
requested by the caller without doing any form of load
balancing.
|
static int |
RANDOM_VALUE
The random load balancer selects a random healthy host.
|
static int |
ROUND_ROBIN_VALUE
Round Robin policy.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static DestinationRuleOuterClass.LoadBalancerSettings.SimpleLB |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<DestinationRuleOuterClass.LoadBalancerSettings.SimpleLB> |
internalGetValueMap() |
static DestinationRuleOuterClass.LoadBalancerSettings.SimpleLB |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static DestinationRuleOuterClass.LoadBalancerSettings.SimpleLB |
valueOf(int value)
已过时。
Use
forNumber(int) instead. |
static DestinationRuleOuterClass.LoadBalancerSettings.SimpleLB |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static DestinationRuleOuterClass.LoadBalancerSettings.SimpleLB[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final DestinationRuleOuterClass.LoadBalancerSettings.SimpleLB ROUND_ROBIN
Round Robin policy. Default
ROUND_ROBIN = 0;public static final DestinationRuleOuterClass.LoadBalancerSettings.SimpleLB LEAST_CONN
The least request load balancer uses an O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests.
LEAST_CONN = 1;public static final DestinationRuleOuterClass.LoadBalancerSettings.SimpleLB RANDOM
The random load balancer selects a random healthy host. The random load balancer generally performs better than round robin if no health checking policy is configured.
RANDOM = 2;public static final DestinationRuleOuterClass.LoadBalancerSettings.SimpleLB PASSTHROUGH
This option will forward the connection to the original IP address requested by the caller without doing any form of load balancing. This option must be used with care. It is meant for advanced use cases. Refer to Original Destination load balancer in Envoy for further details.
PASSTHROUGH = 3;public static final DestinationRuleOuterClass.LoadBalancerSettings.SimpleLB UNRECOGNIZED
public static final int ROUND_ROBIN_VALUE
Round Robin policy. Default
ROUND_ROBIN = 0;public static final int LEAST_CONN_VALUE
The least request load balancer uses an O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests.
LEAST_CONN = 1;public static final int RANDOM_VALUE
The random load balancer selects a random healthy host. The random load balancer generally performs better than round robin if no health checking policy is configured.
RANDOM = 2;public static final int PASSTHROUGH_VALUE
This option will forward the connection to the original IP address requested by the caller without doing any form of load balancing. This option must be used with care. It is meant for advanced use cases. Refer to Original Destination load balancer in Envoy for further details.
PASSTHROUGH = 3;public static DestinationRuleOuterClass.LoadBalancerSettings.SimpleLB[] values()
for (DestinationRuleOuterClass.LoadBalancerSettings.SimpleLB c : DestinationRuleOuterClass.LoadBalancerSettings.SimpleLB.values()) System.out.println(c);
public static DestinationRuleOuterClass.LoadBalancerSettings.SimpleLB valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public final int getNumber()
getNumber 在接口中 com.google.protobuf.Internal.EnumLitegetNumber 在接口中 com.google.protobuf.ProtocolMessageEnum@Deprecated public static DestinationRuleOuterClass.LoadBalancerSettings.SimpleLB valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static DestinationRuleOuterClass.LoadBalancerSettings.SimpleLB forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<DestinationRuleOuterClass.LoadBalancerSettings.SimpleLB> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor 在接口中 com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static DestinationRuleOuterClass.LoadBalancerSettings.SimpleLB valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2018–2023 Alibaba Group. All rights reserved.