# Performance for 5 node cluster

**URL:** <https://discuss.elastic.co/t/performance-for-5-node-cluster/55089>\
**Category:** Elasticsearch\
**Created:** [July 8, 2016, 7:22pm UTC](https://discuss.elastic.co/t/performance-for-5-node-cluster/55089 "2016-07-08T19:22:47Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![iremmats](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iremmats/32/55316_2.png) [@iremmats](https://discuss.elastic.co/u/iremmats)\
**Post date:** [July 8, 2016, 7:22pm UTC](https://discuss.elastic.co/t/performance-for-5-node-cluster/55089/1 "2016-07-08T19:22:47Z")

</div>

Hi,

Having a 5 node cluster.  
3 master-data nodes  
2 data nodes

Master-data nodes are 8 cores 28gb ram.  
Data-nodes are 4 cores 14gb ram.

Approx 120 million docs and 250gb data. Mostly used for logs (log4net).

My first question, we have so far been running daily indices. Yesterday we had almost 2k indices and 20k shards. I have a feeling that this is not very good for performance. On a scale form 1-10, how bad and why? 🙂

Is the general setup with 3 master-data and 2 only data good? Can it be tweaked?  
Even though we have followed the general "go-to-production" guidelines with recovery\_after\_nodes and those settings. Recovery takes several hours. Any guesses about that?

Best regards, Mats

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 8, 2016, 8:43pm UTC](https://discuss.elastic.co/t/performance-for-5-node-cluster/55089/2 "2016-07-08T20:43:16Z")

</div>

> [@iremmats](#):
>
> Yesterday we had almost 2k indices and 20k shards. I have a feeling that this is not very good for performance. On a scale form 1-10, how bad and why?

1. 

Each shard needs resources to just exist. So a shard with 50GB of data uses as much of those resources as one that has 5MB.  
You need to consolidate those indices, weekly/monthly, reduce to a single shard, whatever.

---

<div class="post-metadata">

**Author:** ![iremmats](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iremmats/32/55316_2.png) [@iremmats](https://discuss.elastic.co/u/iremmats)\
**Post date:** [July 8, 2016, 8:47pm UTC](https://discuss.elastic.co/t/performance-for-5-node-cluster/55089/3 "2016-07-08T20:47:15Z")

</div>

Thanks. Started doing that and can already see increase in performance.

Is there some good rule of thumb when it comes to total memory and the amount of shards and indexes?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 8, 2016, 8:49pm UTC](https://discuss.elastic.co/t/performance-for-5-node-cluster/55089/4 "2016-07-08T20:49:51Z")

</div>

Keep shards under 50GB, how much under really depends on your performance requirements.

---

<div class="post-metadata">

**Author:** ![iremmats](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iremmats/32/55316_2.png) [@iremmats](https://discuss.elastic.co/u/iremmats)\
**Post date:** [July 8, 2016, 9:11pm UTC](https://discuss.elastic.co/t/performance-for-5-node-cluster/55089/5 "2016-07-08T21:11:36Z")

</div>

Ok, we are still far form that in terms of data but will keep that in mind.

Any changes to size and configuration of the nodes? Dedicated master nodes?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 8, 2016, 10:22pm UTC](https://discuss.elastic.co/t/performance-for-5-node-cluster/55089/6 "2016-07-08T22:22:56Z")

</div>

Not at this stage, nope 🙂

---

<div class="post-metadata">

**Author:** ![iremmats](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iremmats/32/55316_2.png) [@iremmats](https://discuss.elastic.co/u/iremmats)\
**Post date:** [July 10, 2016, 5:57pm UTC](https://discuss.elastic.co/t/performance-for-5-node-cluster/55089/7 "2016-07-10T17:57:33Z")

</div>

Down to 115 indices and 1140 shards. Still too much in your opinion?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 10, 2016, 10:47pm UTC](https://discuss.elastic.co/t/performance-for-5-node-cluster/55089/8 "2016-07-10T22:47:58Z")

</div>

It depends on how large the shards are, but much better!

---

<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 5, 2017, 10:36pm UTC](https://discuss.elastic.co/t/performance-for-5-node-cluster/55089/9 "2017-07-05T22:36:45Z")

</div>


