Elasticsearch 2

1,Document 被存到哪个shard上?
shard = hash(routing) % number_of_primary_shards
2 Routing a Document to a Shard
3 法定人数 quorum
int( (primary + number_of_replicas) / 2 ) + 1

如果你设置了3副本,而只启动了2个Node, 默认情况下,你将无法 增减document。

4,
A new index has 1 replica by default, which means that two active shard copies should be required in order to satisfy the need for a quorum. However, these default settings would prevent us from doing anything useful with a single-node cluster. To avoid this problem, the requirement for a quorum is enforced only when number_of_replicas is greater than 1.

只有number_of_replicas 大于1 ,才启用投票机制。

5,

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值