Hi.
I have 3 nodes (4 CPUs, 12GB RAM each) running XtraDB 5.7.20 (Centos 7.4) and HAPROXY (Centos 7.4) woking as load balancing.
The cluster have a low use yet and sometimes I see in mysql log file notes about conflicts detected (see log bellow):
→ I can consider these notes under certain circumstances a normal condition, due the way the replication work ?
→ is there any way to avoid or decrease this conflict situations ?
→ I will lost data ?
I will appreciate any explanation about this situation.
BR
-----------mysqld.log--------------
*** Priority TRANSACTION:
TRANSACTION 34519027, ACTIVE 0 sec starting index read
mysql tables in use 1, locked 1
MySQL thread id 8, OS thread handle 140498179241728, query id 7341 System lock
*** Victim TRANSACTION:
TRANSACTION 34519026, ACTIVE 0 sec
mysql tables in use 1, locked 1
, undo log entries 1
MySQL thread id 737, OS thread handle 140497776350976, query id 7339 fd00:faca:0:a0::17 piwik3 wsrep: initiating replication for write set (-1)
INSERT INTO piwik3_option
(option_name, option_value, autoload) VALUES (‘lastTrackerCronRun’, ‘1519995375’, ‘0’) ON DUPLICATE KEY UPDATE option_value = ‘1519995375’
*** WAITING FOR THIS LOCK TO BE GRANTED:
RECORD LOCKS space id 56 page no 14 n bits 192 index PRIMARY of table piwik3
.piwik3_option
trx id 34519026 lock_mode X
2018-03-02T09:56:15.289850-03:00 8 [Note] WSREP: --------- CONFLICT DETECTED --------
2018-03-02T09:56:15.289868-03:00 8 [Note] WSREP: cluster conflict due to high priority abort for threads:
2018-03-02T09:56:15.289878-03:00 8 [Note] WSREP: Winning thread:
THD: 8, mode: applier, state: executing, conflict: no conflict, seqno: 3563224
SQL: (null)
2018-03-02T09:56:15.289887-03:00 8 [Note] WSREP: Victim thread:
THD: 737, mode: local, state: committing, conflict: no conflict, seqno: -1
SQL: INSERT INTO piwik3_option
(option_name, option_value, autoload) VALUES (‘lastTrackerCronRun’, ‘1519995375’, ‘0’) ON DUPLICATE KEY UPDATE option_value = ‘1519995375’