Remove overwriting the default value of db_max_retries.
Remove overwriting the default value of db_max_retries, instead use default value defined by oslo.db which is 20. Adjust the default value of db_max_retries in the release note and sample configuration file. Closes-Bug: #1671629 Change-Id: I1e5f632d687c1cebab895cc91958d502b9fce884
This commit is contained in:
parent
e2e5340981
commit
66b0bcfd08
@ -1251,7 +1251,7 @@
|
||||
# Maximum retries in case of connection error or deadlock
|
||||
# error before error is raised. Set to -1 to specify an
|
||||
# infinite retry count. (integer value)
|
||||
#db_max_retries = 5
|
||||
#db_max_retries = 20
|
||||
|
||||
|
||||
[deploy]
|
||||
|
@ -26,6 +26,3 @@ opts = [
|
||||
|
||||
def register_opts(conf):
|
||||
conf.register_opts(opts, group='database')
|
||||
# Change the oslo_db side default to 5
|
||||
conf.import_opt('db_max_retries', 'ironic.db.api', group='database')
|
||||
conf.set_default('db_max_retries', 5, group='database')
|
||||
|
@ -5,10 +5,8 @@ fixes:
|
||||
features:
|
||||
- Adds DBDeadlock handling which may improve stability when using Galera.
|
||||
See https://bugs.launchpad.net/ironic/+bug/1639338. Number of retries
|
||||
depends on the configuration option ``[database]db_max_retries`` which
|
||||
programmatically defaults to 5.
|
||||
depends on the configuration option ``[database]db_max_retries``.
|
||||
upgrade:
|
||||
- All DB API methods doing database writes now retry on deadlock. The
|
||||
``[database]db_max_retries`` configuration option specifies the maximum
|
||||
number of times to retry, and can be customised if necessary. It is 5 by
|
||||
default.
|
||||
number of times to retry, and can be customised if necessary.
|
Loading…
Reference in New Issue
Block a user