# Question About Allocation of Primary and Replica Shards After Reboot

**URL:** <https://discuss.elastic.co/t/question-about-allocation-of-primary-and-replica-shards-after-reboot/22076>\
**Category:** Elasticsearch\
**Created:** [February 10, 2015, 10:11pm UTC](https://discuss.elastic.co/t/question-about-allocation-of-primary-and-replica-shards-after-reboot/22076 "2015-02-10T22:11:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josh\_Harris](https://avatars.discourse-cdn.com/v4/letter/j/a5b964/32.png) [@Josh\_Harris](https://discuss.elastic.co/u/Josh_Harris)\
**Post date:** [February 10, 2015, 10:11pm UTC](https://discuss.elastic.co/t/question-about-allocation-of-primary-and-replica-shards-after-reboot/22076/1 "2015-02-10T22:11:09Z")

</div>

Just getting started with ElasticSearch, and I'm taking on a couple of  
tasks as I get more familiar with it.

We recently restarted the six nodes in our ES cluster to perform the patch  
for the Ghost vulnerability. We turned off reallocation, shut down the  
individual nodes, then rebooted each node and turned reallocation back on.

We have 12 shards per index and one replica index. After the reboot of all  
the nodes, we ended up with some nodes with three primary shards and one  
replica index and some with three replicas and one primary shard.

Is there a way to prevent this mismatch in the distribution of our primary  
and replica shards? Would like to have 2 primary shards and 2 replica shard  
per node.

Also, is there a way to change a shard from a replica to a primary shard  
without doing a relocation?

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/5ef0b6f3-6acf-4014-8746-1a7d236326e3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5ef0b6f3-6acf-4014-8746-1a7d236326e3%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 10, 2015, 11:34pm UTC](https://discuss.elastic.co/t/question-about-allocation-of-primary-and-replica-shards-after-reboot/22076/2 "2015-02-10T23:34:39Z")

</div>

It doesn't matter as long as your shard count is balanced.

The only difference between a primary and a replica is a flag that makes  
the cluster see it as a primary. Any queries will use a primary or a  
replica without concern.

On 11 February 2015 at 09:11, Josh Harris [jharris@targetedvictory.com](mailto:jharris@targetedvictory.com)  
wrote:

> Just getting started with Elasticsearch, and I'm taking on a couple of  
> tasks as I get more familiar with it.
> 
> We recently restarted the six nodes in our ES cluster to perform the patch  
> for the Ghost vulnerability. We turned off reallocation, shut down the  
> individual nodes, then rebooted each node and turned reallocation back on.
> 
> We have 12 shards per index and one replica index. After the reboot of all  
> the nodes, we ended up with some nodes with three primary shards and one  
> replica index and some with three replicas and one primary shard.
> 
> Is there a way to prevent this mismatch in the distribution of our primary  
> and replica shards? Would like to have 2 primary shards and 2 replica shard  
> per node.
> 
> Also, is there a way to change a shard from a replica to a primary shard  
> without doing a relocation?
> 
> --  
> 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).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/5ef0b6f3-6acf-4014-8746-1a7d236326e3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5ef0b6f3-6acf-4014-8746-1a7d236326e3%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/5ef0b6f3-6acf-4014-8746-1a7d236326e3%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/5ef0b6f3-6acf-4014-8746-1a7d236326e3%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8bFZY%2B8QpmD1m52fQ5B%3DystN2i9LDCbKKniUUfTQ5QwA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8bFZY%2B8QpmD1m52fQ5B%3DystN2i9LDCbKKniUUfTQ5QwA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Serge\_Semichev](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@Serge\_Semichev](https://discuss.elastic.co/u/Serge_Semichev)\
**Post date:** [February 11, 2015, 1:01am UTC](https://discuss.elastic.co/t/question-about-allocation-of-primary-and-replica-shards-after-reboot/22076/3 "2015-02-11T01:01:19Z")

</div>

Thanks for the reply.

An insert/update query will use a primary shard.

I've found one way only to rebalance the cluster - move a primary shard to  
another node use reroute API, but it takes a while.  
Is it possible to promote a replica shard as a primary?

On Tuesday, February 10, 2015 at 6:35:07 PM UTC-5, Mark Walkom wrote:

> It doesn't matter as long as your shard count is balanced.
> 
> The only difference between a primary and a replica is a flag that makes  
> the cluster see it as a primary. Any queries will use a primary or a  
> replica without concern.
> 
> On 11 February 2015 at 09:11, Josh Harris \<[jha...@targetedvictory.com](mailto:jha...@targetedvictory.com)  
> \<javascript:\>\> wrote:
> 
> > Just getting started with Elasticsearch, and I'm taking on a couple of  
> > tasks as I get more familiar with it.
> > 
> > We recently restarted the six nodes in our ES cluster to perform the  
> > patch for the Ghost vulnerability. We turned off reallocation, shut down  
> > the individual nodes, then rebooted each node and turned reallocation back  
> > on.
> > 
> > We have 12 shards per index and one replica index. After the reboot of  
> > all the nodes, we ended up with some nodes with three primary shards and  
> > one replica index and some with three replicas and one primary shard.
> > 
> > Is there a way to prevent this mismatch in the distribution of our  
> > primary and replica shards? Would like to have 2 primary shards and 2  
> > replica shard per node.
> > 
> > Also, is there a way to change a shard from a replica to a primary shard  
> > without doing a relocation?
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/5ef0b6f3-6acf-4014-8746-1a7d236326e3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5ef0b6f3-6acf-4014-8746-1a7d236326e3%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/5ef0b6f3-6acf-4014-8746-1a7d236326e3%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/5ef0b6f3-6acf-4014-8746-1a7d236326e3%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0eb22bc3-8d44-452e-be32-ed397a094bac%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0eb22bc3-8d44-452e-be32-ed397a094bac%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![daaku\_gee](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@daaku\_gee](https://discuss.elastic.co/u/daaku_gee)\
**Post date:** [February 11, 2015, 2:54am UTC](https://discuss.elastic.co/t/question-about-allocation-of-primary-and-replica-shards-after-reboot/22076/4 "2015-02-11T02:54:51Z")

</div>

Mark, to you point "...Any queries will use a primary or a replica without  
concern."

I understand the indexing request will always be sent to the primary shard  
first but aren't queries sent to Primary (just in case replica is  
momentarily out of sync).

On Tue, Feb 10, 2015 at 3:34 PM, Mark Walkom [markwalkom@gmail.com](mailto:markwalkom@gmail.com) wrote:

> It doesn't matter as long as your shard count is balanced.
> 
> The only difference between a primary and a replica is a flag that makes  
> the cluster see it as a primary. Any queries will use a primary or a  
> replica without concern.
> 
> On 11 February 2015 at 09:11, Josh Harris [jharris@targetedvictory.com](mailto:jharris@targetedvictory.com)  
> wrote:
> 
> > Just getting started with Elasticsearch, and I'm taking on a couple of  
> > tasks as I get more familiar with it.
> > 
> > We recently restarted the six nodes in our ES cluster to perform the  
> > patch for the Ghost vulnerability. We turned off reallocation, shut down  
> > the individual nodes, then rebooted each node and turned reallocation back  
> > on.
> > 
> > We have 12 shards per index and one replica index. After the reboot of  
> > all the nodes, we ended up with some nodes with three primary shards and  
> > one replica index and some with three replicas and one primary shard.
> > 
> > Is there a way to prevent this mismatch in the distribution of our  
> > primary and replica shards? Would like to have 2 primary shards and 2  
> > replica shard per node.
> > 
> > Also, is there a way to change a shard from a replica to a primary shard  
> > without doing a relocation?
> > 
> > --  
> > 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).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/5ef0b6f3-6acf-4014-8746-1a7d236326e3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5ef0b6f3-6acf-4014-8746-1a7d236326e3%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/5ef0b6f3-6acf-4014-8746-1a7d236326e3%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/5ef0b6f3-6acf-4014-8746-1a7d236326e3%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8bFZY%2B8QpmD1m52fQ5B%3DystN2i9LDCbKKniUUfTQ5QwA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8bFZY%2B8QpmD1m52fQ5B%3DystN2i9LDCbKKniUUfTQ5QwA%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8bFZY%2B8QpmD1m52fQ5B%3DystN2i9LDCbKKniUUfTQ5QwA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8bFZY%2B8QpmD1m52fQ5B%3DystN2i9LDCbKKniUUfTQ5QwA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAH53p97D8FG7gwgoktkAR0Nj1M\_0ZzC%3Dr5-VjxSYf98EqL271Q%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAH53p97D8FG7gwgoktkAR0Nj1M_0ZzC%3Dr5-VjxSYf98EqL271Q%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 11, 2015, 3:05am UTC](https://discuss.elastic.co/t/question-about-allocation-of-primary-and-replica-shards-after-reboot/22076/5 "2015-02-11T03:05:42Z")

</div>

Take a look at

> **[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.

On 11 February 2015 at 13:54, daaku gee [daaqou@gmail.com](mailto:daaqou@gmail.com) wrote:

> Mark, to you point "...Any queries will use a primary or a replica without  
> concern."
> 
> I understand the indexing request will always be sent to the primary shard  
> first but aren't queries sent to Primary (just in case replica is  
> momentarily out of sync).
> 
> On Tue, Feb 10, 2015 at 3:34 PM, Mark Walkom [markwalkom@gmail.com](mailto:markwalkom@gmail.com) wrote:
> 
> > It doesn't matter as long as your shard count is balanced.
> > 
> > The only difference between a primary and a replica is a flag that makes  
> > the cluster see it as a primary. Any queries will use a primary or a  
> > replica without concern.
> > 
> > On 11 February 2015 at 09:11, Josh Harris [jharris@targetedvictory.com](mailto:jharris@targetedvictory.com)  
> > wrote:
> > 
> > > Just getting started with Elasticsearch, and I'm taking on a couple of  
> > > tasks as I get more familiar with it.
> > > 
> > > We recently restarted the six nodes in our ES cluster to perform the  
> > > patch for the Ghost vulnerability. We turned off reallocation, shut down  
> > > the individual nodes, then rebooted each node and turned reallocation back  
> > > on.
> > > 
> > > We have 12 shards per index and one replica index. After the reboot of  
> > > all the nodes, we ended up with some nodes with three primary shards and  
> > > one replica index and some with three replicas and one primary shard.
> > > 
> > > Is there a way to prevent this mismatch in the distribution of our  
> > > primary and replica shards? Would like to have 2 primary shards and 2  
> > > replica shard per node.
> > > 
> > > Also, is there a way to change a shard from a replica to a primary shard  
> > > without doing a relocation?
> > > 
> > > --  
> > > 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).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/5ef0b6f3-6acf-4014-8746-1a7d236326e3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5ef0b6f3-6acf-4014-8746-1a7d236326e3%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/5ef0b6f3-6acf-4014-8746-1a7d236326e3%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/5ef0b6f3-6acf-4014-8746-1a7d236326e3%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .
> > > 
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > 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).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8bFZY%2B8QpmD1m52fQ5B%3DystN2i9LDCbKKniUUfTQ5QwA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8bFZY%2B8QpmD1m52fQ5B%3DystN2i9LDCbKKniUUfTQ5QwA%40mail.gmail.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8bFZY%2B8QpmD1m52fQ5B%3DystN2i9LDCbKKniUUfTQ5QwA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8bFZY%2B8QpmD1m52fQ5B%3DystN2i9LDCbKKniUUfTQ5QwA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAH53p97D8FG7gwgoktkAR0Nj1M\_0ZzC%3Dr5-VjxSYf98EqL271Q%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAH53p97D8FG7gwgoktkAR0Nj1M_0ZzC%3Dr5-VjxSYf98EqL271Q%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAH53p97D8FG7gwgoktkAR0Nj1M\_0ZzC%3Dr5-VjxSYf98EqL271Q%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAH53p97D8FG7gwgoktkAR0Nj1M_0ZzC%3Dr5-VjxSYf98EqL271Q%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8YLSNG9E6QjE\_UMg%2BFh73kzk97%3DS-PPVXyRNK%3DV1r9qw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8YLSNG9E6QjE_UMg%2BFh73kzk97%3DS-PPVXyRNK%3DV1r9qw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![daaku\_gee](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@daaku\_gee](https://discuss.elastic.co/u/daaku_gee)\
**Post date:** [February 11, 2015, 3:22am UTC](https://discuss.elastic.co/t/question-about-allocation-of-primary-and-replica-shards-after-reboot/22076/6 "2015-02-11T03:22:09Z")

</div>

Thanks Mark, for sharing this document.

Regards  
\d

On Tue, Feb 10, 2015 at 7:05 PM, Mark Walkom [markwalkom@gmail.com](mailto:markwalkom@gmail.com) wrote:

> Take a look at  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-get.html#preference)
> 
> On 11 February 2015 at 13:54, daaku gee [daaqou@gmail.com](mailto:daaqou@gmail.com) wrote:
> 
> > Mark, to you point "...Any queries will use a primary or a replica  
> > without concern."
> > 
> > I understand the indexing request will always be sent to the primary  
> > shard first but aren't queries sent to Primary (just in case replica is  
> > momentarily out of sync).
> > 
> > On Tue, Feb 10, 2015 at 3:34 PM, Mark Walkom [markwalkom@gmail.com](mailto:markwalkom@gmail.com)  
> > wrote:
> > 
> > > It doesn't matter as long as your shard count is balanced.
> > > 
> > > The only difference between a primary and a replica is a flag that makes  
> > > the cluster see it as a primary. Any queries will use a primary or a  
> > > replica without concern.
> > > 
> > > On 11 February 2015 at 09:11, Josh Harris [jharris@targetedvictory.com](mailto:jharris@targetedvictory.com)  
> > > wrote:
> > > 
> > > > Just getting started with Elasticsearch, and I'm taking on a couple of  
> > > > tasks as I get more familiar with it.
> > > > 
> > > > We recently restarted the six nodes in our ES cluster to perform the  
> > > > patch for the Ghost vulnerability. We turned off reallocation, shut down  
> > > > the individual nodes, then rebooted each node and turned reallocation back  
> > > > on.
> > > > 
> > > > We have 12 shards per index and one replica index. After the reboot of  
> > > > all the nodes, we ended up with some nodes with three primary shards and  
> > > > one replica index and some with three replicas and one primary shard.
> > > > 
> > > > Is there a way to prevent this mismatch in the distribution of our  
> > > > primary and replica shards? Would like to have 2 primary shards and 2  
> > > > replica shard per node.
> > > > 
> > > > Also, is there a way to change a shard from a replica to a primary  
> > > > shard without doing a relocation?
> > > > 
> > > > --  
> > > > 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).  
> > > > To view this discussion on the web visit  
> > > > [https://groups.google.com/d/msgid/elasticsearch/5ef0b6f3-6acf-4014-8746-1a7d236326e3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5ef0b6f3-6acf-4014-8746-1a7d236326e3%40googlegroups.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/5ef0b6f3-6acf-4014-8746-1a7d236326e3%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/5ef0b6f3-6acf-4014-8746-1a7d236326e3%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > .
> > > > 
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > 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).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8bFZY%2B8QpmD1m52fQ5B%3DystN2i9LDCbKKniUUfTQ5QwA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8bFZY%2B8QpmD1m52fQ5B%3DystN2i9LDCbKKniUUfTQ5QwA%40mail.gmail.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8bFZY%2B8QpmD1m52fQ5B%3DystN2i9LDCbKKniUUfTQ5QwA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8bFZY%2B8QpmD1m52fQ5B%3DystN2i9LDCbKKniUUfTQ5QwA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > .
> > > 
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > 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).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CAH53p97D8FG7gwgoktkAR0Nj1M\_0ZzC%3Dr5-VjxSYf98EqL271Q%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAH53p97D8FG7gwgoktkAR0Nj1M_0ZzC%3Dr5-VjxSYf98EqL271Q%40mail.gmail.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/CAH53p97D8FG7gwgoktkAR0Nj1M\_0ZzC%3Dr5-VjxSYf98EqL271Q%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAH53p97D8FG7gwgoktkAR0Nj1M_0ZzC%3Dr5-VjxSYf98EqL271Q%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8YLSNG9E6QjE\_UMg%2BFh73kzk97%3DS-PPVXyRNK%3DV1r9qw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8YLSNG9E6QjE_UMg%2BFh73kzk97%3DS-PPVXyRNK%3DV1r9qw%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8YLSNG9E6QjE\_UMg%2BFh73kzk97%3DS-PPVXyRNK%3DV1r9qw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8YLSNG9E6QjE_UMg%2BFh73kzk97%3DS-PPVXyRNK%3DV1r9qw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAH53p95qyFg-ZY%2BXmKVTaFtNB2HR%3DkYTwpUSPXVpdjdck76OBg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAH53p95qyFg-ZY%2BXmKVTaFtNB2HR%3DkYTwpUSPXVpdjdck76OBg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:33am UTC](https://discuss.elastic.co/t/question-about-allocation-of-primary-and-replica-shards-after-reboot/22076/7 "2017-07-06T00:33:47Z")

</div>


