@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.568Z") @Stability(value=Stable) public interface OutlierDetection extends software.amazon.jsii.JsiiSerializable
Example:
// Example automatically generated from non-compiling source. May contain errors.
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.
|
Number |
getMaxEjectionPercent()
Maximum percentage of hosts in load balancing pool for upstream service that can be ejected.
|
Number |
getMaxServerErrors()
Number of consecutive 5xx errors required for ejection.
|
@Stability(value=Stable) @NotNull Duration getBaseEjectionDuration()
@Stability(value=Stable) @NotNull Duration getInterval()
@Stability(value=Stable) @NotNull Number getMaxEjectionPercent()
Will eject at least one host regardless of the value.
@Stability(value=Stable) @NotNull Number getMaxServerErrors()
@Stability(value=Stable) static OutlierDetection.Builder builder()
OutlierDetection.Builder of OutlierDetectionCopyright © 2022. All rights reserved.