ruby - ActiveRecord::ConnectionTimeoutError w/ rails, sidekiq & postgresql -
i have rails application running postgresql , sidekiq. when scheduling big amount of background jobs take ~20 seconds each finish next error
activerecord::connectiontimeouterror: not obtain database connection within 5.000 seconds (waited 5.097 seconds)
in database.yml
file have specified pool of 100
. in postgres config have set max_connections
200
(as there other applications using postgres). seems should avoid problem not.
ideas?
ruby-on-rails ruby database postgresql sidekiq
No comments:
Post a Comment