Skip to content

Commit c80b32f

Browse files
Merge pull request #312 from gthiemonge/fix-db
Wait for DB writes to propagate (causality checks)
2 parents 22ea0a3 + e17640c commit c80b32f

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

templates/octavia/config/octavia.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ default_listener_tls_versions=TLSv1.2,TLSv1.3
1212
default_pool_tls_versions=TLSv1.2,TLSv1.3
1313
[database]
1414
connection = {{ .DatabaseConnection }}
15+
# Wait for writes to complete when doing a read, update, or insert
16+
# Relevant for multi-master deployments so that workers table works as intended
17+
# https://mariadb.com/docs/server/ref/mdb/system-variables/wsrep_sync_wait/
18+
mysql_wsrep_sync_wait = 7
1519
[health_manager]
1620
health_update_threads=4
1721
stats_update_threads=4

templates/octaviaamphoracontroller/config/octavia.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ graceful_shutdown_timeout=600
88
[api_settings]
99
[database]
1010
connection = {{ .DatabaseConnection }}
11+
# Wait for writes to complete when doing a read, update, or insert
12+
# Relevant for multi-master deployments so that workers table works as intended
13+
# https://mariadb.com/docs/server/ref/mdb/system-variables/wsrep_sync_wait/
14+
mysql_wsrep_sync_wait = 7
1115
[health_manager]
1216
heartbeat_key={{ .HeartbeatKey }}
1317
health_update_threads=4

templates/octaviaapi/config/octavia.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ default_listener_tls_versions=TLSv1.2,TLSv1.3
1212
default_pool_tls_versions=TLSv1.2,TLSv1.3
1313
[database]
1414
connection = {{ .DatabaseConnection }}
15+
# Wait for writes to complete when doing a read, update, or insert
16+
# Relevant for multi-master deployments so that workers table works as intended
17+
# https://mariadb.com/docs/server/ref/mdb/system-variables/wsrep_sync_wait/
18+
mysql_wsrep_sync_wait = 7
1519
[health_manager]
1620
health_update_threads=4
1721
stats_update_threads=4

0 commit comments

Comments
 (0)