neutron-lib/neutron_lib/db
LIU Yulong ed62a06a53 Make the DB retry mechanism more robust
Currently in the worst case retry interval is:
[0.1, 0.2, 0.4, 0.8, 1.6, 3.2, 6.4, 10, 10, 10]
This may cause some neutron DB action fail, and result an
API 500/40X error, for instance, the IP allocation get a
large failure chance with such config.

After this change, the worst case retry interval will look
something like this:
[0.5, 1, 2, 4, 8, 10, 10, ... 10]

So, for the new value 20 and 0.5, in the worst case the total
time cost will be 165.5s. For the old config, it's  42.7s. It's
not too radical for the new retry input params. And we get a
higher rate of API success.

Change-Id: I5ad139bdfb3ae125658b36d05f85f139a1b47bee
Closes-Bug: #1777968
2018-08-11 17:34:28 +08:00
..
__init__.py Add pagination helpers 2016-03-18 21:41:41 -04:00
api.py Make the DB retry mechanism more robust 2018-08-11 17:34:28 +08:00
constants.py rehome availability zone API def 2017-08-04 10:51:43 -06:00
model_base.py Base DB: rehome model_base 2016-08-19 08:47:37 -04:00
model_query.py rehome model_query and its dependencies 2018-04-20 06:18:11 -06:00
utils.py rehome used db utils 2018-03-28 13:24:47 -06:00