Applies to: any long-lived transport session (MQTT, AMQP 0-9-1, AMQP 1.0, Azure Service Bus). Audience: on-call operators. Risk: low to act — the adapters reconnect on their own; the danger is mistaking a broker outage for a bridge fault and restarting healthy tasks.
MQTTReconnects / ReconcileFailures / SessionRestarts climb.CONNECTION_LOST, UNAVAILABLE, THROTTLED, or BROKER_BUSY.GET /api/v1/monitor/health still returns {"status":"ok"} — health does not
reflect broker connectivity by design, so the pod is not restarted for a
transient reconnect
(health-and-shutdown.md#health-endpoints).Confirm connectivity separately from health. /health stays green through a
broker outage; gate on the transport instead:
curl -s "http://<host>:8081/api/v1/monitor/ready?level=connected"
# 503 → at least one session is not connected to its broker
/api/v1/monitor/deephealth (authenticated) reports per-session state
(http-api-monitor.md).
MQTTConnectFailures, tagged session_id and the bounded code, and the
same cause is latched on the session’s LastError until the session comes
back up — so the reason is visible without catching a log line live
(troubleshooting.md):
CONNECTION_LOST — session dropped mid-operation: broker restart, network
partition, idle-timeout, or a TLS failure on reconnect
(troubleshooting.md#connection_lost).UNAVAILABLE — a dependency declared itself temporarily unable to serve
(troubleshooting.md#unavailable).THROTTLED / BROKER_BUSY — the broker is rate-limiting or overloaded
(troubleshooting.md#broker_busy).Watch the reconnect metrics under GoBridge/Runtime
(monitoring.md#key-metrics):
MQTTReconnects (session reconnects), ReconcileFailures (reconcile after
reconnect failed), SessionRestarts (supervised per-session restart),
SessionRebuilds (a session that failed for good was rebuilt in place with
a fresh session; see
ADR 0020). In a
clustered deployment a broker outage that outlasts the lease TTL also raises
LeaseExpiries.
If reconnects loop without recovering, check for MQTTSessionTakeover
(troubleshooting.md#adapter–runtime-diagnostic-metrics):
two instances sharing one client_id kick each other off in a loop.
Check whether the outage cost you the durable session. MQTTSessionResumeLost
counts every connection where a persistent or exclusive session asked the
broker to resume (clean_start=false) and the CONNACK answered Session
Present=false. Re-subscribing then succeeds and the session goes green
again, so this counter — and the matching LastError latch, which clears on
the next converged reconcile — is the ONLY evidence that continuity broke.
full for about 10 s,
look for MQTTQoSDowngraded. The broker granted a subscription a lower QoS
than requested, and the session is confirming the grant with fresh
SUBSCRIBEs 5 s apart. After three matching answers the subscription runs at
the granted QoS as best effort, readiness can return to full, and
MQTTQoSDowngradedActive stays above zero. A lower grant never stops the
session or the process; see
QoS downgrade.client_id / TLS on reconnect — check
broker logs. For a duplicate-client_id storm (MQTTSessionTakeover), give
each replica a distinct client_id or use an exclusive session.BROKER_BUSY / THROTTLED — reduce route max_in_flight to smooth the
burst, or enable shared_outbox delivery so persistence absorbs it; request a
broker/SDK quota increase for a chronic throttle
(troubleshooting.md#broker_busy,
troubleshooting.md#throttled).MQTTSessionResumeLost is non-zero — the offline QoS 1/2 backlog queued
for that client_id while the session was away is gone, along with its
broker-side subscriptions; only messages published from the reconnect onward
are delivered. There is nothing to recover at the bridge — the messages were
never handed to it. Reduce the exposure for next time: raise
session_expiry_interval above your worst-case outage/failover gap, and
confirm the broker persists sessions across restarts (an in-memory broker
loses every session on restart regardless of the interval). If the loss is not
acceptable, move the source to a store-backed transport rather than relying on
broker-side offline retention.MQTTQoSDowngradedActive above zero — the broker grants a subscription
less than the QoS the route asks for, and the bridge runs it at the granted
QoS as best effort (listed in deep health as best_effort_topics). Either
lower the route’s qos to the granted level (accepting the weaker guarantee)
or lift the broker’s QoS cap for this client; the Error log names the topic,
the requested QoS and the granted QoS. The session re-checks the grant every
qos_recheck_interval and on every reconnect.SessionRebuilds); otherwise, or when the session’s close did not complete,
the runtime goes terminal and the process exits non-zero so the orchestrator
restarts it (health-and-shutdown.md#exit-codes).