Install on Microsoft Azure
Installing Aerospike on a Microsoft Azure VM instance is similar to the Ubuntu installation. The following steps are a quick way to get started with an in-memory configuration.
Aerospike's Community Edition is configured to transmit anonymous usage statistics. We ask your help in making Aerospike better by leaving this feature enabled. You can learn about our goals, how we use the data, and how to disable the feature here.
Azure portal
We assume that you have already signed up for Azure. If not, do this now.
- Go to your Azure Portal at: https://portal.azure.com
- Go to Virtual machines, then click Add.
Create VM
Enter the following options:
- Basics
- Name: aerospike-server
- VM disk type: SSD
- User name: Give it a username
- Authentication type: Aerospike recommends "SSH public key"
- SSH Public key: The contents of your public key
- Resource group: Choose to deploy into an existing group or create a new one.
- Location: Choose a location geographically close to you. Azure locations also limit VM type availability.
- Image: Choose the base OS for the VM.
- Size
- Aerospike recommends GS or LS instances. DSv2 can also suffice.
- Settings
- Storage: Choose whether you'd like to use managed disks
- Storage account: If you did not choose managed disks, choose the storage account you'd like to use.
- Network: Leave as defaults
- Extension: Add any extensions you'd like.
- High availability: Aerospike recommends creating an availability zone with the maximum number of update domains and fault domains available for your selected zone.
- Monitoring: Leave as defaults
- Summary
- Confirm the above values and click Create
Firewall rules
Create a new Network Security Group (NSG) in the same Resource Group.
Add the following inbound rules:
Name: Aerospike Server:
Priority: 100
Source: Any
Service: Custom
Protocol and Ports: tcp:3000-3003
Action: Allow
And finally to secure:
Name: Default Deny
Priority: 900
Source: Any
Service: Custom
Protocol: Any
Port range: 1024-65535
Action: Deny
Attach this NSG to the network interface of your VM.
Install Aerospike Database
With your VM selected, click on the "Connect" button. You will see a connection string to use like: azureuser@<Public_IP>
Once connected, you can run the following:
sudo su -
apt-get update
Now follow the steps to install the Aerospike Database on Ubuntu.
Start Aerospike
sudo service aerospike start
Configure network and storage
Read the instructions for getting a cluster up: CONFIGURE NETWORK
Check out how to setup storage to persist the data: CONFIGURE STORAGE