Comments on: Notes on “5 Tips for migrating your MySQL server to a Galera Cluster” https://shlomi-noach.github.io/blog/mysql/notes-on-5-tips-for-migrating-your-mysql-server-to-a-galera-cluster Blog by Shlomi Noach Tue, 14 Apr 2015 02:49:24 +0000 hourly 1 https://wordpress.org/?v=5.3.3 By: umar https://shlomi-noach.github.io/blog/mysql/notes-on-5-tips-for-migrating-your-mysql-server-to-a-galera-cluster/comment-page-1#comment-314548 Tue, 14 Apr 2015 02:49:24 +0000 https://shlomi-noach.github.io/blog/?p=5874#comment-314548 I had an experience where triggers to jomla jevents module with autoincrement crashed my 2 node mariadb cluster (10.0)

]]>
By: shlomi https://shlomi-noach.github.io/blog/mysql/notes-on-5-tips-for-migrating-your-mysql-server-to-a-galera-cluster/comment-page-1#comment-149433 Mon, 17 Dec 2012 11:06:50 +0000 https://shlomi-noach.github.io/blog/?p=5874#comment-149433 Hi Henrik,

That explains it. Your discussion of triggers was unrelated to Galera. Thanks!

]]>
By: Henrik Ingo https://shlomi-noach.github.io/blog/mysql/notes-on-5-tips-for-migrating-your-mysql-server-to-a-galera-cluster/comment-page-1#comment-149418 Mon, 17 Dec 2012 10:38:41 +0000 https://shlomi-noach.github.io/blog/?p=5874#comment-149418 Hi Shlomi

I must have been unclear. I tried to make it clear that triggers work just fine (as do events). However, my experience with people using triggers (and especially events) is that most people expect them to do something else than they actually do. This experience is already from classic MySQL replication and I have simply continued to advocate the same advice for Galera users: Don’t use features that you don’t understand. (For the same reasons, I discourage most people from using Pacemaker or SANs too…)

In the case of events this is particularly easy to understand: Most people expect an event to fire only once. In reality it will fire on each node. I have also seen attempts to manage this so that an event would fire only on the master, and then if there is a failover your scripts will enable and disable the event on nodes so that it will again be enabled only on the new master. This imo only makes things worse…

Still, it would be wrong to say that events (or triggers) don’t work with MySQL replication, or with Galera, because they work just fine. The problem is just that most people don’t understand what will actually happen if you use them.

]]>