Best Practice Pool config #3714
Unanswered
mdodge-ecgrow
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a best practice Pool config out there somewhere for this library? Everytime I do any searching, they always say "use what works best for your situation". But I just want it to work! We've been fighting with this for several months now and it mostly works. I can't tell you how many iterations of the pool config or opening/closing/releasing/destroying connections we have tried.
But after a month or two go by, it seems like the stale/idle connections build up and eventually calls start silently failing and no one can figure out why things aren't working. Then I go and kill all the active database connections (on Digital Ocean). And magically everything just starts working again.
Here is what I currently have for our pool config:
I left the comments in so you can see what we've tried.
Like I said earlier we are using Digital Ocean with a managed MySQL DB.
And this is how we use it in the app:
Beta Was this translation helpful? Give feedback.
All reactions