<div dir="ltr">I've got an app in production on Heroku. I'm using the "Crane" db, primarily for its cache.<div><br></div><div>As far as I can tell, Unicorn is set up to have 3 workers per dyno, and 10 connections in the pool. I've set that 10 as a config variable, and my Procfile is telling sidekiq to use a DB_POOL of 10 thus:</div>
<div><br></div><div>worker: env DB_POOL=$DB_POOL bundle exec sidekiq -q default</div><div><br></div><div>and concurrency in config/sidekiq.yml is also set to 10.<br></div><div><br></div><div>I'm *still* geting Sidekiq chucking ActiveRecord::ConnectionTimoutErrors like so:</div>
<div><br></div><div><h2 style="margin:0px 0px 10px;padding:0px;border:0px;outline:0px;font-size:12px;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;vertical-align:baseline;color:rgb(33,33,33);line-height:18px;text-align:left">
could not obtain a database connection within 5 seconds (waited 5.000126085 seconds). The max pool size is currently 5; consider increasing it.</h2><div style><br></div><div style>I have no idea what's happening - it's clearly only Sidekiq that's not got enough DB concurrency, but I've done everything recommended to alter it.</div>
<div style><br></div><div style>Any thoughts? This is happening frustratingly regularly now, and causing issues in production.</div><div style><br></div><div style>t.</div><div><br></div>-- <br>Tom Armitage<br><a href="http://infovore.org" target="_blank">http://infovore.org</a><br>
07813 060578
</div></div>