esm migration elasticsearch
使用esm迁移备份elasticsearch
usage:
esm -s http://10.154.8.82:9200 -x testIndex -o testIndex.json
esm -s http://172.21.0.14:19022 -d http://172.21.0.14:19205 -x test_data -y test_data_from_esm -w=5 -b=10 -c 10000
esm -s http://xxx.xxx.xxx.xxx:9200 -q "time字段:[1624932000000 TO 1625464800000]" -d http://xxx.xxx.xxx.xxx:9200 -n username:password -x 索引 -w=5 -b=10 -c 10000
w:并发数。
b:bulk 大小,单位MB。
c:scroll 批量值大小。