Install on Google Compute Engine
For the complete documentation index see: llms.txt
All documentation pages available in markdown.
This page describes how to install Aerospike Database on Google Compute Engine by creating a VM, configuring firewall rules, and installing Aerospike Database on Ubuntu. When you’re done, you’ll have a single-node Aerospike cluster running with an in-memory namespace, ready for development and testing.
Prerequisites
- Root access or permission to run
sudo. - Verify that you have the
libcurl4t64package installed. - Choose an Ubuntu LTS release that your Database version supports. Database 8.2.0 supports Ubuntu 26.04 and 24.04, and Ubuntu 26.04 requires Database 8.2.0 or later. See Platform support and compatibility for the full matrix.
- Aerospike’s OpenSSL compatibility varies by Database release. See Transport Layer Security for the version supported by each release.
Create and configure your GCP VM
-
Sign in to Google Cloud Platform. If you have not already signed up, create an account.
-
Open the Google Cloud Console at https://console.cloud.google.com/ and select or create a Project.
-
Create a VM instance. On the Project Dashboard, click Create Instance and use the following options:
Option Value Name aerospike-server Zone us-central1-f (choose a zone geographically close to your location) Machine Type n2-standard-4 Boot Source New disk from image Image Ubuntu 24.04 LTS Boot disk Standard persistent disk Use defaults for other options and click Create. Your instance should be listed in about a minute.
-
Configure firewall rules. On the instance page, click the default link under the Network section.
- Under Firewall Rules, click Create New.
- Create a rule for the Aerospike server:
- Name: Aerospike server
- Source IP Ranges: 0.0.0.0/0
- Protocols and ports: tcp:3000 is open to clients, 3001-3002 to other cluster nodes, 3003 is admin.
-
Connect to your instance. Click SSH to connect using the browser or the
gcloudcommand line tool.
Install Aerospike Database
You can download Aerospike Database from the download page, or download from the command line with the example URL in the following install steps.
We recommend that you read the release notes of the version you download.
To learn about automating downloads from the artifact repository, see the FAQ on downloads.
Aerospike Community, Enterprise, and Federal editions are available for all supported Linux distributions, and use the following naming convention: aerospike-server-EDITION_VERSION_tools-TOOLS-VERSION_DISTRO_ARCHITECTURE.tgz
-
Update packages and download Aerospike.
Base URL:
https://download.aerospike.com/artifacts/aerospike-server-edition/server-version/Example download command. Choose the edition and version from the artifact index and update the URL in your command accordingly.
Terminal window apt-get updatewget -O aerospike-server.tgz "https://download.aerospike.com/artifacts/aerospike-server-enterprise/8.2.0/aerospike-server-enterprise_8.2.0.0_tools-13.0.3_ubuntu26.04_x86_64.tgz" -
Extract and install.
Terminal window tar -xvf aerospike-server.tgzcd aerospike-server-enterprise-*sudo ./asinstall -
Start Aerospike.
Terminal window sudo service aerospike start
Next steps
- See Network configuration to form a cluster.
- Configure storage to persist data: Configure namespace storage.