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
| Skill | What it does |
|---|---|
mosquitto-migration-planner | Audits 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-executor | Verifies 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. |
| Script | Purpose |
|---|---|
mosquitto_audit.py | mosquitto.conf + acl_file + password_file + Dynamic Security JSON → audit report, ConnectMQ ACL rules, user list. |
relay.py | External two-way bridge, for when Mosquitto's config can't change. |
client_id_map.py, verify_connectmq.py, copy_retained.py, compare_streams.py | See the overview. |
Install
text
/plugin marketplace add connectmq/mosquitto-migration-skills
/plugin install mosquitto-migration-skills@connectmq-mosquitto-migrationHow the migration runs
Plan: audit, measure
$SYS, check plan limits, map credentials, client IDs and ACLs, choose waves.Bridge: Mosquitto's built-in bridge forwards topics to ConnectMQ and commands back. A minimal bridge block looks like this:
textconnection 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 1Consumers first: back ends and dashboards read from ConnectMQ while devices are still on Mosquitto.
Devices in waves: canary, then growing waves, each with go/no-go and rollback.
Cutover: remove the bridge, keep Mosquitto for the rollback window, decommission.
What changes for your clients
| Mosquitto | ConnectMQ |
|---|---|
| Your server's host | broker.connectmq.com, port 8883 (TLS) or 8084 (WSS) |
| Any client ID | <ISSUED_ID>_<old-id> (Client IDs) |
acl_file / Dynamic Security roles | ACL policies (Basic & Scale); %c → ${clientid}, %u → ${username} |
password_file users | Credential 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?"