java - Neptune/Gremlin RemoteConnectionException
问题描述
在从 AWS Lambda 调用 Neptune 服务器时,我经常看到这个问题(下面发布的异常详细信息)。
org.apache.tinkerpop.gremlin.process.remote.RemoteConnectionException: java.lang.RuntimeException: java.lang.RuntimeException: java.util.concurrent.TimeoutException: Timed out while waiting for an available host - check the client configuration and connectivity to the server if this message persists.
有时,我还会看到“对等方重置连接”异常。
我按照 Neptune 的最佳实践文档设置了 Gremlin Java 客户端,如下所示:
Cluster
.build()
.addContactPoint(NeptuneClusterEndpoint)
.port(8182)
.maxContentLength(655360)
.maxInProcessPerConnection(32)
.maxSimultaneousUsagePerConnection(32)
.enableSsl(true)
.create()
有谁知道为什么会发生这种情况以及如何解决这个问题?
解决方案
推荐阅读
- c - 使 fgets 跳过特殊字符
- html - 引导网格,中间内容粘在页面顶部
- android - 在用户按下呼叫按钮和用户开始听到呼叫声音之间获取事件
- javascript - Google Map API 不适用于 Angular 2
- amazon-web-services - S3 是否加密传输中的数据?
- python - python生成器中代码的执行何时停止?
- vba - 在枢轴vba中按年份分组
- php - ErrorException (E_ERROR) rawurlencode() 期望参数 1 是字符串,给定对象 '
- google-apps-script - 谷歌脚本自动范围保护
- android - SpongyCastle:确定密码时出错