Page MenuHomePhabricator

MySQL server has gone away
Open, Needs TriagePublicBUG REPORT

Description

Just throwing this task up here to finally have some documentation of a problem that has plagued me from the start. I've tried a lot of things to deal with this, most recently adding several options to the session initialization, but MySQL server continues to wander off on a fairly regular basis.

Maybe someday I'll solve this problem; until then, if anyone has suggestions, I'm all ears.

Event Timeline

This sounds like a connection pool issue. Something like https://stackoverflow.com/a/45078959/8171 might help prevent stale connections from being called in the first place.

This sounds like a connection pool issue. Something like https://stackoverflow.com/a/45078959/8171 might help prevent stale connections from being called in the first place.

I've tried adding pool_pre_ping and pool_recycle to the session config, but it's possible that I need to reduce pool_recycle even further. (I'm also not sure how to test whether those options are actually being applied. I'll keep plugging away at it.)