You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds ``pool_pre_ping`` for pessimistic disconnect handling. Helps to
reconnect to database from stalled connections from long-running
pods. Closesreanahub#58. Addresses reanahub#133.
Adds ``pool_pre_ping`` for pessimistic disconnect handling. Helps to
reconnect to database from stalled connections from long-running
pods. Closesreanahub#58. Addresses reanahub#133.
Following up from #132, if one issues a large number of
ping
queries, for example:$ for i in {{0..100}}; do reana-client ping; done
the DB connections seem to be kept in a rollback-like stage in between requests:
This is possibly related to keeping DB connections open in the Flask app.
Let's investigate whether DB sessions are properly closed/reused in between requests within the connection pool.
Observed on
master
; does not happen in production.P.S. See also
pool_recycle
timeout we may want to set, andpool_pre_ping=True
to revive them; see the old issue #58.The text was updated successfully, but these errors were encountered: