Skip to content

Commit bc8e0e3

Browse files
authored
[9.0] Amends the anomaly detection upgrade instructions. (#3002)
1 parent 3aeb3b0 commit bc8e0e3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/en/install-upgrade/upgrading-stack.asciidoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,14 @@ Note the number of replicas in the response. For example:
227227
}
228228
----
229229
230-
.. Set the number of replicas to `0.`
230+
.. Set the number of replicas to `0`. You must also set the `auto_expand_replicas` parameter to `false` to change the number of replicas:
231231
+
232232
[source,console]
233233
----
234234
PUT /.reindexed-v9-ml-anomalies-custom-example/_settings
235235
{
236236
"index": {
237+
"auto_expand_replicas": false,
237238
"number_of_replicas": 0
238239
}
239240
}
@@ -261,14 +262,15 @@ The response will contain a `task_id`. You can check when the task is completed
261262
GET _tasks/<task_id>
262263
----
263264
264-
.. Set the number of replicas to the original number when the reindexing is finished.
265+
.. 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.
265266
+
266267
[source,console]
267268
----
268269
PUT /.reindexed-v9-ml-anomalies-custom-example/_settings
269270
{
270271
"index": {
271-
"number_of_replicas": "<original_number_of_replicas>"
272+
"number_of_replicas": "<original_number_of_replicas>",
273+
"auto_expand_replicas": "0-1"
272274
}
273275
}
274276
----

0 commit comments

Comments
 (0)