Twitter Facebook Google+ LinkedIn
Tue, Jul 02, 2019

Running Neo4j from Azure with the Azure CLI

If you are considering running Neo4J there are several deployment options out there to consider.

We could consider the following:

  1. Manually installing it on several VMs and configuring it like a cluster.
  2. There is a container for Neo4j as well that can be hosted on AKS.
  3. Running Neo4J from the Azure Marketplace.

Unfortunately, with AKS there is a lot of complexity with routing the traffic to the proper master node. Neo4j does it’s own clustering and essentially creates a double “routing” issue. AKS will end up with some form of ingress controller like nginx that will pass data to one of the nodes that might not be the master node for Neo4J.

One approach we found successful was spinning up a high-available cluster from ARM templates. The below Azure CLI is an example of how to do this.

# Create Neo4J Cluster
adminCredential="$(cat ~/.ssh/"

az group deployment create --resource-group "$resourceGroupName" --template-uri "" --parameters ClusterNamePrefix="$clusterNamePrefix" VmCount="$vmCount" VmSize="$vmSize" AdminUserName="$adminUserName" AdminAuthType="sshpublickey" AdminCredential="$adminCredential" VNetNewOrExisting="new" VNetResourceGroupName="$resourceGroupName" VNetName="neovnet" VNetAddressPrefix="" SubnetName="neovnetsub" SubnetAddressPrefix="" SubnetStartAddress="" PublicIPNewOrExistingOrNone="new" PublicIPName="neopub" PublicIPAllocationMethod="Dynamic" PublicIPIdleTimeoutInMinutes="10" Neo4jPassword="$dataPassword" ArtifactsBase=""
Twitter Facebook Google+ LinkedIn