Skip to content

Commit

Permalink
Wait for DB writes only on reads
Browse files Browse the repository at this point in the history
In this patch we change the value of mysql_wsrep_sync_wait to 1 to only
wait on reads.

Signed-off-by: Francesco Pantano <[email protected]>
  • Loading branch information
fmount committed Jun 5, 2024
1 parent 19097a5 commit 980c318
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions templates/common/config/00-config.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 980c318

Please sign in to comment.