It is very likely to get 'deadlock' updating common records such as
quotas, usages, reservations and metadata. All of these things are
API-dependent. So, add wrappers, that retries request on 'deadlock'
exceptions.
Also, set database config opt "max_pool_size" to '40' instead of having
default value - '5'. It allows to keep upto 40 SQL connection alive at
once.
Reviewed: https:/ /review. openstack. org/211484 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=ab05b5c4651 f400b7aaab803be 4ace8c6e0bc114
Committed: https:/
Submitter: Jenkins
Branch: master
commit ab05b5c4651f400 b7aaab803be4ace 8c6e0bc114
Author: Valeriy Ponomaryov <email address hidden>
Date: Tue Aug 11 12:53:56 2015 +0300
Add retries for deadlock-vulnerable DB methods
It is very likely to get 'deadlock' updating common records such as
quotas, usages, reservations and metadata. All of these things are
API-dependent. So, add wrappers, that retries request on 'deadlock'
exceptions.
Also, set database config opt "max_pool_size" to '40' instead of having
default value - '5'. It allows to keep upto 40 SQL connection alive at
once.
Change-Id: Ia6ec09d4617191 c51ad95dd6d9f05 3141ec1c4c4
Closes-Bug: #1483604