# How to find quorum of the cluster in elasticsearch 7.x

**URL:** <https://discuss.elastic.co/t/how-to-find-quorum-of-the-cluster-in-elasticsearch-7-x/247335>\
**Category:** Elasticsearch\
**Created:** [September 3, 2020, 7:36am UTC](https://discuss.elastic.co/t/how-to-find-quorum-of-the-cluster-in-elasticsearch-7-x/247335 "2020-09-03T07:36:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhavya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavya/32/45679_2.png) [@bhavya](https://discuss.elastic.co/u/bhavya)\
**Post date:** [September 3, 2020, 7:36am UTC](https://discuss.elastic.co/t/how-to-find-quorum-of-the-cluster-in-elasticsearch-7-x/247335/1 "2020-09-03T07:36:34Z")

</div>

I am using Elasticsearch 7.9 version. I want to find the quorum value of my cluster.

Before 7.x version, `discovery.zen.minimum_master_nodes` controlled the minimum number of eligible master nodes that a node should “see” in order to operate within the cluster.

Quorum was calculated as : **`N/2 + 1`** where N is number of master nodes. This setting was set to a quorum of master eligible nodes.

But in 7.x, the `discovery.zen.minimum_master_nodes` setting is permitted, but ignored, on 7.x nodes as mentioned in [Breaking changes in 7.x](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/breaking-changes-7.0.html#_cluster_bootstrapping_is_required_if_discovery_is_configured)

As per official Elasticsearch documentation on [Voting configuration](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery-voting.html), I tried this below curl command:

```
curl -X GET "localhost:9200/_cluster/state?filter_path=metadata.cluster_coordination.last_committed_config&pretty"

```

And got the following output :

```auto
    {
  "metadata" : {
    "cluster_coordination" : {
      "last_committed_config" : [
        "VxTTvFWRRY6TF2Bi2vPiPw"
      ]
    }
  }
} 

```

**Can anyone please tell me how can I find the quorum value of my cluster in Elasticsearch 7.x OR how can I view the voting configuration through which I can know which master eligible nodes are participating in voting and from there I will calculate the quorum value.**

---

<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 3, 2020, 8:03am UTC](https://discuss.elastic.co/t/how-to-find-quorum-of-the-cluster-in-elasticsearch-7-x/247335/2 "2020-09-03T08:03:15Z")

</div>

> [@bhavya](#):
>
> how can I view the voting configuration

The command you quoted is the right one, and the output is the voting configuration. This means you only have one node in the configuration, so the quorum is that single node.

---

<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 3, 2020, 8:38am UTC](https://discuss.elastic.co/t/how-to-find-quorum-of-the-cluster-in-elasticsearch-7-x/247335/3 "2020-09-03T08:38:53Z")

</div>

Generally it's a mistake to look at this, however, since the cluster manages the voting configuration and may change it at any time. It's much more reliable to think of a quorum as any majority subset of the master-eligible nodes in the cluster, just as it was in 6.x.

---

<div class="post-metadata">

**Author:** ![bhavya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavya/32/45679_2.png) [@bhavya](https://discuss.elastic.co/u/bhavya)\
**Post date:** [September 3, 2020, 10:49am UTC](https://discuss.elastic.co/t/how-to-find-quorum-of-the-cluster-in-elasticsearch-7-x/247335/4 "2020-09-03T10:49:19Z")

</div>

Thanks @DavidTurner for your reply.

Can you please explain in detail **how it's a mistake to look at this** and can you also tell the difference between master election process in 6.x vs 7.x

---

<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 3, 2020, 11:15am UTC](https://discuss.elastic.co/t/how-to-find-quorum-of-the-cluster-in-elasticsearch-7-x/247335/5 "2020-09-03T11:15:29Z")

</div>

> [@bhavya](#):
>
> Can you please explain in detail **how it's a mistake to look at this**

As I said, it's managed by the cluster and may change at any time.

The election process is fundamentally the same in 7.x as in 6.x: a majority of the master-eligible nodes must be available at all times. The biggest difference is that the cluster manages the quorums rather than relying on users setting `discovery.zen.minimum_master_nodes` correctly.

---

<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 1, 2020, 11:15am UTC](https://discuss.elastic.co/t/how-to-find-quorum-of-the-cluster-in-elasticsearch-7-x/247335/6 "2020-10-01T11:15:45Z")

</div>

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