This implementation wraps the db method calls and retries the method if an attempt failed due to db connectivity issues. Defines 2 new configuration parameters viz sql_max_retries and sql_retry_interval (values default to 10 and 1 respectively).
This implementation does not have any overhead in the normal case, as opposed to MySQLPingListener implementation, which does a 'select 1' query every time a connection is checkout from the pool.
Reviewed: https:/ /review. openstack. org/5552 github. com/openstack/ glance/ commit/ 3f462fbf9a2b9cf e6ac39d87fe5b32 7ba82e9dac
Committed: http://
Submitter: Jenkins
Branch: master
commit 3f462fbf9a2b9cf e6ac39d87fe5b32 7ba82e9dac
Author: Unmesh Gurjar <email address hidden>
Date: Tue Mar 20 12:07:39 2012 +0530
Fixed db conn recovery issue. Fixes bug 954971.
This implementation wraps the db method calls and retries the method if an attempt failed due to db connectivity issues. Defines 2 new configuration parameters viz sql_max_retries and sql_retry_interval (values default to 10 and 1 respectively).
This implementation does not have any overhead in the normal case, as opposed to MySQLPingListener implementation, which does a 'select 1' query every time a connection is checkout from the pool.
Change-Id: I24240f22bca445 b9ab76a1594631b 5eaca393b4d