Interface OutlierDetection
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
OutlierDetection.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-05T03:43:38.686Z")
@Stability(Stable)
public interface OutlierDetection
extends software.amazon.jsii.JsiiSerializable
Represents the outlier detection for a listener.
Example:
Mesh mesh; // Cloud Map service discovery is currently required for host ejection by outlier detection Vpc vpc = new Vpc(this, "vpc"); PrivateDnsNamespace namespace = PrivateDnsNamespace.Builder.create(this, "test-namespace") .vpc(vpc) .name("domain.local") .build(); Service service = namespace.createService("Svc"); VirtualNode node = mesh.addVirtualNode("virtual-node", VirtualNodeBaseProps.builder() .serviceDiscovery(ServiceDiscovery.cloudMap(service)) .listeners(List.of(VirtualNodeListener.http(HttpVirtualNodeListenerOptions.builder() .outlierDetection(OutlierDetection.builder() .baseEjectionDuration(Duration.seconds(10)) .interval(Duration.seconds(30)) .maxEjectionPercent(50) .maxServerErrors(5) .build()) .build()))) .build());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forOutlierDetection
static final class
An implementation forOutlierDetection
-
Method Summary
Modifier and TypeMethodDescriptionstatic OutlierDetection.Builder
builder()
The base amount of time for which a host is ejected.The time interval between ejection sweep analysis.Maximum percentage of hosts in load balancing pool for upstream service that can be ejected.Number of consecutive 5xx errors required for ejection.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getBaseEjectionDuration
The base amount of time for which a host is ejected. -
getInterval
The time interval between ejection sweep analysis. -
getMaxEjectionPercent
Maximum percentage of hosts in load balancing pool for upstream service that can be ejected.Will eject at least one host regardless of the value.
-
getMaxServerErrors
Number of consecutive 5xx errors required for ejection. -
builder
- Returns:
- a
OutlierDetection.Builder
ofOutlierDetection
-