SlideShare a Scribd company logo
General Concepts of Mule clusters

A cluster is a set of Mule runtimes that acts as a unit. A cluster is a
virtual server composed of multiple nodes. The nodes (Mule runtimes)
in a cluster communicate and share information through a distributed
shared memory grid.
Benefits of Clustering:

By default, clustering Mule runtimes ensures high system availability.
If a Mule runtime node becomes unavailable due to failure or planned
downtime, another node in the cluster can assume the workload and
continue to process existing events and messages.

clusters can also improve performance and scalability.

Compared to a single node instance, clusters can support more users
or improve application performance by sharing the workload across
multiple nodes or by adding nodes to the cluster.

Beyond benefits such as high availability through automatic failover,
improved performance, and enhanced scalability, clustering Mule
runtimes offers the following benefits:
i. Automatic coordination of access to resources such as files,
databases, and FTP sources. The Mule runtime cluster
automatically manages which node (Mule runtime) will handle
communication from a data source.
ii. Automatic load balancing of processing within a cluster. If you
divide your flows into a series of steps and connect these steps
with a transport such as VM, each step is put in a queue, making it
cluster enabled. The cluster of Mule runtimes can then process
each step in any node, and so better balance the load across nodes.
iii.Cluster lifecycle management and control.
iv.Cluster and node performance monitoring.
v. Raised alerts. You can set up an alert to appear when a node goes
down and when a node comes back up.

If high performance is your primary goal, you can configure a Mule
cluster or an individual application for maximum performance using a
performance profile. By implementing the performance profile for
specific applications within a cluster, you can maximize the
scalability of your deployments while deploying applications with
different performance and reliability requirements in the same cluster.

By implementing the performance profile at the container level, you
apply it to all applications within that container. Application-level
configuration overrides container-level configuration.

Setting the performance profile has two effects:
(a) It disables distributed queues, using local queues instead to
prevent data serialization/deserialization and distribution in the
shared data grid.
(b) It implements the object store without backups, to avoid
replication.

Concurrency Issues Solved by Clusters:

File based transports: All Mule instances access the same mule file
folders concurrently, which can lead to duplicate file processing
and even possible failures if a file is deleted or modified by the
Mule application

Multicast transport: All mule instances get the same TCP requests
and then process duplicate messages

JMS Topics: All mule instances connect to the same JMS topic,
which may lead to repeated processing of messages when scaling
the non clustered Mule instance horizontally

JMS request-reply/request-response: All Mule instances are
listening for messages in the same response queue, this implies
that a Mule instance might obtain a response that isn’t correlated
to the request it sent. This can result in incorrect responses or
make a flow fail with timeout.

Idempotent-redelivery-policy: Idempotency doesn’t work if the
same request is received by different Mule instances. Duplicated
messages aren’t possible.

Salesforce streaming API: if multiple instances of the same
application are deployed, they will fail since the API only supports
a single consumer. No failover support in case the instance
connected is stopped or crashes.

Clustering:

Mule uses an active-active model to cluster Mule runtimes, rather
than an active-passive model.

In an active-passive model, one node in a cluster acts as the
primary, or active node, while the others are secondary, or passive
nodes. The application in such a model runs on the primary node,
and only ever runs on the secondary node if the first one fails. In
this model, the processing power of the secondary node is mostly
wasted in passive waiting for the primary node to fail.

In an active-active model, no one node in the cluster acts as the
primary node all nodes in the cluster support the application. This
application in this model runs on all the nodes, even splitting apart
message processing between nodes to expedite processing across
nodes.
Managing Mule High Availability (HA) Clusters

The management console gives you the ability to manage server
clusters. A cluster is a group of linked servers that work closely
together. Once servers are added to a cluster, they function in many
ways as if they were a single server.

You can perform the following cluster-related tasks with the
console:
− Create a cluster
− Deploy, redeploy, or undeploy an application to or from a
cluster
− Monitor a cluster, including its status
− "Disband" or delete a cluster

Ports Used for Clustering:
In order to configure a cluster, be sure to keep the following ports open:

port 5701, which is used for communication between Mule and the
cluster nodes

port 54327, which is used for discovery of new cluster members

New cluster member discovery is performed using multicast, thus
the multicast IP 224.2.2.3 must be enabled as well.

More Related Content

PPT
Clustering concepts
Harish43
 
PPT
Clustering concepts
bapiraju
 
PPTX
What is the difference between using private flow
Son Nguyen
 
PPTX
Controlling Message Flow - Mule ESB
Mani Rathnam Gudi
 
PPTX
Scatter gather flow in mule
Praneethchampion
 
PPTX
Muleflowarchitecturepart2
vijaynerd
 
PPTX
Distributed database
sanjay joshi
 
PPTX
Scatter gatherinmule
F K
 
Clustering concepts
Harish43
 
Clustering concepts
bapiraju
 
What is the difference between using private flow
Son Nguyen
 
Controlling Message Flow - Mule ESB
Mani Rathnam Gudi
 
Scatter gather flow in mule
Praneethchampion
 
Muleflowarchitecturepart2
vijaynerd
 
Distributed database
sanjay joshi
 
Scatter gatherinmule
F K
 

What's hot (20)

PPTX
Mule jms
Rajarajan Sadhasivam
 
PPTX
Mule servlet connector
Ankush Sharma
 
PPT
Batch processing
bapiraju
 
PPTX
Mule concepts filters scopes_routers
kunal vishe
 
PPTX
File connector mule
Sindhu VL
 
PPTX
Mule splitters
Gandham38
 
PPT
Mule esb introduction
Praneethchampion
 
PPTX
Mule Message Chunk Aggregator
Ankush Sharma
 
PPTX
Mule threading profile & processing strategy
chetan singhal
 
PPTX
Mule JMS transport
Ankush Sharma
 
PPTX
Scatter gather component - mule
Sindhu VL
 
PPTX
Mule SFTP connector
Ankush Sharma
 
PPTX
Choice router mule
Sindhu VL
 
PPTX
Mule Schema Validation Filter
Ankush Sharma
 
PPTX
Mule scopes request_response_scope
kunal vishe
 
PPTX
About mule transformers
prudhvivreddy
 
PPTX
Cluster computing
ShreerajKhatiwada
 
PPTX
Working with components
prudhvivreddy
 
PPTX
Mule Expression Transformer
Ankush Sharma
 
PPTX
Mule splitters
Ravinder Singh
 
Mule servlet connector
Ankush Sharma
 
Batch processing
bapiraju
 
Mule concepts filters scopes_routers
kunal vishe
 
File connector mule
Sindhu VL
 
Mule splitters
Gandham38
 
Mule esb introduction
Praneethchampion
 
Mule Message Chunk Aggregator
Ankush Sharma
 
Mule threading profile & processing strategy
chetan singhal
 
Mule JMS transport
Ankush Sharma
 
Scatter gather component - mule
Sindhu VL
 
Mule SFTP connector
Ankush Sharma
 
Choice router mule
Sindhu VL
 
Mule Schema Validation Filter
Ankush Sharma
 
Mule scopes request_response_scope
kunal vishe
 
About mule transformers
prudhvivreddy
 
Cluster computing
ShreerajKhatiwada
 
Working with components
prudhvivreddy
 
Mule Expression Transformer
Ankush Sharma
 
Mule splitters
Ravinder Singh
 
Ad

Viewers also liked (8)

PPTX
How to connect with Marketo connector
Zaheer Ahmad Chaudhry
 
PPTX
Gestion mule
Jeiner Gonzalez Blanco
 
PPTX
Hard Copy Double-Page Spread Analysis
Joseph Nunes-Dinerstein
 
PDF
Connecting To MS SQL Server With Mulesoft (Stored Procedure To Insert data)
Jitendra Bafna
 
PDF
Tong quan ve cong nghe thong tin
Nghia Le
 
PPT
MySQL Cluster Basics
Wagner Bianchi
 
PDF
Application Architecture: The Next Wave | MuleSoft
MuleSoft
 
PPTX
Custom connectorsinmule
Ajay Rana
 
How to connect with Marketo connector
Zaheer Ahmad Chaudhry
 
Hard Copy Double-Page Spread Analysis
Joseph Nunes-Dinerstein
 
Connecting To MS SQL Server With Mulesoft (Stored Procedure To Insert data)
Jitendra Bafna
 
Tong quan ve cong nghe thong tin
Nghia Le
 
MySQL Cluster Basics
Wagner Bianchi
 
Application Architecture: The Next Wave | MuleSoft
MuleSoft
 
Custom connectorsinmule
Ajay Rana
 
Ad

Similar to Clustering concepts (20)

PPTX
Mule high availability (ha) cluster
Achyuta Lakshmi
 
PPTX
Mule high availability
Son Nguyen
 
PPTX
Clustercomputingpptl2 120204125126-phpapp01
Ankit Soni
 
PPTX
Cluster computing pptl (2)
Rohit Jain
 
PDF
MuleSoft Surat Live Demonstration Virtual Meetup#2 - Customer Hosted Mule Run...
Jitendra Bafna
 
PPT
Queues and Mule Transport Mechanisms
Harish43
 
PPTX
Cluster computing
reddivarihareesh
 
PDF
MuleSoft Surat Virtual Meetup#26 - Implementing Hybrid MuleSoft Runtime - Any...
Jitendra Bafna
 
PPT
Cloud computing1
ali raza
 
PPTX
Cluster computing ppt
DC Graphics
 
PPT
Mule esb presentation 2015
Nagesh Penumarthy
 
PPTX
Elements in a mule flow
Sindhu VL
 
PPTX
Elements in a muleflow
Thang Loi
 
PDF
Cluster Computing
BishowRajBaral
 
PPTX
Mule architecture
himajareddys
 
PPTX
Mule architecture
D.Rajesh Kumar
 
PDF
Mule ESB
Yura Nosenko
 
PPTX
CLUSTER COMPUTING
anshugautamgautam
 
PPTX
Mule introduction
kiranvanga
 
PPTX
Cluster computing
Raja' Masa'deh
 
Mule high availability (ha) cluster
Achyuta Lakshmi
 
Mule high availability
Son Nguyen
 
Clustercomputingpptl2 120204125126-phpapp01
Ankit Soni
 
Cluster computing pptl (2)
Rohit Jain
 
MuleSoft Surat Live Demonstration Virtual Meetup#2 - Customer Hosted Mule Run...
Jitendra Bafna
 
Queues and Mule Transport Mechanisms
Harish43
 
Cluster computing
reddivarihareesh
 
MuleSoft Surat Virtual Meetup#26 - Implementing Hybrid MuleSoft Runtime - Any...
Jitendra Bafna
 
Cloud computing1
ali raza
 
Cluster computing ppt
DC Graphics
 
Mule esb presentation 2015
Nagesh Penumarthy
 
Elements in a mule flow
Sindhu VL
 
Elements in a muleflow
Thang Loi
 
Cluster Computing
BishowRajBaral
 
Mule architecture
himajareddys
 
Mule architecture
D.Rajesh Kumar
 
Mule ESB
Yura Nosenko
 
CLUSTER COMPUTING
anshugautamgautam
 
Mule introduction
kiranvanga
 
Cluster computing
Raja' Masa'deh
 

Recently uploaded (20)

PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PDF
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PDF
Software Development Company | KodekX
KodekX
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
Doc9.....................................
SofiaCollazos
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PPTX
Coupa-Overview _Assumptions presentation
annapureddyn
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PPTX
IoT Sensor Integration 2025 Powering Smart Tech and Industrial Automation.pptx
Rejig Digital
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
Software Development Company | KodekX
KodekX
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Doc9.....................................
SofiaCollazos
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
Coupa-Overview _Assumptions presentation
annapureddyn
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
IoT Sensor Integration 2025 Powering Smart Tech and Industrial Automation.pptx
Rejig Digital
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 

Clustering concepts

  • 1. General Concepts of Mule clusters  A cluster is a set of Mule runtimes that acts as a unit. A cluster is a virtual server composed of multiple nodes. The nodes (Mule runtimes) in a cluster communicate and share information through a distributed shared memory grid.
  • 2. Benefits of Clustering:  By default, clustering Mule runtimes ensures high system availability. If a Mule runtime node becomes unavailable due to failure or planned downtime, another node in the cluster can assume the workload and continue to process existing events and messages.
  • 3.  clusters can also improve performance and scalability.  Compared to a single node instance, clusters can support more users or improve application performance by sharing the workload across multiple nodes or by adding nodes to the cluster.
  • 4.  Beyond benefits such as high availability through automatic failover, improved performance, and enhanced scalability, clustering Mule runtimes offers the following benefits: i. Automatic coordination of access to resources such as files, databases, and FTP sources. The Mule runtime cluster automatically manages which node (Mule runtime) will handle communication from a data source. ii. Automatic load balancing of processing within a cluster. If you divide your flows into a series of steps and connect these steps with a transport such as VM, each step is put in a queue, making it cluster enabled. The cluster of Mule runtimes can then process each step in any node, and so better balance the load across nodes. iii.Cluster lifecycle management and control. iv.Cluster and node performance monitoring. v. Raised alerts. You can set up an alert to appear when a node goes down and when a node comes back up.
  • 5.  If high performance is your primary goal, you can configure a Mule cluster or an individual application for maximum performance using a performance profile. By implementing the performance profile for specific applications within a cluster, you can maximize the scalability of your deployments while deploying applications with different performance and reliability requirements in the same cluster.  By implementing the performance profile at the container level, you apply it to all applications within that container. Application-level configuration overrides container-level configuration.  Setting the performance profile has two effects: (a) It disables distributed queues, using local queues instead to prevent data serialization/deserialization and distribution in the shared data grid. (b) It implements the object store without backups, to avoid replication.
  • 6.  Concurrency Issues Solved by Clusters:  File based transports: All Mule instances access the same mule file folders concurrently, which can lead to duplicate file processing and even possible failures if a file is deleted or modified by the Mule application  Multicast transport: All mule instances get the same TCP requests and then process duplicate messages  JMS Topics: All mule instances connect to the same JMS topic, which may lead to repeated processing of messages when scaling the non clustered Mule instance horizontally  JMS request-reply/request-response: All Mule instances are listening for messages in the same response queue, this implies that a Mule instance might obtain a response that isn’t correlated to the request it sent. This can result in incorrect responses or make a flow fail with timeout.
  • 7.  Idempotent-redelivery-policy: Idempotency doesn’t work if the same request is received by different Mule instances. Duplicated messages aren’t possible.  Salesforce streaming API: if multiple instances of the same application are deployed, they will fail since the API only supports a single consumer. No failover support in case the instance connected is stopped or crashes.
  • 8.  Clustering:  Mule uses an active-active model to cluster Mule runtimes, rather than an active-passive model.  In an active-passive model, one node in a cluster acts as the primary, or active node, while the others are secondary, or passive nodes. The application in such a model runs on the primary node, and only ever runs on the secondary node if the first one fails. In this model, the processing power of the secondary node is mostly wasted in passive waiting for the primary node to fail.
  • 9.  In an active-active model, no one node in the cluster acts as the primary node all nodes in the cluster support the application. This application in this model runs on all the nodes, even splitting apart message processing between nodes to expedite processing across nodes.
  • 10. Managing Mule High Availability (HA) Clusters  The management console gives you the ability to manage server clusters. A cluster is a group of linked servers that work closely together. Once servers are added to a cluster, they function in many ways as if they were a single server.  You can perform the following cluster-related tasks with the console: − Create a cluster − Deploy, redeploy, or undeploy an application to or from a cluster − Monitor a cluster, including its status − "Disband" or delete a cluster
  • 11.  Ports Used for Clustering: In order to configure a cluster, be sure to keep the following ports open:  port 5701, which is used for communication between Mule and the cluster nodes  port 54327, which is used for discovery of new cluster members  New cluster member discovery is performed using multicast, thus the multicast IP 224.2.2.3 must be enabled as well.