# Number of shards in one node of cluster is stuck

**URL:** <https://discuss.elastic.co/t/number-of-shards-in-one-node-of-cluster-is-stuck/29569>\
**Category:** Elasticsearch\
**Created:** [September 18, 2015, 12:18pm UTC](https://discuss.elastic.co/t/number-of-shards-in-one-node-of-cluster-is-stuck/29569 "2015-09-18T12:18:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![olegbragin](https://avatars.discourse-cdn.com/v4/letter/o/c4cdca/32.png) [@olegbragin](https://discuss.elastic.co/u/olegbragin)\
**Post date:** [September 18, 2015, 12:18pm UTC](https://discuss.elastic.co/t/number-of-shards-in-one-node-of-cluster-is-stuck/29569/1 "2015-09-18T12:18:05Z")

</div>

Hello,

I have a cluster with 2 nodes. Each node has 2248 (1124 \* 2) shards.  
When I check cluster health using head plugin on one server (node) I see that indexing is going on and number of shards is increasing.  
On another cluster using head plugin also I see that number of shards is stuck somewhere in the middle.  
Another thing to notice is that on a "good" node when all shards are processed the cluster gets the green state, which is ok. My concerns is another node with stuck index. is it ok? Should the number of shards be equal on all nodes throughout the cluster?

---

<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:** [September 19, 2015, 1:31am UTC](https://discuss.elastic.co/t/number-of-shards-in-one-node-of-cluster-is-stuck/29569/2 "2015-09-19T01:31:36Z")

</div>

> [@olegbragin](#):
>
> I have a cluster with 2 nodes. Each node has 2248 (1124 \* 2) shards.

That's quite a lot, you should look at reducing that quite dramatically for ES to run optimally.

> [@olegbragin](#):
>
> On another cluster using head plugin also I see that number of shards is stuck somewhere in the middle.

What do you mean, what does this have to do with the problem?

---

<div class="post-metadata">

**Author:** ![olegbragin](https://avatars.discourse-cdn.com/v4/letter/o/c4cdca/32.png) [@olegbragin](https://discuss.elastic.co/u/olegbragin)\
**Post date:** [September 21, 2015, 12:16pm UTC](https://discuss.elastic.co/t/number-of-shards-in-one-node-of-cluster-is-stuck/29569/3 "2015-09-21T12:16:28Z")

</div>

Hi,

You were right, the problem wasn't with configuration. Thank you!

---

<div class="post-metadata">

**Author:** ![olegbragin](https://avatars.discourse-cdn.com/v4/letter/o/c4cdca/32.png) [@olegbragin](https://discuss.elastic.co/u/olegbragin)\
**Post date:** [September 21, 2015, 2:55pm UTC](https://discuss.elastic.co/t/number-of-shards-in-one-node-of-cluster-is-stuck/29569/4 "2015-09-21T14:55:53Z")

</div>

Hi again 😄

I have a default configuration of elasticsearch, which sets 5 shards + 1 replica for the index.  
Currently I have 234 indices, so that's where I got more that 2200 shards with replicas.  
Am I correct that the only one way to reduce the that number is by reducing the number or shards per node?

---

<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:** [September 21, 2015, 10:24pm UTC](https://discuss.elastic.co/t/number-of-shards-in-one-node-of-cluster-is-stuck/29569/5 "2015-09-21T22:24:33Z")

</div>

You should really change the mapping to reduce the number of shards, ideally it's one shard per node per index.

---

<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, 11:48pm UTC](https://discuss.elastic.co/t/number-of-shards-in-one-node-of-cluster-is-stuck/29569/6 "2017-07-05T23:48:54Z")

</div>


