I have an application deployed on heroku. Sometimes background process raises the following error: "The task failed because of an error: could not obtain connection within 5.0 seconds. The max pool size is currently 1; consider increasing the pool size or timeout."
How can I increase pool size
or the timeout
?
Unfortunately I can't find anything useful in Mongoid documentation and sources.