# Getting no node available exception when there are many requests

**URL:** <https://discuss.elastic.co/t/getting-no-node-available-exception-when-there-are-many-requests/18198>\
**Category:** Elasticsearch\
**Created:** [June 19, 2014, 4:54am UTC](https://discuss.elastic.co/t/getting-no-node-available-exception-when-there-are-many-requests/18198 "2014-06-19T04:54:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Seungjin\_Lee](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@Seungjin\_Lee](https://discuss.elastic.co/u/Seungjin_Lee)\
**Post date:** [June 19, 2014, 4:54am UTC](https://discuss.elastic.co/t/getting-no-node-available-exception-when-there-are-many-requests/18198/1 "2014-06-19T04:54:23Z")

</div>

Hello all,

I'm using storm with elasticsearch percolator and normally it works as  
expected.

but when there are to many requests simultaneously, some of them succeed  
and some fail with no node available exception.

I think there should be a configuration about maximum requests per seconds  
or something like that, and should be a way to avoid no node available  
exception by queing request in the java ElasticSearch client.

Below is my code snippet for percolating

client.preparePercolate()  
.setIndices("index")  
.setDocumentType(projectName)  
.setPercolateDoc(docBuilder().setDoc(log)).execute().actionGet();

would be glad to let me know if you have any knowledge about this, thanks.

Sincerly,

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAL3\_U408zgZmwLdu-SkEs%3DaZ\_GFszAk1GKk6vuHbTSjutP2%3D4g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL3_U408zgZmwLdu-SkEs%3DaZ_GFszAk1GKk6vuHbTSjutP2%3D4g%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 1:21am UTC](https://discuss.elastic.co/t/getting-no-node-available-exception-when-there-are-many-requests/18198/2 "2017-07-06T01:21:22Z")

</div>

Closed on July 6, 2017, 1:21am UTC


