Install on Amazon EC2
For the complete documentation index see: llms.txt
All documentation pages available in markdown.
This page describes how to install Aerospike Database on Amazon EC2 by using the AWS Marketplace AMI or preparing your own Amazon Machine Image (AMI).
Use this information for development with in-memory storage only. For deployment planning for AWS, see the Aerospike Capacity Planning documentation.
Get the Aerospike AMI
You can either use the Aerospike Enterprise Edition AMI on the AWS Marketplace or prepare your own AMI.
Aerospike on AWS Marketplace
-
In your browser, go to Aerospike Database on AWS Marketplace.
-
Click Continue on that page. The Launch on EC2 page appears.
-
Click Manual Launch tab. Then click Launch with EC2 console for the region you want to use.
Prepare your own AMI
-
Launch an OS of your choice, then install Aerospike according to the OS you’ve chosen. For best performance and compatibility, we recommend using Database 6.4.0 and later with Amazon Linux 2023.
-
Optionally install the Aerospike Monitoring Stack.
-
Set the Aerospike service to start on boot.
Terminal window sudo systemctl enable aerospike -
After you’ve configured your namespace and other configuration parameters, create your AMI.
Instance type
Select an EC2 instance type based on your RAM, storage, network throughput, and CPU requirements. Common starting points are memory-optimized families for in-memory workloads, storage-optimized families for local SSD workloads, and compute-optimized families for latency-sensitive workloads.
If you use AWS Graviton or another ARM-based instance, download an Aerospike package for a supported Linux distribution and architecture. See Platform support and compatibility before choosing the OS image and package.
For more details about instance types, see Amazon EC2 capacity planning.
Virtual Private Cloud (Networking)
Aerospike recommends deploying to an Amazon VPC. For more information, see How Amazon VPC works.
Security group
In your security group, open the following ports only to trusted clients, tools, and cluster nodes.
| Protocol | Port | Description |
|---|---|---|
| TCP | 22 | SSH port for logging into the instance. |
| TCP | 3000-3003 | Client service (3000), intra-cluster fabric and heartbeat (3001–3002), and admin access (3003). |
|
Launch
Launch your instance and connect with ssh.
An in-memory test namespace is configured by default. To learn about adding storage devices, configuring a cluster, and tuning your configuration to your hardware, see Configure Aerospike Database.
Start Aerospike
sudo systemctl start aerospikesudo systemctl status aerospikeClustering Aerospike
Multicast traffic is not permitted on AWS. You must form a cluster using Aerospike’s heartbeat protocols. For more information, see Mesh (unicast) heartbeat.
Connect to each instance using ssh and configure mesh networking on the private IP address for each node.
For more information, see Aerospike on Amazon EC2.