类 DestinationRuleOuterClass.OutlierDetection.Builder

  • 所有已实现的接口:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, DestinationRuleOuterClass.OutlierDetectionOrBuilder, java.lang.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
    • 字段详细资料

      • consecutiveErrors_

        private int consecutiveErrors_
      • consecutiveGatewayErrors_

        private com.google.protobuf.UInt32Value consecutiveGatewayErrors_
      • consecutiveGatewayErrorsBuilder_

        private com.google.protobuf.SingleFieldBuilderV3<com.google.protobuf.UInt32Value,​com.google.protobuf.UInt32Value.Builder,​com.google.protobuf.UInt32ValueOrBuilder> consecutiveGatewayErrorsBuilder_
      • consecutive5XxErrors_

        private com.google.protobuf.UInt32Value consecutive5XxErrors_
      • consecutive5XxErrorsBuilder_

        private com.google.protobuf.SingleFieldBuilderV3<com.google.protobuf.UInt32Value,​com.google.protobuf.UInt32Value.Builder,​com.google.protobuf.UInt32ValueOrBuilder> consecutive5XxErrorsBuilder_
      • interval_

        private com.google.protobuf.Duration interval_
      • intervalBuilder_

        private com.google.protobuf.SingleFieldBuilderV3<com.google.protobuf.Duration,​com.google.protobuf.Duration.Builder,​com.google.protobuf.DurationOrBuilder> intervalBuilder_
      • baseEjectionTime_

        private com.google.protobuf.Duration baseEjectionTime_
      • baseEjectionTimeBuilder_

        private com.google.protobuf.SingleFieldBuilderV3<com.google.protobuf.Duration,​com.google.protobuf.Duration.Builder,​com.google.protobuf.DurationOrBuilder> baseEjectionTimeBuilder_
      • maxEjectionPercent_

        private int maxEjectionPercent_
      • minHealthPercent_

        private int minHealthPercent_
    • 构造器详细资料

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
    • 方法详细资料

      • 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>
      • 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
      • buildPartial

        public DestinationRuleOuterClass.OutlierDetection buildPartial()
        指定者:
        buildPartial 在接口中 com.google.protobuf.Message.Builder
        指定者:
        buildPartial 在接口中 com.google.protobuf.MessageLite.Builder
      • 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 java.io.IOException
        指定者:
        mergeFrom 在接口中 com.google.protobuf.Message.Builder
        指定者:
        mergeFrom 在接口中 com.google.protobuf.MessageLite.Builder
        覆盖:
        mergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<DestinationRuleOuterClass.OutlierDetection.Builder>
        抛出:
        java.io.IOException
      • getConsecutiveErrors

        @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
        返回:
        The consecutiveErrors.
      • setConsecutiveErrors

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

        @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];
        返回:
        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
      • getConsecutiveGatewayErrorsFieldBuilder

        private com.google.protobuf.SingleFieldBuilderV3<com.google.protobuf.UInt32Value,​com.google.protobuf.UInt32Value.Builder,​com.google.protobuf.UInt32ValueOrBuilder> getConsecutiveGatewayErrorsFieldBuilder()
         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

        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
      • getConsecutive5XxErrorsFieldBuilder

        private com.google.protobuf.SingleFieldBuilderV3<com.google.protobuf.UInt32Value,​com.google.protobuf.UInt32Value.Builder,​com.google.protobuf.UInt32ValueOrBuilder> getConsecutive5XxErrorsFieldBuilder()
         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;
      • 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;
      • getIntervalFieldBuilder

        private com.google.protobuf.SingleFieldBuilderV3<com.google.protobuf.Duration,​com.google.protobuf.Duration.Builder,​com.google.protobuf.DurationOrBuilder> getIntervalFieldBuilder()
         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

        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;
      • 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
      • getBaseEjectionTimeFieldBuilder

        private com.google.protobuf.SingleFieldBuilderV3<com.google.protobuf.Duration,​com.google.protobuf.Duration.Builder,​com.google.protobuf.DurationOrBuilder> getBaseEjectionTimeFieldBuilder()
         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;
      • 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

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