Create a Cluster Using Runtime Manager (Hybrid) With Mule ESB and Anypoint

DZone 's Guide to

Create a Cluster Using Runtime Manager (Hybrid) With Mule ESB and Anypoint

In this article, we cover how to integrate Mule with a hybrid cloud solution by creating clusters using a runtime manager. Read on for more!

· Integration Zone ·
Free Resource

Working in this era of cloud computing, the option of a hybrid cloud solution is always open to keep your business data under control. Mule ESB and the Anypoint platform provide one opportunity to integrate this feature with minimum effort.

Here is a use case where one needs a cluster in a hybrid environment...

Case: One organization (ABC) needed to expose their own system's interfaces using a platform (cloud) to external users/organizations.


  1. An API was developed using Mule ESB.

  2. This API was deployed on the on-prem server (due to organizational business control).

  3. The on-prem server was added to the Anypoint platform (cloud solution) and cluster.

  4. The cluster can be managed using the Anypoint platform.

Steps involved

 1. Download the Mule standalone runtime (ex. 3.9)   

Image title

2. Login to the Anypoint platform and go to the Runtime manager/servers (you will find there is no server listed initially, as in the below image).

Image title

3. Copy the above command and go to the Mule standalone runtime and execute that command:

     Image title

You will see the above lines once the command has been executed. 

Once the command has been executed successfully, please go to the  Runtime manager/servers section. There, you will find a server with the name "server1" added in Anypoint Platform's runtime manager, as seen in the below image:

Image title

4. To add another server to the form cluster, please click on "Add server" in servers section and execute the same process as executed in "step 2."

Image title

Once the command is successfully completed you will find another server added in the Runtime manager with the name "server2," as seen in the below image:

Image title

5.  To form a cluster as more than one server added to the Anypoint platform, one must:

  • Start both servers. 

  • Go to the Runtime manager section, click on "Create Cluster," and add both servers to the form "create cluster" with the help of the Anypoint platform (and an on-prem runtime), as in below image (I have created a multicast cluster, but you can change this to a unicast as per your requirements).

Image title

Once you click on 'create cluster,' Anypoint will restart all the assigned servers in order to complete the cluster configurations and update the page itself, like below: 

Image title

Image title

Go to the "application/deploy application" section. There, you will find the below option to deploy your Mule application using the Anypoint platform.

Image title

Choose the option that allows you to deploy your application on the cluster, as this will deploy on both servers associated with the cluster.

Thanks, MuleSoft!

anypoint platform, cloud integration, integration, mule esb, mulesoft

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}