Class Cluster.SlowStartConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Cluster.SlowStartConfig.Builder>
com.google.protobuf.GeneratedMessage.Builder<Cluster.SlowStartConfig.Builder>
io.envoyproxy.envoy.config.cluster.v3.Cluster.SlowStartConfig.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cluster.SlowStartConfigOrBuilder, Cloneable
- Enclosing class:
Cluster.SlowStartConfig
public static final class Cluster.SlowStartConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Cluster.SlowStartConfig.Builder>
implements Cluster.SlowStartConfigOrBuilder
Configuration for :ref:`slow start mode <arch_overview_load_balancing_slow_start>`.Protobuf type
envoy.config.cluster.v3.Cluster.SlowStartConfig-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate RuntimeDoubleprivate com.google.protobuf.SingleFieldBuilder<RuntimeDouble, RuntimeDouble.Builder, RuntimeDoubleOrBuilder> private intprivate Percentprivate com.google.protobuf.SingleFieldBuilder<Percent, Percent.Builder, PercentOrBuilder> private com.google.protobuf.Durationprivate com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()private voidbuildPartial0(Cluster.SlowStartConfig result) clear()This parameter controls the speed of traffic increase over the slow start window.Configures the minimum percentage of origin weight that avoids too small new weight, which may cause endpoints in slow start mode receive no traffic in slow start window.Represents the size of slow start window.This parameter controls the speed of traffic increase over the slow start window.This parameter controls the speed of traffic increase over the slow start window.This parameter controls the speed of traffic increase over the slow start window.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorConfigures the minimum percentage of origin weight that avoids too small new weight, which may cause endpoints in slow start mode receive no traffic in slow start window.Configures the minimum percentage of origin weight that avoids too small new weight, which may cause endpoints in slow start mode receive no traffic in slow start window.Configures the minimum percentage of origin weight that avoids too small new weight, which may cause endpoints in slow start mode receive no traffic in slow start window.com.google.protobuf.DurationRepresents the size of slow start window.com.google.protobuf.Duration.BuilderRepresents the size of slow start window.com.google.protobuf.DurationOrBuilderRepresents the size of slow start window.booleanThis parameter controls the speed of traffic increase over the slow start window.booleanConfigures the minimum percentage of origin weight that avoids too small new weight, which may cause endpoints in slow start mode receive no traffic in slow start window.booleanRepresents the size of slow start window.private com.google.protobuf.SingleFieldBuilder<RuntimeDouble, RuntimeDouble.Builder, RuntimeDoubleOrBuilder> This parameter controls the speed of traffic increase over the slow start window.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprivate com.google.protobuf.SingleFieldBuilder<Percent, Percent.Builder, PercentOrBuilder> Configures the minimum percentage of origin weight that avoids too small new weight, which may cause endpoints in slow start mode receive no traffic in slow start window.private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> Represents the size of slow start window.final booleanprivate voidmergeAggression(RuntimeDouble value) This parameter controls the speed of traffic increase over the slow start window.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Cluster.SlowStartConfig other) mergeMinWeightPercent(Percent value) Configures the minimum percentage of origin weight that avoids too small new weight, which may cause endpoints in slow start mode receive no traffic in slow start window.mergeSlowStartWindow(com.google.protobuf.Duration value) Represents the size of slow start window.setAggression(RuntimeDouble value) This parameter controls the speed of traffic increase over the slow start window.setAggression(RuntimeDouble.Builder builderForValue) This parameter controls the speed of traffic increase over the slow start window.setMinWeightPercent(Percent value) Configures the minimum percentage of origin weight that avoids too small new weight, which may cause endpoints in slow start mode receive no traffic in slow start window.setMinWeightPercent(Percent.Builder builderForValue) Configures the minimum percentage of origin weight that avoids too small new weight, which may cause endpoints in slow start mode receive no traffic in slow start window.setSlowStartWindow(com.google.protobuf.Duration value) Represents the size of slow start window.setSlowStartWindow(com.google.protobuf.Duration.Builder builderForValue) Represents the size of slow start window.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
slowStartWindow_
private com.google.protobuf.Duration slowStartWindow_ -
slowStartWindowBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> slowStartWindowBuilder_ -
aggression_
-
aggressionBuilder_
private com.google.protobuf.SingleFieldBuilder<RuntimeDouble, RuntimeDouble.Builder, RuntimeDoubleOrBuilder> aggressionBuilder_ -
minWeightPercent_
-
minWeightPercentBuilder_
private com.google.protobuf.SingleFieldBuilder<Percent, Percent.Builder, PercentOrBuilder> minWeightPercentBuilder_
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Cluster.SlowStartConfig.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Cluster.SlowStartConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Cluster.SlowStartConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Cluster.SlowStartConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Cluster.SlowStartConfig.Builder>
-
mergeFrom
public Cluster.SlowStartConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Cluster.SlowStartConfig.Builder>- Throws:
IOException
-
hasSlowStartWindow
public boolean hasSlowStartWindow()Represents the size of slow start window. If set, the newly created host remains in slow start mode starting from its creation time for the duration of slow start window.
.google.protobuf.Duration slow_start_window = 1;- Specified by:
hasSlowStartWindowin interfaceCluster.SlowStartConfigOrBuilder- Returns:
- Whether the slowStartWindow field is set.
-
getSlowStartWindow
public com.google.protobuf.Duration getSlowStartWindow()Represents the size of slow start window. If set, the newly created host remains in slow start mode starting from its creation time for the duration of slow start window.
.google.protobuf.Duration slow_start_window = 1;- Specified by:
getSlowStartWindowin interfaceCluster.SlowStartConfigOrBuilder- Returns:
- The slowStartWindow.
-
setSlowStartWindow
Represents the size of slow start window. If set, the newly created host remains in slow start mode starting from its creation time for the duration of slow start window.
.google.protobuf.Duration slow_start_window = 1; -
setSlowStartWindow
public Cluster.SlowStartConfig.Builder setSlowStartWindow(com.google.protobuf.Duration.Builder builderForValue) Represents the size of slow start window. If set, the newly created host remains in slow start mode starting from its creation time for the duration of slow start window.
.google.protobuf.Duration slow_start_window = 1; -
mergeSlowStartWindow
Represents the size of slow start window. If set, the newly created host remains in slow start mode starting from its creation time for the duration of slow start window.
.google.protobuf.Duration slow_start_window = 1; -
clearSlowStartWindow
Represents the size of slow start window. If set, the newly created host remains in slow start mode starting from its creation time for the duration of slow start window.
.google.protobuf.Duration slow_start_window = 1; -
getSlowStartWindowBuilder
public com.google.protobuf.Duration.Builder getSlowStartWindowBuilder()Represents the size of slow start window. If set, the newly created host remains in slow start mode starting from its creation time for the duration of slow start window.
.google.protobuf.Duration slow_start_window = 1; -
getSlowStartWindowOrBuilder
public com.google.protobuf.DurationOrBuilder getSlowStartWindowOrBuilder()Represents the size of slow start window. If set, the newly created host remains in slow start mode starting from its creation time for the duration of slow start window.
.google.protobuf.Duration slow_start_window = 1;- Specified by:
getSlowStartWindowOrBuilderin interfaceCluster.SlowStartConfigOrBuilder
-
internalGetSlowStartWindowFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> internalGetSlowStartWindowFieldBuilder()Represents the size of slow start window. If set, the newly created host remains in slow start mode starting from its creation time for the duration of slow start window.
.google.protobuf.Duration slow_start_window = 1; -
hasAggression
public boolean hasAggression()This parameter controls the speed of traffic increase over the slow start window. Defaults to 1.0, so that endpoint would get linearly increasing amount of traffic. When increasing the value for this parameter, the speed of traffic ramp-up increases non-linearly. The value of aggression parameter should be greater than 0.0. By tuning the parameter, is possible to achieve polynomial or exponential shape of ramp-up curve. During slow start window, effective weight of an endpoint would be scaled with time factor and aggression: ``new_weight = weight * max(min_weight_percent, time_factor ^ (1 / aggression))``, where ``time_factor=(time_since_start_seconds / slow_start_time_seconds)``. As time progresses, more and more traffic would be sent to endpoint, which is in slow start window. Once host exits slow start, time_factor and aggression no longer affect its weight.
.envoy.config.core.v3.RuntimeDouble aggression = 2;- Specified by:
hasAggressionin interfaceCluster.SlowStartConfigOrBuilder- Returns:
- Whether the aggression field is set.
-
getAggression
This parameter controls the speed of traffic increase over the slow start window. Defaults to 1.0, so that endpoint would get linearly increasing amount of traffic. When increasing the value for this parameter, the speed of traffic ramp-up increases non-linearly. The value of aggression parameter should be greater than 0.0. By tuning the parameter, is possible to achieve polynomial or exponential shape of ramp-up curve. During slow start window, effective weight of an endpoint would be scaled with time factor and aggression: ``new_weight = weight * max(min_weight_percent, time_factor ^ (1 / aggression))``, where ``time_factor=(time_since_start_seconds / slow_start_time_seconds)``. As time progresses, more and more traffic would be sent to endpoint, which is in slow start window. Once host exits slow start, time_factor and aggression no longer affect its weight.
.envoy.config.core.v3.RuntimeDouble aggression = 2;- Specified by:
getAggressionin interfaceCluster.SlowStartConfigOrBuilder- Returns:
- The aggression.
-
setAggression
This parameter controls the speed of traffic increase over the slow start window. Defaults to 1.0, so that endpoint would get linearly increasing amount of traffic. When increasing the value for this parameter, the speed of traffic ramp-up increases non-linearly. The value of aggression parameter should be greater than 0.0. By tuning the parameter, is possible to achieve polynomial or exponential shape of ramp-up curve. During slow start window, effective weight of an endpoint would be scaled with time factor and aggression: ``new_weight = weight * max(min_weight_percent, time_factor ^ (1 / aggression))``, where ``time_factor=(time_since_start_seconds / slow_start_time_seconds)``. As time progresses, more and more traffic would be sent to endpoint, which is in slow start window. Once host exits slow start, time_factor and aggression no longer affect its weight.
.envoy.config.core.v3.RuntimeDouble aggression = 2; -
setAggression
This parameter controls the speed of traffic increase over the slow start window. Defaults to 1.0, so that endpoint would get linearly increasing amount of traffic. When increasing the value for this parameter, the speed of traffic ramp-up increases non-linearly. The value of aggression parameter should be greater than 0.0. By tuning the parameter, is possible to achieve polynomial or exponential shape of ramp-up curve. During slow start window, effective weight of an endpoint would be scaled with time factor and aggression: ``new_weight = weight * max(min_weight_percent, time_factor ^ (1 / aggression))``, where ``time_factor=(time_since_start_seconds / slow_start_time_seconds)``. As time progresses, more and more traffic would be sent to endpoint, which is in slow start window. Once host exits slow start, time_factor and aggression no longer affect its weight.
.envoy.config.core.v3.RuntimeDouble aggression = 2; -
mergeAggression
This parameter controls the speed of traffic increase over the slow start window. Defaults to 1.0, so that endpoint would get linearly increasing amount of traffic. When increasing the value for this parameter, the speed of traffic ramp-up increases non-linearly. The value of aggression parameter should be greater than 0.0. By tuning the parameter, is possible to achieve polynomial or exponential shape of ramp-up curve. During slow start window, effective weight of an endpoint would be scaled with time factor and aggression: ``new_weight = weight * max(min_weight_percent, time_factor ^ (1 / aggression))``, where ``time_factor=(time_since_start_seconds / slow_start_time_seconds)``. As time progresses, more and more traffic would be sent to endpoint, which is in slow start window. Once host exits slow start, time_factor and aggression no longer affect its weight.
.envoy.config.core.v3.RuntimeDouble aggression = 2; -
clearAggression
This parameter controls the speed of traffic increase over the slow start window. Defaults to 1.0, so that endpoint would get linearly increasing amount of traffic. When increasing the value for this parameter, the speed of traffic ramp-up increases non-linearly. The value of aggression parameter should be greater than 0.0. By tuning the parameter, is possible to achieve polynomial or exponential shape of ramp-up curve. During slow start window, effective weight of an endpoint would be scaled with time factor and aggression: ``new_weight = weight * max(min_weight_percent, time_factor ^ (1 / aggression))``, where ``time_factor=(time_since_start_seconds / slow_start_time_seconds)``. As time progresses, more and more traffic would be sent to endpoint, which is in slow start window. Once host exits slow start, time_factor and aggression no longer affect its weight.
.envoy.config.core.v3.RuntimeDouble aggression = 2; -
getAggressionBuilder
This parameter controls the speed of traffic increase over the slow start window. Defaults to 1.0, so that endpoint would get linearly increasing amount of traffic. When increasing the value for this parameter, the speed of traffic ramp-up increases non-linearly. The value of aggression parameter should be greater than 0.0. By tuning the parameter, is possible to achieve polynomial or exponential shape of ramp-up curve. During slow start window, effective weight of an endpoint would be scaled with time factor and aggression: ``new_weight = weight * max(min_weight_percent, time_factor ^ (1 / aggression))``, where ``time_factor=(time_since_start_seconds / slow_start_time_seconds)``. As time progresses, more and more traffic would be sent to endpoint, which is in slow start window. Once host exits slow start, time_factor and aggression no longer affect its weight.
.envoy.config.core.v3.RuntimeDouble aggression = 2; -
getAggressionOrBuilder
This parameter controls the speed of traffic increase over the slow start window. Defaults to 1.0, so that endpoint would get linearly increasing amount of traffic. When increasing the value for this parameter, the speed of traffic ramp-up increases non-linearly. The value of aggression parameter should be greater than 0.0. By tuning the parameter, is possible to achieve polynomial or exponential shape of ramp-up curve. During slow start window, effective weight of an endpoint would be scaled with time factor and aggression: ``new_weight = weight * max(min_weight_percent, time_factor ^ (1 / aggression))``, where ``time_factor=(time_since_start_seconds / slow_start_time_seconds)``. As time progresses, more and more traffic would be sent to endpoint, which is in slow start window. Once host exits slow start, time_factor and aggression no longer affect its weight.
.envoy.config.core.v3.RuntimeDouble aggression = 2;- Specified by:
getAggressionOrBuilderin interfaceCluster.SlowStartConfigOrBuilder
-
internalGetAggressionFieldBuilder
private com.google.protobuf.SingleFieldBuilder<RuntimeDouble, RuntimeDouble.Builder, RuntimeDoubleOrBuilder> internalGetAggressionFieldBuilder()This parameter controls the speed of traffic increase over the slow start window. Defaults to 1.0, so that endpoint would get linearly increasing amount of traffic. When increasing the value for this parameter, the speed of traffic ramp-up increases non-linearly. The value of aggression parameter should be greater than 0.0. By tuning the parameter, is possible to achieve polynomial or exponential shape of ramp-up curve. During slow start window, effective weight of an endpoint would be scaled with time factor and aggression: ``new_weight = weight * max(min_weight_percent, time_factor ^ (1 / aggression))``, where ``time_factor=(time_since_start_seconds / slow_start_time_seconds)``. As time progresses, more and more traffic would be sent to endpoint, which is in slow start window. Once host exits slow start, time_factor and aggression no longer affect its weight.
.envoy.config.core.v3.RuntimeDouble aggression = 2; -
hasMinWeightPercent
public boolean hasMinWeightPercent()Configures the minimum percentage of origin weight that avoids too small new weight, which may cause endpoints in slow start mode receive no traffic in slow start window. If not specified, the default is 10%.
.envoy.type.v3.Percent min_weight_percent = 3;- Specified by:
hasMinWeightPercentin interfaceCluster.SlowStartConfigOrBuilder- Returns:
- Whether the minWeightPercent field is set.
-
getMinWeightPercent
Configures the minimum percentage of origin weight that avoids too small new weight, which may cause endpoints in slow start mode receive no traffic in slow start window. If not specified, the default is 10%.
.envoy.type.v3.Percent min_weight_percent = 3;- Specified by:
getMinWeightPercentin interfaceCluster.SlowStartConfigOrBuilder- Returns:
- The minWeightPercent.
-
setMinWeightPercent
Configures the minimum percentage of origin weight that avoids too small new weight, which may cause endpoints in slow start mode receive no traffic in slow start window. If not specified, the default is 10%.
.envoy.type.v3.Percent min_weight_percent = 3; -
setMinWeightPercent
Configures the minimum percentage of origin weight that avoids too small new weight, which may cause endpoints in slow start mode receive no traffic in slow start window. If not specified, the default is 10%.
.envoy.type.v3.Percent min_weight_percent = 3; -
mergeMinWeightPercent
Configures the minimum percentage of origin weight that avoids too small new weight, which may cause endpoints in slow start mode receive no traffic in slow start window. If not specified, the default is 10%.
.envoy.type.v3.Percent min_weight_percent = 3; -
clearMinWeightPercent
Configures the minimum percentage of origin weight that avoids too small new weight, which may cause endpoints in slow start mode receive no traffic in slow start window. If not specified, the default is 10%.
.envoy.type.v3.Percent min_weight_percent = 3; -
getMinWeightPercentBuilder
Configures the minimum percentage of origin weight that avoids too small new weight, which may cause endpoints in slow start mode receive no traffic in slow start window. If not specified, the default is 10%.
.envoy.type.v3.Percent min_weight_percent = 3; -
getMinWeightPercentOrBuilder
Configures the minimum percentage of origin weight that avoids too small new weight, which may cause endpoints in slow start mode receive no traffic in slow start window. If not specified, the default is 10%.
.envoy.type.v3.Percent min_weight_percent = 3;- Specified by:
getMinWeightPercentOrBuilderin interfaceCluster.SlowStartConfigOrBuilder
-
internalGetMinWeightPercentFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Percent, Percent.Builder, PercentOrBuilder> internalGetMinWeightPercentFieldBuilder()Configures the minimum percentage of origin weight that avoids too small new weight, which may cause endpoints in slow start mode receive no traffic in slow start window. If not specified, the default is 10%.
.envoy.type.v3.Percent min_weight_percent = 3;
-