Skip to content

Commit 01ae751

Browse files
authored
[D&M] Updates the anomaly detection upgrade instructions (#900)
## Overview Related to elastic/developer-docs-team#268 This PR updates the PUT settings request in the AD upgrade guide to set the `auto_expand_replicas` parameter to `false`.
1 parent 3d2815f commit 01ae751

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

deploy-manage/upgrade/prepare-to-upgrade.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,13 @@ POST _create_from/.ml-anomalies-custom-example/.reindexed-v9-ml-anomalies-custom
156156
}
157157
```
158158
159-
2. Set the number of replicas to `0.`
159+
2. Set the number of replicas to `0`. You must also set the `auto_expand_replicas` parameter to `false` to change the number of replicas:
160160
161161
```json
162162
PUT /.reindexed-v9-ml-anomalies-custom-example/_settings
163163
{
164164
"index": {
165+
"auto_expand_replicas": false,
165166
"number_of_replicas": 0
166167
}
167168
}
@@ -187,13 +188,14 @@ POST _create_from/.ml-anomalies-custom-example/.reindexed-v9-ml-anomalies-custom
187188
GET _tasks/<task_id>
188189
```
189190
190-
4. Set the number of replicas to the original number when the reindexing is finished.
191+
4. Set the number of replicas to the original number when the reindexing is finished. Optionally, you can set the `auto_expand_replicas` parameter back to its default value (`0-1`) to allow the number of replicas to be automatically adjusted based on the number of data nodes in the cluster.
191192
192193
```json
193194
PUT /.reindexed-v9-ml-anomalies-custom-example/_settings
194195
{
195196
"index": {
196-
"number_of_replicas": "<original_number_of_replicas>"
197+
"number_of_replicas": "<original_number_of_replicas>",
198+
"auto_expand_replicas": "0-1"
197199
}
198200
}
199201
```

0 commit comments

Comments
 (0)