Inherit default galera_wait_timeout value from openstack_db_connection_recycle_time

Set a new default value for ``galera_wait_timeout`` which is inherited from global ``openstack_db_connection_recycle_time``.

These variables are directly related, it would cause errors when ``galera_wait_timeout`` is lower than ``openstack_db_connection_recycle_time``.
From the other hand, I don't see any reason for ``galera_wait_timeout`` to be higher than ``openstack_db_connection_recycle_time`` in most cases.

Change-Id: I9450912ec7960a8ab713517532164cab52628b30
This commit is contained in:
Damian Dabrowski 2021-11-26 12:10:37 +01:00
parent d9a21b1433
commit b79574382b
2 changed files with 3 additions and 1 deletions

View File

@ -98,7 +98,7 @@ galera_max_heap_table_size: 32M
galera_tmp_table_size: 32M
galera_file_limits: 65535
galera_wait_timeout: 3600
galera_wait_timeout: "{{ openstack_db_connection_recycle_time | default('600') }}"
# Increase this value if large SST transfers cause mysql startup to fail due
# to timeout
galera_startup_timeout: 1800

View File

@ -0,0 +1,2 @@
other:
- Set a new default value for ``galera_wait_timeout`` which is inherited from global ``openstack_db_connection_recycle_time``.