Show / Hide Table of Contents

Interface IOutlierDetection

Represents the outlier detection for a listener.

Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IOutlierDetection
Syntax (vb)
Public Interface IOutlierDetection
Remarks

ExampleMetadata: infused

Examples
Mesh mesh;
            // Cloud Map service discovery is currently required for host ejection by outlier detection
            var vpc = new Vpc(this, "vpc");
            var namespace = new PrivateDnsNamespace(this, "test-namespace", new PrivateDnsNamespaceProps {
                Vpc = vpc,
                Name = "domain.local"
            });
            var service = namespace.CreateService("Svc");
            var node = mesh.AddVirtualNode("virtual-node", new VirtualNodeBaseProps {
                ServiceDiscovery = ServiceDiscovery.CloudMap(service),
                Listeners = new [] { VirtualNodeListener.Http(new HttpVirtualNodeListenerOptions {
                    OutlierDetection = new OutlierDetection {
                        BaseEjectionDuration = Duration.Seconds(10),
                        Interval = Duration.Seconds(30),
                        MaxEjectionPercent = 50,
                        MaxServerErrors = 5
                    }
                }) }
            });

Synopsis

Properties

BaseEjectionDuration

The base amount of time for which a host is ejected.

Interval

The time interval between ejection sweep analysis.

MaxEjectionPercent

Maximum percentage of hosts in load balancing pool for upstream service that can be ejected.

MaxServerErrors

Number of consecutive 5xx errors required for ejection.

Properties

BaseEjectionDuration

The base amount of time for which a host is ejected.

Duration BaseEjectionDuration { get; }
Property Value

Duration

Remarks

ExampleMetadata: infused

Interval

The time interval between ejection sweep analysis.

Duration Interval { get; }
Property Value

Duration

Remarks

ExampleMetadata: infused

MaxEjectionPercent

Maximum percentage of hosts in load balancing pool for upstream service that can be ejected.

double MaxEjectionPercent { get; }
Property Value

double

Remarks

Will eject at least one host regardless of the value.

MaxServerErrors

Number of consecutive 5xx errors required for ejection.

double MaxServerErrors { get; }
Property Value

double

Remarks

ExampleMetadata: infused

Back to top Generated by DocFX