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. For more details on node groups and their roles, see 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 specified during index creation is created. Writing to the index is performed only through primary shards, while reading can be performed simultaneously from both primary 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. There can be no more than two node groups with the Data role in a cluster.
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 to:
- for single-node node groups;
- node groups with multiple nodes, if the cluster is located in a pool with only one segment;
- multi-node node groups in configurations of the HighFreq line.
For example, if you created a cluster in the ru-2 pool and used configurations from the HighFreq line 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 up to ten nodes to a node group with the Data role.
- In the Control panel, in 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 Edit 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 Control panel, in 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, choose a configuration.
-
Specify the number of nodes in the group.
-
Optional: to make group nodes accessible from the Internet, select the Enable public access checkbox. A dedicated public IP address will be assigned to each node in the group.
If the cluster subnet does not meet the requirements, enabling public access is unavailable. You can assign a public IP address after adding the group.
-
Click Save.