# Primary shard

**URL:** https://discuss.elastic.co/t/primary-shard/283964
**Category:** Elasticsearch
**Created:** [September 12, 2021, 4:17am UTC](https://discuss.elastic.co/t/primary-shard/283964 "2021-09-12T04:17:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Lixing\_Yi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lixing_yi/32/77605_2.png) [@Lixing\_Yi](https://discuss.elastic.co/u/Lixing_Yi)
#### Post date: [September 12, 2021, 4:17am UTC](https://discuss.elastic.co/t/primary-shard/283964/1 "2021-09-12T04:17:34Z")

</div>

situaiton:  
In the case that the primary itself fails, the node hosting the primary will send a message to the master about it. The indexing operation will wait (up to 1 minute) for the master to promote one of the replicas to be a new primary.

my question:  
which in-sysn replica would be promoted to be the new primary shard?  
Are there some rules to elect a pramary shard?

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [September 12, 2021, 12:35pm UTC](https://discuss.elastic.co/t/primary-shard/283964/2 "2021-09-12T12:35:09Z")

</div>

No, there's no reliable way to tell which replica will be promoted to primary before it happens.

---

<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: [October 10, 2021, 12:36pm UTC](https://discuss.elastic.co/t/primary-shard/283964/3 "2021-10-10T12:36:06Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
