简体   繁体   中英

Can I create an ElasticSearch index on a node/cluster, then change the cluster later?

Can I create an ElasticSearch index on a cluster, let's name it "Cluster 1".

And then suppose there's another cluster "Cluster 2" I want the node to move to in the future. Is it possible to just change the cluster name in the future without impacting the data? It's ok of course if the shards move to other nodes in the cluster, but I just don't want any data loss.

Yes, Cluster 2 can pick up indices from a Cluster 1 node, but you have to makes sure that:

  1. The data directory on the node from Cluster 1 is properly renamed from ESHOME/data/Cluster 1 to ESHOME/data/Cluster 2 to reflect the new cluster name.

  2. None of the indices that existed on the node from a Cluster 1 already exist in the Cluster 2 .

是的,我相信您可以在其配置中更改es进程(节点)的集群名称,并且数据分片仍将位于新集群中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM