Skip to content

Commit 81a1355

Browse files
authored
Update index.md (opensearch-project#8340)
Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
1 parent edc45b7 commit 81a1355

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

_tuning-your-cluster/index.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,11 @@ To further fine-tune your shard allocation, you can set custom node attributes f
198198
199199
You can set custom node attributes on OpenSearch nodes to be used for shard allocation awareness. For example, you can set the `zone` attribute on each node to represent the zone in which the node is located. You can also use the `zone` attribute to ensure that the primary shard and its replica shards are allocated in a balanced manner across available, distinct zones. In this scenario, maximum shard copies per zone would equal `ceil (number_of_shard_copies/number_of_distinct_zones)`.
200200
201-
OpenSearch, by default, allocates shard copies of a single shard across different nodes. When only 1 zone is available, such as after a zone failure, OpenSearch allocates replica shards to the only remaining zone i.e. it considers only available zones (attribute values) for calculating maximum allowed shard copies per zone.
201+
OpenSearch, by default, allocates shard copies of a single shard across different nodes. When only 1 zone is available, such as after a zone failure, OpenSearch allocates replica shards to the only remaining zone---it considers only available zones (attribute values) when calculating the maximum number of allowed shard copies per zone.
202+
202203
For example, if your index has a total of 5 shard copies (1 primary and 4 replicas) and nodes in 3 distinct zones, then OpenSearch will perform the following to allocate all 5 shard copies:
203204
204-
- Allocate not more than 2 shards per zone, which will require at least 2 nodes in 2 zones.
205+
- Allocate no more than 2 shards per zone, which will require at least 2 nodes in 2 zones.
205206
- Allocate the last shard in the third zone, with at least 1 node needed in the third zone.
206207
207208
Alternatively, if you have 3 nodes in the first zone and 1 node in each remaining zone, then OpenSearch will allocate:

0 commit comments

Comments
 (0)