类 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
封闭类:
DestinationRuleOuterClass.OutlierDetection

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
  • 方法详细资料

    • 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

      public DestinationRuleOuterClass.OutlierDetection 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

    • 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

      @Deprecated public int getConsecutiveErrors()
      已过时。
      istio.networking.v1alpha3.OutlierDetection.consecutive_errors is deprecated. See networking/v1alpha3/destination_rule.proto;l=724
       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
      返回:
      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=724
       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.
      返回:
      This builder for chaining.
    • clearConsecutiveErrors

      已过时。
      istio.networking.v1alpha3.OutlierDetection.consecutive_errors is deprecated. See networking/v1alpha3/destination_rule.proto;l=724
       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];
      返回:
      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

      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;
    • 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;
      指定者:
      getConsecutiveGatewayErrorsOrBuilder 在接口中 DestinationRuleOuterClass.OutlierDetectionOrBuilder
    • 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

      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;
    • 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;
      指定者:
      getConsecutive5XxErrorsOrBuilder 在接口中 DestinationRuleOuterClass.OutlierDetectionOrBuilder
    • 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;
      指定者:
      getIntervalOrBuilder 在接口中 DestinationRuleOuterClass.OutlierDetectionOrBuilder
    • 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;
      指定者:
      getBaseEjectionTimeOrBuilder 在接口中 DestinationRuleOuterClass.OutlierDetectionOrBuilder
    • 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

      public 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.
      返回:
      This builder for chaining.
    • clearMaxEjectionPercent

      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;
      返回:
      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

      public 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.
      返回:
      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>