当我增加 sidekiq 并发时,它说我的池太小。但较小的数字有效

When I increase sidekiq concurrency, it says my pool is too small. But smaller number works

我对 sidekiq 有点陌生,但最近我设法让它工作得很好。但是,我注意到我需要将并发数从 5 增加到 20-25。当我编辑 sidekiq.yml 文件时,显示如下:

development:  
  :concurrency: 5
production:  
  :concurrency: 20
:queues:
  - default

从 5 到 25,它给我一个错误提示:

Your Redis connection pool is too small for Sidekiq to work. Your pool has 20 connections but really needs to have at least 27

这个错误具体指的是什么?我什至将 "production" 从 20 更改为 30,它仍然声称我的池有 20 个连接。

如果我正在增加并发,为什么突然变小了?任何澄清将不胜感激。

删除 Sidekiq 初始值设定项中的任何 Redis :size 参数。如果您愿意,Sidekiq 会自动调整池的大小。