From 980c318f3f65662a03d74e8b61222539499f80ee Mon Sep 17 00:00:00 2001 From: Francesco Pantano Date: Wed, 5 Jun 2024 10:45:55 +0200 Subject: [PATCH] Wait for DB writes only on reads In this patch we change the value of mysql_wsrep_sync_wait to 1 to only wait on reads. Signed-off-by: Francesco Pantano --- templates/common/config/00-config.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/common/config/00-config.conf b/templates/common/config/00-config.conf index 50b78e43..587507a2 100644 --- a/templates/common/config/00-config.conf +++ b/templates/common/config/00-config.conf @@ -32,6 +32,11 @@ use_keystone_limits = {{ .QuotaEnabled }} connection = {{ .DatabaseConnection }} max_retries = -1 db_max_retries = -1 +# Wait for writes to complete when doing reads +# Relevant for multi-master deployments so that workers table, and possibly +# other tables, work as intended +# https://mariadb.com/docs/server/ref/mdb/system-variables/wsrep_sync_wait/ +mysql_wsrep_sync_wait = 1 [file] filesystem_store_datadir = /var/lib/glance/images