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

时间:2018-10-08 02:56:14

标签: ruby-on-rails heroku redis

我在Heroku上从Redis收到错误“达到最大客户端错误”,我不确定为什么会这样。我正在为后台工作人员使用Sidekiq,并且我的并发设置为5。我是否缺少某些东西导致连接中断?我正在使用免费的Redistogo计划,但我意识到它最多只能允许10个连接,但是我想知道为什么它最初会超过10个。

1 个答案:

答案 0 :(得分:-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