Earlier this week at WPC 2015, we launched a new and improved DataStax Cassandra cluster (BYOL) deployment experience on Azure. In a single click, you can deploy 4, 12 or 36 nodes (VMs) running fantastic power of DataStax. In this blog post, we will walk you through the steps required to deploy this cluster.
About DataStax
DataStax delivers Apache Cassandra in a database platform purpose built for the performance and availability demands of IOT, web, and mobile applications, giving enterprises a secure always-on database that remains operationally simple when scaled in a single datacenter or across multiple data centers and clouds. DataStax Enterprise includes: DataStax Enterprise Server, DataStax OpsCenter & Expert Support and Services
Current DataStax offers on Azure Marketplace
There are two offers currently available in the Azure Marketplace.
- DataStax Enterprise Cluster– This template is for production use. For approved usage of these Marketplace offers, you need to have the appropriate license. If you already have a DataStax license, you can use your existing DataStax login and password. If not, you can register here.
- DataStax Enterprise Sandbox, Single Node (nonprod)– This template deploys a single node cluster which is great for sandbox development and testing. In addition, this offer doesn’t require a license, however, DataStax recommends that you register here as well.
DataStax Enterprise Cluster Deployment on Azure Marketplace
You can view the current DataStax offers in the Azure marketplace by navigating to marketplace and searching for ‘DataStax’ in the search bar
Once you are done selecting a particular offer, please go through the create process and enter the ‘Basics’ configuration for the cluster deployment which includes – Username, Password, ClusterName, Region and other details
In the next step, you need to provide the DatatStax cluster settings as described below.
Cluster Size
The current Enterprise cluster offering can deploy a cluster of DataStax Enterprise nodes — either 4, 12 or 36 nodes. Before you deployments
Please note that you need a minimum of 17, 49 & 145 cores in the ‘Resource Manager stack’ to deploy a 4, 12 & 36 Node cluster respectively with a Standard_D12 VM Size. You can always check your current quota in your subscription using PowerShell or Azure CLI. Read more about it here.
Deploying a cluster larger than 20 cores will require an increase in your default Azure core quota. Please contact Microsoft support to have that adjusted. You can read more about how to make that support request here and learn more about Resource Manager Stack Quotas here.
Virtual Machine Sizes
The clusters have been optimized and are currently supported in the following Virtual Machine Sizes today
- Standard_D12
- Standard_D13
- Standard_D14
- Standard_G2
- Standard_G3
- Standard_G4
- Standard_G5
DataStax Enterprise Credentials
If you already have a DataStax license, you can use your existing DataStax login and password. If not, you can register here: http://www.datastax.com/download and the download credentials will be emailed to you.
Once you are done with configuring the cluster, you can review the configuration and also have the option to “Download” the completed template, so you can review how the template works or so you can deploy programmatically later.
And here’s a quick snippet of the downloaded template
Once you are done, go ahead and ‘Buy’ the offer through Azure Marketplace and then ‘Create’ the cluster. Please note that the DataStax clusters are ‘BYOL’, hence, these clusters will incur the usual compute, Network & Storage costs. The deployment will typically take 15-45 minutes, depending on the number of nodes requested.
Accessing the DataStax Cluster
On completion, DataStax OpsCenter will be accessible at https://{clusterName}.{region}.cloudapp.azure.com:8443. For example, it will be look something like this – https://cloudguycluster.eastus.cloudapp.azure.com:8443. The default username for OpsCenter is admin. The password will be set to the administrator password specified in the template input parameters.
Troubleshooting Tips
If you run into an error during the deployment, please navigate to the resource group in the Azure Preview Portal as shown below
Now select the failed bucket in the “Events” blade. And further, select the operation that “failed”. In this case, it was the deployment of a Microsoft.Compute/virtualMachines resource.
Once you’ve selected the correct operation, you can look through the exact set of events to find the oldest failure event to see what the actual error was. In this particular case, it was lack of sufficient cores in that particular region. You can see the following status message in the ‘properties’ section of the “Detail” blade – {“error”:{“code”:”OperationNotAllowed”,”message”:”Operation results in exceeding quota limits of Core. Maximum allowed: 20, Current in use: 17, Additional requested: 16.”}}
Other common errors that you can run into includes the DNS Name unavailability for Storage Account or the Public IP address name. Specifying a unique cluster name will avoid these errors.