# How to control maximum number of client connections to ES instance

**URL:** <https://discuss.elastic.co/t/how-to-control-maximum-number-of-client-connections-to-es-instance/21048>\
**Category:** Elasticsearch\
**Created:** [December 3, 2014, 3:06am UTC](https://discuss.elastic.co/t/how-to-control-maximum-number-of-client-connections-to-es-instance/21048 "2014-12-03T03:06:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramdev\_Wudali](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramdev_wudali/32/7894_2.png) [@Ramdev\_Wudali](https://discuss.elastic.co/u/Ramdev_Wudali)\
**Post date:** [December 3, 2014, 3:06am UTC](https://discuss.elastic.co/t/how-to-control-maximum-number-of-client-connections-to-es-instance/21048/1 "2014-12-03T03:06:24Z")

</div>

Hi:  
Is there a configuration variable that I could set on an ES instance  
that can control the maximum number of client connections ? What is the  
default limit on the max. connections ? and how can I change it ?

If I have a SPARK application that is retrieving results from an ES  
instance, I am running into a NoNodeAvailable Exception. But if I reduce  
the number of processes, then the errors seems to go away.  
all help is appreciated.

Thanks

Ramdev

--  
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/0f2f4642-f670-418d-9e6d-32039483af9f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0f2f4642-f670-418d-9e6d-32039483af9f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 3, 2014, 3:42am UTC](https://discuss.elastic.co/t/how-to-control-maximum-number-of-client-connections-to-es-instance/21048/2 "2014-12-03T03:42:24Z")

</div>

There are thread pools which is probably what you are hitting -

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

On 3 December 2014 at 14:06, Ramdev Wudali [agastya71@gmail.com](mailto:agastya71@gmail.com) wrote:

> Hi:  
> Is there a configuration variable that I could set on an ES instance  
> that can control the maximum number of client connections ? What is the  
> default limit on the max. connections ? and how can I change it ?
> 
> If I have a SPARK application that is retrieving results from an ES  
> instance, I am running into a NoNodeAvailable Exception. But if I reduce  
> the number of processes, then the errors seems to go away.  
> all help is appreciated.
> 
> Thanks
> 
> Ramdev
> 
> --  
> 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/0f2f4642-f670-418d-9e6d-32039483af9f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0f2f4642-f670-418d-9e6d-32039483af9f%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/0f2f4642-f670-418d-9e6d-32039483af9f%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/0f2f4642-f670-418d-9e6d-32039483af9f%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAEYi1X95A13-XRNOvZGh9gPFqhm%2BpvwAXiHoa\_GT173Rgwwtkw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X95A13-XRNOvZGh9gPFqhm%2BpvwAXiHoa_GT173Rgwwtkw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [December 3, 2014, 11:46am UTC](https://discuss.elastic.co/t/how-to-control-maximum-number-of-client-connections-to-es-instance/21048/3 "2014-12-03T11:46:54Z")

</div>

There is no limit on the number of client connections imposed by ES.

If you see NoNodeAvailableException you may have hit a connect timeout of  
the client. Connect timeout is 30 secs IIRC.

Jörg

On Wed, Dec 3, 2014 at 4:06 AM, Ramdev Wudali [agastya71@gmail.com](mailto:agastya71@gmail.com) wrote:

> Hi:  
> Is there a configuration variable that I could set on an ES instance  
> that can control the maximum number of client connections ? What is the  
> default limit on the max. connections ? and how can I change it ?
> 
> If I have a SPARK application that is retrieving results from an ES  
> instance, I am running into a NoNodeAvailable Exception. But if I reduce  
> the number of processes, then the errors seems to go away.  
> all help is appreciated.
> 
> Thanks
> 
> Ramdev
> 
> --  
> 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/0f2f4642-f670-418d-9e6d-32039483af9f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0f2f4642-f670-418d-9e6d-32039483af9f%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/0f2f4642-f670-418d-9e6d-32039483af9f%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/0f2f4642-f670-418d-9e6d-32039483af9f%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAKdsXoGc0Yvrk8MBje0Zpq9DyvrpG8Od%2BeUKUNWwiXPfDq\_XJw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGc0Yvrk8MBje0Zpq9DyvrpG8Od%2BeUKUNWwiXPfDq_XJw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Ramdev\_Wudali](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramdev_wudali/32/7894_2.png) [@Ramdev\_Wudali](https://discuss.elastic.co/u/Ramdev_Wudali)\
**Post date:** [December 3, 2014, 2:12pm UTC](https://discuss.elastic.co/t/how-to-control-maximum-number-of-client-connections-to-es-instance/21048/4 "2014-12-03T14:12:55Z")

</div>

Hi Jorg:  
can the Transport settings be changed on the fly (using curl -XPUT )?  
If so, what is the command ?

(I doubt its a cluster setting (it is not mentioned on the cluster settings  
page of the documentation))

Thanks for the assist

Ramdev

On Wed, Dec 3, 2014 at 5:46 AM, [joergprante@gmail.com](mailto:joergprante@gmail.com) \<[joergprante@gmail.com](mailto:joergprante@gmail.com)

> wrote:

> There is no limit on the number of client connections imposed by ES.
> 
> If you see NoNodeAvailableException you may have hit a connect timeout of  
> the client. Connect timeout is 30 secs IIRC.
> 
> Jörg
> 
> On Wed, Dec 3, 2014 at 4:06 AM, Ramdev Wudali [agastya71@gmail.com](mailto:agastya71@gmail.com) wrote:
> 
> > Hi:  
> > Is there a configuration variable that I could set on an ES instance  
> > that can control the maximum number of client connections ? What is the  
> > default limit on the max. connections ? and how can I change it ?
> > 
> > If I have a SPARK application that is retrieving results from an ES  
> > instance, I am running into a NoNodeAvailable Exception. But if I reduce  
> > the number of processes, then the errors seems to go away.  
> > all help is appreciated.
> > 
> > Thanks
> > 
> > Ramdev
> > 
> > --  
> > 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/0f2f4642-f670-418d-9e6d-32039483af9f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0f2f4642-f670-418d-9e6d-32039483af9f%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/0f2f4642-f670-418d-9e6d-32039483af9f%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/0f2f4642-f670-418d-9e6d-32039483af9f%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/VyNpCs17aTA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/VyNpCs17aTA/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/CAKdsXoGc0Yvrk8MBje0Zpq9DyvrpG8Od%2BeUKUNWwiXPfDq\_XJw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGc0Yvrk8MBje0Zpq9DyvrpG8Od%2BeUKUNWwiXPfDq_XJw%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGc0Yvrk8MBje0Zpq9DyvrpG8Od%2BeUKUNWwiXPfDq\_XJw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGc0Yvrk8MBje0Zpq9DyvrpG8Od%2BeUKUNWwiXPfDq_XJw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAGbqZ7gUMXULy\_dRhLmn0wAFZjHmfzosX8D1qvH%2BaVvT95hFkQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGbqZ7gUMXULy_dRhLmn0wAFZjHmfzosX8D1qvH%2BaVvT95hFkQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dgoldenberg](https://avatars.discourse-cdn.com/v4/letter/d/ecc23a/32.png) [@dgoldenberg](https://discuss.elastic.co/u/dgoldenberg)\
**Post date:** [February 3, 2017, 6:44pm UTC](https://discuss.elastic.co/t/how-to-control-maximum-number-of-client-connections-to-es-instance/21048/5 "2017-02-03T18:44:33Z")

</div>

> [@jprante](#):
>
> Connect timeout is 30

Could someone state whether there was a resolution and a problem cause figured out? Thanks.

---

<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:03pm UTC](https://discuss.elastic.co/t/how-to-control-maximum-number-of-client-connections-to-es-instance/21048/6 "2017-07-05T22:03:35Z")

</div>


