Gremlin server withRemote connection closed - how to reconnect automatically?

后端 未结 1 854
借酒劲吻你
借酒劲吻你 2021-01-14 07:31

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

相关标签:
1条回答
  • 2021-01-14 08:13

    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

    0 讨论(0)
提交回复
热议问题