@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-03-28T21:34:27.858Z")
public interface OutlierDetection
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());
Modifier and Type | Interface and Description |
---|---|
static class |
OutlierDetection.Builder
A builder for
OutlierDetection |
static class |
OutlierDetection.Jsii$Proxy
An implementation for
OutlierDetection |
Modifier and Type | Method and Description |
---|---|
static OutlierDetection.Builder |
builder() |
Duration |
getBaseEjectionDuration()
The base amount of time for which a host is ejected.
|
Duration |
getInterval()
The time interval between ejection sweep analysis.
|
java.lang.Number |
getMaxEjectionPercent()
Maximum percentage of hosts in load balancing pool for upstream service that can be ejected.
|
java.lang.Number |
getMaxServerErrors()
Number of consecutive 5xx errors required for ejection.
|
Duration getBaseEjectionDuration()
Duration getInterval()
java.lang.Number getMaxEjectionPercent()
Will eject at least one host regardless of the value.
java.lang.Number getMaxServerErrors()
static OutlierDetection.Builder builder()
OutlierDetection.Builder
of OutlierDetection