CapacityConfig
- class aws_cdk.aws_opensearchservice.CapacityConfig(*, data_node_instance_type=None, data_nodes=None, master_node_instance_type=None, master_nodes=None, multi_az_with_standby_enabled=None, warm_instance_type=None, warm_nodes=None)
Bases:
object
Configures the capacity of the cluster such as the instance type and the number of instances.
- Parameters:
data_node_instance_type (
Optional
[str
]) – The instance type for your data nodes, such asm3.medium.search
. For valid values, see Supported Instance Types in the Amazon OpenSearch Service Developer Guide. Default: - r5.large.searchdata_nodes (
Union
[int
,float
,None
]) – The number of data nodes (instances) to use in the Amazon OpenSearch Service domain. Default: - 1master_node_instance_type (
Optional
[str
]) –The hardware configuration of the computer that hosts the dedicated master node, such as
m3.medium.search
. For valid values, see Supported Instance Types in the Amazon OpenSearch Service Developer Guide. Default: - r5.large.searchmaster_nodes (
Union
[int
,float
,None
]) – The number of instances to use for the master node. Default: - no dedicated master nodesmulti_az_with_standby_enabled (
Optional
[bool
]) – Indicates whether Multi-AZ with Standby deployment option is enabled. For more information, see Multi-AZ with Standby Default: - multi-az with standby if the feature flagENABLE_OPENSEARCH_MULTIAZ_WITH_STANDBY
is true, no multi-az with standby otherwisewarm_instance_type (
Optional
[str
]) – The instance type for your UltraWarm node, such asultrawarm1.medium.search
. For valid values, see UltraWarm Storage Limits in the Amazon OpenSearch Service Developer Guide. Default: - ultrawarm1.medium.searchwarm_nodes (
Union
[int
,float
,None
]) – The number of UltraWarm nodes (instances) to use in the Amazon OpenSearch Service domain. Default: - no UltraWarm nodes
- ExampleMetadata:
infused
Example:
domain = Domain(self, "Domain", version=EngineVersion.OPENSEARCH_1_0, capacity=CapacityConfig( master_nodes=2, warm_nodes=2, warm_instance_type="ultrawarm1.medium.search" ), cold_storage_enabled=True )
Attributes
- data_node_instance_type
//docs.aws.amazon.com/opensearch-service/latest/developerguide/supported-instance-types.html>`_ in the Amazon OpenSearch Service Developer Guide.
- Default:
r5.large.search
- Type:
The instance type for your data nodes, such as
m3.medium.search
. For valid values, see `Supported Instance Types <https
- data_nodes
The number of data nodes (instances) to use in the Amazon OpenSearch Service domain.
- Default:
1
- master_node_instance_type
//docs.aws.amazon.com/opensearch-service/latest/developerguide/supported-instance-types.html>`_ in the Amazon OpenSearch Service Developer Guide.
- Default:
r5.large.search
- Type:
The hardware configuration of the computer that hosts the dedicated master node, such as
m3.medium.search
. For valid values, see `Supported Instance Types <https
- master_nodes
The number of instances to use for the master node.
- Default:
no dedicated master nodes
- multi_az_with_standby_enabled
Indicates whether Multi-AZ with Standby deployment option is enabled.
For more information, see Multi-AZ with Standby
- Default:
multi-az with standby if the feature flag
ENABLE_OPENSEARCH_MULTIAZ_WITH_STANDBY
is true, no multi-az with standby otherwise
- warm_instance_type
//docs.aws.amazon.com/opensearch-service/latest/developerguide/limits.html#limits-ultrawarm>`_ in the Amazon OpenSearch Service Developer Guide.
- Default:
ultrawarm1.medium.search
- Type:
The instance type for your UltraWarm node, such as
ultrawarm1.medium.search
. For valid values, see `UltraWarm Storage Limits <https
- warm_nodes
The number of UltraWarm nodes (instances) to use in the Amazon OpenSearch Service domain.
- Default:
no UltraWarm nodes