# CP of CAP in elasticsearch and one can achieve this by configuration

**URL:** <https://discuss.elastic.co/t/cp-of-cap-in-elasticsearch-and-one-can-achieve-this-by-configuration/206763>\
**Category:** Elasticsearch\
**Created:** [November 6, 2019, 9:17am UTC](https://discuss.elastic.co/t/cp-of-cap-in-elasticsearch-and-one-can-achieve-this-by-configuration/206763 "2019-11-06T09:17:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhishek\_Goswami](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhishek_goswami/32/56099_2.png) [@Abhishek\_Goswami](https://discuss.elastic.co/u/Abhishek_Goswami)\
**Post date:** [November 6, 2019, 9:17am UTC](https://discuss.elastic.co/t/cp-of-cap-in-elasticsearch-and-one-can-achieve-this-by-configuration/206763/1 "2019-11-06T09:17:03Z")

</div>

As I am new to elasticsearch [version 7.4] and with a lot of studies it is not clear till now how much shards / Nodes are preferred in particular index. As of now, I have configured 3 shards and 2 replicas with 3 Nodes(each having 8GB RAM, 500GB HDD). and having 55GB of Data in One Index. So I need your views/suggestions in the following points.

1. Is above given no of shards, Nodes, replicas is sufficient.
2. For CAP theorem I will prefer CP i.e: Consistency and Partition-tolerance for this in 3 Node cluster

- For Consistency configured write\_consistency=all
- For Partition-tolerance set master-eligible node to (N/2) + 1 in my case it is 3.

---

<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:** [December 4, 2019, 9:17am UTC](https://discuss.elastic.co/t/cp-of-cap-in-elasticsearch-and-one-can-achieve-this-by-configuration/206763/2 "2019-12-04T09:17:04Z")

</div>

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