# How to temporarily prevent replica from receiving updates?

**URL:** <https://discuss.elastic.co/t/how-to-temporarily-prevent-replica-from-receiving-updates/7257>\
**Category:** Elasticsearch\
**Created:** [April 7, 2012, 5:25am UTC](https://discuss.elastic.co/t/how-to-temporarily-prevent-replica-from-receiving-updates/7257 "2012-04-07T05:25:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mikhail\_Sayapin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikhail_sayapin/32/2758_2.png) [@Mikhail\_Sayapin](https://discuss.elastic.co/u/Mikhail_Sayapin)\
**Post date:** [April 7, 2012, 5:25am UTC](https://discuss.elastic.co/t/how-to-temporarily-prevent-replica-from-receiving-updates/7257/1 "2012-04-07T05:25:42Z")

</div>

Hi everyone,

Here  
[http://www.elasticsearch.org/guide/reference/api/admin-indices-update-settings.html](http://www.elasticsearch.org/guide/reference/api/admin-indices-update-settings.html) I  
read that "Another optimization option is to start the index without any  
replicas, and only later adding them". My index is relatively write-heavy,  
so when I reindex, I shut down the replica (it's in master=false, data=true  
mode) and bring it back later to receive updates in bulk.

Is there any way to make replica "invisible" for the updates, but online  
for querying, without shutting it down? And afterwards enable it back so it  
will receive updates? In this period it would serve stale data, which is ok.

Thanks!

---

<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:** [April 7, 2012, 3:23pm UTC](https://discuss.elastic.co/t/how-to-temporarily-prevent-replica-from-receiving-updates/7257/2 "2012-04-07T15:23:53Z")

</div>

No, there isn't an option to do so.

On Sat, Apr 7, 2012 at 8:25 AM, Mikhail Sayapin  
[mikhail.sayapin@gmail.com](mailto:mikhail.sayapin@gmail.com)wrote:

> Hi everyone,
> 
> Here  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-indices-update-settings.html) I  
> read that "Another optimization option is to start the index without any  
> replicas, and only later adding them". My index is relatively write-heavy,  
> so when I reindex, I shut down the replica (it's in master=false, data=true  
> mode) and bring it back later to receive updates in bulk.
> 
> Is there any way to make replica "invisible" for the updates, but online  
> for querying, without shutting it down? And afterwards enable it back so it  
> will receive updates? In this period it would serve stale data, which is ok.
> 
> Thanks!

---

<div class="post-metadata">

**Author:** ![Mikhail\_Sayapin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikhail_sayapin/32/2758_2.png) [@Mikhail\_Sayapin](https://discuss.elastic.co/u/Mikhail_Sayapin)\
**Post date:** [April 7, 2012, 5:36pm UTC](https://discuss.elastic.co/t/how-to-temporarily-prevent-replica-from-receiving-updates/7257/3 "2012-04-07T17:36:55Z")

</div>

I see. Will it work if I just reboot the server without zen discovery  
or with another cluster name so it cannot join the cluster back? I  
will try it myself, but maybe there is something I should know  
beforehand.

Thanks!

On Sat, Apr 7, 2012 at 11:23 PM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> No, there isn't an option to do so.
> 
> On Sat, Apr 7, 2012 at 8:25 AM, Mikhail Sayapin [mikhail.sayapin@gmail.com](mailto:mikhail.sayapin@gmail.com)  
> wrote:
> 
> > Hi everyone,
> > 
> > Here [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-indices-update-settings.html) I  
> > read that "Another optimization option is to start the index without any  
> > replicas, and only later adding them". My index is relatively write-heavy,  
> > so when I reindex, I shut down the replica (it's in master=false, data=true  
> > mode) and bring it back later to receive updates in bulk.
> > 
> > Is there any way to make replica "invisible" for the updates, but online  
> > for querying, without shutting it down? And afterwards enable it back so it  
> > will receive updates? In this period it would serve stale data, which is ok.
> > 
> > Thanks!

--  
Regards,  
Mikhail Sayapin  
["I recommend the art of slow reading."]

---

<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, 3:33am UTC](https://discuss.elastic.co/t/how-to-temporarily-prevent-replica-from-receiving-updates/7257/4 "2017-07-06T03:33:20Z")

</div>

Closed on July 6, 2017, 3:33am UTC


