Create an ArangoDB cluster on Microsoft Azure
To easy-deploy an ArangoDB cluster on Azure you just need to install the official azure-cli, download a single bash script and watch the tool take care of the rest for you. Your azure account needs permission for creating instances, adding ssh-keypairs and managing virtual networks.
wget https://raw.githubusercontent.com/ArangoDB/deployment/publish/Azure_ArangoDB_Cluster.sh chmod 755 Azure_ArangoDB_Cluster.sh
Azure CLI Settings:
The script needs the azure-cli installed and configured. You can skip this part if azure-cli is already installed and fully configured. Otherwise please follow these steps:
Install npm (skip if npm already is installed):
sudo apt-get install nodejs-legacy sudo apt-get install npm
Install azure-cli (skip if azure-cli already is installed) :
sudo npm install -g azure-cli
Then authorize with azure-cli (skip if azure-cli already is installed AND configured):
There are two ways in order to authenticate:
a) Login via publish settings file
azure account download
Then launch the browser with the given url (example: http://go.microsoft.com/fwlink/?LinkId=12345). After a successful login, a file with your credentials will be downloaded. In the next step, import the file to your azure-cli.
azure account import <path-to-downloaded-file> (example: /tmp/BizSpark\ Plus-5-26-2015-credentials.publishsettings)
b) Login via organizational account (if available)
Create an ArangoDB cluster on Azure:
When the script is finished, you’ll get a screen with all the info you need to be able to work with the cluster.
Also this will create a directory called
./azure that contains information about the cluster. You can easily get rid of the cluster as well as of the virtual machines by doing
Feel free to try it out! See below for information on how to configure things.
Some background information for the curious
This script will use the azure-cli authentication for Azure to deploy a number of VM instances running CoreOS. If you do not already have one, it will first create a SSH keypair for you and deploy it to Azure and your ssh-agent. Once the machines are running, the script uses Docker images to start up all components of an ArangoDB cluster and link them to each other. In the end, it will print out access information.
No installation of ArangoDB is needed neither on the VM instances nor on your machine. All deployment issues are taken care of by Docker. You can simply sit back and enjoy.
The whole process will take a few minutes and will print out some status reports.
Some switches to configure a few things
Use the -h switch to get this help page.
Optional prerequisites The following environment variables are used:
- SIZE : size/machine-type of the instance (e.g. -m Medium)
- NUMBER : count of machines to create (e.g. -n 3)
- OUTPUT : local output log folder (e.g.
- ZONE : site of the server (e.g. -z “US West”)
Discover more about ArangoDB
Want to learn more about the possibilities of ArangoDB?
Get the latest tutorials, blog posts and news: