commit 5b7e61c82f95187691000b4749ed8307df0766da
Author: Roman Podoliaka <email address hidden>
Date: Mon Mar 17 18:38:56 2014 +0200
Dispose db connections pool on disconnect
When a disconnect happens (e.g. when VIP moves to another node), all
existing connections in the pool become invalid. There is no sense to
check every single connection in the pool, as this may take a long
time (e.g. when python-mysqldb driver is used with eventlet green
threads, there is no context switch on db IO, so the whole process is
blocked until socket read times out). Dispose all connections in the
pool when disconnect is detected, they will be recreated on demand
then.
Reviewed: https:/ /review. openstack. org/81225 /git.openstack. org/cgit/ openstack/ oslo-incubator/ commit/ ?id=5b7e61c82f9 5187691000b4749 ed8307df0766da
Committed: https:/
Submitter: Jenkins
Branch: master
commit 5b7e61c82f95187 691000b4749ed83 07df0766da
Author: Roman Podoliaka <email address hidden>
Date: Mon Mar 17 18:38:56 2014 +0200
Dispose db connections pool on disconnect
When a disconnect happens (e.g. when VIP moves to another node), all
existing connections in the pool become invalid. There is no sense to
check every single connection in the pool, as this may take a long
time (e.g. when python-mysqldb driver is used with eventlet green
threads, there is no context switch on db IO, so the whole process is
blocked until socket read times out). Dispose all connections in the
pool when disconnect is detected, they will be recreated on demand
then.
Closes-Bug: #1288438
Change-Id: Ia357da2b3092d3 06a86b6d1787bab 374a335f28c