【问题标题】:Sidekiq + Redistogo (on Heroku) - ERR max number of clients reachedSidekiq + Redistogo(在 Heroku 上) - 达到 ERR 最大客户端数
【发布时间】:2018-10-08 02:56:13
【问题描述】:
我从 Heroku 上的 Redis 收到错误“ERR max number of clients reached”,我不知道为什么会这样。我正在将 Sidekiq 用于后台工作人员,并且我将并发设置为 5。我是否遗漏了导致连接中断的东西?我正在使用免费的 Redistogo 计划,我意识到它最多只能允许 10 个连接,但我想知道为什么它首先会超过 10 个。
【问题讨论】:
标签:
ruby-on-rails
heroku
redis
【解决方案1】:
看起来我在 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