Skip to content

Commit

Permalink
Wait for DB writes to propagate (causality checks)
Browse files Browse the repository at this point in the history
Fix some inconsistencies in multi-master mode (based on
openstack-k8s-operators/cinder-operator#392)

Jira: OSPRH-7369
  • Loading branch information
gthiemonge committed May 29, 2024
1 parent 22ea0a3 commit e17640c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/octavia/config/octavia.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ default_listener_tls_versions=TLSv1.2,TLSv1.3
default_pool_tls_versions=TLSv1.2,TLSv1.3
[database]
connection = {{ .DatabaseConnection }}
# Wait for writes to complete when doing a read, update, or insert
# Relevant for multi-master deployments so that workers table works as intended
# https://mariadb.com/docs/server/ref/mdb/system-variables/wsrep_sync_wait/
mysql_wsrep_sync_wait = 7
[health_manager]
health_update_threads=4
stats_update_threads=4
Expand Down
4 changes: 4 additions & 0 deletions templates/octaviaamphoracontroller/config/octavia.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ graceful_shutdown_timeout=600
[api_settings]
[database]
connection = {{ .DatabaseConnection }}
# Wait for writes to complete when doing a read, update, or insert
# Relevant for multi-master deployments so that workers table works as intended
# https://mariadb.com/docs/server/ref/mdb/system-variables/wsrep_sync_wait/
mysql_wsrep_sync_wait = 7
[health_manager]
heartbeat_key={{ .HeartbeatKey }}
health_update_threads=4
Expand Down
4 changes: 4 additions & 0 deletions templates/octaviaapi/config/octavia.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ default_listener_tls_versions=TLSv1.2,TLSv1.3
default_pool_tls_versions=TLSv1.2,TLSv1.3
[database]
connection = {{ .DatabaseConnection }}
# Wait for writes to complete when doing a read, update, or insert
# Relevant for multi-master deployments so that workers table works as intended
# https://mariadb.com/docs/server/ref/mdb/system-variables/wsrep_sync_wait/
mysql_wsrep_sync_wait = 7
[health_manager]
health_update_threads=4
stats_update_threads=4
Expand Down

0 comments on commit e17640c

Please sign in to comment.