Skip to main content

Aerospike on Microsoft Azure

info

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.

info

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.

Create VM#

Enter the following options:

  1. 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.
  2. Size
    • Aerospike recommends GS or LS instances. DSv2 can also suffice.
  3. 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
  4. 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 Server#

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 server on Ubuntu.

Start Aerospike#

sudo service aerospike start

Configure Network and Storage#

Read the instructions for getting a cluster up.

Check out how to setup storage to persist the data.