From 0b94df86a6e8a8b17d02dd0552a6324a200cd020 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Tue, 19 Mar 2024 16:46:46 +0100 Subject: [PATCH] Make value for SET SESSION `wsrep_sync_wait` configurable --- pkg/icingadb/db.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/icingadb/db.go b/pkg/icingadb/db.go index 4ff3e0dd..91901608 100644 --- a/pkg/icingadb/db.go +++ b/pkg/icingadb/db.go @@ -54,6 +54,10 @@ type Options struct { // MaxRowsPerTransaction defines the maximum number of rows per transaction. // The default is 2^13, which in our tests showed the best performance in terms of execution time and parallelism. MaxRowsPerTransaction int `yaml:"max_rows_per_transaction" default:"8192"` + + // WsrepSyncWait defines which kinds of SQL statements catch up all pending sync between nodes first, see: + // https://mariadb.com/kb/en/galera-cluster-system-variables/#wsrep_sync_wait + WsrepSyncWait int `yaml:"wsrep_sync_wait" default:"7"` } // Validate checks constraints in the supplied database options and returns an error if they are violated.