我在开发时在os x上使用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'
Run Code Online (Sandbox Code Playgroud)
我读了其他答案,说减少我给sidekiq的并发性以允许更多其他东西,但是
worker: bundle exec sidekiq -c 10
Run Code Online (Sandbox Code Playgroud)
它仍然无法正常工作
我正在使用Postgres.app
localhost中的数字/并发应该是什么?