Best Practice Pool config #3714
Replies: 2 comments
-
| 
         Once again, I just had a user complain the app was spinning and spinning when he tried to do a copy action. I closed all the open connections in Digital Ocean and it magically started working! Would love some help on this one because this is not sustainable.  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         Just had this issue bite us in the butt again today!! Some queries work working and some were not and I could not figure out why. Eventually I saw something about a "lock" error and that instantly made me remember to go out to Digital Ocean and kill all the open connections and once again, everything is working!  | 
  
Beta Was this translation helpful? Give feedback.
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