[MDEV-24470] select version() takes 200 ms with Galera enabled Created: 2020-12-22  Updated: 2021-01-08  Resolved: 2021-01-08

Status: Closed
Project: MariaDB Server
Component/s: N/A
Affects Version/s: 10.3.27
Fix Version/s: N/A

Type: Bug Priority: Minor
Reporter: Gerwin Assignee: Unassigned
Resolution: Not a Bug Votes: 0
Labels: None
Environment:

RHEL 8, 2 CPU, 7 GB, SSD storage



 Description   

We recently saw a strange behaviour with 2 new test galera clusters. When Galera is enabled select version() takes 200ms, when we disable Galera it's like 0.00000 sec (which is normal).

We found out because we had some problems with very slow queries (+200 ms too) on a simple select WITHOUT joins on a table with 600 records. The database is like 500 Mb big.

So my guess the slow select version has something todo with it.

I tested it on some older clusters and there select version() is instant.

This is the galera config (25.3.31-1):

[galera]
wsrep_on = ON
wsrep_causal_reads = ON
wsrep_cluster_address = gcomm://node1,node3
wsrep_cluster_name = -test-db-cluster
wsrep_node_address = node2
wsrep_node_name = "db-node-2"
wsrep_provider = /usr/lib64/galera/libgalera_smm.so
wsrep_provider_options = "gcache.size=10G;gcs.fc_limit=120;gcs.fc_factor=0.8"
wsrep_slave_threads = 2
wsrep_sst_auth = "sstuser:xxxxxxxxx"
wsrep_sst_method = mariabackup



 Comments   
Comment by Gerwin [ 2020-12-22 ]

Ok, seems it has todo with latency between the 3 nodes. And doesn't looks like a bug... sorry!

Generated at Thu Feb 08 09:30:14 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.