Yea, s3 gateway is a shared one. The recovery process after a full shutdown
always goes to the gateway. The way that the "reuse local storage" mode
works is that, after "recover_after_nodes" have been discovered, when trying
to allocate a specific shard to a node, a diff is one between what data the
gateway has between all the nodes that hold that shard data, and then the
shard is allocated to the node with the "closest" amount of data. This means
that less data will need to be fetched from the gateway in order to complete
the recovery process as the local data on the node can be reused.
In general, the closer the recover_after_nodes is to the actual amount of
nodes you are going to start, the better chances that the recovery process
will complete quickly, as there will be more nodes to check for possible
shard allocate and reuse of the local storage.
The local gateway feature in master works completely different. Recovery
always happen only from the local storage, there is no remote storage in
question. It is much faster and more resilient to corruptions, at the cost
of relying on local storage and replication to provide durability (and not a
Once 0.11 is out I plan to write a whole new section in the docs, which is
more of "vertical" documentation and not module based documentation as the
format of the docs is today. In this section, I plan to cover things like
Gateway (long term persistency), Analysis Paralysis, and other "vertical"
On Thu, Sep 16, 2010 at 12:09 AM, Andrei firstname.lastname@example.org wrote:
Sorry, I am still trying to wrap my head around this.
In my case, the s3 gateway is a shared one (correct?), so I was trying
to get the nodes to recover the state/shards from the local shards,
and only then fetch the shards from S3 if the local recovery was not
possible. Did I miss something?
What is the default value of recovery_after_nodes? In my 2 node
cluster, what is the advantage of setting recovery_after_nodes to 2
instead of 1? Are there guidelines for what it should be, depending on
the number of nodes and shards?
Overall I'm really impressed by the dynamic node discovery and
failover capabilities of ES. Thanks for the great work.
On Sep 15, 10:47 am, Shay Banon shay.ba...@elasticsearch.com wrote:
recover_after_nodes only means that the actual state recovery (which
were created) as well as shard allocation (when using shared gateway)
happen only after the specific number of nodes has been started in a
This makes sense in shared storage gateway mode so locally stored shards
be reused (shards gets allocated to nodes that have the smallest diff
between their local storage and the shared gateway).