Migrating Elasticsearch indices to new cluster

I have a ES cluster (3 data nodes + 1 coordinate-only node) currently running, having a number of indices.
I am planning to migrate to another cluster. Is there a way I can migrate all my current indices to new cluster?

If i just copy my data directory to new cluster, will that be sufficient?

You have a couple of options:

  1. Reindex API - can pull data from the old cluster onto the new. Comes at the cost of network bandwidth, but not a problem for everyone
  2. Snapshot / Restore - snapshot the old indices and restore them on the new

Is the new cluster running the same version of Elasticsearch as the current?

Yes, its Elasticsearch-5.0.1.

One more thing, if I go for re-indexing, the host name that we mention, should it be coordinate-only node?
And, query is not mandatory, right? I mean I can just mention index name, example config below mentioned.

POST _reindex
{
  "source": {
    "remote": {
      "host": "http://coordinateNode:9200"
    },
    "index": "source",
  },
  "dest": {
    "index": "dest"
  }
}

It doesn't really matter.

Yep!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.