public static final class Cluster.LeastRequestLbConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Cluster.LeastRequestLbConfig.Builder> implements Cluster.LeastRequestLbConfigOrBuilder
Specific configuration for the LeastRequest load balancing policy.Protobuf type
envoy.config.cluster.v4alpha.Cluster.LeastRequestLbConfig| Modifier and Type | Method and Description |
|---|---|
Cluster.LeastRequestLbConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Cluster.LeastRequestLbConfig |
build() |
Cluster.LeastRequestLbConfig |
buildPartial() |
Cluster.LeastRequestLbConfig.Builder |
clear() |
Cluster.LeastRequestLbConfig.Builder |
clearActiveRequestBias()
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.
|
Cluster.LeastRequestLbConfig.Builder |
clearChoiceCount()
The number of random healthy hosts from which the host with the fewest active requests will
be chosen.
|
Cluster.LeastRequestLbConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Cluster.LeastRequestLbConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Cluster.LeastRequestLbConfig.Builder |
clone() |
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.
|
RuntimeDouble.Builder |
getActiveRequestBiasBuilder()
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.UInt32Value.Builder |
getChoiceCountBuilder()
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.
|
Cluster.LeastRequestLbConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Cluster.LeastRequestLbConfig.Builder |
mergeActiveRequestBias(RuntimeDouble value)
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.
|
Cluster.LeastRequestLbConfig.Builder |
mergeChoiceCount(com.google.protobuf.UInt32Value value)
The number of random healthy hosts from which the host with the fewest active requests will
be chosen.
|
Cluster.LeastRequestLbConfig.Builder |
mergeFrom(Cluster.LeastRequestLbConfig other) |
Cluster.LeastRequestLbConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Cluster.LeastRequestLbConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
Cluster.LeastRequestLbConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Cluster.LeastRequestLbConfig.Builder |
setActiveRequestBias(RuntimeDouble.Builder builderForValue)
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.
|
Cluster.LeastRequestLbConfig.Builder |
setActiveRequestBias(RuntimeDouble value)
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.
|
Cluster.LeastRequestLbConfig.Builder |
setChoiceCount(com.google.protobuf.UInt32Value.Builder builderForValue)
The number of random healthy hosts from which the host with the fewest active requests will
be chosen.
|
Cluster.LeastRequestLbConfig.Builder |
setChoiceCount(com.google.protobuf.UInt32Value value)
The number of random healthy hosts from which the host with the fewest active requests will
be chosen.
|
Cluster.LeastRequestLbConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Cluster.LeastRequestLbConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Cluster.LeastRequestLbConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.LeastRequestLbConfig.Builder>public Cluster.LeastRequestLbConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.LeastRequestLbConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.LeastRequestLbConfig.Builder>public Cluster.LeastRequestLbConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Cluster.LeastRequestLbConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Cluster.LeastRequestLbConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Cluster.LeastRequestLbConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.LeastRequestLbConfig.Builder>public Cluster.LeastRequestLbConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.LeastRequestLbConfig.Builder>public Cluster.LeastRequestLbConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.LeastRequestLbConfig.Builder>public Cluster.LeastRequestLbConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.LeastRequestLbConfig.Builder>public Cluster.LeastRequestLbConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.LeastRequestLbConfig.Builder>public Cluster.LeastRequestLbConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.LeastRequestLbConfig.Builder>public Cluster.LeastRequestLbConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Cluster.LeastRequestLbConfig.Builder>public Cluster.LeastRequestLbConfig.Builder mergeFrom(Cluster.LeastRequestLbConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.LeastRequestLbConfig.Builder>public Cluster.LeastRequestLbConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Cluster.LeastRequestLbConfig.Builder>IOExceptionpublic 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 Cluster.LeastRequestLbConfig.Builder setChoiceCount(com.google.protobuf.UInt32Value value)
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) = { ... }public Cluster.LeastRequestLbConfig.Builder setChoiceCount(com.google.protobuf.UInt32Value.Builder builderForValue)
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) = { ... }public Cluster.LeastRequestLbConfig.Builder mergeChoiceCount(com.google.protobuf.UInt32Value value)
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) = { ... }public Cluster.LeastRequestLbConfig.Builder clearChoiceCount()
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) = { ... }public com.google.protobuf.UInt32Value.Builder getChoiceCountBuilder()
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) = { ... }public 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.v4alpha.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.v4alpha.RuntimeDouble active_request_bias = 2;getActiveRequestBias in interface Cluster.LeastRequestLbConfigOrBuilderpublic Cluster.LeastRequestLbConfig.Builder setActiveRequestBias(RuntimeDouble value)
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.v4alpha.RuntimeDouble active_request_bias = 2;public Cluster.LeastRequestLbConfig.Builder setActiveRequestBias(RuntimeDouble.Builder builderForValue)
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.v4alpha.RuntimeDouble active_request_bias = 2;public Cluster.LeastRequestLbConfig.Builder mergeActiveRequestBias(RuntimeDouble value)
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.v4alpha.RuntimeDouble active_request_bias = 2;public Cluster.LeastRequestLbConfig.Builder clearActiveRequestBias()
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.v4alpha.RuntimeDouble active_request_bias = 2;public RuntimeDouble.Builder getActiveRequestBiasBuilder()
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.v4alpha.RuntimeDouble active_request_bias = 2;public 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.v4alpha.RuntimeDouble active_request_bias = 2;getActiveRequestBiasOrBuilder in interface Cluster.LeastRequestLbConfigOrBuilderpublic final Cluster.LeastRequestLbConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.LeastRequestLbConfig.Builder>public final Cluster.LeastRequestLbConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.LeastRequestLbConfig.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.