-
Couldn't load subscription status.
- Fork 621
Add Async Batch Shard Settings #7056
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Pranshu-S <pranshushukla06@gmail.com>
|
Thanks, @Pranshu-S ! Are these changes being released in 2.14 or should they be backported to 2.13? |
This will be for 2.14. |
_install-and-configure/configuring-opensearch/cluster-settings.md
Outdated
Show resolved
Hide resolved
_install-and-configure/configuring-opensearch/cluster-settings.md
Outdated
Show resolved
Hide resolved
Signed-off-by: Pranshu-S <pranshushukla06@gmail.com>
| - `REPLICA_FIRST` – Replica shards are relocated first, before primary shards. This prioritization may help prevent a cluster's health status from going red when carrying out shard relocation in a mixed-version, segment-replication-enabled OpenSearch cluster. In this situation, primary shards relocated to OpenSearch nodes of a newer version could try to copy segment files to replica shards on an older version of OpenSearch, which would result in shard failure. Relocating replica shards first may help to avoid this in multi-version clusters. | ||
| - `NO_PREFERENCE` – The default behavior in which the order of shard relocation has no importance. | ||
|
|
||
| - `cluster.allocator.gateway.batch_size` (Integer): Limits the number of shards sent in one batch to data nodes for fetching metadata. Default is `2000`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we change it to -> Limits the number of shards sent in one batch to data nodes for fetching unassigned shard metadata
| - `NO_PREFERENCE` – The default behavior in which the order of shard relocation has no importance. | ||
|
|
||
| - `cluster.allocator.gateway.batch_size` (Integer): Limits the number of shards sent in one batch to data nodes for fetching metadata. Default is `2000`. | ||
| - `cluster.allocator.existing_shards_allocator.batch_enabled` (Boolean): Enables batch allocation of unassigned shards already existing on the disk. This allows for sending all `Unassigned`shards to the `ExistingShard` allocator. The allocator decides how to allocate the unassigned shards. Default is `False`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enables batch allocation of unassigned shards already existing on the disk as opposed to one shard at a time. This reduces the memory and transport overhead by fetching unassigned shard metadata in a batch call. Default is False.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the wordings.
Signed-off-by: Pranshu-S <pranshushukla06@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple more small tweaks.
_install-and-configure/configuring-opensearch/cluster-settings.md
Outdated
Show resolved
Hide resolved
_install-and-configure/configuring-opensearch/cluster-settings.md
Outdated
Show resolved
Hide resolved
Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
_install-and-configure/configuring-opensearch/cluster-settings.md
Outdated
Show resolved
Hide resolved
Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Pranshu-S @Naarcha-AWS Just a couple comments/changes. Thanks!
_install-and-configure/configuring-opensearch/cluster-settings.md
Outdated
Show resolved
Hide resolved
_install-and-configure/configuring-opensearch/cluster-settings.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
Description
Adds documentation for enabling Async Batch Fetch on a cluster and setting Batch sizes to the gateway allocators as per the changes/optimisations done on Async Shard Fetch flow
Issues Resolved
Resolves #7055
Checklist
For more information on following Developer Certificate of Origin and signing off your commits, please check here.