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

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.

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