Index Recovery Initial Shards

I was reading the release notes for .18 and stumbled upon a new
feature described under https://github.com/elasticsearch/elasticsearch/issues/1163.
Can anyone explain what that setting is for?

Thanks,
Jason

Sure. The setting index.recovery.initial_shards provides the following:

Basically, when using a local gateway, a "shard" will be recovered once a
quorum of its copies are found among the nodes in the cluster.

Lets take N shard, with 1 replica (2 copies for each shard). The default
(quorum) means that once a singe copy of a shard is found, it will be
recovered. If you have 2 replicas (3 copies), it will only recover that
shard once 2 copies are found.

You can set this setting, in case you lost a large number of nodes,
and quorum is a too strict setting. You can actually set it on a "live"
index (which is in a "red" state, obviously, because not all shards are
recovered).

On Mon, Nov 28, 2011 at 9:39 PM, jjasinek jjasinek@gmail.com wrote:

I was reading the release notes for .18 and stumbled upon a new
feature described under
Index Settings: Add `index.recovery.initial_shards` controlling the number of shards to exists when using local gateway · Issue #1163 · elastic/elasticsearch · GitHub.
Can anyone explain what that setting is for?

Thanks,
Jason

Thanks Shay! Can I assume that if this property is not set that no default
exists or that the default is really '1'.

The default is for the setting is "quorum".

On Tue, Nov 29, 2011 at 8:32 PM, jjasinek jjasinek@gmail.com wrote:

Thanks Shay! Can I assume that if this property is not set that no
default exists or that the default is really '1'.

1 Like