【问题标题】:Heroku: What happens when my Redis connection are all used?Heroku:当我的 Redis 连接全部使用时会发生什么?
【发布时间】:2014-09-22 21:40:09
【问题描述】:

我将 Redis 用于队列和其他一些简单的事情。 resque 是我将使用 Redis 的其中之一,我的问题是,当使用 resque 时我的 10 个连接都被使用时会发生什么?

它会等到其中一个完成并进入 Que 吗?或者当我的 10 个连接都在使用时它会立即失败。

【问题讨论】:

    标签: heroku redis resque websub


    【解决方案1】:

    如果 Redis 配置的 maxclients 限制为 10,则任何新的连接尝试都会收到错误 ERR max number of clients reached。 Resque 将尝试重新连接 3 次,如果达到最大重新连接尝试次数,则会引发错误。可以看代码here

    【讨论】:

      猜你喜欢
      • 2012-04-17
      • 2014-03-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-20
      • 1970-01-01
      • 2016-11-11
      • 1970-01-01
      相关资源
      最近更新 更多