# Index recovery - speed difference in red -\> yellow vs yellow -\> green

**URL:** <https://discuss.elastic.co/t/index-recovery-speed-difference-in-red-yellow-vs-yellow-green/5362>\
**Category:** Elasticsearch\
**Created:** [September 12, 2011, 8:30pm UTC](https://discuss.elastic.co/t/index-recovery-speed-difference-in-red-yellow-vs-yellow-green/5362 "2011-09-12T20:30:09Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ppearcy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppearcy/32/980_2.png) [@ppearcy](https://discuss.elastic.co/u/ppearcy)\
**Post date:** [September 12, 2011, 8:30pm UTC](https://discuss.elastic.co/t/index-recovery-speed-difference-in-red-yellow-vs-yellow-green/5362/1 "2011-09-12T20:30:09Z")

</div>

Hey,  
When I've restarted my cluster, I've observed that I very quickly (a  
couple of minutes) get into the yellow state, while it takes much  
longer (a couple of hours) to get into the green state.

I am using the local gateway and know that each node will pull it's  
local data in order to get into the yellow state.

After that, do nodes use their own data to fulfill all replicas and  
verify it against the master w/ checksums or is all the data synced  
over from the master shard and the local data is disregarded?

Based on the performance I have observed, I believe it is the latter,  
but wanted to confirm.

Thanks,  
Paul

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [September 12, 2011, 10:54pm UTC](https://discuss.elastic.co/t/index-recovery-speed-difference-in-red-yellow-vs-yellow-green/5362/2 "2011-09-12T22:54:15Z")

</div>

When a replica is allocated, it needs to sync its index files with the  
primary shard. While indexing, the state of the index files can diverge  
(though not the content!), and they might require resync. If you would have  
restarted the cluster right away after the other restart, then it would have  
recovered much faster. Thanks to the way lucene works when it comes to  
merging, for large segments, this is a "one time" cost.

On Mon, Sep 12, 2011 at 11:30 PM, ppearcy [ppearcy@gmail.com](mailto:ppearcy@gmail.com) wrote:

> Hey,  
> When I've restarted my cluster, I've observed that I very quickly (a  
> couple of minutes) get into the yellow state, while it takes much  
> longer (a couple of hours) to get into the green state.
> 
> I am using the local gateway and know that each node will pull it's  
> local data in order to get into the yellow state.
> 
> After that, do nodes use their own data to fulfill all replicas and  
> verify it against the master w/ checksums or is all the data synced  
> over from the master shard and the local data is disregarded?
> 
> Based on the performance I have observed, I believe it is the latter,  
> but wanted to confirm.
> 
> Thanks,  
> Paul

---

<div class="post-metadata">

**Author:** ![ppearcy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppearcy/32/980_2.png) [@ppearcy](https://discuss.elastic.co/u/ppearcy)\
**Post date:** [September 28, 2011, 5:27am UTC](https://discuss.elastic.co/t/index-recovery-speed-difference-in-red-yellow-vs-yellow-green/5362/3 "2011-09-28T05:27:04Z")

</div>

Ah, that's interesting, didn't realize that the underlying index files  
didn't stay in sync, but makes sense. I did a restart of a smaller  
cluster which took ~20 mins to get to green and then another restart  
which took ~10 seconds to get to green.

I wonder, is it possible to inform the cluster on a full restart that  
no new content has arrived which would force the file sync to get  
skipped? One problem would be any new content that arrives while still  
in the yellow state would get out of sync. Would probably want to  
disable indexing new content until green.

Thanks,  
Paul

On Sep 12, 4:54 pm, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:

> When a replica is allocated, it needs to sync its index files with the  
> primary shard. While indexing, the state of the index files can diverge  
> (though not the content!), and they might require resync. If you would have  
> restarted the cluster right away after the other restart, then it would have  
> recovered much faster. Thanks to the way lucene works when it comes to  
> merging, for large segments, this is a "one time" cost.
> 
> On Mon, Sep 12, 2011 at 11:30 PM, ppearcy [ppea...@gmail.com](mailto:ppea...@gmail.com) wrote:
> 
> > Hey,  
> > When I've restarted my cluster, I've observed that I very quickly (a  
> > couple of minutes) get into the yellow state, while it takes much  
> > longer (a couple of hours) to get into the green state.
> 
> > I am using the local gateway and know that each node will pull it's  
> > local data in order to get into the yellow state.
> 
> > After that, do nodes use their own data to fulfill all replicas and  
> > verify it against the master w/ checksums or is all the data synced  
> > over from the master shard and the local data is disregarded?
> 
> > Based on the performance I have observed, I believe it is the latter,  
> > but wanted to confirm.
> 
> > Thanks,  
> > Paul

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [September 28, 2011, 11:58am UTC](https://discuss.elastic.co/t/index-recovery-speed-difference-in-red-yellow-vs-yellow-green/5362/4 "2011-09-28T11:58:27Z")

</div>

New content that arrives while the cluster is in yellow state does not mean  
it will get out of sync, it will be properly applied to the replica shards  
that are currently recovering.

On Wed, Sep 28, 2011 at 8:27 AM, ppearcy [ppearcy@gmail.com](mailto:ppearcy@gmail.com) wrote:

> Ah, that's interesting, didn't realize that the underlying index files  
> didn't stay in sync, but makes sense. I did a restart of a smaller  
> cluster which took ~20 mins to get to green and then another restart  
> which took ~10 seconds to get to green.
> 
> I wonder, is it possible to inform the cluster on a full restart that  
> no new content has arrived which would force the file sync to get  
> skipped? One problem would be any new content that arrives while still  
> in the yellow state would get out of sync. Would probably want to  
> disable indexing new content until green.
> 
> Thanks,  
> Paul
> 
> On Sep 12, 4:54 pm, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> 
> > When a replica is allocated, it needs to sync its index files with the  
> > primary shard. While indexing, the state of the index files can diverge  
> > (though not the content!), and they might require resync. If you would  
> > have  
> > restarted the cluster right away after the other restart, then it would  
> > have  
> > recovered much faster. Thanks to the way lucene works when it comes to  
> > merging, for large segments, this is a "one time" cost.
> > 
> > On Mon, Sep 12, 2011 at 11:30 PM, ppearcy [ppea...@gmail.com](mailto:ppea...@gmail.com) wrote:
> > 
> > > Hey,  
> > > When I've restarted my cluster, I've observed that I very quickly (a  
> > > couple of minutes) get into the yellow state, while it takes much  
> > > longer (a couple of hours) to get into the green state.
> > 
> > > I am using the local gateway and know that each node will pull it's  
> > > local data in order to get into the yellow state.
> > 
> > > After that, do nodes use their own data to fulfill all replicas and  
> > > verify it against the master w/ checksums or is all the data synced  
> > > over from the master shard and the local data is disregarded?
> > 
> > > Based on the performance I have observed, I believe it is the latter,  
> > > but wanted to confirm.
> > 
> > > Thanks,  
> > > Paul

---

<div class="post-metadata">

**Author:** ![Curtis\_Caravone](https://avatars.discourse-cdn.com/v4/letter/c/e47c2d/32.png) [@Curtis\_Caravone](https://discuss.elastic.co/u/Curtis_Caravone)\
**Post date:** [September 28, 2011, 12:24pm UTC](https://discuss.elastic.co/t/index-recovery-speed-difference-in-red-yellow-vs-yellow-green/5362/5 "2011-09-28T12:24:00Z")

</div>

Ok, what happens in this scenario:

1. Cluster starts up and reaches yellow state
2. Sync starts happening from primary shards to replicas
3. Index operations come in
4. Node with a primary shard goes down before sync is complete

In this case, will one of the replicas be promoted to primary with an  
uncertain state? I'm just trying to understand what the risks are of  
operating under a yellow state instead of waiting for green.

thanks,

Curtis

On Wed, Sep 28, 2011 at 4:58 AM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> New content that arrives while the cluster is in yellow state does not mean  
> it will get out of sync, it will be properly applied to the replica shards  
> that are currently recovering.
> 
> On Wed, Sep 28, 2011 at 8:27 AM, ppearcy [ppearcy@gmail.com](mailto:ppearcy@gmail.com) wrote:
> 
> > Ah, that's interesting, didn't realize that the underlying index files  
> > didn't stay in sync, but makes sense. I did a restart of a smaller  
> > cluster which took ~20 mins to get to green and then another restart  
> > which took ~10 seconds to get to green.
> > 
> > I wonder, is it possible to inform the cluster on a full restart that  
> > no new content has arrived which would force the file sync to get  
> > skipped? One problem would be any new content that arrives while still  
> > in the yellow state would get out of sync. Would probably want to  
> > disable indexing new content until green.
> > 
> > Thanks,  
> > Paul
> > 
> > On Sep 12, 4:54 pm, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> > 
> > > When a replica is allocated, it needs to sync its index files with the  
> > > primary shard. While indexing, the state of the index files can diverge  
> > > (though not the content!), and they might require resync. If you would  
> > > have  
> > > restarted the cluster right away after the other restart, then it would  
> > > have  
> > > recovered much faster. Thanks to the way lucene works when it comes to  
> > > merging, for large segments, this is a "one time" cost.
> > > 
> > > On Mon, Sep 12, 2011 at 11:30 PM, ppearcy [ppea...@gmail.com](mailto:ppea...@gmail.com) wrote:
> > > 
> > > > Hey,  
> > > > When I've restarted my cluster, I've observed that I very quickly (a  
> > > > couple of minutes) get into the yellow state, while it takes much  
> > > > longer (a couple of hours) to get into the green state.
> > > 
> > > > I am using the local gateway and know that each node will pull it's  
> > > > local data in order to get into the yellow state.
> > > 
> > > > After that, do nodes use their own data to fulfill all replicas and  
> > > > verify it against the master w/ checksums or is all the data synced  
> > > > over from the master shard and the local data is disregarded?
> > > 
> > > > Based on the performance I have observed, I believe it is the latter,  
> > > > but wanted to confirm.
> > > 
> > > > Thanks,  
> > > > Paul

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [September 28, 2011, 12:34pm UTC](https://discuss.elastic.co/t/index-recovery-speed-difference-in-red-yellow-vs-yellow-green/5362/6 "2011-09-28T12:34:10Z")

</div>

In this case, if the replica shard is in a state that it can be promoted to  
a primary, it will be, otherwise, the shard won't be available until you  
bring back the node that held the primary. (this is all local gateway logic,  
shared gateway is different).

That applies if you have 1 replica with the default write consistency. If  
you increase the replica count to 2, then an index won't happen unless it  
has also been replicated to a quorum of shards (with 2 replicas, that means  
it has been replicated at least once). you can also set the write  
consistency to a different value.

That said, I am working (mainly experimenting now) on reducing the recovery  
time of a replica. trying to build a bigger feature than just this, mainly  
ideas currently bouncing around...

On Wed, Sep 28, 2011 at 3:24 PM, Curtis Caravone [caravone@gmail.com](mailto:caravone@gmail.com) wrote:

> Ok, what happens in this scenario:
> 
> 1. Cluster starts up and reaches yellow state
> 2. Sync starts happening from primary shards to replicas
> 3. Index operations come in
> 4. Node with a primary shard goes down before sync is complete
> 
> In this case, will one of the replicas be promoted to primary with an  
> uncertain state? I'm just trying to understand what the risks are of  
> operating under a yellow state instead of waiting for green.
> 
> thanks,
> 
> Curtis
> 
> On Wed, Sep 28, 2011 at 4:58 AM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:
> 
> > New content that arrives while the cluster is in yellow state does not  
> > mean it will get out of sync, it will be properly applied to the replica  
> > shards that are currently recovering.
> > 
> > On Wed, Sep 28, 2011 at 8:27 AM, ppearcy [ppearcy@gmail.com](mailto:ppearcy@gmail.com) wrote:
> > 
> > > Ah, that's interesting, didn't realize that the underlying index files  
> > > didn't stay in sync, but makes sense. I did a restart of a smaller  
> > > cluster which took ~20 mins to get to green and then another restart  
> > > which took ~10 seconds to get to green.
> > > 
> > > I wonder, is it possible to inform the cluster on a full restart that  
> > > no new content has arrived which would force the file sync to get  
> > > skipped? One problem would be any new content that arrives while still  
> > > in the yellow state would get out of sync. Would probably want to  
> > > disable indexing new content until green.
> > > 
> > > Thanks,  
> > > Paul
> > > 
> > > On Sep 12, 4:54 pm, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> > > 
> > > > When a replica is allocated, it needs to sync its index files with the  
> > > > primary shard. While indexing, the state of the index files can diverge  
> > > > (though not the content!), and they might require resync. If you would  
> > > > have  
> > > > restarted the cluster right away after the other restart, then it would  
> > > > have  
> > > > recovered much faster. Thanks to the way lucene works when it comes to  
> > > > merging, for large segments, this is a "one time" cost.
> > > > 
> > > > On Mon, Sep 12, 2011 at 11:30 PM, ppearcy [ppea...@gmail.com](mailto:ppea...@gmail.com) wrote:
> > > > 
> > > > > Hey,  
> > > > > When I've restarted my cluster, I've observed that I very quickly (a  
> > > > > couple of minutes) get into the yellow state, while it takes much  
> > > > > longer (a couple of hours) to get into the green state.
> > > > 
> > > > > I am using the local gateway and know that each node will pull it's  
> > > > > local data in order to get into the yellow state.
> > > > 
> > > > > After that, do nodes use their own data to fulfill all replicas and  
> > > > > verify it against the master w/ checksums or is all the data synced  
> > > > > over from the master shard and the local data is disregarded?
> > > > 
> > > > > Based on the performance I have observed, I believe it is the latter,  
> > > > > but wanted to confirm.
> > > > 
> > > > > Thanks,  
> > > > > Paul

---

<div class="post-metadata">

**Author:** ![Curtis\_Caravone](https://avatars.discourse-cdn.com/v4/letter/c/e47c2d/32.png) [@Curtis\_Caravone](https://discuss.elastic.co/u/Curtis_Caravone)\
**Post date:** [September 28, 2011, 1:05pm UTC](https://discuss.elastic.co/t/index-recovery-speed-difference-in-red-yellow-vs-yellow-green/5362/7 "2011-09-28T13:05:27Z")

</div>

Cool, thanks for the info.

Curtis

On Wed, Sep 28, 2011 at 5:34 AM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> In this case, if the replica shard is in a state that it can be promoted to  
> a primary, it will be, otherwise, the shard won't be available until you  
> bring back the node that held the primary. (this is all local gateway logic,  
> shared gateway is different).
> 
> That applies if you have 1 replica with the default write consistency. If  
> you increase the replica count to 2, then an index won't happen unless it  
> has also been replicated to a quorum of shards (with 2 replicas, that means  
> it has been replicated at least once). you can also set the write  
> consistency to a different value.
> 
> That said, I am working (mainly experimenting now) on reducing the recovery  
> time of a replica. trying to build a bigger feature than just this, mainly  
> ideas currently bouncing around...
> 
> On Wed, Sep 28, 2011 at 3:24 PM, Curtis Caravone [caravone@gmail.com](mailto:caravone@gmail.com)wrote:
> 
> > Ok, what happens in this scenario:
> > 
> > 1. Cluster starts up and reaches yellow state
> > 2. Sync starts happening from primary shards to replicas
> > 3. Index operations come in
> > 4. Node with a primary shard goes down before sync is complete
> > 
> > In this case, will one of the replicas be promoted to primary with an  
> > uncertain state? I'm just trying to understand what the risks are of  
> > operating under a yellow state instead of waiting for green.
> > 
> > thanks,
> > 
> > Curtis
> > 
> > On Wed, Sep 28, 2011 at 4:58 AM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:
> > 
> > > New content that arrives while the cluster is in yellow state does not  
> > > mean it will get out of sync, it will be properly applied to the replica  
> > > shards that are currently recovering.
> > > 
> > > On Wed, Sep 28, 2011 at 8:27 AM, ppearcy [ppearcy@gmail.com](mailto:ppearcy@gmail.com) wrote:
> > > 
> > > > Ah, that's interesting, didn't realize that the underlying index files  
> > > > didn't stay in sync, but makes sense. I did a restart of a smaller  
> > > > cluster which took ~20 mins to get to green and then another restart  
> > > > which took ~10 seconds to get to green.
> > > > 
> > > > I wonder, is it possible to inform the cluster on a full restart that  
> > > > no new content has arrived which would force the file sync to get  
> > > > skipped? One problem would be any new content that arrives while still  
> > > > in the yellow state would get out of sync. Would probably want to  
> > > > disable indexing new content until green.
> > > > 
> > > > Thanks,  
> > > > Paul
> > > > 
> > > > On Sep 12, 4:54 pm, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> > > > 
> > > > > When a replica is allocated, it needs to sync its index files with the  
> > > > > primary shard. While indexing, the state of the index files can  
> > > > > diverge  
> > > > > (though not the content!), and they might require resync. If you would  
> > > > > have  
> > > > > restarted the cluster right away after the other restart, then it  
> > > > > would have  
> > > > > recovered much faster. Thanks to the way lucene works when it comes to  
> > > > > merging, for large segments, this is a "one time" cost.
> > > > > 
> > > > > On Mon, Sep 12, 2011 at 11:30 PM, ppearcy [ppea...@gmail.com](mailto:ppea...@gmail.com) wrote:
> > > > > 
> > > > > > Hey,  
> > > > > > When I've restarted my cluster, I've observed that I very quickly  
> > > > > > (a  
> > > > > > couple of minutes) get into the yellow state, while it takes much  
> > > > > > longer (a couple of hours) to get into the green state.
> > > > > 
> > > > > > I am using the local gateway and know that each node will pull it's  
> > > > > > local data in order to get into the yellow state.
> > > > > 
> > > > > > After that, do nodes use their own data to fulfill all replicas and  
> > > > > > verify it against the master w/ checksums or is all the data synced  
> > > > > > over from the master shard and the local data is disregarded?
> > > > > 
> > > > > > Based on the performance I have observed, I believe it is the  
> > > > > > latter,  
> > > > > > but wanted to confirm.
> > > > > 
> > > > > > Thanks,  
> > > > > > Paul

---

<div class="post-metadata">

**Author:** ![rockbobsta](https://avatars.discourse-cdn.com/v4/letter/r/90ced4/32.png) [@rockbobsta](https://discuss.elastic.co/u/rockbobsta)\
**Post date:** [April 17, 2013, 6:10am UTC](https://discuss.elastic.co/t/index-recovery-speed-difference-in-red-yellow-vs-yellow-green/5362/8 "2013-04-17T06:10:42Z")

</div>

Hi,

Firstly thanks to everyone who built and helps with elasticsearch, it is an  
amazing piece of technology!

I have a question regarding cluster restarts:  
I have been working on some river plugins on a cluster with the following  
setup:

- 4 nodes
- 5 indexes with 10 shards each
- replication set to 2

The river plugins are the only thing modifying data on the cluster, so when  
they aren't running, the data is static.  
Here is the process I'm following when I need to redeploy a new version of  
the river plugin:  
For each node:

1. Delete the \_river index from the cluster, in order to stop any currently  
running rivers
2. install the new version of the river plugin
3. bounce the node and wait for cluster state to go green
4. repeat for each node.

However, waiting for the cluster to go green in each of these steps takes  
about 30 minutes per node, so the whole process is quite slow.  
I am wondering about a couple of options that might speed this up:  
Option 1 - close the indexes before bouncing the nodes, then open them once  
all nodes are bounced (as nothing will be modifying the data during the  
redeploy, I figure this might make the restarts a lot faster).

Option 2 - bounce 2 nodes at a time - as replication is set to 2, I figure  
we can safely have 2 nodes down and still recover fully.

BTW - I'm assuming that I need to wait for the cluster state to be green  
before continuing to bounce the other cluster nodes, but if this is not  
correct, maybe I can save some time in that step as well.

Any suggestions on this would be appreciated.

On Tuesday, September 13, 2011 6:30:09 AM UTC+10, ppearcy wrote:

> Hey,  
> When I've restarted my cluster, I've observed that I very quickly (a  
> couple of minutes) get into the yellow state, while it takes much  
> longer (a couple of hours) to get into the green state.
> 
> I am using the local gateway and know that each node will pull it's  
> local data in order to get into the yellow state.
> 
> After that, do nodes use their own data to fulfill all replicas and  
> verify it against the master w/ checksums or is all the data synced  
> over from the master shard and the local data is disregarded?
> 
> Based on the performance I have observed, I believe it is the latter,  
> but wanted to confirm.
> 
> Thanks,  
> Paul

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [April 17, 2013, 3:08pm UTC](https://discuss.elastic.co/t/index-recovery-speed-difference-in-red-yellow-vs-yellow-green/5362/9 "2013-04-17T15:08:14Z")

</div>

Hi,

First of all, you should not hijacking an existing thread to ask a  
question, just start your own.

You can disable allocation while performing maintenance. If you have enough  
replicas (which it appears that you do), then all data should be exposed if  
you bring down one node.

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

The setting to use is cluster.routing.allocation.disable\_allocation

I find that Elasticsearch still likes to move data around after re-enabling  
allocation. You might want to do a flush before disabling allocation to  
clear the translog.

Cheers,

Ivan

On Tue, Apr 16, 2013 at 11:10 PM, rockbobsta [bob@figjamit.com.au](mailto:bob@figjamit.com.au) wrote:

> Hi,
> 
> Firstly thanks to everyone who built and helps with elasticsearch, it is  
> an amazing piece of technology!
> 
> I have a question regarding cluster restarts:  
> I have been working on some river plugins on a cluster with the following  
> setup:
> 
> - 4 nodes
> - 5 indexes with 10 shards each
> - replication set to 2
> 
> The river plugins are the only thing modifying data on the cluster, so  
> when they aren't running, the data is static.  
> Here is the process I'm following when I need to redeploy a new version of  
> the river plugin:  
> For each node:
> 
> 1. Delete the \_river index from the cluster, in order to stop any  
> currently running rivers
> 2. install the new version of the river plugin
> 3. bounce the node and wait for cluster state to go green
> 4. repeat for each node.
> 
> However, waiting for the cluster to go green in each of these steps takes  
> about 30 minutes per node, so the whole process is quite slow.  
> I am wondering about a couple of options that might speed this up:  
> Option 1 - close the indexes before bouncing the nodes, then open them  
> once all nodes are bounced (as nothing will be modifying the data during  
> the redeploy, I figure this might make the restarts a lot faster).
> 
> Option 2 - bounce 2 nodes at a time - as replication is set to 2, I figure  
> we can safely have 2 nodes down and still recover fully.
> 
> BTW - I'm assuming that I need to wait for the cluster state to be green  
> before continuing to bounce the other cluster nodes, but if this is not  
> correct, maybe I can save some time in that step as well.
> 
> Any suggestions on this would be appreciated.
> 
> On Tuesday, September 13, 2011 6:30:09 AM UTC+10, ppearcy wrote:
> 
> > Hey,  
> > When I've restarted my cluster, I've observed that I very quickly (a  
> > couple of minutes) get into the yellow state, while it takes much  
> > longer (a couple of hours) to get into the green state.
> > 
> > I am using the local gateway and know that each node will pull it's  
> > local data in order to get into the yellow state.
> > 
> > After that, do nodes use their own data to fulfill all replicas and  
> > verify it against the master w/ checksums or is all the data synced  
> > over from the master shard and the local data is disregarded?
> > 
> > Based on the performance I have observed, I believe it is the latter,  
> > but wanted to confirm.
> > 
> > Thanks,  
> > Paul
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:40am UTC](https://discuss.elastic.co/t/index-recovery-speed-difference-in-red-yellow-vs-yellow-green/5362/10 "2017-07-06T02:40:47Z")

</div>


