# ElasticSearch Cluster 5.1.1 is slow and timeout

**URL:** https://discuss.elastic.co/t/elasticsearch-cluster-5-1-1-is-slow-and-timeout/73577
**Category:** Elasticsearch
**Created:** [February 1, 2017, 7:18pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-5-1-1-is-slow-and-timeout/73577 "2017-02-01T19:18:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![hailima](https://avatars.discourse-cdn.com/v4/letter/h/f19dbf/32.png) [@hailima](https://discuss.elastic.co/u/hailima)
#### Post date: [February 1, 2017, 7:18pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-5-1-1-is-slow-and-timeout/73577/1 "2017-02-01T19:18:42Z")

</div>

**Hi,**

**I installed two-node ES 5.1.1 cluster, use Java client to create index, update its mapping and indexing sample data. From time to time, I got timeout exception for "create-index" action, if try it again, it could either work or not. Please advise what could be the issue with my cluster? Is there anyway to change the config for 30s timeout? Thanks!**

org.elasticsearch.cluster.metadata.ProcessClusterEventTimeoutException: failed to process cluster event (create-index [pwindex], cause [api]) within 30s  
at org.elasticsearch.cluster.service.ClusterService.lambda$null$4(ClusterService.java:449) ~[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:458) ~[elasticsearch-5.1.1.jar:5.1.1]  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0\_112]  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0\_112]  
at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0\_112]

**I also use the remote reindex to migrate indexed data from ES 1.4.4 to 5.1.1. From time to time, got similar exceptions for the action "put-mapping". Any solution or suggestion to it? The index has 6M docs, each doc has a different doc type, but, all docs have the same field mappings (8 fields)**

org.elasticsearch.cluster.metadata.ProcessClusterEventTimeoutException: failed to process cluster event (put-mapping) within 30s  
at org.elasticsearch.cluster.service.ClusterService.lambda$null$4(ClusterService.java:449) ~[elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:458) [elasticsearch-5.1.1.jar:5.1.1]  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0\_66]  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0\_66]  
at java.lang.Thread.run(Thread.java:745) [?:1.8.0\_66]

---

<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: [March 1, 2017, 7:18pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-5-1-1-is-slow-and-timeout/73577/2 "2017-03-01T19:18:54Z")

</div>

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