In this blog post, I am going to talk about how to create a Hazelcast cluster on the Docker Cloud platform. Also we will scale operations up and down and launch A Hazelcast Management Center on the Docker Cloud Platform.
Here are the requirements:
- AWS account, ( we will need access-secret keys)
- Docker Cloud account
If you don’t have a Docker cloud account, please create a docker cloud account and add AWS Cloud as a provider.
In order to create the Hazelcast cluster and run management center, I have written a very simple docker-cloud yaml file . You can find my file here: https://github.com/bilalyasar/hazelcast-docker-cloud
In the github repository you will see a Deploy to Cloud button, click it.
After clicking that button, the following page will be open:
Here I have defined two services. One is
hz and the other is
management-center . Also, in order to ensure connection between members, I have opened port 5701. We will be connecting the management center via port 8080.
When you click the Create & Deploy button, this will create two services then deploy them to AWS Cloud.
Next, you'll want to click on the Services tab, where you will see the two services ( hz and management center).
You can click on the service name and see some details about the service, along with the logs. Please click hz service and then click logs .
As you see, a Hazelcast member is started. Now let's go to management center and connect to management center.
Services -> Management Center
You will see an endpoint which is the management center url. Please click that url and add mancenter to the end of the URL.
In the management center screen, you need to enter the cluster url. You can find that endpoint under
Here, I have connected to the cluster.
Now, let's scale the cluster. Go to Services -> hz then scale the number of containers from 1 to 2.
After clicking scale, wait 5-10 seconds :) Docker cloud automatically scale hz service. Now go to the management center and look at the Hazelcast nodes.
Now, there are 2 hazelcast members :) You can scale down in the same manner also.
Thanks for reading this blog post. You can see the docker-cloud.yml file here:
And don’t forget to deploy cloud! It's just one click :)