Sidekiq - could not obtain a database connection within 5.000 seconds

前端 未结 3 960
遇见更好的自我
遇见更好的自我 2020-12-16 12:10

I get the following warning with Rails 4 and Sidekiq on os x on development

10:13:39 worker.1 | 2014-09-22T07:13:39.857Z 86981 TID-oug0oog10 WARN: could not          


        
3条回答
  •  有刺的猬
    2020-12-16 12:54

    I set database pool to sidekiq concurrency and now it works for me.

    bundle exec sidekiq -c 10
    

    in my database.yml

    development:
      adapter: postgresql
      ...
      host: localhost
      pool: 10
    

提交回复
热议问题