我在使用Rails 4和Sidekiq开发环境的Mac电脑上遇到了以下警告。
10:13:39 worker.1 | 2014-09-22T07:13:39.857Z 86981 TID-oug0oog10 WARN: could not obtain a database connection within 5.000 seconds (waited 5.002 seconds)
10:13:39 worker.1 | 2014-09-22T07:13:39.857Z 86981 TID-oug0oog10 WARN: /Users/me/.rvm/gems/ruby-2.1.3/gems/activerecord-4.1.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:190:in `block in wait_poll'
我看到其他回答中提到要减少给Sidekiq的并发数,以便为其他事情留出更多的资源,但是
worker: bundle exec sidekiq -c 10
它仍然不起作用。
我正在使用Postgres.app。
在本地主机中,数字/并发应该是多少?