类 DestinationRuleOuterClass.OutlierDetection.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<DestinationRuleOuterClass.OutlierDetection.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.OutlierDetection.Builder>
istio.networking.v1alpha3.DestinationRuleOuterClass.OutlierDetection.Builder
- 所有已实现的接口:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,DestinationRuleOuterClass.OutlierDetectionOrBuilder,Cloneable
public static final class DestinationRuleOuterClass.OutlierDetection.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.OutlierDetection.Builder>
implements DestinationRuleOuterClass.OutlierDetectionOrBuilder
A Circuit breaker implementation that tracks the status of each
individual host in the upstream service. Applicable to both HTTP and
TCP services. For HTTP services, hosts that continually return 5xx
errors for API calls are ejected from the pool for a pre-defined period
of time. For TCP services, connection timeouts or connection
failures to a given host counts as an error when measuring the
consecutive errors metric. See Envoy's [outlier
detection](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/outlier)
for more details.
The following rule sets a connection pool size of 100 HTTP1 connections
with no more than 10 req/connection to the "reviews" service. In addition,
it sets a limit of 1000 concurrent HTTP2 requests and configures upstream
hosts to be scanned every 5 mins so that any host that fails 7 consecutive
times with a 502, 503, or 504 error code will be ejected for 15 minutes.
{{<tabset category-name="example">}}
{{<tab name="v1alpha3" category-value="v1alpha3">}}
```yaml
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
name: reviews-cb-policy
spec:
host: reviews.prod.svc.cluster.local
trafficPolicy:
connectionPool:
tcp:
maxConnections: 100
http:
http2MaxRequests: 1000
maxRequestsPerConnection: 10
outlierDetection:
consecutiveErrors: 7
interval: 5m
baseEjectionTime: 15m
```
{{</tab>}}
{{<tab name="v1beta1" category-value="v1beta1">}}
```yaml
apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
name: reviews-cb-policy
spec:
host: reviews.prod.svc.cluster.local
trafficPolicy:
connectionPool:
tcp:
maxConnections: 100
http:
http2MaxRequests: 1000
maxRequestsPerConnection: 10
outlierDetection:
consecutiveErrors: 7
interval: 5m
baseEjectionTime: 15m
```
{{</tab>}}
{{</tabset>}}
Protobuf type istio.networking.v1alpha3.OutlierDetection-
方法概要
修饰符和类型方法说明addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Minimum ejection duration.Number of 5xx errors before a host is ejected from the connection pool.已过时。istio.networking.v1alpha3.OutlierDetection.consecutive_errors is deprecated.Number of gateway errors before a host is ejected from the connection pool.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Time interval between ejection sweep analysis. format: 1h/1m/1s/1ms.Maximum % of hosts in the load balancing pool for the upstream service that can be ejected.Outlier detection will be enabled as long as the associated load balancing pool has at least min_health_percent hosts in healthy mode.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()com.google.protobuf.DurationMinimum ejection duration.com.google.protobuf.Duration.BuilderMinimum ejection duration.com.google.protobuf.DurationOrBuilderMinimum ejection duration.com.google.protobuf.UInt32ValueNumber of 5xx errors before a host is ejected from the connection pool.com.google.protobuf.UInt32Value.BuilderNumber of 5xx errors before a host is ejected from the connection pool.com.google.protobuf.UInt32ValueOrBuilderNumber of 5xx errors before a host is ejected from the connection pool.int已过时。istio.networking.v1alpha3.OutlierDetection.consecutive_errors is deprecated.com.google.protobuf.UInt32ValueNumber of gateway errors before a host is ejected from the connection pool.com.google.protobuf.UInt32Value.BuilderNumber of gateway errors before a host is ejected from the connection pool.com.google.protobuf.UInt32ValueOrBuilderNumber of gateway errors before a host is ejected from the connection pool.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.DurationTime interval between ejection sweep analysis. format: 1h/1m/1s/1ms.com.google.protobuf.Duration.BuilderTime interval between ejection sweep analysis. format: 1h/1m/1s/1ms.com.google.protobuf.DurationOrBuilderTime interval between ejection sweep analysis. format: 1h/1m/1s/1ms.intMaximum % of hosts in the load balancing pool for the upstream service that can be ejected.intOutlier detection will be enabled as long as the associated load balancing pool has at least min_health_percent hosts in healthy mode.booleanMinimum ejection duration.booleanNumber of 5xx errors before a host is ejected from the connection pool.booleanNumber of gateway errors before a host is ejected from the connection pool.booleanTime interval between ejection sweep analysis. format: 1h/1m/1s/1ms.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeBaseEjectionTime(com.google.protobuf.Duration value) Minimum ejection duration.mergeConsecutive5XxErrors(com.google.protobuf.UInt32Value value) Number of 5xx errors before a host is ejected from the connection pool.mergeConsecutiveGatewayErrors(com.google.protobuf.UInt32Value value) Number of gateway errors before a host is ejected from the connection pool.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeInterval(com.google.protobuf.Duration value) Time interval between ejection sweep analysis. format: 1h/1m/1s/1ms.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setBaseEjectionTime(com.google.protobuf.Duration value) Minimum ejection duration.setBaseEjectionTime(com.google.protobuf.Duration.Builder builderForValue) Minimum ejection duration.setConsecutive5XxErrors(com.google.protobuf.UInt32Value value) Number of 5xx errors before a host is ejected from the connection pool.setConsecutive5XxErrors(com.google.protobuf.UInt32Value.Builder builderForValue) Number of 5xx errors before a host is ejected from the connection pool.setConsecutiveErrors(int value) 已过时。istio.networking.v1alpha3.OutlierDetection.consecutive_errors is deprecated.setConsecutiveGatewayErrors(com.google.protobuf.UInt32Value value) Number of gateway errors before a host is ejected from the connection pool.setConsecutiveGatewayErrors(com.google.protobuf.UInt32Value.Builder builderForValue) Number of gateway errors before a host is ejected from the connection pool.setInterval(com.google.protobuf.Duration value) Time interval between ejection sweep analysis. format: 1h/1m/1s/1ms.setInterval(com.google.protobuf.Duration.Builder builderForValue) Time interval between ejection sweep analysis. format: 1h/1m/1s/1ms.setMaxEjectionPercent(int value) Maximum % of hosts in the load balancing pool for the upstream service that can be ejected.setMinHealthPercent(int value) Outlier detection will be enabled as long as the associated load balancing pool has at least min_health_percent hosts in healthy mode.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.OutlierDetection.Builder>
-
clear
- 指定者:
clear在接口中com.google.protobuf.Message.Builder- 指定者:
clear在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clear在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.OutlierDetection.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.OutlierDetection.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.OutlierDetection.Builder>
-
setField
public DestinationRuleOuterClass.OutlierDetection.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - 指定者:
setField在接口中com.google.protobuf.Message.Builder- 覆盖:
setField在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.OutlierDetection.Builder>
-
clearField
public DestinationRuleOuterClass.OutlierDetection.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - 指定者:
clearField在接口中com.google.protobuf.Message.Builder- 覆盖:
clearField在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.OutlierDetection.Builder>
-
clearOneof
public DestinationRuleOuterClass.OutlierDetection.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - 指定者:
clearOneof在接口中com.google.protobuf.Message.Builder- 覆盖:
clearOneof在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.OutlierDetection.Builder>
-
setRepeatedField
public DestinationRuleOuterClass.OutlierDetection.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.OutlierDetection.Builder>
-
addRepeatedField
public DestinationRuleOuterClass.OutlierDetection.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - 指定者:
addRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
addRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.OutlierDetection.Builder>
-
mergeFrom
public DestinationRuleOuterClass.OutlierDetection.Builder mergeFrom(com.google.protobuf.Message other) - 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<DestinationRuleOuterClass.OutlierDetection.Builder>
-
mergeFrom
public DestinationRuleOuterClass.OutlierDetection.Builder mergeFrom(DestinationRuleOuterClass.OutlierDetection other) -
isInitialized
public final boolean isInitialized()- 指定者:
isInitialized在接口中com.google.protobuf.MessageLiteOrBuilder- 覆盖:
isInitialized在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.OutlierDetection.Builder>
-
mergeFrom
public DestinationRuleOuterClass.OutlierDetection.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.OutlierDetection.Builder>- 抛出:
IOException
-
getConsecutiveErrors
已过时。istio.networking.v1alpha3.OutlierDetection.consecutive_errors is deprecated. See networking/v1alpha3/destination_rule.proto;l=724Number of errors before a host is ejected from the connection pool. Defaults to 5. When the upstream host is accessed over HTTP, a 502, 503, or 504 return code qualifies as an error. When the upstream host is accessed over an opaque TCP connection, connect timeouts and connection error/failure events qualify as an error. $hide_from_docs
int32 consecutive_errors = 1 [deprecated = true];- 指定者:
getConsecutiveErrors在接口中DestinationRuleOuterClass.OutlierDetectionOrBuilder- 返回:
- The consecutiveErrors.
-
setConsecutiveErrors
@Deprecated public DestinationRuleOuterClass.OutlierDetection.Builder setConsecutiveErrors(int value) 已过时。istio.networking.v1alpha3.OutlierDetection.consecutive_errors is deprecated. See networking/v1alpha3/destination_rule.proto;l=724Number of errors before a host is ejected from the connection pool. Defaults to 5. When the upstream host is accessed over HTTP, a 502, 503, or 504 return code qualifies as an error. When the upstream host is accessed over an opaque TCP connection, connect timeouts and connection error/failure events qualify as an error. $hide_from_docs
int32 consecutive_errors = 1 [deprecated = true];- 参数:
value- The consecutiveErrors to set.- 返回:
- This builder for chaining.
-
clearConsecutiveErrors
已过时。istio.networking.v1alpha3.OutlierDetection.consecutive_errors is deprecated. See networking/v1alpha3/destination_rule.proto;l=724Number of errors before a host is ejected from the connection pool. Defaults to 5. When the upstream host is accessed over HTTP, a 502, 503, or 504 return code qualifies as an error. When the upstream host is accessed over an opaque TCP connection, connect timeouts and connection error/failure events qualify as an error. $hide_from_docs
int32 consecutive_errors = 1 [deprecated = true];- 返回:
- This builder for chaining.
-
hasConsecutiveGatewayErrors
public boolean hasConsecutiveGatewayErrors()Number of gateway errors before a host is ejected from the connection pool. When the upstream host is accessed over HTTP, a 502, 503, or 504 return code qualifies as a gateway error. When the upstream host is accessed over an opaque TCP connection, connect timeouts and connection error/failure events qualify as a gateway error. This feature is disabled by default or when set to the value 0. Note that consecutive_gateway_errors and consecutive_5xx_errors can be used separately or together. Because the errors counted by consecutive_gateway_errors are also included in consecutive_5xx_errors, if the value of consecutive_gateway_errors is greater than or equal to the value of consecutive_5xx_errors, consecutive_gateway_errors will have no effect.
.google.protobuf.UInt32Value consecutive_gateway_errors = 6;- 指定者:
hasConsecutiveGatewayErrors在接口中DestinationRuleOuterClass.OutlierDetectionOrBuilder- 返回:
- Whether the consecutiveGatewayErrors field is set.
-
getConsecutiveGatewayErrors
public com.google.protobuf.UInt32Value getConsecutiveGatewayErrors()Number of gateway errors before a host is ejected from the connection pool. When the upstream host is accessed over HTTP, a 502, 503, or 504 return code qualifies as a gateway error. When the upstream host is accessed over an opaque TCP connection, connect timeouts and connection error/failure events qualify as a gateway error. This feature is disabled by default or when set to the value 0. Note that consecutive_gateway_errors and consecutive_5xx_errors can be used separately or together. Because the errors counted by consecutive_gateway_errors are also included in consecutive_5xx_errors, if the value of consecutive_gateway_errors is greater than or equal to the value of consecutive_5xx_errors, consecutive_gateway_errors will have no effect.
.google.protobuf.UInt32Value consecutive_gateway_errors = 6;- 指定者:
getConsecutiveGatewayErrors在接口中DestinationRuleOuterClass.OutlierDetectionOrBuilder- 返回:
- The consecutiveGatewayErrors.
-
setConsecutiveGatewayErrors
public DestinationRuleOuterClass.OutlierDetection.Builder setConsecutiveGatewayErrors(com.google.protobuf.UInt32Value value) Number of gateway errors before a host is ejected from the connection pool. When the upstream host is accessed over HTTP, a 502, 503, or 504 return code qualifies as a gateway error. When the upstream host is accessed over an opaque TCP connection, connect timeouts and connection error/failure events qualify as a gateway error. This feature is disabled by default or when set to the value 0. Note that consecutive_gateway_errors and consecutive_5xx_errors can be used separately or together. Because the errors counted by consecutive_gateway_errors are also included in consecutive_5xx_errors, if the value of consecutive_gateway_errors is greater than or equal to the value of consecutive_5xx_errors, consecutive_gateway_errors will have no effect.
.google.protobuf.UInt32Value consecutive_gateway_errors = 6; -
setConsecutiveGatewayErrors
public DestinationRuleOuterClass.OutlierDetection.Builder setConsecutiveGatewayErrors(com.google.protobuf.UInt32Value.Builder builderForValue) Number of gateway errors before a host is ejected from the connection pool. When the upstream host is accessed over HTTP, a 502, 503, or 504 return code qualifies as a gateway error. When the upstream host is accessed over an opaque TCP connection, connect timeouts and connection error/failure events qualify as a gateway error. This feature is disabled by default or when set to the value 0. Note that consecutive_gateway_errors and consecutive_5xx_errors can be used separately or together. Because the errors counted by consecutive_gateway_errors are also included in consecutive_5xx_errors, if the value of consecutive_gateway_errors is greater than or equal to the value of consecutive_5xx_errors, consecutive_gateway_errors will have no effect.
.google.protobuf.UInt32Value consecutive_gateway_errors = 6; -
mergeConsecutiveGatewayErrors
public DestinationRuleOuterClass.OutlierDetection.Builder mergeConsecutiveGatewayErrors(com.google.protobuf.UInt32Value value) Number of gateway errors before a host is ejected from the connection pool. When the upstream host is accessed over HTTP, a 502, 503, or 504 return code qualifies as a gateway error. When the upstream host is accessed over an opaque TCP connection, connect timeouts and connection error/failure events qualify as a gateway error. This feature is disabled by default or when set to the value 0. Note that consecutive_gateway_errors and consecutive_5xx_errors can be used separately or together. Because the errors counted by consecutive_gateway_errors are also included in consecutive_5xx_errors, if the value of consecutive_gateway_errors is greater than or equal to the value of consecutive_5xx_errors, consecutive_gateway_errors will have no effect.
.google.protobuf.UInt32Value consecutive_gateway_errors = 6; -
clearConsecutiveGatewayErrors
Number of gateway errors before a host is ejected from the connection pool. When the upstream host is accessed over HTTP, a 502, 503, or 504 return code qualifies as a gateway error. When the upstream host is accessed over an opaque TCP connection, connect timeouts and connection error/failure events qualify as a gateway error. This feature is disabled by default or when set to the value 0. Note that consecutive_gateway_errors and consecutive_5xx_errors can be used separately or together. Because the errors counted by consecutive_gateway_errors are also included in consecutive_5xx_errors, if the value of consecutive_gateway_errors is greater than or equal to the value of consecutive_5xx_errors, consecutive_gateway_errors will have no effect.
.google.protobuf.UInt32Value consecutive_gateway_errors = 6; -
getConsecutiveGatewayErrorsBuilder
public com.google.protobuf.UInt32Value.Builder getConsecutiveGatewayErrorsBuilder()Number of gateway errors before a host is ejected from the connection pool. When the upstream host is accessed over HTTP, a 502, 503, or 504 return code qualifies as a gateway error. When the upstream host is accessed over an opaque TCP connection, connect timeouts and connection error/failure events qualify as a gateway error. This feature is disabled by default or when set to the value 0. Note that consecutive_gateway_errors and consecutive_5xx_errors can be used separately or together. Because the errors counted by consecutive_gateway_errors are also included in consecutive_5xx_errors, if the value of consecutive_gateway_errors is greater than or equal to the value of consecutive_5xx_errors, consecutive_gateway_errors will have no effect.
.google.protobuf.UInt32Value consecutive_gateway_errors = 6; -
getConsecutiveGatewayErrorsOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getConsecutiveGatewayErrorsOrBuilder()Number of gateway errors before a host is ejected from the connection pool. When the upstream host is accessed over HTTP, a 502, 503, or 504 return code qualifies as a gateway error. When the upstream host is accessed over an opaque TCP connection, connect timeouts and connection error/failure events qualify as a gateway error. This feature is disabled by default or when set to the value 0. Note that consecutive_gateway_errors and consecutive_5xx_errors can be used separately or together. Because the errors counted by consecutive_gateway_errors are also included in consecutive_5xx_errors, if the value of consecutive_gateway_errors is greater than or equal to the value of consecutive_5xx_errors, consecutive_gateway_errors will have no effect.
.google.protobuf.UInt32Value consecutive_gateway_errors = 6; -
hasConsecutive5XxErrors
public boolean hasConsecutive5XxErrors()Number of 5xx errors before a host is ejected from the connection pool. When the upstream host is accessed over an opaque TCP connection, connect timeouts, connection error/failure and request failure events qualify as a 5xx error. This feature defaults to 5 but can be disabled by setting the value to 0. Note that consecutive_gateway_errors and consecutive_5xx_errors can be used separately or together. Because the errors counted by consecutive_gateway_errors are also included in consecutive_5xx_errors, if the value of consecutive_gateway_errors is greater than or equal to the value of consecutive_5xx_errors, consecutive_gateway_errors will have no effect.
.google.protobuf.UInt32Value consecutive_5xx_errors = 7;- 指定者:
hasConsecutive5XxErrors在接口中DestinationRuleOuterClass.OutlierDetectionOrBuilder- 返回:
- Whether the consecutive5xxErrors field is set.
-
getConsecutive5XxErrors
public com.google.protobuf.UInt32Value getConsecutive5XxErrors()Number of 5xx errors before a host is ejected from the connection pool. When the upstream host is accessed over an opaque TCP connection, connect timeouts, connection error/failure and request failure events qualify as a 5xx error. This feature defaults to 5 but can be disabled by setting the value to 0. Note that consecutive_gateway_errors and consecutive_5xx_errors can be used separately or together. Because the errors counted by consecutive_gateway_errors are also included in consecutive_5xx_errors, if the value of consecutive_gateway_errors is greater than or equal to the value of consecutive_5xx_errors, consecutive_gateway_errors will have no effect.
.google.protobuf.UInt32Value consecutive_5xx_errors = 7;- 指定者:
getConsecutive5XxErrors在接口中DestinationRuleOuterClass.OutlierDetectionOrBuilder- 返回:
- The consecutive5xxErrors.
-
setConsecutive5XxErrors
public DestinationRuleOuterClass.OutlierDetection.Builder setConsecutive5XxErrors(com.google.protobuf.UInt32Value value) Number of 5xx errors before a host is ejected from the connection pool. When the upstream host is accessed over an opaque TCP connection, connect timeouts, connection error/failure and request failure events qualify as a 5xx error. This feature defaults to 5 but can be disabled by setting the value to 0. Note that consecutive_gateway_errors and consecutive_5xx_errors can be used separately or together. Because the errors counted by consecutive_gateway_errors are also included in consecutive_5xx_errors, if the value of consecutive_gateway_errors is greater than or equal to the value of consecutive_5xx_errors, consecutive_gateway_errors will have no effect.
.google.protobuf.UInt32Value consecutive_5xx_errors = 7; -
setConsecutive5XxErrors
public DestinationRuleOuterClass.OutlierDetection.Builder setConsecutive5XxErrors(com.google.protobuf.UInt32Value.Builder builderForValue) Number of 5xx errors before a host is ejected from the connection pool. When the upstream host is accessed over an opaque TCP connection, connect timeouts, connection error/failure and request failure events qualify as a 5xx error. This feature defaults to 5 but can be disabled by setting the value to 0. Note that consecutive_gateway_errors and consecutive_5xx_errors can be used separately or together. Because the errors counted by consecutive_gateway_errors are also included in consecutive_5xx_errors, if the value of consecutive_gateway_errors is greater than or equal to the value of consecutive_5xx_errors, consecutive_gateway_errors will have no effect.
.google.protobuf.UInt32Value consecutive_5xx_errors = 7; -
mergeConsecutive5XxErrors
public DestinationRuleOuterClass.OutlierDetection.Builder mergeConsecutive5XxErrors(com.google.protobuf.UInt32Value value) Number of 5xx errors before a host is ejected from the connection pool. When the upstream host is accessed over an opaque TCP connection, connect timeouts, connection error/failure and request failure events qualify as a 5xx error. This feature defaults to 5 but can be disabled by setting the value to 0. Note that consecutive_gateway_errors and consecutive_5xx_errors can be used separately or together. Because the errors counted by consecutive_gateway_errors are also included in consecutive_5xx_errors, if the value of consecutive_gateway_errors is greater than or equal to the value of consecutive_5xx_errors, consecutive_gateway_errors will have no effect.
.google.protobuf.UInt32Value consecutive_5xx_errors = 7; -
clearConsecutive5XxErrors
Number of 5xx errors before a host is ejected from the connection pool. When the upstream host is accessed over an opaque TCP connection, connect timeouts, connection error/failure and request failure events qualify as a 5xx error. This feature defaults to 5 but can be disabled by setting the value to 0. Note that consecutive_gateway_errors and consecutive_5xx_errors can be used separately or together. Because the errors counted by consecutive_gateway_errors are also included in consecutive_5xx_errors, if the value of consecutive_gateway_errors is greater than or equal to the value of consecutive_5xx_errors, consecutive_gateway_errors will have no effect.
.google.protobuf.UInt32Value consecutive_5xx_errors = 7; -
getConsecutive5XxErrorsBuilder
public com.google.protobuf.UInt32Value.Builder getConsecutive5XxErrorsBuilder()Number of 5xx errors before a host is ejected from the connection pool. When the upstream host is accessed over an opaque TCP connection, connect timeouts, connection error/failure and request failure events qualify as a 5xx error. This feature defaults to 5 but can be disabled by setting the value to 0. Note that consecutive_gateway_errors and consecutive_5xx_errors can be used separately or together. Because the errors counted by consecutive_gateway_errors are also included in consecutive_5xx_errors, if the value of consecutive_gateway_errors is greater than or equal to the value of consecutive_5xx_errors, consecutive_gateway_errors will have no effect.
.google.protobuf.UInt32Value consecutive_5xx_errors = 7; -
getConsecutive5XxErrorsOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getConsecutive5XxErrorsOrBuilder()Number of 5xx errors before a host is ejected from the connection pool. When the upstream host is accessed over an opaque TCP connection, connect timeouts, connection error/failure and request failure events qualify as a 5xx error. This feature defaults to 5 but can be disabled by setting the value to 0. Note that consecutive_gateway_errors and consecutive_5xx_errors can be used separately or together. Because the errors counted by consecutive_gateway_errors are also included in consecutive_5xx_errors, if the value of consecutive_gateway_errors is greater than or equal to the value of consecutive_5xx_errors, consecutive_gateway_errors will have no effect.
.google.protobuf.UInt32Value consecutive_5xx_errors = 7; -
hasInterval
public boolean hasInterval()Time interval between ejection sweep analysis. format: 1h/1m/1s/1ms. MUST BE >=1ms. Default is 10s.
.google.protobuf.Duration interval = 2;- 指定者:
hasInterval在接口中DestinationRuleOuterClass.OutlierDetectionOrBuilder- 返回:
- Whether the interval field is set.
-
getInterval
public com.google.protobuf.Duration getInterval()Time interval between ejection sweep analysis. format: 1h/1m/1s/1ms. MUST BE >=1ms. Default is 10s.
.google.protobuf.Duration interval = 2;- 指定者:
getInterval在接口中DestinationRuleOuterClass.OutlierDetectionOrBuilder- 返回:
- The interval.
-
setInterval
public DestinationRuleOuterClass.OutlierDetection.Builder setInterval(com.google.protobuf.Duration value) Time interval between ejection sweep analysis. format: 1h/1m/1s/1ms. MUST BE >=1ms. Default is 10s.
.google.protobuf.Duration interval = 2; -
setInterval
public DestinationRuleOuterClass.OutlierDetection.Builder setInterval(com.google.protobuf.Duration.Builder builderForValue) Time interval between ejection sweep analysis. format: 1h/1m/1s/1ms. MUST BE >=1ms. Default is 10s.
.google.protobuf.Duration interval = 2; -
mergeInterval
public DestinationRuleOuterClass.OutlierDetection.Builder mergeInterval(com.google.protobuf.Duration value) Time interval between ejection sweep analysis. format: 1h/1m/1s/1ms. MUST BE >=1ms. Default is 10s.
.google.protobuf.Duration interval = 2; -
clearInterval
Time interval between ejection sweep analysis. format: 1h/1m/1s/1ms. MUST BE >=1ms. Default is 10s.
.google.protobuf.Duration interval = 2; -
getIntervalBuilder
public com.google.protobuf.Duration.Builder getIntervalBuilder()Time interval between ejection sweep analysis. format: 1h/1m/1s/1ms. MUST BE >=1ms. Default is 10s.
.google.protobuf.Duration interval = 2; -
getIntervalOrBuilder
public com.google.protobuf.DurationOrBuilder getIntervalOrBuilder()Time interval between ejection sweep analysis. format: 1h/1m/1s/1ms. MUST BE >=1ms. Default is 10s.
.google.protobuf.Duration interval = 2; -
hasBaseEjectionTime
public boolean hasBaseEjectionTime()Minimum ejection duration. A host will remain ejected for a period equal to the product of minimum ejection duration and the number of times the host has been ejected. This technique allows the system to automatically increase the ejection period for unhealthy upstream servers. format: 1h/1m/1s/1ms. MUST BE >=1ms. Default is 30s.
.google.protobuf.Duration base_ejection_time = 3;- 指定者:
hasBaseEjectionTime在接口中DestinationRuleOuterClass.OutlierDetectionOrBuilder- 返回:
- Whether the baseEjectionTime field is set.
-
getBaseEjectionTime
public com.google.protobuf.Duration getBaseEjectionTime()Minimum ejection duration. A host will remain ejected for a period equal to the product of minimum ejection duration and the number of times the host has been ejected. This technique allows the system to automatically increase the ejection period for unhealthy upstream servers. format: 1h/1m/1s/1ms. MUST BE >=1ms. Default is 30s.
.google.protobuf.Duration base_ejection_time = 3;- 指定者:
getBaseEjectionTime在接口中DestinationRuleOuterClass.OutlierDetectionOrBuilder- 返回:
- The baseEjectionTime.
-
setBaseEjectionTime
public DestinationRuleOuterClass.OutlierDetection.Builder setBaseEjectionTime(com.google.protobuf.Duration value) Minimum ejection duration. A host will remain ejected for a period equal to the product of minimum ejection duration and the number of times the host has been ejected. This technique allows the system to automatically increase the ejection period for unhealthy upstream servers. format: 1h/1m/1s/1ms. MUST BE >=1ms. Default is 30s.
.google.protobuf.Duration base_ejection_time = 3; -
setBaseEjectionTime
public DestinationRuleOuterClass.OutlierDetection.Builder setBaseEjectionTime(com.google.protobuf.Duration.Builder builderForValue) Minimum ejection duration. A host will remain ejected for a period equal to the product of minimum ejection duration and the number of times the host has been ejected. This technique allows the system to automatically increase the ejection period for unhealthy upstream servers. format: 1h/1m/1s/1ms. MUST BE >=1ms. Default is 30s.
.google.protobuf.Duration base_ejection_time = 3; -
mergeBaseEjectionTime
public DestinationRuleOuterClass.OutlierDetection.Builder mergeBaseEjectionTime(com.google.protobuf.Duration value) Minimum ejection duration. A host will remain ejected for a period equal to the product of minimum ejection duration and the number of times the host has been ejected. This technique allows the system to automatically increase the ejection period for unhealthy upstream servers. format: 1h/1m/1s/1ms. MUST BE >=1ms. Default is 30s.
.google.protobuf.Duration base_ejection_time = 3; -
clearBaseEjectionTime
Minimum ejection duration. A host will remain ejected for a period equal to the product of minimum ejection duration and the number of times the host has been ejected. This technique allows the system to automatically increase the ejection period for unhealthy upstream servers. format: 1h/1m/1s/1ms. MUST BE >=1ms. Default is 30s.
.google.protobuf.Duration base_ejection_time = 3; -
getBaseEjectionTimeBuilder
public com.google.protobuf.Duration.Builder getBaseEjectionTimeBuilder()Minimum ejection duration. A host will remain ejected for a period equal to the product of minimum ejection duration and the number of times the host has been ejected. This technique allows the system to automatically increase the ejection period for unhealthy upstream servers. format: 1h/1m/1s/1ms. MUST BE >=1ms. Default is 30s.
.google.protobuf.Duration base_ejection_time = 3; -
getBaseEjectionTimeOrBuilder
public com.google.protobuf.DurationOrBuilder getBaseEjectionTimeOrBuilder()Minimum ejection duration. A host will remain ejected for a period equal to the product of minimum ejection duration and the number of times the host has been ejected. This technique allows the system to automatically increase the ejection period for unhealthy upstream servers. format: 1h/1m/1s/1ms. MUST BE >=1ms. Default is 30s.
.google.protobuf.Duration base_ejection_time = 3; -
getMaxEjectionPercent
public int getMaxEjectionPercent()Maximum % of hosts in the load balancing pool for the upstream service that can be ejected. Defaults to 10%.
int32 max_ejection_percent = 4;- 指定者:
getMaxEjectionPercent在接口中DestinationRuleOuterClass.OutlierDetectionOrBuilder- 返回:
- The maxEjectionPercent.
-
setMaxEjectionPercent
Maximum % of hosts in the load balancing pool for the upstream service that can be ejected. Defaults to 10%.
int32 max_ejection_percent = 4;- 参数:
value- The maxEjectionPercent to set.- 返回:
- This builder for chaining.
-
clearMaxEjectionPercent
Maximum % of hosts in the load balancing pool for the upstream service that can be ejected. Defaults to 10%.
int32 max_ejection_percent = 4;- 返回:
- This builder for chaining.
-
getMinHealthPercent
public int getMinHealthPercent()Outlier detection will be enabled as long as the associated load balancing pool has at least min_health_percent hosts in healthy mode. When the percentage of healthy hosts in the load balancing pool drops below this threshold, outlier detection will be disabled and the proxy will load balance across all hosts in the pool (healthy and unhealthy). The threshold can be disabled by setting it to 0%. The default is 0% as it's not typically applicable in k8s environments with few pods per service.
int32 min_health_percent = 5;- 指定者:
getMinHealthPercent在接口中DestinationRuleOuterClass.OutlierDetectionOrBuilder- 返回:
- The minHealthPercent.
-
setMinHealthPercent
Outlier detection will be enabled as long as the associated load balancing pool has at least min_health_percent hosts in healthy mode. When the percentage of healthy hosts in the load balancing pool drops below this threshold, outlier detection will be disabled and the proxy will load balance across all hosts in the pool (healthy and unhealthy). The threshold can be disabled by setting it to 0%. The default is 0% as it's not typically applicable in k8s environments with few pods per service.
int32 min_health_percent = 5;- 参数:
value- The minHealthPercent to set.- 返回:
- This builder for chaining.
-
clearMinHealthPercent
Outlier detection will be enabled as long as the associated load balancing pool has at least min_health_percent hosts in healthy mode. When the percentage of healthy hosts in the load balancing pool drops below this threshold, outlier detection will be disabled and the proxy will load balance across all hosts in the pool (healthy and unhealthy). The threshold can be disabled by setting it to 0%. The default is 0% as it's not typically applicable in k8s environments with few pods per service.
int32 min_health_percent = 5;- 返回:
- This builder for chaining.
-
setUnknownFields
public final DestinationRuleOuterClass.OutlierDetection.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - 指定者:
setUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
setUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.OutlierDetection.Builder>
-
mergeUnknownFields
public final DestinationRuleOuterClass.OutlierDetection.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - 指定者:
mergeUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.OutlierDetection.Builder>
-