MySQL Gone Away Error

Bug #716652 reported by Rick Harris
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Medium
Rick Harris

Bug Description

If the registry runs long enough you'll end up with a MySQL Gone Away Error.

This is because MySQL, by default, will close a connection after 8 hours and SQLAlchemy keeps ConnectionPool connections open forever.

We can tell SA to periodically close the connections using the `pool_recycle` option.

A sensible default is probably 3600 (1 hour), though in production, if you know your MYSQL config, you probably want to set it to the full 8 hours.

Related branches

Changed in glance:
assignee: nobody → Rick Harris (rconradharris)
importance: Undecided → Medium
status: New → In Progress
Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: none → 2011.2
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.