gRPC TCP connect timeout value

26 views
Skip to first unread message

Eddie Mon

unread,
Jun 21, 2022, 1:13:52 AMJun 21
to grpc.io
Hello,

I have a gRPC client configured with ipv4 name resolver and first pick load balancer.
The issue I am facing is that if the first IP in the ipv4 address list is powered down or the server firewall is blocking the IP traffic, gRPC will take up to 20 seconds before it moves on to the next server IP for the gRPC request.  

My question is, any config parameters I can set to reduce this connect timeout and make gRPC move on to the following IP for request?

Thanks,
Eddie.

Mark D. Roth

unread,
Jun 22, 2022, 2:20:53 PMJun 22
to Eddie Mon, grpc.io
There should be options to reduce the initial connection timeout, but the details depend on what language you're using.  If you're using a C-core-based language, you can use the GRPC_ARG_MIN_RECONNECT_BACKOFF_MS channel arg.

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/b28ccc68-b8cb-4591-bddb-6418cc09a8ben%40googlegroups.com.


--
Mark D. Roth <ro...@google.com>
Software Engineer
Google, Inc.

Eddie Mon

unread,
Jun 22, 2022, 4:26:59 PMJun 22
to grpc.io
Thank You! That is exactly what I was looking for. 
Reply all
Reply to author
Forward
0 new messages