contribsys / faktory_worker_ruby

Faktory worker for Ruby
GNU Lesser General Public License v3.0
214 stars 31 forks source link

0/ 20 connections available - bump connection pool amount? #87

Open Deekor opened 6 months ago

Deekor commented 6 months ago

Referencing https://github.com/contribsys/faktory/issues/455

The bump to 20 has been working great, but as our system traffic continues to scale we've started encountering timeouts again:

ConnectionPool::TimeoutError: Waited 1 sec, 0/20 available

Perhaps allow this pool size to be customized by an ENV variable on our end?

mperham commented 6 months ago

It's possible something's wrong. Pushing a job should be very fast. What's your puma concurrency/thread count? Approx how many jobs per second is one puma process pushing?