Standard Database upgrade
Upgrade your Aerospike Database cluster to gain access to the latest features and bug fixes. A rolling upgrade, the standard cluster upgrade process, involves upgrading one server node at a time and results in no downtime for the cluster. See Special upgrades and downgrades for important upgrade information relevant to specific versions.
Download the server package
- Manually download the server package from the Aerospike Downloads page.
- Read the release notes for the version you are downloading.
- You can automate server version downloads from the artifact repository. See the FAQ on downloads for details.
- Base URL:
https://download.aerospike.com/artifacts/aerospike-server-EDITION/SERVER-VERSION/
Download the server package and transfer it to the node. The name of the server package varies by version.
Aerospike Community, Enterprise, and Federal edition downloads are available for all supported Linux distributions, and use the following naming convention: aerospike-server-EDITION_VERSION_tools-TOOLS-VERSION_DISTRO_ARCHITECTURE.tgz
See Supported Linux versions to learn which Linux versions and distributions support your Aerospike release.
Stop the Aerospike service
Stop the Aerospike service as follows:
# On systemd Linux distributionssudo systemctl stop aerospike# On System V Linux distributionssudo /etc/init.d/aerospike stopExtract the server and tools package
To extract the contents of the package, run the following:
tar -xvf aerospike.tgzYou may need to delete the older release of Aerospike if you upgrade from a release prior to 3.3.y.z. To remove the packages, search for the old releases of aerospike-VERSION-server and aerospike-VERSION-tools.
For RPMs:
sudo rpm -qa | grep aerospikesudo rpm -e RPM_NAMEFor Debian packages:
sudo dpkg -l | grep aerospikesudo dpkg -r DPKG_NAMEInstall the new packages
See Supported Linux versions to learn which Linux versions and distributions support your Aerospike release.
Debian format
sudo dpkg -i aerospike-server-enterprise_6.2.0.0-1ubuntu20.04_arm64.debsudo dpkg -i aerospike-tools_8.1.0-ubuntu20.04_arm64.debRPM format
sudo rpm -Uvh aerospike-server-enterprise-6.2.0.0-1.el7.aarch64.rpmsudo rpm -Uvh aerospike-tools-7.4.0-1.el7.aarch64.rpmStart the Aerospike service
Restart the server, and wait until the server confirms that the node is ready.
# On systemd Linux distributionssudo systemctl start aerospike# On System V Linux distributionssudo /etc/init.d/aerospike startMonitor the cluster state
Prior to upgrading another node, verify that the node has re-joined the cluster by checking the following items:
- The cluster key is uniform across the cluster, see
cluster_key. - The cluster is the expected size, see
cluster_size.
This can be checked through asadm, asinfo or by tailing the logs.
After completing the upgrade across all nodes in the cluster, run asadm -e "info network" to verify that all the nodes have successfully upgraded to the correct version and that the cluster size is correct. You can look at asadm -e "info node" to check other statistics.
Admin> info network~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Network Information (2020-12-16 21:45:32 UTC)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Node| Node ID| IP| Build|Migrations|~~~~~~~~~~~~~~~~~~Cluster~~~~~~~~~~~~~~~~~~|Client| Uptime | | | | |Size| Key|Integrity| Principal| Conns|10.0.0.1:3000| BB9010016AE4202| 10.0.0.1:3000|C-5.3.0.1| 0.000 | 5|92DCF600367B|True |BB9050016AE4202| 2|00:07:4810.0.0.2:3000| BB9020016AE4202| 10.0.0.2:3000|C-5.3.0.1| 0.000 | 5|92DCF600367B|True |BB9050016AE4202| 2|00:07:4710.0.0.3:3000|*BB9030016AE4202| 10.0.0.3:3000|C-5.3.0.1| 0.000 | 5|92DCF600367B|True |BB9050016AE4202| 2|00:07:46Number of rows: 5