Interface IZoneAwarenessConfig
Specifies zone awareness configuration options.
Namespace: Amazon.CDK.AWS.OpenSearchService
Assembly: Amazon.CDK.AWS.OpenSearchService.dll
Syntax (csharp)
public interface IZoneAwarenessConfig
Syntax (vb)
Public Interface IZoneAwarenessConfig
Remarks
ExampleMetadata: infused
Examples
var prodDomain = new Domain(this, "Domain", new DomainProps {
Version = EngineVersion.OPENSEARCH_1_0,
Capacity = new CapacityConfig {
MasterNodes = 5,
DataNodes = 20
},
Ebs = new EbsOptions {
VolumeSize = 20
},
ZoneAwareness = new ZoneAwarenessConfig {
AvailabilityZoneCount = 3
},
Logging = new LoggingOptions {
SlowSearchLogEnabled = true,
AppLogEnabled = true,
SlowIndexLogEnabled = true
}
});
Synopsis
Properties
AvailabilityZoneCount | If you enabled multiple Availability Zones (AZs), the number of AZs that you want the domain to use. |
Enabled | Indicates whether to enable zone awareness for the Amazon OpenSearch Service domain. |
Properties
AvailabilityZoneCount
If you enabled multiple Availability Zones (AZs), the number of AZs that you want the domain to use.
virtual Nullable<double> AvailabilityZoneCount { get; }
Property Value
System.Nullable<System.Double>
Remarks
Valid values are 2 and 3.
Default: - 2 if zone awareness is enabled.
Enabled
Indicates whether to enable zone awareness for the Amazon OpenSearch Service domain.
virtual Nullable<bool> Enabled { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
When you enable zone awareness, Amazon OpenSearch Service allocates the nodes and replica index shards that belong to a cluster across two Availability Zones (AZs) in the same region to prevent data loss and minimize downtime in the event of node or data center failure. Don't enable zone awareness if your cluster has no replica index shards or is a single-node cluster. For more information, see [Configuring a Multi-AZ Domain] (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-multiaz.html) in the Amazon OpenSearch Service Developer Guide.
Default: - false