# Increasing cluster event (put-mapping) timeout from 30s

**URL:** <https://discuss.elastic.co/t/increasing-cluster-event-put-mapping-timeout-from-30s/159821>\
**Category:** Elasticsearch\
**Created:** [December 6, 2018, 11:58pm UTC](https://discuss.elastic.co/t/increasing-cluster-event-put-mapping-timeout-from-30s/159821 "2018-12-06T23:58:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobbyi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bobbyi/32/27949_2.png) [@bobbyi](https://discuss.elastic.co/u/bobbyi)\
**Post date:** [December 6, 2018, 11:58pm UTC](https://discuss.elastic.co/t/increasing-cluster-event-put-mapping-timeout-from-30s/159821/1 "2018-12-06T23:58:50Z")

</div>

While bulk-loading data into a new ES index, I am hitting the "failed to process cluster event (put-mapping) within 30s" error on the first chunk of data. I have read the previous threads on this topic and understand what the error means and possible workarounds: create the mapping explicitly before loading any data, use less shards, etc.

My question (which I could not find answered in the previous threads) is whether it is possible to increase the amount of time allowed for put-mapping from 30s to a larger number. I tried passing a **timeout** value for my request and while this does increase the amount of time allowed for the actual inserting of the documents, the implicit put-mapping operation is still failed after 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:** [December 7, 2018, 3:41am UTC](https://discuss.elastic.co/t/increasing-cluster-event-put-mapping-timeout-from-30s/159821/2 "2018-12-07T03:41:03Z")

</div>

I would recommend looking into why cluster updates are taking so long. Increasing the timeout (not sure how this can be done) may only give you temporary relief and potentially cause a lot more problems down the line.

---

<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:** [January 4, 2019, 3:41am UTC](https://discuss.elastic.co/t/increasing-cluster-event-put-mapping-timeout-from-30s/159821/3 "2019-01-04T03:41:44Z")

</div>

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