Sidekiq + Redistogo (在 Heroku 上) - ERR 达到的最大客户端数



我在 Heroku 上收到来自 Redis 的错误"ERR 最大客户端数",我不确定为什么会这样。我正在将 Sidekiq 用于后台工作者,并且我的并发性设置为 5。我是否缺少导致连接中断的内容?我在免费的 Redistogo 计划中,我意识到它最多只允许 10 个连接,但我想知道为什么它首先会超过 10 个。

看起来我在 Sidekiq 文档中找到了答案:

Heroku "ERR max number of clients reached"
You've hit the max number of Redis connections allowed by your plan.
Limit the number of redis connections per process in config/sidekiq.yml. For example, if you're on Redis To Go's free Nano plan and want to use the Sidekiq web client, you'll have to set the concurrency down to 3.
:concurrency:  3

最新更新