Over a million developers have joined DZone.

Configure Hazelcast With Azure

DZone's Guide to

Configure Hazelcast With Azure

Learn how to get a Hazelcast cluster up and running just the way you want it using Microsoft Azure.

· Cloud Zone ·
Free Resource

Insight into the right steps to take for migrating workloads to public cloud and successfully reducing cost as a result. Read the Guide.

Getting started with Hazlecast on Microsoft Azure is a simple four-step process:

1. Basics

Image title

Username: This will be the username used to log into the virtual machine.

Authentication type: Type of authentication can be SSH Public Key or Password.

Password: The password used to login to the virtual machine.

SSH Public Key: The SSH key used to login to the virtual machine.

Subscription: Which subscription used to purchase the resources.

Resource group: The resource group that will store all created resources.

Location: The region that will host all created resources.

2. Infrastructure

Image title

Version of Hazelcast: Which version of Hazelcast Grid to be installed.

Custom jar upload: A custom jar to be added to each virtual machine classpath.

Hazelcast username: The username to be used to login to Hazelcast Grid.

Hazelcast password: The password to be used to login to Hazelcast Grid.

Storage account: The storage account used for all resource storage needs.

Ubuntu version: The version of Ubuntu to be installed.

Virtual machine size: The size of each virtual machine for the Hazelcast Grid.

3. Summary

Image title

Verify the request summary. Here, you can also choose to download the template parameterized JSON file in order to store for future reference or even use with theAzure Command Line Interface.

4. Deploy

Image title

Buy and deploy. Here, you will be presented with Hazelcast's terms of use and privacy policy and, upon agreement, your Hazelcast Cluster will begin deployment.

If you wish to investigate the deployment on any of the nodes, simply log in using the credentials you configured. Once you log into a node you, can observe the waagent in action. Waagent (Microsoft Azure Linux Agent) begins the orchestration for the downloading, configuration, and startup of Hazelcast.

Inside the Deployment

Once the installation is completed, you’ll observe a process ID as the final statement in the waagent.log located:


So what just happened? Waagent downloaded and invoked the Hazelcast solution template to each machine. Then the solution template took the parameters from the deployment and executed a series of scripts.


Created environment variables

Calls install_hazelcast

Calls modify_configuration

Starts a service named hazelcast-server

Post Deployment

In the event you wish to start or stop hazelcast-server, use the service command:

service hazelcast-server stop

service hazelcast-server start

The log is located at /var/log/hazelcast-upstart.log.

If you uploaded a jar during deployment it will be placed at /var/hazelcast/custom.jar.

You know the server is ready once see the STARTED message:

view source

http://hazelcastorg.staging.wpengine.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/clipboard.swf print?

INFO: []:5701 [hzUser] [3.6.4] Address[]:5701 is STARTED

TrueSight Cloud Cost Control provides visibility and control over multi-cloud costs including AWS, Azure, Google Cloud, and others.

cloud application performance ,hazelcast cluster ,microsoft azure

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}