Skip to content

Commit 6c83aa4

Browse files
committed
reindex to upgrade method refined
1 parent c0172ce commit 6c83aa4

File tree

1 file changed

+30
-5
lines changed

1 file changed

+30
-5
lines changed

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

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -808,9 +808,34 @@ DELETE _transform/my-transform?delete_dest_index
808808

809809
## Reindex to upgrade [reindex-to-upgrade]
810810

811-
If you are running a pre-8.x version, you might need to perform multiple upgrades before being able to upgrade to 9.x. As an alternative method to upgrading the cluster, you can create a new deployment in the target version and reindex from remote:
811+
If you are running a pre-8.x version, you might need to perform multiple upgrades before being able to upgrade to 9.x. As an alternative method to upgrading the cluster, you can create a new deployment in the target version and reindex from remote.
812812

813-
1. Provision an additional deployment running the desired version, such as {{version.stack}}.
814-
2. To reindex your data into the new {{es}} cluster, use the [reindex documents API](https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-reindex) and temporarily send new indexing requests to both clusters.
815-
3. Verify the new cluster performs as expected, fix any problems, and then permanently swap in the new cluster.
816-
4. Delete the old deployment. On {{ecloud}}, you are billed for the time the new deployment runs in parallel with your old deployment. Usage is billed on an hourly basis.
813+
This method is intended only for migrating your own user or application data and should not be used to migrate Elastic system indices, {{kib}} data, or other {{stack}} features such as {{ml}}, transforms, {{kib}} alerting, or detection rules. To preserve these configurations and feature data, follow the standard upgrade procedure instead.
814+
815+
Follow these steps to perform a reindex-based upgrade to a new deployment or cluster:
816+
817+
1. **Provision an additional deployment running the desired version, such as {{version.stack}}**
818+
819+
Create it on your chosen platform ({{ech}}, {{ece}}, {{eck}}, or self-managed) and configure it to meet your new requirements.
820+
821+
::::{note}
822+
On {{ecloud}}, you are billed for the time the new deployment runs in parallel with your old deployment. Usage is billed on an hourly basis.
823+
::::
824+
825+
2. **Migrate ingest pipelines, templates, and configuration**
826+
827+
Review and adapt index templates, ingest pipelines, and other resources to ensure compatibility with the new cluster.
828+
829+
3. **Reindex your data into the new {{es}} cluster**
830+
831+
Use the [reindex documents API](https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-reindex) and temporarily send new indexing requests to both clusters.
832+
833+
4. **Validate and cut over**
834+
835+
Verify the new cluster performs as expected, fix any problems, and then permanently swap in the new cluster.
836+
837+
The exact process to switch traffic from the old cluster to the new one depends on your environment and requirements. You are responsible for defining this cutover strategy, which can range from a brief maintenance window to a gradual transition. Common approaches include updating client configurations, DNS records, or load balancer targets once validation of the new cluster is complete.
838+
839+
5. **Delete the old deployment**
840+
841+
Once the new cluster is fully operational and all traffic has been redirected, you can safely delete the old deployment.

0 commit comments

Comments
 (0)