Skip to content

Commit cdea43d

Browse files
AntonEliatrakolchfa-awsnatebower
authored
adding read-only explanation to split and shrink API docs (opensearch-project#10544)
* adding read-only explanation to split and shrink API docs Signed-off-by: Anton Rubin <[email protected]> * Apply suggestions from code review Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: AntonEliatra <[email protected]> * addressing PR comments Signed-off-by: Anton Rubin <[email protected]> * Apply suggestions from code review Signed-off-by: Nathan Bower <[email protected]> --------- Signed-off-by: Anton Rubin <[email protected]> Signed-off-by: AntonEliatra <[email protected]> Signed-off-by: Nathan Bower <[email protected]> Co-authored-by: kolchfa-aws <[email protected]> Co-authored-by: Nathan Bower <[email protected]>
1 parent 90af609 commit cdea43d

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

_api-reference/index-apis/shrink-index.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ redirect_from:
1111
**Introduced 1.0**
1212
{: .label .label-purple }
1313

14-
The shrink index API operation moves all of your data in an existing index into a new index with fewer primary shards.
14+
The shrink index API operation moves all of your data in an existing read-only index into a new index with fewer primary shards.
15+
16+
To make the index read-only, set the [dynamic index-level index setting]({{site.url}}{{site.baseurl}}/install-and-configure/configuring-opensearch/index-settings/#dynamic-index-level-index-settings) `index.blocks.write` to `true`.
17+
{: .note}
1518

1619

1720
## Endpoints

_api-reference/index-apis/split.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ redirect_from:
1313

1414
The split index API operation splits an existing read-only index into a new index, cutting each primary shard into some amount of primary shards in the new index.
1515

16+
To make the index read-only, set the [dynamic index-level index setting]({{site.url}}{{site.baseurl}}/install-and-configure/configuring-opensearch/index-settings/#dynamic-index-level-index-settings) `index.blocks.write` to `true`.
17+
{: .note}
18+
1619
## Example
1720

1821
```json

_install-and-configure/configuring-opensearch/index-settings.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ OpenSearch supports the following dynamic index-level index settings:
213213

214214
For example, if you have 5 data nodes and set `index.auto_expand_search_replicas` to `0-3`, the index can have up to 3 search replicas and the cluster does not automatically add another search replica shard. However, if you set `index.auto_expand_search_replicas` to `0-all` and add 2 more nodes, for a total of 7, the cluster will expand to now have 7 search replica shards. This setting is disabled by default.
215215

216+
- `index.blocks.write` (Boolean): Specifies whether the index is read-only. Setting to `true` blocks all write requests and makes the index read-only. Default is `false`.
217+
216218
- `index.search.idle.after` (Time unit): The amount of time a shard should wait for a search or get request until it goes idle. Default is `30s`.
217219

218220
- `index.search.default_pipeline` (String): The name of the search pipeline that is used if no pipeline is explicitly set when searching an index. If a default pipeline is set and the pipeline doesn't exist, then the index requests fail. Use the pipeline name `_none` to specify no default search pipeline. For more information, see [Default search pipeline]({{site.url}}{{site.baseurl}}/search-plugins/search-pipelines/using-search-pipeline/#default-search-pipeline).

0 commit comments

Comments
 (0)