# Shards considered in write consistency

**URL:** <https://discuss.elastic.co/t/shards-considered-in-write-consistency/18434>\
**Category:** Elasticsearch\
**Created:** [July 2, 2014, 9:40am UTC](https://discuss.elastic.co/t/shards-considered-in-write-consistency/18434 "2014-07-02T09:40:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Varun\_Vasan\_V](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/varun_vasan_v/32/1429_2.png) [@Varun\_Vasan\_V](https://discuss.elastic.co/u/Varun_Vasan_V)\
**Post date:** [July 2, 2014, 9:40am UTC](https://discuss.elastic.co/t/shards-considered-in-write-consistency/18434/1 "2014-07-02T09:40:14Z")

</div>

Hey,

I have a question related to write consistency.

I have a elasticsearch cluster with 2 nodes. The nodes are configured as

number\_of\_shards = 5  
number\_of\_replicas = 1

If i set the action.write\_consistency value as `quorum`, what is the number  
of active shards required to satisfy the quorum?  
Please shed some light into the matter.

Thanks.

--  
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/0029734f-7e86-47b5-8bf1-f0ebe6b6ad2a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0029734f-7e86-47b5-8bf1-f0ebe6b6ad2a%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 2, 2014, 10:44am UTC](https://discuss.elastic.co/t/shards-considered-in-write-consistency/18434/2 "2014-07-02T10:44:38Z")

</div>

In your case quorum means that you need all primaries to be allocated.  
Which is the case here.

Doc explains that very well: [http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-index\_.html#index-consistency](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-index_.html#index-consistency)  
Have a look in detail at: [http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/\_how\_primary\_and\_replica\_shards\_interact.html#\_how\_primary\_and\_replica\_shards\_interact](http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/_how_primary_and_replica_shards_interact.html#_how_primary_and_replica_shards_interact)  
and [http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/distrib-write.html](http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/distrib-write.html)

HTH

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 2 juillet 2014 à 11:40:19, Varun Vasan V ([varunvasan91@gmail.com](mailto:varunvasan91@gmail.com)) a écrit:

Hey,

I have a question related to write consistency.

I have a elasticsearch cluster with 2 nodes. The nodes are configured as

number\_of\_shards = 5  
number\_of\_replicas = 1

If i set the action.write\_consistency value as `quorum`, what is the number of active shards required to satisfy the quorum?  
Please shed some light into the matter.

## Thanks.

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/0029734f-7e86-47b5-8bf1-f0ebe6b6ad2a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0029734f-7e86-47b5-8bf1-f0ebe6b6ad2a%40googlegroups.com).  
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/etPan.53b3e296.257130a3.f8fb%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.53b3e296.257130a3.f8fb%40MacBook-Air-de-David.local).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Varun\_Vasan\_V](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/varun_vasan_v/32/1429_2.png) [@Varun\_Vasan\_V](https://discuss.elastic.co/u/Varun_Vasan_V)\
**Post date:** [July 4, 2014, 5:04am UTC](https://discuss.elastic.co/t/shards-considered-in-write-consistency/18434/3 "2014-07-04T05:04:29Z")

</div>

Thanks for your answer. Sorry for the late reply.

On Wed, Jul 2, 2014 at 4:14 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> In your case quorum means that you need all primaries to be allocated.  
> Which is the case here.
> 
> Doc explains that very well:  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-index_.html#index-consistency)  
> Have a look in detail at:  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/_how_primary_and_replica_shards_interact.html#_how_primary_and_replica_shards_interact)  
> and  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/distrib-write.html)
> 
> HTH
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr  
> [https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> 
> Le 2 juillet 2014 à 11:40:19, Varun Vasan V ([varunvasan91@gmail.com](mailto:varunvasan91@gmail.com)) a  
> écrit:
> 
> Hey,
> 
> I have a question related to write consistency.
> 
> I have a elasticsearch cluster with 2 nodes. The nodes are configured as
> 
> number\_of\_shards = 5  
> number\_of\_replicas = 1
> 
> If i set the action.write\_consistency value as `quorum`, what is the  
> number of active shards required to satisfy the quorum?  
> Please shed some light into the matter.
> 
> ## Thanks.
> 
> 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/0029734f-7e86-47b5-8bf1-f0ebe6b6ad2a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0029734f-7e86-47b5-8bf1-f0ebe6b6ad2a%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/0029734f-7e86-47b5-8bf1-f0ebe6b6ad2a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/0029734f-7e86-47b5-8bf1-f0ebe6b6ad2a%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 a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/2EXoj78nPuw/unsubscribe](https://groups.google.com/d/topic/elasticsearch/2EXoj78nPuw/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/etPan.53b3e296.257130a3.f8fb%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.53b3e296.257130a3.f8fb%40MacBook-Air-de-David.local)  
> [https://groups.google.com/d/msgid/elasticsearch/etPan.53b3e296.257130a3.f8fb%40MacBook-Air-de-David.local?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/etPan.53b3e296.257130a3.f8fb%40MacBook-Air-de-David.local?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/CAP1maN7-t6qQHn\_a5LTTWEQT0euqU3EnuggydnmBwExmf0iX8w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAP1maN7-t6qQHn_a5LTTWEQT0euqU3EnuggydnmBwExmf0iX8w%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, 1:17am UTC](https://discuss.elastic.co/t/shards-considered-in-write-consistency/18434/4 "2017-07-06T01:17:56Z")

</div>


