# Aliase creation timeout, when node leaves cluster - ES 2.4.6

**URL:** <https://discuss.elastic.co/t/aliase-creation-timeout-when-node-leaves-cluster-es-2-4-6/163987>\
**Category:** Elasticsearch\
**Created:** [January 12, 2019, 9:27am UTC](https://discuss.elastic.co/t/aliase-creation-timeout-when-node-leaves-cluster-es-2-4-6/163987 "2019-01-12T09:27:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jigish\_thakar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jigish_thakar/32/753_2.png) [@jigish\_thakar](https://discuss.elastic.co/u/jigish_thakar)\
**Post date:** [January 12, 2019, 9:27am UTC](https://discuss.elastic.co/t/aliase-creation-timeout-when-node-leaves-cluster-es-2-4-6/163987/1 "2019-01-12T09:27:54Z")

</div>

Hi All,  
We are running ES 2.4.6 (very old version! I know) cluster with 10 data nodes - i3.2xlarge each.  
And UI build for this cluster, creates alias for a session with provided search criteria.

Now issue is, when we do intentional node reboot, we stop allocation.  
But during that time, if user logs in to portal. Then UI tries to create aliase.. and ES takes either too long.. or it just throws timeout.

I get error like below on elected master node.

```
2019-01-12 09:25:06,724][DEBUG][action.admin.indices.alias] [sng-prod-es2-master1] failed to perform aliases
ProcessClusterEventTimeoutException[failed to process cluster event (index-aliases) within 30s]
        at org.elasticsearch.cluster.service.InternalClusterService$2$1.run(InternalClusterService.java:361)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

```

Thanks in advanced.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [January 13, 2019, 11:35am UTC](https://discuss.elastic.co/t/aliase-creation-timeout-when-node-leaves-cluster-es-2-4-6/163987/2 "2019-01-13T11:35:33Z")

</div>

How many indices, shards and aliases do you have in the cluster?

---

<div class="post-metadata">

**Author:** ![jigish\_thakar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jigish_thakar/32/753_2.png) [@jigish\_thakar](https://discuss.elastic.co/u/jigish_thakar)\
**Post date:** [January 14, 2019, 10:56am UTC](https://discuss.elastic.co/t/aliase-creation-timeout-when-node-leaves-cluster-es-2-4-6/163987/3 "2019-01-14T10:56:24Z")

</div>

Shards: 24604  
Indices: 6126  
Aliases: 4623

we are heavily dependent on aliases.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [January 14, 2019, 11:11am UTC](https://discuss.elastic.co/t/aliase-creation-timeout-when-node-leaves-cluster-es-2-4-6/163987/4 "2019-01-14T11:11:45Z")

</div>

It looks like you have [far too many indices and shards](https://www.elastic.co/blog/how-many-shards-should-i-have-in-my-elasticsearch-cluster) for a cluster that size. All this takes up space in the cluster state and makes updates slower. This also applies to aliases, which are also stored in the cluster state. I would therefore recommend reducing this significantly.

What are you using such a large number of aliases for? can you describe the use-case?

---

<div class="post-metadata">

**Author:** ![jigish\_thakar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jigish_thakar/32/753_2.png) [@jigish\_thakar](https://discuss.elastic.co/u/jigish_thakar)\
**Post date:** [January 14, 2019, 11:36am UTC](https://discuss.elastic.co/t/aliase-creation-timeout-when-node-leaves-cluster-es-2-4-6/163987/5 "2019-01-14T11:36:27Z")

</div>

its a logging platform, we have huge number of customers.. per customer per day we maintain indices. and these indices are accessed using predefined aliases.

also our cluster is large too, so I don't think size is an issue.  
and this timeout only happens when huge number of shards are being relocated.  
which happens during rolling reboot.  
and once the cluster is Green things becomes normal, though shard re balancing is going on.

Regards

---

<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:** [February 11, 2019, 11:36am UTC](https://discuss.elastic.co/t/aliase-creation-timeout-when-node-leaves-cluster-es-2-4-6/163987/6 "2019-02-11T11:36:32Z")

</div>

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