Hi,
I have setup a galera cluster with 3 nodes balanced by haproxy. For testing I have copied the db of our zabbix server to the cluster and noticed the following error in the logs:
3410:20121112:113014.718 [Z3005] query failed: [1213] Deadlock found when trying to get lock; try restarting transaction [commit;]
Google came up with a solution to have HAProxy setup so it always writes to a single node.
I guess this means changing the loadbalance policy on ha proxy?
Regards,
Oliver
In my experience, Zabbix doesn't like multi-master at all. I had to force HAproxy to only send requests to a single server and then failover if that one dies.
Even in that config, I still get deadlocks sometimes, but that seems to be a Zabbix 2.x bug. I see the same thing on stock MySQL & PostgreSQL.
--