OpenSearch cluster fault tolerance
The fault tolerance of an OpenSearch managed database cluster is affected by:
- index replication;
- number of nodes in node groups with Manager and Data roles. Learn more about node groups and their roles in the OpenSearch Node Groups guide;
- node allocation type in node groups.
Index replication
The cluster uses a standard index replication mechanism — for each primary shard, the number of replica shards that you specified during index creation is created. Writing to an index occurs only through primary shards; reading can be performed simultaneously from primary shards and replica shards.
Number of nodes in node groups
The node group with the Manager role contains three nodes. You cannot change the number of nodes in this group or add another node group with the Manager role.
The node group with the Data role consists of one node by default. To increase cluster fault tolerance, you can:
- increase the number of nodes in the group with the Data role in an existing cluster or when creating a cluster. You can add from one to ten nodes to each node group;
- add another node group with the Data role in an existing cluster or when creating a cluster. A cluster can have no more than two node groups with the Data role.
Node allocation type
The node allocation type in a cluster depends on:
- the number of nodes in a group;
- the type of pool where the cluster is located;
- the number of segments in the pool;
- configuration line.
You can view the list of pools and segments in the Servercore Infrastructure table in the Locations: countries, regions, availability zones, pools, and data center addresses guide.
Four node allocation types are available:
- Single-Segment;
- Multi-Segment;
- Single-AZ;
- Multi-AZ.
Single-Segment
Multi-Segment
Single-AZ
Multi-AZ
Nodes are placed in the same segment of a single-zone pool. Applicable:
- a node group with the Data role that has only one node;
- node groups with multiple nodes, if the cluster is located in a pool with only one segment;
- node groups with multiple nodes in HighFreq configurations.
For example, you have created a cluster in the ru-2 pool and used HighFreq line configurations for node groups with Manager and Data roles. All nodes of both groups will be placed in the same pool segment, for example, ru-2c.
Increase the number of nodes in a group with the Data role
You can add no more than ten nodes to a node group with the Data role.
- In the Dashboard, on the top menu, click Products and select Managed Databases.
- Open the Active tab.
- Open the database cluster page → Settings tab.
- In the menu of the node group with the Data role, select Change configuration.
- Specify the number of nodes in the group.
- Click Save.
Add a node group with the Data role
The total number of node groups with the Data role in a cluster cannot exceed two.
-
In the Dashboard, on the top menu, click Products and select Managed Databases.
-
Open the Active tab.
-
Open the database cluster page → Settings tab.
-
In the Cluster block, click Add node group.
-
Optional: change the node group name.
-
Select a node group with the Data role.
-
Select a configuration line.
-
If you selected a line with custom configurations, specify the number of vCPUs, RAM size, and disk size.
-
If you selected a line with fixed configurations, select a configuration.
-
Specify the number of nodes in the group.
-
Optional: to make the group nodes accessible from the internet, connect a public IP address to them:
- if you selected an existing private subnet, enable the Public access toggle. The private subnet must meet the requirements;
- if you are creating a new private subnet, connect a public IP address after adding the node group.
IP addresses are automatically assigned to all nodes in the group.
-
Click Save.