【问题标题】:Why do I see connection timeouts every 2 minutes to my Redis instance?为什么我每 2 分钟都会看到与我的 Redis 实例的连接超时?
【发布时间】:2018-01-03 08:14:54
【问题描述】:

我正在 AWS Elasticache 上运行 cache.t2.micro Redis 实例。我目前只是使用3.2的默认参数。

我正在使用节点redis module 进行连接,只是为了拥有一个发布/订阅系统。

由于某种原因,每 2 分 11 秒,我看到

2017-07-27-14:16:05 0|server   | Error: Redis connection to my-redis-instance:6379 failed - connect ETIMEDOUT my-redis-ip:6379
2017-07-27-14:16:05 0|server   |     at Object.exports._errnoException (util.js:1016:11)
2017-07-27-14:16:05 0|server   |     at exports._exceptionWithHostPort (util.js:1039:20)

我查看了 Redis 参数,timeout 设置为 0。

什么会破坏这个连接?我确定这是某处的配置设置...但是什么?

【问题讨论】:

    标签: node.js redis amazon-elasticache


    【解决方案1】:

    原来问题在于 Redis 服务器不在适当的安全组中。初始连接尝试失败只需要大约 2m!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-11-21
      • 2023-03-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-11-26
      相关资源
      最近更新 更多