# Periodically getting time out errors while inserting documents

**URL:** <https://discuss.elastic.co/t/periodically-getting-time-out-errors-while-inserting-documents/63050>\
**Category:** Elasticsearch\
**Created:** [October 14, 2016, 11:26am UTC](https://discuss.elastic.co/t/periodically-getting-time-out-errors-while-inserting-documents/63050 "2016-10-14T11:26:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harsha\_Reddy](https://avatars.discourse-cdn.com/v4/letter/h/22d042/32.png) [@Harsha\_Reddy](https://discuss.elastic.co/u/Harsha_Reddy)\
**Post date:** [October 14, 2016, 11:26am UTC](https://discuss.elastic.co/t/periodically-getting-time-out-errors-while-inserting-documents/63050/1 "2016-10-14T11:26:47Z")

</div>

We have 3 node Elasticsearch cluster . We are using following configuration on three nodes.

network.host: x  
discovery.zen.ping.unicast.hosts: ["x", " y","z"]  
discovery.zen.minimum\_master\_nodes: 2  
discovery.zen.ping.multicast.enabled: false

Elsticsearch version -2.3.4, java - openjdk -8

cluster health is green with three data nodes. index replication factor :1, shards: 5.

In the beginning it was fine but recently we are getting following error while inserting documents into index.

Error: Request Timeout after 30000ms  
at /home/ubuntu/search/node\_modules/elasticsearch/src/lib/transport.js:336:15  
at null. (/home/ubuntu/search/node\_modules/elasticsearch/src/lib/transport.js:365:7)  
at Timer.listOnTimeout (timers.js:92:15)

please help me to resolve this problem

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [October 14, 2016, 2:21pm UTC](https://discuss.elastic.co/t/periodically-getting-time-out-errors-while-inserting-documents/63050/2 "2016-10-14T14:21:52Z")

</div>

Maybe the cluster is too busy to accept new indexing requests? Or maybe the node that you configured when instantiating your client went down (for some time at least), how are you configuring your client, are you using sniffing?

---

<div class="post-metadata">

**Author:** ![Harsha\_Reddy](https://avatars.discourse-cdn.com/v4/letter/h/22d042/32.png) [@Harsha\_Reddy](https://discuss.elastic.co/u/Harsha_Reddy)\
**Post date:** [October 14, 2016, 2:24pm UTC](https://discuss.elastic.co/t/periodically-getting-time-out-errors-while-inserting-documents/63050/3 "2016-10-14T14:24:50Z")

</div>

three nodes are up and running. Load on the cluster is normal.cluster status is green. I am not using sniffing.

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [October 14, 2016, 2:52pm UTC](https://discuss.elastic.co/t/periodically-getting-time-out-errors-while-inserting-documents/63050/4 "2016-10-14T14:52:55Z")

</div>

Is there evidence of eg. some nodes running garbage collection for more than 30s?

When things start timing out, does it start working again later or does it never recover?

---

<div class="post-metadata">

**Author:** ![Harsha\_Reddy](https://avatars.discourse-cdn.com/v4/letter/h/22d042/32.png) [@Harsha\_Reddy](https://discuss.elastic.co/u/Harsha_Reddy)\
**Post date:** [October 17, 2016, 2:33pm UTC](https://discuss.elastic.co/t/periodically-getting-time-out-errors-while-inserting-documents/63050/5 "2016-10-17T14:33:42Z")

</div>

I am getting errors while inserting documents into particular index only(no errors during search operations on same index). In other indices i can index the documents with out any errors

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [October 18, 2016, 8:41pm UTC](https://discuss.elastic.co/t/periodically-getting-time-out-errors-while-inserting-documents/63050/6 "2016-10-18T20:41:46Z")

</div>

Is this index fully allocated?

---

<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, 10:11pm UTC](https://discuss.elastic.co/t/periodically-getting-time-out-errors-while-inserting-documents/63050/7 "2017-07-05T22:11:27Z")

</div>


