我从 Heroku 上的 Redis 收到错误“ERR max number of clients reached”,我不确定这是为什么。我正在为后台工作人员使用 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
关于ruby-on-rails - Sidekiq + Redistogo(在 Heroku 上)- 达到 ERR 最大客户端数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52694809/