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| 限定符和类型 | 方法和说明 |
|---|---|
DestinationRuleOuterClass.OutlierDetection.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DestinationRuleOuterClass.OutlierDetection |
build() |
DestinationRuleOuterClass.OutlierDetection |
buildPartial() |
DestinationRuleOuterClass.OutlierDetection.Builder |
clear() |
DestinationRuleOuterClass.OutlierDetection.Builder |
clearBaseEjectionTime()
Minimum ejection duration.
|
DestinationRuleOuterClass.OutlierDetection.Builder |
clearConsecutive5XxErrors()
Number of 5xx errors before a host is ejected from the connection pool.
|
DestinationRuleOuterClass.OutlierDetection.Builder |
clearConsecutiveErrors()
已过时。
istio.networking.v1alpha3.OutlierDetection.consecutive_errors is deprecated.
See networking/v1alpha3/destination_rule.proto;l=724
|
DestinationRuleOuterClass.OutlierDetection.Builder |
clearConsecutiveGatewayErrors()
Number of gateway errors before a host is ejected from the connection pool.
|
DestinationRuleOuterClass.OutlierDetection.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
DestinationRuleOuterClass.OutlierDetection.Builder |
clearInterval()
Time interval between ejection sweep analysis. format:
1h/1m/1s/1ms.
|
DestinationRuleOuterClass.OutlierDetection.Builder |
clearMaxEjectionPercent()
Maximum % of hosts in the load balancing pool for the upstream
service that can be ejected.
|
DestinationRuleOuterClass.OutlierDetection.Builder |
clearMinHealthPercent()
Outlier detection will be enabled as long as the associated load balancing
pool has at least min_health_percent hosts in healthy mode.
|
DestinationRuleOuterClass.OutlierDetection.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
DestinationRuleOuterClass.OutlierDetection.Builder |
clone() |
com.google.protobuf.Duration |
getBaseEjectionTime()
Minimum ejection duration.
|
com.google.protobuf.Duration.Builder |
getBaseEjectionTimeBuilder()
Minimum ejection duration.
|
com.google.protobuf.DurationOrBuilder |
getBaseEjectionTimeOrBuilder()
Minimum ejection duration.
|
com.google.protobuf.UInt32Value |
getConsecutive5XxErrors()
Number of 5xx errors before a host is ejected from the connection pool.
|
com.google.protobuf.UInt32Value.Builder |
getConsecutive5XxErrorsBuilder()
Number of 5xx errors before a host is ejected from the connection pool.
|
com.google.protobuf.UInt32ValueOrBuilder |
getConsecutive5XxErrorsOrBuilder()
Number of 5xx errors before a host is ejected from the connection pool.
|
int |
getConsecutiveErrors()
已过时。
istio.networking.v1alpha3.OutlierDetection.consecutive_errors is deprecated.
See networking/v1alpha3/destination_rule.proto;l=724
|
com.google.protobuf.UInt32Value |
getConsecutiveGatewayErrors()
Number of gateway errors before a host is ejected from the connection pool.
|
com.google.protobuf.UInt32Value.Builder |
getConsecutiveGatewayErrorsBuilder()
Number of gateway errors before a host is ejected from the connection pool.
|
com.google.protobuf.UInt32ValueOrBuilder |
getConsecutiveGatewayErrorsOrBuilder()
Number of gateway errors before a host is ejected from the connection pool.
|
DestinationRuleOuterClass.OutlierDetection |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.Duration |
getInterval()
Time interval between ejection sweep analysis. format:
1h/1m/1s/1ms.
|
com.google.protobuf.Duration.Builder |
getIntervalBuilder()
Time interval between ejection sweep analysis. format:
1h/1m/1s/1ms.
|
com.google.protobuf.DurationOrBuilder |
getIntervalOrBuilder()
Time interval between ejection sweep analysis. format:
1h/1m/1s/1ms.
|
int |
getMaxEjectionPercent()
Maximum % of hosts in the load balancing pool for the upstream
service that can be ejected.
|
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.
|
boolean |
hasBaseEjectionTime()
Minimum ejection duration.
|
boolean |
hasConsecutive5XxErrors()
Number of 5xx errors before a host is ejected from the connection pool.
|
boolean |
hasConsecutiveGatewayErrors()
Number of gateway errors before a host is ejected from the connection pool.
|
boolean |
hasInterval()
Time interval between ejection sweep analysis. format:
1h/1m/1s/1ms.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DestinationRuleOuterClass.OutlierDetection.Builder |
mergeBaseEjectionTime(com.google.protobuf.Duration value)
Minimum ejection duration.
|
DestinationRuleOuterClass.OutlierDetection.Builder |
mergeConsecutive5XxErrors(com.google.protobuf.UInt32Value value)
Number of 5xx errors before a host is ejected from the connection pool.
|
DestinationRuleOuterClass.OutlierDetection.Builder |
mergeConsecutiveGatewayErrors(com.google.protobuf.UInt32Value value)
Number of gateway errors before a host is ejected from the connection pool.
|
DestinationRuleOuterClass.OutlierDetection.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
DestinationRuleOuterClass.OutlierDetection.Builder |
mergeFrom(DestinationRuleOuterClass.OutlierDetection other) |
DestinationRuleOuterClass.OutlierDetection.Builder |
mergeFrom(com.google.protobuf.Message other) |
DestinationRuleOuterClass.OutlierDetection.Builder |
mergeInterval(com.google.protobuf.Duration value)
Time interval between ejection sweep analysis. format:
1h/1m/1s/1ms.
|
DestinationRuleOuterClass.OutlierDetection.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
DestinationRuleOuterClass.OutlierDetection.Builder |
setBaseEjectionTime(com.google.protobuf.Duration.Builder builderForValue)
Minimum ejection duration.
|
DestinationRuleOuterClass.OutlierDetection.Builder |
setBaseEjectionTime(com.google.protobuf.Duration value)
Minimum ejection duration.
|
DestinationRuleOuterClass.OutlierDetection.Builder |
setConsecutive5XxErrors(com.google.protobuf.UInt32Value.Builder builderForValue)
Number of 5xx errors before a host is ejected from the connection pool.
|
DestinationRuleOuterClass.OutlierDetection.Builder |
setConsecutive5XxErrors(com.google.protobuf.UInt32Value value)
Number of 5xx errors before a host is ejected from the connection pool.
|
DestinationRuleOuterClass.OutlierDetection.Builder |
setConsecutiveErrors(int value)
已过时。
istio.networking.v1alpha3.OutlierDetection.consecutive_errors is deprecated.
See networking/v1alpha3/destination_rule.proto;l=724
|
DestinationRuleOuterClass.OutlierDetection.Builder |
setConsecutiveGatewayErrors(com.google.protobuf.UInt32Value.Builder builderForValue)
Number of gateway errors before a host is ejected from the connection pool.
|
DestinationRuleOuterClass.OutlierDetection.Builder |
setConsecutiveGatewayErrors(com.google.protobuf.UInt32Value value)
Number of gateway errors before a host is ejected from the connection pool.
|
DestinationRuleOuterClass.OutlierDetection.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DestinationRuleOuterClass.OutlierDetection.Builder |
setInterval(com.google.protobuf.Duration.Builder builderForValue)
Time interval between ejection sweep analysis. format:
1h/1m/1s/1ms.
|
DestinationRuleOuterClass.OutlierDetection.Builder |
setInterval(com.google.protobuf.Duration value)
Time interval between ejection sweep analysis. format:
1h/1m/1s/1ms.
|
DestinationRuleOuterClass.OutlierDetection.Builder |
setMaxEjectionPercent(int value)
Maximum % of hosts in the load balancing pool for the upstream
service that can be ejected.
|
DestinationRuleOuterClass.OutlierDetection.Builder |
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.
|
DestinationRuleOuterClass.OutlierDetection.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
DestinationRuleOuterClass.OutlierDetection.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.OutlierDetection.Builder>public DestinationRuleOuterClass.OutlierDetection.Builder clear()
clear 在接口中 com.google.protobuf.Message.Builderclear 在接口中 com.google.protobuf.MessageLite.Builderclear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.OutlierDetection.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.Message.BuildergetDescriptorForType 在接口中 com.google.protobuf.MessageOrBuildergetDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.OutlierDetection.Builder>public DestinationRuleOuterClass.OutlierDetection getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderpublic DestinationRuleOuterClass.OutlierDetection build()
build 在接口中 com.google.protobuf.Message.Builderbuild 在接口中 com.google.protobuf.MessageLite.Builderpublic DestinationRuleOuterClass.OutlierDetection buildPartial()
buildPartial 在接口中 com.google.protobuf.Message.BuilderbuildPartial 在接口中 com.google.protobuf.MessageLite.Builderpublic DestinationRuleOuterClass.OutlierDetection.Builder clone()
clone 在接口中 com.google.protobuf.Message.Builderclone 在接口中 com.google.protobuf.MessageLite.Builderclone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.OutlierDetection.Builder>public DestinationRuleOuterClass.OutlierDetection.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField 在接口中 com.google.protobuf.Message.BuildersetField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.OutlierDetection.Builder>public DestinationRuleOuterClass.OutlierDetection.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField 在接口中 com.google.protobuf.Message.BuilderclearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.OutlierDetection.Builder>public DestinationRuleOuterClass.OutlierDetection.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof 在接口中 com.google.protobuf.Message.BuilderclearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.OutlierDetection.Builder>public DestinationRuleOuterClass.OutlierDetection.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField 在接口中 com.google.protobuf.Message.BuildersetRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.OutlierDetection.Builder>public DestinationRuleOuterClass.OutlierDetection.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField 在接口中 com.google.protobuf.Message.BuilderaddRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.OutlierDetection.Builder>public DestinationRuleOuterClass.OutlierDetection.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<DestinationRuleOuterClass.OutlierDetection.Builder>public DestinationRuleOuterClass.OutlierDetection.Builder mergeFrom(DestinationRuleOuterClass.OutlierDetection other)
public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.OutlierDetection.Builder>public DestinationRuleOuterClass.OutlierDetection.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在接口中 com.google.protobuf.MessageLite.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<DestinationRuleOuterClass.OutlierDetection.Builder>IOException@Deprecated public int getConsecutiveErrors()
Number 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@Deprecated public DestinationRuleOuterClass.OutlierDetection.Builder setConsecutiveErrors(int value)
Number 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.@Deprecated public DestinationRuleOuterClass.OutlierDetection.Builder clearConsecutiveErrors()
Number 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];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.OutlierDetectionOrBuilderpublic 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.OutlierDetectionOrBuilderpublic 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;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;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;public DestinationRuleOuterClass.OutlierDetection.Builder 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;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;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;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.OutlierDetectionOrBuilderpublic 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.OutlierDetectionOrBuilderpublic 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;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;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;public DestinationRuleOuterClass.OutlierDetection.Builder 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;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;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;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.OutlierDetectionOrBuilderpublic 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.OutlierDetectionOrBuilderpublic 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;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;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;public DestinationRuleOuterClass.OutlierDetection.Builder clearInterval()
Time interval between ejection sweep analysis. format: 1h/1m/1s/1ms. MUST BE >=1ms. Default is 10s.
.google.protobuf.Duration interval = 2;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;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;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.OutlierDetectionOrBuilderpublic 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.OutlierDetectionOrBuilderpublic 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;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;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;public DestinationRuleOuterClass.OutlierDetection.Builder 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;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;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;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.OutlierDetectionOrBuilderpublic DestinationRuleOuterClass.OutlierDetection.Builder setMaxEjectionPercent(int value)
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.public DestinationRuleOuterClass.OutlierDetection.Builder 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;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.OutlierDetectionOrBuilderpublic DestinationRuleOuterClass.OutlierDetection.Builder 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. 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.public DestinationRuleOuterClass.OutlierDetection.Builder 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;public final DestinationRuleOuterClass.OutlierDetection.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields 在接口中 com.google.protobuf.Message.BuildersetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.OutlierDetection.Builder>public final DestinationRuleOuterClass.OutlierDetection.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields 在接口中 com.google.protobuf.Message.BuildermergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.OutlierDetection.Builder>Copyright © 2018–2023 Alibaba Group. All rights reserved.