# Number of sockets for the clients

**URL:** <https://discuss.elastic.co/t/number-of-sockets-for-the-clients/9498>\
**Category:** Elasticsearch\
**Created:** [October 30, 2012, 6:49am UTC](https://discuss.elastic.co/t/number-of-sockets-for-the-clients/9498 "2012-10-30T06:49:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Muzy](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@Muzy](https://discuss.elastic.co/u/Muzy)\
**Post date:** [October 30, 2012, 6:49am UTC](https://discuss.elastic.co/t/number-of-sockets-for-the-clients/9498/1 "2012-10-30T06:49:35Z")

</div>

If I am creating a node client total number of sockets used is 18 and if I  
create a transport client the number of sockets where 9. Is there any way  
to reduce the number of sockets for the transport client. Why do I need  
this many sockets?

--

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [October 30, 2012, 8:41pm UTC](https://discuss.elastic.co/t/number-of-sockets-for-the-clients/9498/2 "2012-10-30T20:41:53Z")

</div>

The number of connections per node is controlled by 3 settings that specify  
the number of connections for each connection type (low, med and high)

_transport.netty.connections\_per\_node.low_ - connections for batch oriented  
APIs (like recovery or batch) with high payload that will cause regular  
requests (like search or single index) to take longer  
\*transport.\*_netty.connections\_per\_node.med_ - connections for for the  
typical search / single doc index  
\*transport.\*_netty.connections\_per\_node.high_ - connections for for ping  
type requests (like fault detection)

The default settings are low = 2, med = 6 and high = 1

If the number of connections for a given type is set to 0, requests of this  
type will use connections of a different type. So, you can, theoretically,  
go as low as 0/0/1, but it will, most likely, affect performance.

On Tuesday, October 30, 2012 2:49:35 AM UTC-4, Muzy wrote:

> If I am creating a node client total number of sockets used is 18 and if I  
> create a transport client the number of sockets where 9. Is there any way  
> to reduce the number of sockets for the transport client. Why do I need  
> this many sockets?

--

---

<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, 3:06am UTC](https://discuss.elastic.co/t/number-of-sockets-for-the-clients/9498/3 "2017-07-06T03:06:44Z")

</div>


