# How to increase connect\_timeout (default 30s) as i am getting ConnectTransportException

**URL:** <https://discuss.elastic.co/t/how-to-increase-connect-timeout-default-30s-as-i-am-getting-connecttransportexception/115653>\
**Category:** Elasticsearch\
**Created:** [January 16, 2018, 7:32am UTC](https://discuss.elastic.co/t/how-to-increase-connect-timeout-default-30s-as-i-am-getting-connecttransportexception/115653 "2018-01-16T07:32:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hasan\_sharekhan](https://avatars.discourse-cdn.com/v4/letter/h/eada6e/32.png) [@hasan\_sharekhan](https://discuss.elastic.co/u/hasan_sharekhan)\
**Post date:** [January 16, 2018, 7:32am UTC](https://discuss.elastic.co/t/how-to-increase-connect-timeout-default-30s-as-i-am-getting-connecttransportexception/115653/1 "2018-01-16T07:32:59Z")

</div>

How to increase connect\_timeout from default 30s to higher value as i am getting ConnectTransportException

Below are some of the setting which i have already changed but getting the below exceptions

```
# Default 5s
discovery.zen.ping.unicast.hosts.resolve_timeout: 60s
#
# Default 1s
discovery.zen.fd.ping_interval: 10s
#
# Default 30s
discovery.zen.fd.ping_timeout: 300s
#
# Default 3
discovery.zen.fd.ping_retries: 5
#
# Default 20s
discovery.zen.join_timeout: 60s
#
# default false
discovery.zen.master_election.ignore_non_master_pings: true

```

> [2018-01-15T21:02:09,565][WARN][o.e.c.NodeConnectionsService] [node0\_ril3] failed to connect to node {node2}{ycCviQcjQq-EoinP7hi-bw}{z0DcSwnkS9WdnVO0PSkclg}{192.168.X.Y}{192.168.X.Y:9302} (tried [127] times)  
> org.elasticsearch.transport.ConnectTransportException: [node2][192.168.X.Y:9302] connect\_timeout[30s]  
> at org.elasticsearch.transport.netty4.Netty4Transport.connectToChannels(Netty4Transport.java:361) ~[?:?]  
> at org.elasticsearch.transport.TcpTransport.openConnection(TcpTransport.java:548) ~[elasticsearch-5.5.0.jar:5.5.0]  
> at org.elasticsearch.transport.TcpTransport.connectToNode(TcpTransport.java:472) ~[elasticsearch-5.5.0.jar:5.5.0]  
> at org.elasticsearch.transport.TransportService.connectToNode(TransportService.java:332) ~[elasticsearch-5.5.0.jar:5.5.0]  
> at org.elasticsearch.transport.TransportService.connectToNode(TransportService.java:319) ~[elasticsearch-5.5.0.jar:5.5.0]  
> at org.elasticsearch.cluster.NodeConnectionsService.validateAndConnectIfNeeded(NodeConnectionsService.java:154) [elasticsearch-5.5.0.jar:5.5.0]  
> at org.elasticsearch.cluster.NodeConnectionsService$ConnectionChecker.doRun(NodeConnectionsService.java:183) [elasticsearch-5.5.0.jar:5.5.0]  
> at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:638) [elasticsearch-5.5.0.jar:5.5.0]  
> at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-5.5.0.jar:5.5.0]  
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0\_121]  
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0\_121]  
> at java.lang.Thread.run(Thread.java:745) [?:1.8.0\_121]  
> Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection timed out: no further information: 192.168.X.Y/192.168.X.Y:9302  
> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[?:?]  
> at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[?:?]  
> at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:352) ~[?:?]  
> at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:340) ~[?:?]  
> at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:632) ~[?:?]  
> at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:544) ~[?:?]  
> at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:498) ~[?:?]  
> at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458) ~[?:?]  
> at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) ~[?:?]  
> ... 1 more  
> Caused by: java.net.ConnectException: Connection timed out: no further information  
> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[?:?]  
> at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[?:?]  
> at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:352) ~[?:?]  
> at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:340) ~[?:?]  
> at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:632) ~[?:?]  
> at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:544) ~[?:?]  
> at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:498) ~[?:?]  
> at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458) ~[?:?]  
> at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) ~[?:?]  
> ... 1 more

---

<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:** [February 13, 2018, 7:33am UTC](https://discuss.elastic.co/t/how-to-increase-connect-timeout-default-30s-as-i-am-getting-connecttransportexception/115653/2 "2018-02-13T07:33:03Z")

</div>

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