# How to change the cluster\_update\_settings time?

**URL:** <https://discuss.elastic.co/t/how-to-change-the-cluster-update-settings-time/101648>\
**Category:** Elasticsearch\
**Created:** [September 25, 2017, 7:17am UTC](https://discuss.elastic.co/t/how-to-change-the-cluster-update-settings-time/101648 "2017-09-25T07:17:10Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [September 25, 2017, 7:17am UTC](https://discuss.elastic.co/t/how-to-change-the-cluster-update-settings-time/101648/1 "2017-09-25T07:17:11Z")

</div>

the default is 30s ,but in big cluster this is small? how to change the time  
thanks.

```
{
  "error" : {
    "root_cause" : [
      {
        "type" : "process_cluster_event_timeout_exception",
        "reason" : "failed to process cluster event (cluster_update_settings) within 30s"
      }
    ],
    "type" : "process_cluster_event_timeout_exception",
    "reason" : "failed to process cluster event (cluster_update_settings) within 30s"
  },
  "status" : 503
```

---

<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:** [September 25, 2017, 7:22am UTC](https://discuss.elastic.co/t/how-to-change-the-cluster-update-settings-time/101648/2 "2017-09-25T07:22:07Z")

</div>

That should be fine also for larger clusters. It may be worthwhile investigating while it is taking so long instead of trying to increase it.

Which version of Elasticsearch are you using? How many nodes do you have in your cluster? How many indices and shards do you have in the cluster?

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [September 25, 2017, 8:21am UTC](https://discuss.elastic.co/t/how-to-change-the-cluster-update-settings-time/101648/3 "2017-09-25T08:21:24Z")

</div>

5.4.3  
in cluseter 10W+ shards 54 nodes 36 data nodes 500+index  
when init the cluster or large data bulk to es cluseter ,  
i can't change the settings of cluster  
the pending tasks 1000+  
queue 10W+

---

<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:** [September 25, 2017, 8:22am UTC](https://discuss.elastic.co/t/how-to-change-the-cluster-update-settings-time/101648/4 "2017-09-25T08:22:57Z")

</div>

> [@zqc0512](#):
>
> 10W+

I do not understand this metric. What is it?

You may also want to read [this blog post](https://www.elastic.co/blog/how-many-shards-should-i-have-in-my-elasticsearch-cluster).

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [September 25, 2017, 8:35am UTC](https://discuss.elastic.co/t/how-to-change-the-cluster-update-settings-time/101648/5 "2017-09-25T08:35:54Z")

</div>

sorry 10W+ =100k+  
1w=ten thousand

---

<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:** [September 25, 2017, 8:38am UTC](https://discuss.elastic.co/t/how-to-change-the-cluster-update-settings-time/101648/6 "2017-09-25T08:38:43Z")

</div>

That is over 2800 shards per data node, which is far too much. I suspect you will need to reduce this. Have a look at the blog post I linked to for some guidelines on shard count and size.

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [September 25, 2017, 8:40am UTC](https://discuss.elastic.co/t/how-to-change-the-cluster-update-settings-time/101648/7 "2017-09-25T08:40:24Z")

</div>

can give me a link? witch the best shards in one data node? can give me example.

---

<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:** [September 25, 2017, 8:44am UTC](https://discuss.elastic.co/t/how-to-change-the-cluster-update-settings-time/101648/8 "2017-09-25T08:44:29Z")

</div>

It is in my previous post where I asked about the unit.

Increasing queue sizes and timeouts like you have done does not solve the problems you are having in the cluster, just putting a band-aid on it. I would recommend trying to address the underlying issues while your cluster still is in a workable state. The worse state you cluster gets in, the more difficult it will be to solve any problem properly.

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [September 25, 2017, 8:58am UTC](https://discuss.elastic.co/t/how-to-change-the-cluster-update-settings-time/101648/9 "2017-09-25T08:58:40Z")

</div>

can give me a blog link about you sea?

---

<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:** [September 25, 2017, 8:59am UTC](https://discuss.elastic.co/t/how-to-change-the-cluster-update-settings-time/101648/10 "2017-09-25T08:59:09Z")

</div>

> **[How many shards should I have in my Elasticsearch cluster?
	  	 | Elastic](https://www.elastic.co/blog/how-many-shards-should-i-have-in-my-elasticsearch-cluster)**
>
> Elasticsearch is a very versatile platform, that supports a variety of use cases, and provides great flexibility around data organisation and replication strategies. This flexibility can however somet...

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [September 25, 2017, 11:26am UTC](https://discuss.elastic.co/t/how-to-change-the-cluster-update-settings-time/101648/11 "2017-09-25T11:26:18Z")

</div>

this time can change ?  
i need delete data about index. but can't up it . output timeout 30s.

---

<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:** [September 25, 2017, 11:38am UTC](https://discuss.elastic.co/t/how-to-change-the-cluster-update-settings-time/101648/12 "2017-09-25T11:38:03Z")

</div>

I think this might be [what you are looking for](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/modules-discovery-zen.html#_cluster_state_updates).

---

<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 23, 2017, 11:38am UTC](https://discuss.elastic.co/t/how-to-change-the-cluster-update-settings-time/101648/13 "2017-10-23T11:38:30Z")

</div>

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