/
Merging and Renaming ES Clusters

Merging and Renaming ES Clusters

This technique allows merging two separate Elasticsearch clusters or renaming an Elasticsearch cluster. This is performed by retiring an Elasticsearch node "into" a new Elasticsearch cluster.

  1. Join one or more existing nodes to the new cluster by changing the cluster.name value to the new cluster’s name. 

  2. Verify the join.

  3. Decommission a node by telling the cluster to exclude it from allocation to migrate shards off of the old nodes. 

    curl -XPUT localhost:9200/_cluster/settings -d '{ "transient" :{ "cluster.routing.allocation.exclude._ip" : "10.0.0.1" } }';echo

    This causes Elasticsearch to allocate the shards on that node to the remaining nodes, which is performed without the state of the cluster changing to yellow or red (even replication 0).

  4. Shut down the node when all shards are reallocated.

  5. Include the node for allocation to restore the node to service, which causes Elasticsearch to rebalance the shards again.

See https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-cluster.html.

Related content

Rebuilding a Search Feed
Rebuilding a Search Feed
Read with this
Renaming and merging elasticsearch clusters
Renaming and merging elasticsearch clusters
More like this
Elasticsearch Implementation
Elasticsearch Implementation
Read with this
Rolling Restart of Elasticsearch
Rolling Restart of Elasticsearch
More like this
Upgrading Elasticsearch
Upgrading Elasticsearch
More like this
Monitoring Elasticsearch
Monitoring Elasticsearch
More like this

© DataCore Software Corporation. · https://www.datacore.com · All rights reserved.