[MXS-4949] after some time, all queries becomes slow when going through maxscale Created: 2024-01-22  Updated: 2024-02-05

Status: Needs Feedback
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: 22.08.4
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: Rick Pizzi Assignee: markus makela
Resolution: Unresolved Votes: 0
Labels: None


 Description   

After some time since start, all queries going through the write service (see config below) become slow, even a show create table can take over 100ms.
A process restart fixes the issue.
While this happens, there is one thread using an entire CPU even in absence of traffic.

Attaching core file.

 
[maxscale]
threads=auto
writeq_high_water=32M
writeq_low_water=512k
log_info=false
 
 
[db-rep02]
type=server
address=<REDACTED>
port=3306
protocol=MariaDBBackend
 
[db-rep05]
type=server
address=<REDACTED>
port=3306
protocol=MariaDBBackend
 
[MariaDB-Monitor]
type=monitor
module=mariadbmon
servers=db-rep02,db-rep05
user=maxscale
password=<REDACTED>
monitor_interval=2000ms
auto_failover=true
auto_rejoin=false
replication_user=db02replication
replication_password=<REDACTED>
enforce_read_only_slaves=true
cooperative_monitoring_locks = majority_of_running
 
[Read-Only-Service]
type=service
router=readconnroute
servers=db-rep02,db-rep05
user=maxscale
password=<REDACTED>
router_options=slave
connection_timeout=0s
connection_keepalive=200s
 
[Write-Service]
type=service
router=readconnroute
servers=db-rep02,db-rep05
user=maxscale
password=<REDACTED>
router_options=master
enable_root_user=1
connection_timeout=0s
connection_keepalive=200s
 
[Read-Write-Service]
type=service
router=readwritesplit
use_sql_variables_in=master
servers=db-rep02,db-rep05
user=maxscale
password=<REDACTED>
prune_sescmd_history=true
disable_sescmd_history=false
max_sescmd_history=100
causal_reads=global
causal_reads_timeout=1s
max_slave_replication_lag=5s
connection_timeout=0s
connection_keepalive=200s
 
 
[Read-Only-Listener]
type=listener
service=Read-Only-Service
protocol=MariaDBClient
address=0.0.0.0
port=4008
 
[Write-Listener]
type=listener
service=Write-Service
protocol=MariaDBClient
address=0.0.0.0
port=4006
 
[Read-Write-Listener]
type=listener
service=Read-Write-Service
protocol=MariaDBClient
address=0.0.0.0
port=4007



 Comments   
Comment by markus makela [ 2024-01-25 ]

May be a duplicate of MXS-4726.

Generated at Thu Feb 08 04:32:18 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.