---
schema_version: "1"
id: e4b19c4afafb523fe09496b2f13956ec61a0e628d1ec8fbe292a93b65e649882
title: Advanced Sources Settings
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/mule-sdk/latest/sources-advanced.md
canonical_url: https://docs.mulesoft.com/mule-sdk/latest/sources-advanced
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 4f7c33713dde0b826f13ef683dc53c41e6ccdca6bd12cdc80cbe928426652bfb
description: MuleSoft Documentation Site
release: "1.13"
latest: true
---
---
product: Mule SDK
version: 1.13
is-latest-version: true
---

# Advanced Sources Settings

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## @ClusterSupport

**Available since version 1.1**

You can use this annotation to indicate how the Source behaves when the Mule Runtime is running in
Cluster mode, for example:

```java
@ClusterSupport(DEFAULT_PRIMARY_NODE_ONLY)
public class JmsListener extends Source<Object, JmsAttributes> {
// ...
}
```

The `@ClusterSupport` annotation takes a parameter of type `SourceClusterSupport`, which can take
the following values:

- NOT\_SUPPORTED: The source does not support cluster mode, so it only runs on the primary node. If
  the primary node crashes, a new primary node will be designated, and the source will be started on
  it.

- DEFAULT\_ALL\_NODES: Runs on all the cluster nodes by default, but the user can choose to only run
  on the primary one.

- DEFAULT\_PRIMARY\_NODE\_ONLY: Only runs on the primary node by default, but the user can choose to
  run on all the nodes.

When the selected value is other than `NOT_SUPPORTED`, a parameter named `primaryNodeOnly` is
automatically added so you can configure whether the source should run in all nodes or just the
primary ones.

> [!TIP] Notice that when this parameter is added, it will be optional, and its default value will
> depend on the selected cluster support mode.
