Severalnines ClusterControl is an application that allows you to deploy, manage, monitor, and scale several types of database clusters (MySQL, Percona XtraDB, MariaDB, MongoDB).

Installation can’t possibly be easier — all you have to do is to use a configurator tool directly on the Severalnines website and answer several questions about your infrastructure.  This will produce a script that you’ll have to upload on your controller host.  Once run, the script takes care of everything, installing all the necessary software on both controller and cluster nodes.  The only prerequisite is that you use the same OS for every host, and you previously set up SSH pubkey authentication between controller and cluster nodes.

Once installed, ClusterControl provides a very convenient way to manage your cluster from a web interface while the monitoring agent (CMON) controls your cluster.

Here we’ll see how to update the ClusterControl application to the latest version.  All the operations that follow must be done on the controller host.

Severalnines provides an useful script, called s9s_upgrade_cmon, to perform the update.  First, log out from the ClusterControl web UI.  Then download the script from the repository via Git:

# git clone https://github.com/severalnines/s9s-admin.git

Navigate to the ccadmin directory:

# cd /root/s9s-admin/ccadmin

and run the upgrade script:

# s9s_upgrade_cmon --latest --backup-db

The options passed to the script force an upgrade to the latest version, and also save a copy of the ClusterControl configuration in /root/s9s_backup/s9s_backup_[timestamp] before updating.  So should the update not be successful, ClusterControl can be restored from the backup by running the command:

# s9s_upgrade_cmon --restore all -d /root/s9s_backup/s9s_backup_YYYY-MM-DD-HH_MM_SS

Remember that starting with v1.2.9, the web server needs to connect to the controller on TCP port 9500.

0 réponses

Laisser un commentaire

Participez-vous à la discussion?
N'hésitez pas à contribuer!

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.