Hello.
I am using a 3 node Mariadb cluster and before that I have a Maxscale Proxy installed.
So far everything works quite well.
But I keep getting the error message in the Zabbix interface :
Error in query [COMMIT] [Deadlock found when trying to get lock; try restarting transaction] [zabbix. php:17 → require_once() → ZBase->run() → ZBase->authenticateUser() → CWebUser:: checkAuthentication() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → DBend() → DBcommit() → DBexecute() → trigger_error() in include/db. inc.php:362]
Here ist the Mariadb Galera Configuration from node1
Here the Maxscale.cnf
Can someone help me what this error is and how I can possibly fix it?
I am using a 3 node Mariadb cluster and before that I have a Maxscale Proxy installed.
So far everything works quite well.
But I keep getting the error message in the Zabbix interface :
Error in query [COMMIT] [Deadlock found when trying to get lock; try restarting transaction] [zabbix. php:17 → require_once() → ZBase->run() → ZBase->authenticateUser() → CWebUser:: checkAuthentication() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → DBend() → DBcommit() → DBexecute() → trigger_error() in include/db. inc.php:362]
Here ist the Mariadb Galera Configuration from node1
[galera]
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
datadir = /var/lib/mysql
binlog_format=ROW
default-storage-engine=innodb
innodb_autoinc_lock_mode=2
bind-address=0.0.0.0
# Galera Provider Configuration
wsrep_on=ON
wsrep_provider=/usr/lib/galera/libgalera_smm.so
# Galera Cluster Configuration
wsrep_cluster_name="zabbix_cluster"
wsrep_cluster_address="gcomm://***,***,***"
# Galera Synchronization Configuration
wsrep_sst_method=rsync
# Galera Node Configuration
wsrep_node_address="*****"
wsrep_node_name="****"
wsrep_retry_autocommit=3
innodb_lock_wait_timeout=10
innodb_deadlock_detect=OFF
wsrep_sync_wait=1
wsrep_slave_threads=4
wsrep_certify_nonPK=1
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
datadir = /var/lib/mysql
binlog_format=ROW
default-storage-engine=innodb
innodb_autoinc_lock_mode=2
bind-address=0.0.0.0
# Galera Provider Configuration
wsrep_on=ON
wsrep_provider=/usr/lib/galera/libgalera_smm.so
# Galera Cluster Configuration
wsrep_cluster_name="zabbix_cluster"
wsrep_cluster_address="gcomm://***,***,***"
# Galera Synchronization Configuration
wsrep_sst_method=rsync
# Galera Node Configuration
wsrep_node_address="*****"
wsrep_node_name="****"
wsrep_retry_autocommit=3
innodb_lock_wait_timeout=10
innodb_deadlock_detect=OFF
wsrep_sync_wait=1
wsrep_slave_threads=4
wsrep_certify_nonPK=1
[maxscale]
threads=auto
admin_host=0.0.0.0
admin_port=8989
admin_secure_gui=false
[Galera-Monitor]
type=monitor
module=galeramon
servers=srv-zbx-k-db01,srv-zbx-h-db02,srv-zbx-m-db03
user=maxscale_user
password=*******
monitor_interval=2s
disable_master_failback=true
available_when_donor=true
[srv-zbx-k-db01]
type=server
address=****
port=3306
protocol=MariaDBBackend
[srv-zbx-h-db02]
type=server
address=*****
port=3306
protocol=MariaDBBackend
[srv-zbx-m-db03]
type=server
address=****
port=3306
protocol=MariaDBBackend
[Galera-Service]
type=service
router=readconnroute
router_options=synced
servers=srv-zbx-k-db01,srv-zbx-h-db02,srv-zbx-m-db03
user=maxscale_user
password=******
[Galera-Listener]
type=listener
service=Galera-Service
protocol=MariaDBClient
address=0.0.0.0
port=3306
threads=auto
admin_host=0.0.0.0
admin_port=8989
admin_secure_gui=false
[Galera-Monitor]
type=monitor
module=galeramon
servers=srv-zbx-k-db01,srv-zbx-h-db02,srv-zbx-m-db03
user=maxscale_user
password=*******
monitor_interval=2s
disable_master_failback=true
available_when_donor=true
[srv-zbx-k-db01]
type=server
address=****
port=3306
protocol=MariaDBBackend
[srv-zbx-h-db02]
type=server
address=*****
port=3306
protocol=MariaDBBackend
[srv-zbx-m-db03]
type=server
address=****
port=3306
protocol=MariaDBBackend
[Galera-Service]
type=service
router=readconnroute
router_options=synced
servers=srv-zbx-k-db01,srv-zbx-h-db02,srv-zbx-m-db03
user=maxscale_user
password=******
[Galera-Listener]
type=listener
service=Galera-Service
protocol=MariaDBClient
address=0.0.0.0
port=3306
Can someone help me what this error is and how I can possibly fix it?
Comment