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!
Join the DZone community and get the full member experience.
Join For FreeWorking 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.
Solution:
An API was developed using Mule ESB.
This API was deployed on the on-prem server (due to organizational business control).
The on-prem server was added to the Anypoint platform (cloud solution) and cluster.
The cluster can be managed using the Anypoint platform.
Steps involved :
1. Download the Mule standalone runtime (ex. 3.9)
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).
3. Copy the above command and go to the Mule standalone runtime and execute that command:
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:
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."
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:
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).
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:
Go to the "application/deploy application" section. There, you will find the below option to deploy your Mule application using the Anypoint platform.
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!
Opinions expressed by DZone contributors are their own.
Trending
-
Revolutionizing Algorithmic Trading: The Power of Reinforcement Learning
-
Tech Hiring: Trends, Predictions, and Strategies for Success
-
Seven Steps To Deploy Kedro Pipelines on Amazon EMR
-
What Is Envoy Proxy?
Comments