Elasticsearch multi-cluster data synchronization

  Sometimes multiple clusters can not avoid Elasticsearch synchronize data online to find the next data synchronization tools pretty much, more commonly used are: elasticserach-dump, elasticsearch-exporter, logstash, of which dump tool has two versions, one version is nodejs one is go version. Here we use go version, details see Using: https: //github.com/medcl/esm-abandoned

Download: https: //github.com/medcl/esm-abandoned/releases/tag/v0.4.1

 

A, synchronized to the cluster A from the cluster B

./bin/esm -s http://xxxx:9200 -d http://yyyy:9200 -x src_index -y dst_index -q=site:example.com -w=5 -b=10 -c 10000


Second, the dump A cluster data to a local file

./bin/esm -s http://localhost:9200 -x src_index -m admin:111111 -c 5000 -b -q=site:example.com --refresh -o=dump.bin

 

Third, import local files to the cluster A

./bin/esm -d http://localhost:9200 -y "dest_index" -n admin:111111 -c 5000 -b 5 --refresh -i=dump.bin

 

Fourth, more Parameter Description

Guess you like

Origin www.cnblogs.com/xiaodekaixin/p/11129139.html