From b5586f7ec4dc5ff725d79e9d24066353f43f7bbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20Zolt=C3=A1n=20Szab=C3=B3?= Date: Mon, 24 Mar 2025 16:35:40 +0100 Subject: [PATCH] [9.0] Amends the anomaly detection upgrade instructions. --- docs/en/install-upgrade/upgrading-stack.asciidoc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/en/install-upgrade/upgrading-stack.asciidoc b/docs/en/install-upgrade/upgrading-stack.asciidoc index 3b06dbcc7..72f1d6a6d 100644 --- a/docs/en/install-upgrade/upgrading-stack.asciidoc +++ b/docs/en/install-upgrade/upgrading-stack.asciidoc @@ -227,13 +227,14 @@ Note the number of replicas in the response. For example: } ---- -.. Set the number of replicas to `0.` +.. Set the number of replicas to `0`. You must also set the `auto_expand_replicas` parameter to `false` to change the number of replicas: + [source,console] ---- PUT /.reindexed-v9-ml-anomalies-custom-example/_settings { "index": { + "auto_expand_replicas": false, "number_of_replicas": 0 } } @@ -261,14 +262,15 @@ The response will contain a `task_id`. You can check when the task is completed GET _tasks/ ---- -.. Set the number of replicas to the original number when the reindexing is finished. +.. 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. + [source,console] ---- PUT /.reindexed-v9-ml-anomalies-custom-example/_settings { "index": { - "number_of_replicas": "" + "number_of_replicas": "", + "auto_expand_replicas": "0-1" } } ----