Skip to content

Migrate from Mosquitto ​

The Mosquitto migration skills audit your mosquitto.conf, convert ACLs, map client IDs, size the ConnectMQ plan, then set up a bridge, run the client waves and handle rollback.

What the skills do ​

SkillWhat it does
mosquitto-migration-plannerAudits Mosquitto config, ACL file, password file and Dynamic Security JSON; samples $SYS; checks the workload against ConnectMQ plan limits; converts ACLs; maps client IDs; writes migration/plan.md.
mosquitto-migration-executorVerifies the ConnectMQ broker, configures the Mosquitto bridge, copies retained messages, compares message flow, runs client waves with go/no-go gates, rolls back, decommissions; keeps migration/log.md.
ScriptPurpose
mosquitto_audit.pymosquitto.conf + acl_file + password_file + Dynamic Security JSON → audit report, ConnectMQ ACL rules, user list.
relay.pyExternal two-way bridge, for when Mosquitto's config can't change.
client_id_map.py, verify_connectmq.py, copy_retained.py, compare_streams.pySee the overview.

Install ​

text
/plugin marketplace add connectmq/mosquitto-migration-skills
/plugin install mosquitto-migration-skills@connectmq-mosquitto-migration

How the migration runs ​

  1. Plan: audit, measure $SYS, check plan limits, map credentials, client IDs and ACLs, choose waves.

  2. Bridge: Mosquitto's built-in bridge forwards topics to ConnectMQ and commands back. A minimal bridge block looks like this:

    text
    connection connectmq
    address broker.connectmq.com:8883
    bridge_protocol_version mqttv50
    remote_clientid connectmq_client_123456_bridge
    remote_username cmq_xxxxxxxxxxxx
    remote_password your-password
    bridge_capath /etc/ssl/certs
    topic # out 1
    topic cmd/# in 1
  3. Consumers first: back ends and dashboards read from ConnectMQ while devices are still on Mosquitto.

  4. Devices in waves: canary, then growing waves, each with go/no-go and rollback.

  5. Cutover: remove the bridge, keep Mosquitto for the rollback window, decommission.

What changes for your clients ​

MosquittoConnectMQ
Your server's hostbroker.connectmq.com, port 8883 (TLS) or 8084 (WSS)
Any client ID<ISSUED_ID>_<old-id> (Client IDs)
acl_file / Dynamic Security rolesACL policies (Basic & Scale); %c → ${clientid}, %u → ${username}
password_file usersCredential sets in the console
Client certificates (require_certificate)Username and password over TLS

Example prompts ​

  • "We run Mosquitto on a single VM with 300 devices. Plan a move to ConnectMQ."
  • "Audit /etc/mosquitto and tell me what blocks a migration to ConnectMQ."
  • "Convert our Mosquitto acl_file to ConnectMQ access control rules."
  • "Set up a Mosquitto bridge to our ConnectMQ broker for telemetry and commands."
  • "Devices get 0x85 after switching to ConnectMQ. What is wrong?"

Fully managed MQTT broker for connected devices.