public static final class Cluster.LeastRequestLbConfig extends com.google.protobuf.GeneratedMessageV3 implements Cluster.LeastRequestLbConfigOrBuilder
Specific configuration for the LeastRequest load balancing policy.Protobuf type
envoy.config.cluster.v3.Cluster.LeastRequestLbConfig| Modifier and Type | Class and Description |
|---|---|
static class |
Cluster.LeastRequestLbConfig.Builder
Specific configuration for the LeastRequest load balancing policy.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVE_REQUEST_BIAS_FIELD_NUMBER |
static int |
CHOICE_COUNT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
RuntimeDouble |
getActiveRequestBias()
The following formula is used to calculate the dynamic weights when hosts have different load
balancing weights:
`weight = load_balancing_weight / (active_requests + 1)^active_request_bias`
The larger the active request bias is, the more aggressively active requests will lower the
effective weight when all host weights are not equal.
|
RuntimeDoubleOrBuilder |
getActiveRequestBiasOrBuilder()
The following formula is used to calculate the dynamic weights when hosts have different load
balancing weights:
`weight = load_balancing_weight / (active_requests + 1)^active_request_bias`
The larger the active request bias is, the more aggressively active requests will lower the
effective weight when all host weights are not equal.
|
com.google.protobuf.UInt32Value |
getChoiceCount()
The number of random healthy hosts from which the host with the fewest active requests will
be chosen.
|
com.google.protobuf.UInt32ValueOrBuilder |
getChoiceCountOrBuilder()
The number of random healthy hosts from which the host with the fewest active requests will
be chosen.
|
static Cluster.LeastRequestLbConfig |
getDefaultInstance() |
Cluster.LeastRequestLbConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<Cluster.LeastRequestLbConfig> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasActiveRequestBias()
The following formula is used to calculate the dynamic weights when hosts have different load
balancing weights:
`weight = load_balancing_weight / (active_requests + 1)^active_request_bias`
The larger the active request bias is, the more aggressively active requests will lower the
effective weight when all host weights are not equal.
|
boolean |
hasChoiceCount()
The number of random healthy hosts from which the host with the fewest active requests will
be chosen.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Cluster.LeastRequestLbConfig.Builder |
newBuilder() |
static Cluster.LeastRequestLbConfig.Builder |
newBuilder(Cluster.LeastRequestLbConfig prototype) |
Cluster.LeastRequestLbConfig.Builder |
newBuilderForType() |
protected Cluster.LeastRequestLbConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Cluster.LeastRequestLbConfig |
parseDelimitedFrom(InputStream input) |
static Cluster.LeastRequestLbConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Cluster.LeastRequestLbConfig |
parseFrom(byte[] data) |
static Cluster.LeastRequestLbConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Cluster.LeastRequestLbConfig |
parseFrom(ByteBuffer data) |
static Cluster.LeastRequestLbConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Cluster.LeastRequestLbConfig |
parseFrom(com.google.protobuf.ByteString data) |
static Cluster.LeastRequestLbConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Cluster.LeastRequestLbConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Cluster.LeastRequestLbConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Cluster.LeastRequestLbConfig |
parseFrom(InputStream input) |
static Cluster.LeastRequestLbConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Cluster.LeastRequestLbConfig> |
parser() |
Cluster.LeastRequestLbConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int CHOICE_COUNT_FIELD_NUMBER
public static final int ACTIVE_REQUEST_BIAS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasChoiceCount()
The number of random healthy hosts from which the host with the fewest active requests will be chosen. Defaults to 2 so that we perform two-choice selection if the field is not set.
.google.protobuf.UInt32Value choice_count = 1 [(.validate.rules) = { ... }hasChoiceCount in interface Cluster.LeastRequestLbConfigOrBuilderpublic com.google.protobuf.UInt32Value getChoiceCount()
The number of random healthy hosts from which the host with the fewest active requests will be chosen. Defaults to 2 so that we perform two-choice selection if the field is not set.
.google.protobuf.UInt32Value choice_count = 1 [(.validate.rules) = { ... }getChoiceCount in interface Cluster.LeastRequestLbConfigOrBuilderpublic com.google.protobuf.UInt32ValueOrBuilder getChoiceCountOrBuilder()
The number of random healthy hosts from which the host with the fewest active requests will be chosen. Defaults to 2 so that we perform two-choice selection if the field is not set.
.google.protobuf.UInt32Value choice_count = 1 [(.validate.rules) = { ... }getChoiceCountOrBuilder in interface Cluster.LeastRequestLbConfigOrBuilderpublic boolean hasActiveRequestBias()
The following formula is used to calculate the dynamic weights when hosts have different load balancing weights: `weight = load_balancing_weight / (active_requests + 1)^active_request_bias` The larger the active request bias is, the more aggressively active requests will lower the effective weight when all host weights are not equal. `active_request_bias` must be greater than or equal to 0.0. When `active_request_bias == 0.0` the Least Request Load Balancer doesn't consider the number of active requests at the time it picks a host and behaves like the Round Robin Load Balancer. When `active_request_bias > 0.0` the Least Request Load Balancer scales the load balancing weight by the number of active requests at the time it does a pick. The value is cached for performance reasons and refreshed whenever one of the Load Balancer's host sets changes, e.g., whenever there is a host membership update or a host load balancing weight change. .. note:: This setting only takes effect if all host weights are not equal.
.envoy.config.core.v3.RuntimeDouble active_request_bias = 2;hasActiveRequestBias in interface Cluster.LeastRequestLbConfigOrBuilderpublic RuntimeDouble getActiveRequestBias()
The following formula is used to calculate the dynamic weights when hosts have different load balancing weights: `weight = load_balancing_weight / (active_requests + 1)^active_request_bias` The larger the active request bias is, the more aggressively active requests will lower the effective weight when all host weights are not equal. `active_request_bias` must be greater than or equal to 0.0. When `active_request_bias == 0.0` the Least Request Load Balancer doesn't consider the number of active requests at the time it picks a host and behaves like the Round Robin Load Balancer. When `active_request_bias > 0.0` the Least Request Load Balancer scales the load balancing weight by the number of active requests at the time it does a pick. The value is cached for performance reasons and refreshed whenever one of the Load Balancer's host sets changes, e.g., whenever there is a host membership update or a host load balancing weight change. .. note:: This setting only takes effect if all host weights are not equal.
.envoy.config.core.v3.RuntimeDouble active_request_bias = 2;getActiveRequestBias in interface Cluster.LeastRequestLbConfigOrBuilderpublic RuntimeDoubleOrBuilder getActiveRequestBiasOrBuilder()
The following formula is used to calculate the dynamic weights when hosts have different load balancing weights: `weight = load_balancing_weight / (active_requests + 1)^active_request_bias` The larger the active request bias is, the more aggressively active requests will lower the effective weight when all host weights are not equal. `active_request_bias` must be greater than or equal to 0.0. When `active_request_bias == 0.0` the Least Request Load Balancer doesn't consider the number of active requests at the time it picks a host and behaves like the Round Robin Load Balancer. When `active_request_bias > 0.0` the Least Request Load Balancer scales the load balancing weight by the number of active requests at the time it does a pick. The value is cached for performance reasons and refreshed whenever one of the Load Balancer's host sets changes, e.g., whenever there is a host membership update or a host load balancing weight change. .. note:: This setting only takes effect if all host weights are not equal.
.envoy.config.core.v3.RuntimeDouble active_request_bias = 2;getActiveRequestBiasOrBuilder in interface Cluster.LeastRequestLbConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Cluster.LeastRequestLbConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Cluster.LeastRequestLbConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Cluster.LeastRequestLbConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Cluster.LeastRequestLbConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Cluster.LeastRequestLbConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Cluster.LeastRequestLbConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Cluster.LeastRequestLbConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static Cluster.LeastRequestLbConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Cluster.LeastRequestLbConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Cluster.LeastRequestLbConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Cluster.LeastRequestLbConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Cluster.LeastRequestLbConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Cluster.LeastRequestLbConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Cluster.LeastRequestLbConfig.Builder newBuilder()
public static Cluster.LeastRequestLbConfig.Builder newBuilder(Cluster.LeastRequestLbConfig prototype)
public Cluster.LeastRequestLbConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Cluster.LeastRequestLbConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Cluster.LeastRequestLbConfig getDefaultInstance()
public static com.google.protobuf.Parser<Cluster.LeastRequestLbConfig> parser()
public com.google.protobuf.Parser<Cluster.LeastRequestLbConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Cluster.LeastRequestLbConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.