Continuent Tungsten is one of the few all-in-one solutions for
MySQL high availability. In this post I will show you how to
automate the upgrade process using Ansible. I will walk you
through the individual tasks and, finally, give you the complete
playbook.
We will use a rolling approach, upgrading the slaves first, and
finally upgrading the former master. There is no need for a
master switch, as the process is transparent to the application.
I am assuming you are using the .ini based installation method.
If you are still using staging host, I suggest you update your
set up.
Pre tasks
The first step is ensuring the cluster is healthy, because we
don’t want to start taking nodes offline unless we are sure the
cluster is in good shape. One way of doing that is by using the
built-in script tungsten_monitor. When we run the playbook, we
only need to validate the cluster status on one node, so I am
adding …
[Read more]