1. 每个分片的主本和副本不会单独存储在一个Node。
If you choose this option, set cluster.routing.allocation.same_shard.host: true
in your config. This will prevent a primary and a replica shard from colocating to the same physical machine (since this would remove the benefits of replica high availability).
1 个回复
bill
赞同来自:
If you choose this option, set
cluster.routing.allocation.same_shard.host: true
in your config. This will prevent a primary and a replica shard from colocating to the same physical machine (since this would remove the benefits of replica high availability).
2. 不同分片的主本或副本可以在同一个Node上。
3. 每个节点上的shards个数会balance。
比如:
Node1 :P1, P2,R0
Node2 :P3, P2, R4
Node3 :P0, R3
Node4 :P4, R1