elasticsearch - how to transfer elastic data from one server to another -


how move elasticsearch data 1 server another?

i have server running elasticsearch 1.4.2 on 1 local node multiple indices. copy data server b running elasticsearch same version. lucene_version same on both servers.but when copy files server b data not migrated shows mappings of node. tried same procedure on local computer , worked perfectly. missing on server end?

this can achieved multiple ways. easier , safest way create replica on new node. replica can created starting new node on new server assigning same cluster name. (if have changed other network configurations might need change also). if have initialized index no replica before can change number of replica online using update settings api

your cluster in yellow state until datas in sync.normal operations won't affected. once cluster state in green can shut down server not wish have. @ stage cluster stage go yellow again. can use update setting change replica count 0 / add other nodes bring cluster state in green state.

this way recommended if both servers on same network else data syncing take lots of time.

another way use snapshot. can create snapshot on old server. copy snapshot files old server new server in same location. on new server create same snapshot on same location. find snapshot file copied. can restore using that. doing using command line can bit cumbersome. can use plugin kopf make taking snapshot , restore easy button click.


Popular posts from this blog