Elastic search cluster sync issue- each node is having different values for an index

落花浮王杯 提交于 2019-12-06 13:54:32

If you need the data in two nodes, use replication. That way a copy of the data of each shard is made on the other node. Beware though, this is not master-slave. If your index has multiple shards, one node can have the primary of one shard and the replica of another. The closest you can get is to have an index with one shard and one replica. Than both nodes would have the data.

Another option could be to create snapshots in one cluster (of one node) and restore them in the other cluster (of one node). Of course there is a lag in the synchronisation this way. With just two nodes this would not be the preferred solution.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!