Upgrading from Community to Enterprise
Aerospike Enterprise Edition includes additional features and provides access to tested and certified builds, hot patches and 24x7 Enterprise Support. To see all other benefits of using the Enterprise Edition, see Products Pricing.
Use the following steps to upgrade a cluster of community-version nodes to the enterprise version. For the purposes of upgrading, you can add an enterprise node to a cluster of community nodes.
Perform the following steps on each node, one node at a time.
Check migrations
Verify that the cluster is not migrating data before you stop one of the nodes. Run the following command to check migration status:
# Migrations are complete when all `migrate_progress_recv` and# `migrate_progress_send` values return 0.asadm -e "show stat like migrate_tx_partitions_active migrate_tx_partitions_remaining migrate_rx_partitions_active migrate_rx_partitions_remaining migrate_record_receives -flip "
Stop the Aerospike service
-
Run the following command to display the current status of the Aerospike Service:
Terminal window sudo service aerospike status -
Run the following command to stop the Aerospike service on the node:
Terminal window sudo service aerospike stop
Backup the configuration File
Create a backup of the current configuration file:
sudo cp /etc/aerospike/aerospike.conf /etc/aerospike/aerospike.conf.bac
Uninstall the Community Aerospike server package
-
For Redhat/Centos distributions
Terminal window sudo rpm -e aerospike-community-serverTerminal window #If you have tools package installed separatelysudo rpm -e aerospike-community-tools -
For Debian/Ubuntu distributions:
Terminal window sudo dpkg -r aerospike-community-serversudo dpkg --purge aerospike-server-communityTerminal window #If you have tools package installed separatelysudo dpkg -r aerospike-community-toolssudo dpkg --purge aerospike-community-tools
Install Aerospike Enterprise packages
Download install Aerospike. For information on downloading and installing, see the Installation Documentation.
You must log in to download the Enterprise installer files. For queries regarding access, contact your Sales Rep.
Restore the backup configuration
Restore the backup configuration file to /etc/aerospike/aerospike.conf
:
sudo cp /etc/aerospike/aerospike.conf.bac /etc/aerospike/aerospike.conf
Start Aerospike server
The following steps ensure that you have installed the Enterprise Aerospike server and finished migrations on each node before proceeding to next node.
-
Start the Aerospike service. Run the following command:
Terminal window sudo service aerospike startFor more information on starting the service, see the Installation Documentation.
Note: If you see warnings in the Aerospike log about deprecated parameters, confirm their usage in Aerospike 3 in the Configuration Reference.
-
Wait for Aerospike’s service port to open (port 3000) before continuing. When the service port opens, the following command will return “OK”:
Terminal window asinfo -v STATUS -
If your server contains any namespaces that are in-memory without persistence, you must wait for migrations to complete before continuing to the next node to prevent data loss.
Run the following command to verify migrations are complete:
Terminal window # Migrations are complete when all `migrate_progress_recv` and# `migrate_progress_send` values return 0.asadm -e "show statistics like migrate_progress" -
If all namespaces are persisted, you may continue to upgrade the next node and not lose any data.
Verify Aerospike server
After you complete the steps on each node, use these steps to confirm that Aerospike was successfully installed and is running.