问题排查

本页介绍了各种错误场景,并提供了有关解决这些错误的指导。

连接错误场景

本部分介绍了实例可能会遇到的连接问题。

防火墙规则导致的连接错误

防火墙规则可能会阻止 Memorystore for Valkey 使用的端口,从而导致连接错误。您应允许列出两个实例的 Private Service Connect 端点的所有端口。如需详细了解这些端点,请参阅预留的网络地址

由组织政策导致的连接错误。

您可以设置组织政策,阻止 PSC 连接到 Memorystore for Valkey 实例。

如果您的组织政策使用 .restrictPrivateServiceConnectProducer 政策,请将 961333125034 文件夹编号列入许可名单,该文件夹专门用于 Memorystore for Valkey。例如:

name: organizations/Consumer-org-1/policies/compute.restrictPrivateServiceConnectProducer
spec:
    rules:
      - values:
          allowedValues:
          - under:folders/961333125034

如果您的组织政策使用 .disablePrivateServiceConnectCreationForConsumers 政策,您应允许列表 SERVICE_PRODUCERS。例如:

name: organizations/Consumer-org-1/policies/compute.disablePrivateServiceConnectCreationForConsumers
spec:
    rules:
      - values:
          allowedValues:
          - SERVICE_PRODUCERS