mehmetozer
mehmetozer

Reputation: 858

How to migrate indexes to a new cluster in Elasticsearch?

For today, I have a cluster of elasticsearch containing two weeks of indexes and in few days, we will receive new machines so we will need to migrate all indexes into the new machines. For migration I have a made scenario;

So I hope I will migrate the old cluster into new cluster. Do you think this scenario is enough or I need to add some more steps ?

Thank you all in advance

Upvotes: 0

Views: 595

Answers (1)

Julien C.
Julien C.

Reputation: 966

We've already migrated our data accros several Elasticsearch clusters several times, and here is how we proceed :

  • each node has a specific tag (defined in configuration file, like node.mytag: mytagvalue)
  • we connect our new machines to the cluster
  • we use shard allocation clustering, and exclude tag of our old machines, so all data are automatically migrated to new machine (see documentation)
  • once it's done, we shutdown old machines

if you have not already defined tag for your nodes (would require a restart on old machines, so can be inconvenient), you can exclude IP address, name, id or host name, respectively

Upvotes: 2

Related Questions