To quickly spin up a cluster, consider using Cloudformation. See the Amazon Cloudformation.
Use this information for development with in-memory storage only. For deployment planning for AWS, refer to 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 AMI on AWS Marketplace.
Click Continue on that page. You are taken to the Launch on EC2 page.
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 compatibilty, we recommend the latest Amazon Linux.
Optionally install the Aerospike Monitoring Stack.
Set the Aerospike service to start on boot.
chkconfig aerospike on; chkconfig amc on
update-rc.d aerospike defaults; update-rc.d amc defaults
systemctl enable aerospike; systemctl enable amc
The instance type depends on your RAM requirements for data storage and desired throughput. Aerospike recommends the r3.2xlarge instance, which is suitable for many installations.
For more details about instance types, see Aerospike's Amazon EC2 capacity planning.
Virtual Private Cloud (Networking)
Aerospike recommends deploying to an Amazon VPC. See Amazon's VPC documentation.
In your security group, open the following ports for Aerospike communication.
|TCP||22||SSH port for logging into the instance.|
|TCP||3000-3003||Aerospike ports for clients and other servers to communicate with this instance.|
Launch your instance and
ssh to it.
An in-memory test namespace is configured by default. To add storage devices, configure a cluster, and tune your configuration to your hardware, see the Aerospike's configuration details.
[ec2-user@ip-xxx-xx-x-xxx ~]$ sudo service aerospike start
Starting and checking aerospike: asd (pid 8166) is running...
[ OK ]
Multicast traffic is not permitted on AWS. You must form a cluster with the mesh configuration.
ssh to each instance and configure mesh networking on the private IP address for each node.
You should also read Aerospike's clusting recommendations for Amazon EC2.