public static class OutlierDetection.Builder extends Object
Modifier and Type | Method and Description |
---|---|
OutlierDetection |
build() |
OutlierDetection.Builder |
clone() |
Duration |
getBaseEjectionTime()
The base time that a host is ejected for.
|
Integer |
getConsecutiveErrors()
Number of errors before a host is ejected from the connection pool.
|
Integer |
getConsecutiveGatewayFailure()
The number of consecutive gateway failures (502, 503, 504 status or connection errors that
are mapped to one of those status codes) before a consecutive gateway failure ejection
occurs.
|
Integer |
getEnforcingConsecutiveErrors()
The percentage chance that a host will be actually ejected when an outlier status is detected
through consecutive 5xx.
|
Integer |
getEnforcingConsecutiveGatewayFailure()
The percentage chance that a host will be actually ejected when an outlier status is detected
through consecutive gateway failures.
|
Integer |
getEnforcingSuccessRate()
The percentage chance that a host will be actually ejected when an outlier status is detected
through success rate statistics.
|
Duration |
getInterval()
Time interval between ejection sweep analysis.
|
Integer |
getMaxEjectionPercent()
Maximum percentage of hosts in the load balancing pool for the backend service that can be
ejected.
|
Integer |
getSuccessRateMinimumHosts()
The number of hosts in a cluster that must have enough request volume to detect success rate
outliers.
|
Integer |
getSuccessRateRequestVolume()
The minimum number of total requests that must be collected in one interval (as defined by
the interval duration above) to include this host in success rate based outlier detection.
|
Integer |
getSuccessRateStdevFactor()
This factor is used to determine the ejection threshold for success rate outlier ejection.
|
OutlierDetection.Builder |
mergeFrom(OutlierDetection other) |
OutlierDetection.Builder |
setBaseEjectionTime(Duration baseEjectionTime)
The base time that a host is ejected for.
|
OutlierDetection.Builder |
setConsecutiveErrors(Integer consecutiveErrors)
Number of errors before a host is ejected from the connection pool.
|
OutlierDetection.Builder |
setConsecutiveGatewayFailure(Integer consecutiveGatewayFailure)
The number of consecutive gateway failures (502, 503, 504 status or connection errors that
are mapped to one of those status codes) before a consecutive gateway failure ejection
occurs.
|
OutlierDetection.Builder |
setEnforcingConsecutiveErrors(Integer enforcingConsecutiveErrors)
The percentage chance that a host will be actually ejected when an outlier status is detected
through consecutive 5xx.
|
OutlierDetection.Builder |
setEnforcingConsecutiveGatewayFailure(Integer enforcingConsecutiveGatewayFailure)
The percentage chance that a host will be actually ejected when an outlier status is detected
through consecutive gateway failures.
|
OutlierDetection.Builder |
setEnforcingSuccessRate(Integer enforcingSuccessRate)
The percentage chance that a host will be actually ejected when an outlier status is detected
through success rate statistics.
|
OutlierDetection.Builder |
setInterval(Duration interval)
Time interval between ejection sweep analysis.
|
OutlierDetection.Builder |
setMaxEjectionPercent(Integer maxEjectionPercent)
Maximum percentage of hosts in the load balancing pool for the backend service that can be
ejected.
|
OutlierDetection.Builder |
setSuccessRateMinimumHosts(Integer successRateMinimumHosts)
The number of hosts in a cluster that must have enough request volume to detect success rate
outliers.
|
OutlierDetection.Builder |
setSuccessRateRequestVolume(Integer successRateRequestVolume)
The minimum number of total requests that must be collected in one interval (as defined by
the interval duration above) to include this host in success rate based outlier detection.
|
OutlierDetection.Builder |
setSuccessRateStdevFactor(Integer successRateStdevFactor)
This factor is used to determine the ejection threshold for success rate outlier ejection.
|
public OutlierDetection.Builder mergeFrom(OutlierDetection other)
public Duration getBaseEjectionTime()
public OutlierDetection.Builder setBaseEjectionTime(Duration baseEjectionTime)
public Integer getConsecutiveErrors()
public OutlierDetection.Builder setConsecutiveErrors(Integer consecutiveErrors)
public Integer getConsecutiveGatewayFailure()
public OutlierDetection.Builder setConsecutiveGatewayFailure(Integer consecutiveGatewayFailure)
public Integer getEnforcingConsecutiveErrors()
public OutlierDetection.Builder setEnforcingConsecutiveErrors(Integer enforcingConsecutiveErrors)
public Integer getEnforcingConsecutiveGatewayFailure()
public OutlierDetection.Builder setEnforcingConsecutiveGatewayFailure(Integer enforcingConsecutiveGatewayFailure)
public Integer getEnforcingSuccessRate()
public OutlierDetection.Builder setEnforcingSuccessRate(Integer enforcingSuccessRate)
public Duration getInterval()
public OutlierDetection.Builder setInterval(Duration interval)
public Integer getMaxEjectionPercent()
public OutlierDetection.Builder setMaxEjectionPercent(Integer maxEjectionPercent)
public Integer getSuccessRateMinimumHosts()
public OutlierDetection.Builder setSuccessRateMinimumHosts(Integer successRateMinimumHosts)
public Integer getSuccessRateRequestVolume()
public OutlierDetection.Builder setSuccessRateRequestVolume(Integer successRateRequestVolume)
public Integer getSuccessRateStdevFactor()
public OutlierDetection.Builder setSuccessRateStdevFactor(Integer successRateStdevFactor)
public OutlierDetection build()
public OutlierDetection.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.