# How to stop elastic search if number of data nodes are less than minimum?

**URL:** <https://discuss.elastic.co/t/how-to-stop-elastic-search-if-number-of-data-nodes-are-less-than-minimum/245535>\
**Category:** Elasticsearch\
**Created:** [August 19, 2020, 7:14am UTC](https://discuss.elastic.co/t/how-to-stop-elastic-search-if-number-of-data-nodes-are-less-than-minimum/245535 "2020-08-19T07:14:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pavan\_Rajan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pavan_rajan/32/74138_2.png) [@Pavan\_Rajan](https://discuss.elastic.co/u/Pavan_Rajan)\
**Post date:** [August 19, 2020, 7:14am UTC](https://discuss.elastic.co/t/how-to-stop-elastic-search-if-number-of-data-nodes-are-less-than-minimum/245535/1 "2020-08-19T07:14:38Z")

</div>

Say I have deployed 2 data nodes with number of replicas as default 1. If the second node goes down, the cluster health will turn yellow, but will still continue to function. Is there any configuration to stop this behavior? What I am expecting is, at any point of time 2 data nodes should be up. If any one node goes down, cluster should stop accepting queries. This is to make sure that there is no data loss in case the one active node also goes down. Any pointers to the right configuration is appreciated.

---

<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:** [September 16, 2020, 7:14am UTC](https://discuss.elastic.co/t/how-to-stop-elastic-search-if-number-of-data-nodes-are-less-than-minimum/245535/2 "2020-09-16T07:14:55Z")

</div>

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