To use snapshot / restore, you must have a common mount point on all servers (e.g. NFS). You must add the repository to both clusters, then snapshot on one and restore on the other. The exact commands are well described here: http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html
Another way to migrate is to first cluster together and wait until everything is green. Then follow the process of decommissioning old slow nodes: How to remove node from elasticsearch cluster at runtime without downtime
- , @Zouzias . node.js: https://github.com/mallocator/Elasticsearch-Exporter, , , .
- API, 5.x - reindex from remote :
POST _reindex
{
"source": {
"remote": {
"host": "http://otherhost:9200",
"username": "user",
"password": "pass"
},
"index": "source"
},
"dest": {
"index": "dest"
}
}
, reindex.remote.whitelist elasticsearch.yml.