I am using withRemote
to connect my java application to gremlin server running in AWS with dynamodb storage backend. I am getting connection timeout after few s
I feel like this problem is already solved with connection.keepAlive
configuration option. It defaults to 180 seconds so it's longer than your timeout of 60 seconds in your load balancer which is why it gives up.
That said, the driver should be reconnecting on its own. It's constantly trying to do that given the connectionPool.reconnectInterval
but perhaps there is a condition where you're quickly exhausting all the connections to the point of getting that error....not sure. Either way, hopefully the