无法连接 Neptune 集群且始终超时

0

【以下的问题经过翻译处理】 无论是通过位于同一个VPC和安全组中的lambda函数调用还是通过Neptune控制台创建的Notebook Jupyter EPL-Gremlin playground,我都遇到了连接超时的问题。错误信息过于笼统,我无法判断具体出了什么问题。根据监视和日志记录,Neptune在任何请求期间都没有受到影响。如果您对问题的处理有任何建议,那将非常有帮助。谢谢。

{'error': ConnectionError(MaxRetryError("HTTPSConnectionPool(host='{myWriterEndpoint}.us-west-2.neptune.amazonaws.com', port=8182): Max retries exceeded with url: /status (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fcd87d375d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))"))}

CDK 代码:

const vpc = new ec2.Vpc(this, "myVPC", {
      cidr: "10.0.0.0/16"
    });

    const clusterParams = new neptune.ClusterParameterGroup(
      this,
      "ClusterParams",
      {
        description: "Cluster parameter group",
        parameters: {
          neptune_enable_audit_log: "1",
          neptune_result_cache: "1",
        },
        family: ParameterGroupFamily.NEPTUNE_1_2,
      }
    );

    // Neptune
    const dbParams = new neptune.ParameterGroup(this, "DbParams", {
      description: "Db parameter group",
      parameters: {
        // 2 minute, 120,000 ms
        neptune_query_timeout: "120000",
      },
      family: ParameterGroupFamily.NEPTUNE_1_2,
    });

    const cluster = new neptune.DatabaseCluster(this, "DBName", {
      vpc,
      instanceType: neptune.InstanceType.T4G_MEDIUM,
      clusterParameterGroup: clusterParams,
      parameterGroup: dbParams,
      engineVersion: neptune.EngineVersion.V1_2_0_0,
    });
profile picture
专家
已提问 8 个月前71 查看次数
1 回答
0

【以下的回答经过翻译处理】 通过添加与我的VPC CIDR匹配的入站规则解决了问题。

profile picture
专家
已回答 8 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则