# How many client nodes should be in an es cluster?

**URL:** https://discuss.elastic.co/t/how-many-client-nodes-should-be-in-an-es-cluster/236872
**Category:** Elasticsearch
**Created:** [June 12, 2020, 10:45am UTC](https://discuss.elastic.co/t/how-many-client-nodes-should-be-in-an-es-cluster/236872 "2020-06-12T10:45:59Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Bowen\_Liu](https://avatars.discourse-cdn.com/v4/letter/b/a4c791/32.png) [@Bowen\_Liu](https://discuss.elastic.co/u/Bowen_Liu)
#### Post date: [June 12, 2020, 10:45am UTC](https://discuss.elastic.co/t/how-many-client-nodes-should-be-in-an-es-cluster/236872/1 "2020-06-12T10:45:59Z")

</div>

Hey, guys, we have some concerns about how many client nodes should be in a es cluster.  
Now we have a es cluster with total 36 nodes: `3 master nodes, 5 client nodes and 28 datanodes`. We have approximate 10TB, which about 14 billions data in our cluster, the indexing rate is about 20k in average and can reach 40k in peek, the search rate is about 10k and can reach 20k in peek.  
Recently we receive some error about circuit\_breaking now and then, after some digging we found that this is because the jvm heap usage of client node is high and finally trigger circuit\_breaking. Then we add 2 more client nodes into the cluster and set `InitiatingHeapOccupancyPercent=30` and set `G1ReservePercent=25`, after there operations we finally solve the circuit\_breaking problem.  
Though the problem is issued, we still have concern about how many client nodes should be in a es cluster. I know that the number of master node should be 3 no matter the cluster size, and number of data node should vary with the data size and pressure of whole cluster, but **I cannot find any information about how many client nodes should be in a cluster**. Is there any suggestion about this? Or do you do some pressure test about how many client nodes should be in a real es cluster? Thank you very much!!

---

<div class="post-metadata">

### Author: ![pjanzen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pjanzen/32/13756_2.png) [@pjanzen](https://discuss.elastic.co/u/pjanzen)
#### Post date: [June 12, 2020, 3:56pm UTC](https://discuss.elastic.co/t/how-many-client-nodes-should-be-in-an-es-cluster/236872/2 "2020-06-12T15:56:22Z")

</div>

Hi,

It is a combination of how many shard and indices you have. Can you share some information about that?

Paul.

---

<div class="post-metadata">

### Author: ![Bowen\_Liu](https://avatars.discourse-cdn.com/v4/letter/b/a4c791/32.png) [@Bowen\_Liu](https://discuss.elastic.co/u/Bowen_Liu)
#### Post date: [June 13, 2020, 2:05am UTC](https://discuss.elastic.co/t/how-many-client-nodes-should-be-in-an-es-cluster/236872/3 "2020-06-13T02:05:31Z")

</div>

We have about 800 indices total and about 2500 primary shards, each primary shard have a replica shard

---

<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 11, 2020, 2:11am UTC](https://discuss.elastic.co/t/how-many-client-nodes-should-be-in-an-es-cluster/236872/4 "2020-07-11T02:11:00Z")

</div>

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