es同步工具官网:https://github.com/medcl/esm
#同步索引index_name
esm -s http://10.62.124.x:9200 -d http://10.67.151.y:9200 -x index_name -w=5 -b=10 -c 10000
#同步数据和索引配置(主分片个数不同步,使用默认值5)
esm.exe -s http://localhost:9200 -d http://192.168.210.168:9200 -x es_medias_test2 -w=5 -b=10 -c 10000 --copy_settings --copy_mappings
#同步数据和索引配置(同步主分片数)
esm.exe -s http://localhost:9200 -d http://192.168.210.168:9200 -x es_medias_test -w=5 -b=10 -c 10000 --shards=1 --copy_settings --copy_mappings
这篇博客介绍了如何使用 esm 工具进行 Elasticsearch 数据和索引的同步。提供了不同参数的命令行示例,包括同步索引、保持主分片数一致以及同步设置和映射。该工具对于集群间的数据迁移或者备份十分实用。
3730

被折叠的 条评论
为什么被折叠?



