IMD SolutionComputing LibraryShop main store

Troubleshooting

MQTT Engine multiple broker connections need two Server Sets

Edge computing and IIoT Published 6 min read By IMD Solution engineering team

Short answer

MQTT Engine treats every MQTT server entry inside one Server Set as primary or failover alternatives, not as simultaneous connections. Put each broker in its own Server Set, associate each set with its own Transmitter, and both the local Distributor broker and the AWS broker deliver data concurrently. On older modules you must upgrade first: Server Sets exist in module 4.0.29, not 4.0.21.

On this page
  1. Trace each data path separately
  2. Why one Server Set displaces the local session
  3. The version threshold: 4.0.21 lacks Server Sets
  4. Two Server Sets, two Transmitters
  5. Configure concurrent connections step by step
  6. Verify both paths run at once
  7. Questions asked

The local broker data stops as soon as you enable the AWS server connection because MQTT Engine is treating both brokers as failover alternatives inside one redundant Server Set, not as two concurrent connections. Enabling the AWS entry selects it as the active member of that set; the local Distributor broker session goes inactive. Disabling the AWS connection and restarting MQTT Engine is the only way the old layout rebuilds the local session. The fix is one Server Set per broker, each associated with its own Transmitter. On older module builds you cannot even see the Server Set controls: they are present in module 4.0.29 and absent in 4.0.21, so the module and platform upgrades come first.

Trace each data path separately #

Map the two routes before touching certificates, firewall rules or topic filters, because the symptom follows the act of enabling the second server, not the transport of either one:

  • Local route: publishing client, local broker hosted by the MQTT Distributor gateway, plain connection with no certificates, into MQTT Engine. Reports data until the AWS connection is enabled.
  • AWS route: publishing client, AWS broker, TLS transport with certificates, into MQTT Engine. Reports data from the moment it is enabled.

The differing security modes do not establish a certificate conflict. TLS affects only the AWS transport session; the local path carries no certificates. The stronger signal is that either broker works alone and the failure appears exactly when the other server definition is enabled. A broker that stays reachable while its Engine session disappears points to connection grouping, not a listener or network fault.

For the AWS leg, confirm the TLS handshake itself completes; the failure of a TLS session to reach the point of a broker acknowledgement is a different fault with its own diagnostic path, covered in the article on MQTT TLS connecting without a CONNACK (article:mqtt-tls-connects-but-no-connack-find-the-failing-hop).

Why one Server Set displaces the local session #

In MQTT Engine, a Server Set defines how configured MQTT servers relate to each other. Servers can be used as concurrent connections, or they can form a redundant group where another server takes over when the primary goes offline. Two independent brokers placed in one failover relationship are therefore not two simultaneously active ingestion paths: enabling the AWS definition makes it the active member and leaves the local definition inactive.

That also explains why recovery required disabling AWS and then restarting the module. Disabling removes the selection; the restart rebuilds the local session. Neither action changes the underlying grouping, so the symptom returns as soon as the AWS connection is enabled again.

The version threshold: 4.0.21 lacks Server Sets #

The affected gateway and its Distributor module both ran MQTT module 4.0.21, which has no Server Set tab. A second gateway running module 4.0.29 displayed the Server Set controls that 4.0.21 lacks. The affected Ignition gateway was on platform 8.1.36, and correcting the layout required an Ignition upgrade to 8.3 with module builds compatible with that release.

Treat platform and module upgrades as one compatibility decision. Record every Cirrus Link module installed on the gateway and its version before the change, because mixed builds complicate diagnosis and the Designer UI can differ by release.

Item Affected configuration Target or comparison Decision
Ignition platform 8.1.36 8.3 Upgrade before applying the new layout
MQTT Engine module 4.0.21 4.0.29 observed with Server Sets Install a compatible newer build
MQTT Distributor module 4.0.21 No target version stated Check compatibility with the chosen platform and modules

Two Server Sets, two Transmitters #

Configure one Server Set containing only the local Distributor broker, and a second containing only the AWS broker, preserving its TLS and certificate configuration. Then add a second Transmitter and associate each Server Set with the Transmitter responsible for that data path. Keep topic filtering independent between the sets so traffic intended for one path is never admitted or rejected by rules belonging to the other.

A redundant set is the right choice only when either broker can replace the other without changing what the data means or who owns it, such as a primary broker with a warm standby serving the same tags. If you are consolidating two Ignition projects onto one gateway, the brokers carry distinct project traffic and belong in separate sets. How client identity and birth messages behave when sessions move is a related but separate subject, covered in the article on a Sparkplug client rejected over its STATE will (article:why-a-broker-rejects-your-sparkplug-client-over-its-state-will).

If you also host the local broker on a Distributor gateway, its listener and certificate configuration are set on that gateway's own settings page; the setup of an MQTT Distributor broker for external clients is detailed in the knowledge base.

Configure concurrent connections step by step #

  1. Record both server definitions: broker address, configured port, client identity, security mode, certificate references, topic filters and current enable state.
  2. Inventory the Ignition version and every Cirrus Link module version on the gateway, and confirm the chosen upgrade combination exposes the Server Set controls.
  3. Upgrade the platform and compatible MQTT modules through your site change process, then confirm the Server Set tab is present after startup.
  4. Create one Server Set for the local Distributor broker. Do not place the AWS broker in it.
  5. Create a second Server Set for the AWS broker and preserve its TLS configuration.
  6. Add a second Transmitter and associate each Server Set with the Transmitter for its data path.
  7. Apply topic filters separately, checking for overlaps and subscriptions that pull both projects into one route.
  8. Enable the local path first and confirm live data, then enable AWS. No module restart should be needed.

Verify both paths run at once #

A green connection status does not prove subscriptions are delivering current values. Verification must show simultaneous operation:

  • With both Server Sets enabled and MQTT Engine running normally, observe a known changing value through the local broker and confirm its Engine value advances.
  • Observe a different known changing value through AWS and confirm that value advances too.
  • Repeat both checks with the other broker still enabled. Neither check should require a module restart.

Review the MQTT Engine and gateway logs for repeated disconnects, authentication failures, TLS errors, duplicate client-session replacement or subscription rejection. If the behavior is still unexplained, capture a Diagnostic Bundle while both connections are enabled and send it through the vendor's support portal.

The decision: if both servers sit in one redundant Server Set, split them into two Server Sets and two Transmitters, and upgrade the platform and modules first where Server Sets are not yet available. If either broker cannot stand in for the other, a redundant grouping is the wrong layout regardless of version.

Questions asked

Why does enabling one broker connection stop the other in MQTT Engine?

Because both server entries are grouped in one redundant Server Set. In a redundant set only the selected member carries traffic; the others sit as failover alternatives. Enabling the AWS entry selects it as the active member and the local broker session goes inactive. Two separate Server Sets, one per broker, allow both sessions at the same time.

Which MQTT Engine module version has Server Sets?

Server Set configuration appears in newer Cirrus Link MQTT Engine modules: a gateway running module 4.0.29 shows the Server Set tab and column, while a gateway running 4.0.21 does not. The affected gateway was on Ignition 8.1.36 and the fix required an Ignition upgrade to 8.3 with compatible module builds.

Do I need a second Transmitter as well?

Yes. Each Server Set is associated with the Transmitter responsible for that data path, so two concurrent broker connections need two Transmitters. Keep the topic filters of each set independent so a rule belonging to one path never admits or rejects traffic intended for the other.

When is a redundant Server Set the right choice?

Only when either broker can replace the other without changing the meaning or ownership of the data, such as a primary broker and a warm standby serving the same tags. Two brokers carrying distinct project traffic, like a local Distributor broker and an AWS broker, belong in separate sets so both stay active.

Keep reading

  • Troubleshooting

    Why MQTT Engine still feeds old tags after a broker stops

    Old values keep reaching the screens because MQTT Engine buffers and processes each Edge node's messages in order, so a birth-message flood drains through the tags even after the broker is stopped. Measure the queue with Enable Latency Check and Message Processing Latency, fix the flooding node first, and restart the module only to clear what the fixed cause already built.

    Edge computing and IIoT

  • Troubleshooting

    Fixing MQTT cloud broker data not reaching SCADA tags

    Get the gate right first: MQTT over TLS belongs on port 8883, with the TLS mode and client identity the broker actually requires. An independent client such as MQTT Explorer on the same PC proves only its own settings, not the driver's. If the driver cannot perform the service-specific handshake Azure IoT Hub needs, no tag mapping will ever fill.

    Edge computing and IIoT

  • Troubleshooting

    Why Available Historical Tags stays empty for MQTT Engine history

    The Available Historical Tags pane lists only tag paths a historian provider has stored, so an MQTT Engine tag with good live values but no provider-assigned history stays invisible. Confirm the live timestamp advances, enable history on the tag with the provider behind your datasource, generate two qualifying value changes, and refresh the tree; the tag then appears under the datasource connection that holds the samples.

    Edge computing and IIoT

Why a 16K AVEVA Edge runtime license does not set Thin Client count