The following steps can be used to perform a rolling upgrade from MariaDB Galera Cluster 5.5 to MariaDB Galera Cluster 10.0. In a rolling upgrade, each node is upgraded individually, so the cluster is always operational. There is no downtime from the application's perspective.
First, before you get started:
gcache.size
For example: wsrep_provider_options="gcache.size=2G"
Before you upgrade, it would be best to take a backup of your database. This is always a good idea to do before an upgrade. We would recommend Percona XtraBackup.
Then, for each node, perform the following steps:
innodb_fast_shutdown
to 0
. It can be changed dynamically with SET GLOBAL
. For example: SET GLOBAL innodb_fast_shutdown=0;
sudo apt-get remove mariadb-galera-server galera
sudo yum remove MariaDB-Galera-server galera
sudo zypper remove MariaDB-Galera-server galera
my.cnf
. This includes removing any system variables or options that are no longer supported. mysql_upgrade
with the --skip-write-binlog
option. mysql_upgrade
does two things: mysql
database are fully compatible with the new version. When this process is done for one node, move onto the next node.
Note that when upgrading the Galera wsrep provider, sometimes the Galera protocol version can change. The Galera wsrep provider should not start using the new protocol version until all cluster nodes have been upgraded to the new version, so this is not generally an issue during a rolling upgrade. However, this can cause issues if you restart a non-upgraded node in a cluster where the rest of the nodes have been upgraded.
:
© 2019 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/upgrading-from-mariadb-galera-cluster-55-to-mariadb-galera-cluster-100/