Was this page helpful?
Caution
You're viewing documentation for a previous version of ScyllaDB Enterprise. Switch to the latest stable version.
This document is a step-by-step procedure for upgrading from ScyllaDB Enterprise 2023.x.y to ScyllaDB Enterprise 2023.x.z (where “z” is the latest available version).
This guide covers upgrading ScyllaDB on Red Hat Enterprise Linux (RHEL), CentOS, Debian, and Ubuntu. See OS Support by Platform and Version for information about supported versions.
This guide also applies when you’re upgrading ScyllaDB Enterprise official image on EC2, GCP, or Azure.
A ScyllaDB Enterprise upgrade is a rolling procedure that does not require a full cluster shutdown. For each of the nodes in the cluster, you will:
Drain the node and backup the data
Check your current release
Backup the configuration file
Stop ScyllaDB
Download and install the new ScyllaDB packages
Start ScyllaDB
Validate that the upgrade was successful
Caution
Apply the following procedure serially on each node. Do not move to the next node before validating the node that you upgraded is up and running the new version.
During the rolling upgrade, it is highly recommended:
Not to use new 2023.x.z features.
Not to run administration functions, like repairs, refresh, rebuild or add or remove nodes.
Not to apply schema changes.
Before any major procedure, such as an upgrade, it is recommended to backup all the data to an external device. You can use ScyllaDB Manager for creating backups.
sudo cp -a /etc/scylla/scylla.yaml /etc/scylla/scylla.yaml.backup-src
Backup more config files.
for conf in $(cat /var/lib/dpkg/info/scylla-*server.conffiles /var/lib/dpkg/info/scylla-*conf.conffiles /var/lib/dpkg/info/scylla-*jmx.conffiles | grep -v init ); do sudo cp -v $conf $conf.backup-2.1; done
sudo service scylla-server stop
Before upgrading, check what version you are running now using scylla --version
. You should use
the same version in case you want to rollback the upgrade.
To upgrade ScyllaDB Enterprise:
Update the ScyllaDB Enterprise deb repo to 2023.x.
Install:
sudo apt-get clean all sudo apt-get update sudo apt-get dist-upgrade scylla-enterpriseAnswer ‘y’ to the first two questions.
Installing the New Version on Cloud
If you’re using the ScyllaDB official image (recommended), see the EC2/GCP/Azure Ubuntu Image tab for upgrade instructions. If you’re using your own image and installed ScyllaDB packages for Ubuntu or Debian, you need to apply an extended upgrade procedure:
Update the ScyllaDB Enterprise deb repo (see above).
Install the new ScyllaDB version with the additional scylla-enterprise-machine-image
package:
sudo apt-get clean all sudo apt-get update sudo apt-get dist-upgrade scylla-enterprise sudo apt-get dist-upgrade scylla-enterprise-machine-image
Run scylla_setup
without running io_setup
.
Run sudo /opt/scylladb/scylla-machine-image/scylla_cloud_io_setup
.
Before upgrading, check what version you are running now using scylla --version
. You should use
the same version in case you want to rollback the upgrade.
To upgrade:
Update the ScyllaDB Enterprise rpm repo to 2023.x.
Install:
sudo yum clean all sudo yum update scylla\* -y
Before upgrading, check what version you are running now using scylla --version
. You should use
the same version in case you want to rollback the upgrade.
There are two alternative upgrade procedures:
Upgrading ScyllaDB and simultaneously updating 3rd party and OS packages. It is recommended if you are running a ScyllaDB official image (EC2 AMI, GCP, and Azure images).
Upgrading ScyllaDB without updating any external packages - follow the instructions in the Debian/Ubuntu tab.
To upgrade ScyllaDB Enterprise and update 3rd party and OS packages (RECOMMENDED):
Choosing this upgrade procedure allows you to upgrade your ScyllaDB version and update the 3rd party and OS packages using one command.
Update the ScyllaDB Enterprise deb repo to 2023.x.
Load the new repo:
sudo apt-get update
Run the following command to update the manifest file:
cat scylla-enterprise-packages-<version>-<arch>.txt | sudo xargs -n1 apt-get install -y
Where:
<version>
- The ScyllaDB Enterprise version to which you are upgrading ( 2023.x.z ).
<arch>
- Architecture type: x86_64
or aarch64
.
The file is included in the ScyllaDB Enterprise packages downloaded in the previous step. The file location is
http://downloads.scylladb.com/downloads/scylla-enterprise/aws/manifest/scylla-enterprise-packages-<version>-<arch>.txt
.
Example:
cat scylla-enterprise-packages-2023.1.1-x86_64.txt | sudo xargs -n1 apt-get install -y
Note
Alternatively, you can update the manifest file with the following command:
sudo apt-get install $(awk '{print $1'} scylla-enterprise-packages-<version>-<arch>.txt) -y
sudo service scylla-server start
Check the cluster status with nodetool status
and make sure all nodes, including the one you just upgraded, are in UN status.
Use curl -X GET "http://localhost:10000/storage_service/scylla_release_version"
to check the ScyllaDB Enterprise version.
Check scylla-server log (by journalctl _COMM=scylla
) and /var/log/syslog
to validate there are no errors.
Check again after 2 minutes to validate no new issues are introduced.
Once you are sure the node upgrade is successful, move to the next node in the cluster.
Note
Execute the following commands one node at a time, moving to the next node only after the rollback procedure is completed successfully.
The following procedure describes a rollback from ScyllaDB Enterprise 2023.x.z to 2023.x.y. Apply this procedure if an upgrade from 2023.x.y to 2023.x.z failed before completing on all nodes.
ScyllaDB rollback is a rolling procedure that does not require a full cluster shutdown. For each of the nodes to rollback to 2023.x.y, you will:
Gracefully shutdown ScyllaDB
Downgrade to the previous release
Restore the configuration file
Restart ScyllaDB
Validate the rollback success
Caution
Apply the following procedure serially on each node. Do not move to the next node before validating the node that you upgraded is up and running the new version.
nodetool drain
sudo service scylla-server stop
Install:
sudo apt-get install scylla-enterprise=2023.x.y\* scylla-enterprise-server=2023.x.y\* scylla-enterprise-jmx=2023.x.y\* scylla-enterprise-tools=2023.x.y\* scylla-enterprise-tools-core=2023.x.y\* scylla-enterprise-kernel-conf=2023.x.y\* scylla-enterprise-conf=2023.x.y\* scylla-enterprise-python3=2023.x.y\* sudo apt-get install scylla-enterprise-machine-image=2023.x.y\* # only execute on AMI instance
Answer ‘y’ to the first two questions.
Install:
sudo yum downgrade scylla\*-2023.x.y-\* -y
sudo rm -rf /etc/scylla/scylla.yaml
sudo cp -a /etc/scylla/scylla.yaml.backup-src /etc/scylla/scylla.yaml
Restore more config files.
for conf in $(cat /var/lib/dpkg/info/scylla-*server.conffiles /var/lib/dpkg/info/scylla-*conf.conffiles /var/lib/dpkg/info/scylla-*jmx.conffiles | grep -v init ); do sudo cp -v $conf.backup-2.1 $conf; done
sudo systemctl daemon-reload
sudo service scylla-server start
Check the upgrade instructions above for validation. Once you are sure the node rollback is successful, move to the next node in the cluster.
Was this page helpful?