无法连接 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
EXPERTE
gefragt vor 8 Monaten75 Aufrufe
1 Antwort
0

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

profile picture
EXPERTE
beantwortet vor 8 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen