Loading

How does "Primary node only" flag in source operations of connectors work in different deployment targets

公開日: Jul 28, 2025
タスク

GOAL

Source operations in some of the Anypoint Connectors are cluster aware and they expose "Primary node only" boolean flag. This flag decides whether to execute the source operation on only the primary node when running mule instances in a cluster. This article explains how source operations with primaryNodeOnly="true" flag work when deployed in different deployment targets.

User-added image
ステップ

Some of the mule application deployment targets support clustering and some do not. The flag primaryNodeOnly="true" on the source operation is effective only when the application is running on the mule cluster.


On-premise Cluster

When a mule application with source operation with primaryNodeOnly="true" is deployed in the mule cluster, the source operation will only be executed on the Primary Node.

CloudHub, On-premise Server Group

When a mule application with source operation with primaryNodeOnly="true" flag is deployed in CloudHub or On-premise Server Group, the flag is not effective as both these deployment targets do not support cluster. That means the source operation will be executed in all the application instances.

RTF, CloudHub 2.0

When a mule application with source operation with primaryNodeOnly="true" flag is deployed in RTF or CloudHub2.0, this flag is effective only when the application replicas/instances are deployed as a cluster using "Run in Runtime Clustering Mode" option in Runtime Manager UI("clustered" parameter if you are using maven for RTF and CloudHub). If the application is deployed into a single instance or it is not deployed in cluster mode, then the source operation will be executed in all the application instances.

 
ナレッジ記事番号

001116373

 
読み込み中
Salesforce Help | Article