在开发中,我在Rails 4和Sidekiq上出现以下警告
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
localhost中的数字/并发性应如何?