Which EMQX deployment options fit your team
The right place to run EMQX depends mainly on how many nodes you need, how much downtime your device connections can absorb and which platform your team already runs well. A single node on Docker or a virtual machine can serve a pilot or a contained production workload, and a team with solid container habits can run the broker on Docker with persistent volumes, pinned image tags and a documented restart procedure. Kubernetes fits when the platform team already operates clusters, wants rolling upgrades, health-based restarts and load balancing handled by the orchestrator, and can keep a stateful broker configured for its clustering needs. Virtual machines fit organizations with mature configuration management, change windows and backup tooling that already covers their estate, because EMQX then becomes one more managed service on known infrastructure.
From EMQX 5.9.0, a cluster of more than one node requires loading a license file, so the node count you choose is a licensing and cost decision as well as a technical one. The Business Source License allows production use of a single node provided it is not offered to third parties on a hosted or embedded basis, so a one-node design and a clustered design sit in different cost positions. Before you size a cluster for failover, read the EMQX license and ask the vendor in writing what the license file covers, how it is issued and renewed, and whether standby nodes that carry no traffic count toward the cluster. Keep the license question in the same review as the deployment choice, because moving from one node to a cluster later changes the license position as well as the architecture.
Run three checks before you pick a platform. First, count the nodes your availability target requires and record that number, since it decides whether the license file question applies at all. Second, name the team that will patch the broker, rotate its certificates and restore it from backup, and confirm that team already runs the chosen platform in production. Third, plan the upgrade path for each option and test it against the current release, 6.3.2, published on October 16, 2026, before you standardize on a version. If the answers point to Kubernetes but nobody on staff operates clusters, the effort moves to the platform team, so account for that cost before you commit.
How Kubernetes and VMs compare for EMQX clusters
This table compares running a clustered EMQX deployment on Kubernetes against running it on virtual machines, across availability, upgrades, backup, monitoring, skills, ownership and fit. Read each row as the work your team would take on under each option. For most teams the decision comes down to whether a platform team already runs Kubernetes well, or whether an infrastructure team already runs hosts well; the cluster licensing rule applies either way.
| Area | Kubernetes | Virtual machines |
|---|---|---|
| Availability | Node failures are handled by the scheduler, but MQTT session behavior during pod moves must be tested. | Availability depends on your own load balancer, health checks and failover design across hosts; host loss needs manual or scripted recovery. |
| Upgrade method | Rolling upgrades through the workload controller or chart, with version compatibility and cluster join behavior confirmed per release. | In-place package or binary upgrades, node by node, with a change window and a tested rollback path for each host. |
| Backup approach | Back up persistent volumes and cluster manifests or Helm values, and test restores into a separate namespace. | Snapshot or image each host and back up EMQX data directories on a schedule, with restores tested on spare hosts. |
| Monitoring | Pod, node and EMQX metrics need a collector; confirm which EMQX metrics your stack already scrapes. | Host-level agents plus EMQX's own metrics; confirm how node-level alerts map to each cluster member. |
| Skills needed | Kubernetes operations, manifests or charts, storage classes and network policy, on top of EMQX cluster knowledge. | Linux administration, configuration management, TLS certificate handling and EMQX cluster knowledge. |
| Who owns the platform | Typically a platform or SRE team that runs the cluster, with an application team owning EMQX configuration. | Typically the infrastructure or operations team, who patch hosts and run EMQX on them. |
| Cluster licensing | Same license file rule applies: a cluster of more than one node needs one from 5.9.0 onward. | Same license file rule applies: a cluster of more than one node needs one from 5.9.0 onward. |
| Better fit when | Your organization already runs Kubernetes with a platform team and needs repeatable environments for several clusters. | Your infrastructure team runs VMs today, and you want EMQX on hosts they already patch, back up and monitor. |
What runs in each EMQX deployment option
Each option runs the same EMQX broker, so the differences sit in how nodes are started, where their data and configuration persist, and who manages upgrades. The three packaging cards describe those differences, and the final card sets the cluster and license rule that applies to all of them.
EMQX in one Docker container
This option runs one EMQX node in a single container on one host. The node is the whole cluster, so there is no peer to discover and no second node to join. Data and configuration persist only where you mount volumes, so confirm the volume paths and the image tag in the current EMQX container documentation before you choose this option. Because a single node does not form a cluster, the multi-node license file rule does not apply, but you should still read the single-node production terms in the license, including the restriction on offering EMQX to third parties on a hosted or embedded basis.
EMQX READMEEMQX on Kubernetes
Kubernetes runs EMQX as a set of pods, and a cluster forms when those pods can reach each other and join as masterless peers. Service discovery, persistent volume attachment and pod rescheduling become part of your EMQX design, so the availability you get depends on how the pods are scheduled and how their storage is attached. Each pod that joins is another node, which means the license file requirement applies as soon as the cluster has more than one. Check whether the EMQX documentation provides official Kubernetes packaging and which EMQX version it targets before you write your own manifests.
EMQX on virtual machines
Virtual machines run EMQX as a service on each host, with configuration and data kept in directories on an operating system you manage. Node naming, network reachability between hosts, firewall rules and clock synchronization are part of the build, and you must confirm how the EMQX documentation expects nodes to be named and joined. You own package installation, patching and the order in which nodes restart during an upgrade. Confirm the supported operating systems and the current install method in the EMQX documentation before you script the build, because these choices determine how much of the upgrade work your team carries.
Cluster and license rule
This rule applies to all three options. EMQX clusters are masterless, so no node acts as a controller, but from version 5.9.0, a cluster of more than one node requires a license file. Single-node production use is allowed under the license terms, provided EMQX is not offered to third parties on a hosted or embedded basis. Each release converts to Apache 2.0 four years after it is published, so check the terms for the version you plan to deploy. Ask your EMQX contact to confirm the license file requirements before you plan node counts.
EMQX license textHow to choose a deployment model for EMQX
Start at the node count. A single node in production can run under the Business Source License terms, and that path ends at Docker on one host. A cluster of more than one node needs a license file, which EMQX requires from 5.9.0 onward, so check that before anything else on the multi-node side. Next, confirm whether high availability is required. If it is and your team already operates Kubernetes, the path leads to Kubernetes. Otherwise it leads to VMs. Confirm the license terms for your exact setup with EMQX before you commit.
Decision path from node count to Docker on one host, Kubernetes or VMs.
How clustering and the license file shape high availability
High availability in EMQX starts with more than one node. From 5.9.0, a cluster of more than one node requires loading a license file, so the node count you plan on Docker, Kubernetes or virtual machines is also a licensing decision. The project is licensed under the Business Source License 1.1, which permits production use of a single node, provided that node is not offered to third parties on a hosted or embedded basis. A team that runs one broker for its own internal services can operate it in production under that grant, but a single node has no peer to take over client connections if it fails. Decide early whether the availability target needs a cluster, because that choice determines the license you need before any hardware is ordered.
The deployment model does not change this requirement. A multi-node cluster on Docker, on a Kubernetes release or on a set of virtual machines still needs the license file loaded before it runs as a cluster in production. Ask the vendor for the license terms in writing before you size the cluster. Get answers on how the file is issued and renewed, how node counts are measured, and what the hosting restriction means if your platform serves customers or partners. Have your legal or procurement team review the EMQX license text alongside the vendor's written answers, since the file is a contract term as much as a technical control.
Clustering also creates two design decisions that apply on every platform. The first is how nodes find each other and exchange cluster traffic, which sets the ports and addresses that must be reachable between hosts, containers or pods. The second is how device connections are spread across nodes by a load balancer, including how clients reconnect and where sessions land after a node fails. Confirm the node discovery and load balancer settings in the EMQX documentation for your exact version, and do not finalize the design until you have tested a node failure and a client reconnect in a non-production environment. Those tests will show whether your chosen platform can meet the availability target you set.
Upgrades, backups and monitoring for each EMQX deployment option
This table compares how upgrades, backups, monitoring and day-to-day skills differ across the three ways to run EMQX. Read each row against your team's existing skills and change process, because the operating work moves to a different layer in each option. The main takeaway: a single Docker host is the simplest to start but leaves the most recovery work to you, while Kubernetes and VMs shift effort toward platform skills.
| Area | Docker on one host | Kubernetes | Virtual machines |
|---|---|---|---|
| Upgrade method | Change the image tag and recreate the container. With one host there is no peer to take traffic, so plan a maintenance window. | Change the image tag through your chart or manifests and let the workload controller roll it out. Confirm the rollout behavior for your version. | Replace the package or binary on each node, usually by hand or through configuration management. Expect the most scripting work. |
| Release tracking | Pin the image tag and test the new version in staging before changing the host. Plan against the GitHub release list, where 6.3.2 was published on October 16, 2026. | Keep the image version and chart version in Git and promote them through a non-production namespace first. Use the same release list to plan the pin. | Pin the package version and test each binary on a staging node. Track OS patches and EMQX updates together, since both change the host. |
| Rolling upgrade across nodes | Not applicable on a single host. A rolling sequence needs at least a second node. | Depends on how your deployment and operator handle pod ordering and cluster membership. Confirm the supported sequence for your version in the official documentation. | Possible node by node if the remaining nodes keep serving clients during each restart. Confirm the supported sequence for your version. |
| Backup and restore | Back up the data volume and configuration on a schedule and keep a copy off the host. Test the restore on a second host. | Combine persistent volume snapshots with configuration kept in Git. Confirm that your storage class supports consistent snapshots of the data directory. | File-level or disk snapshots of the data and configuration directories. Confirm the backup procedure EMQX documents for your version before relying on snapshots. |
| Monitoring and alerting | Collect container logs and scrape the metrics endpoint with an external collector. Confirm which metrics your version exposes. | Use cluster-level monitoring with pod, node and volume alerts, plus broker metrics. Confirm the metrics and dashboards available for your version. | Run host agents alongside EMQX metrics. Alerting covers only what you configure, so document each alert and its owner. |
| Alerts that matter for EMQX | Container restart loops, data volume capacity, certificate expiry and connection count thresholds. | Pod restarts, persistent volume capacity, certificate expiry and connection count thresholds, plus alerts for the control plane your cluster depends on. | Service state, disk capacity, certificate expiry, connection count thresholds and time sync across nodes. |
| Skills the team needs | Container runtime, Compose or a similar tool, and Linux host administration. | Kubernetes operations, storage classes, Helm or manifests, and load balancer or ingress setup for MQTT ports. | Linux administration, service supervision, configuration management and certificate handling. |
| Who carries the extra platform work | The team that runs the host. A single host is also a single point of failure that needs its own recovery plan. | The team that runs the cluster. The cluster itself becomes another system to upgrade, patch and monitor. | The team that runs the OS. Every node needs its own patching and hardening cycle alongside EMQX. |
How upgrades and backups change between models
Each deployment model moves the upgrade, rollback and restore work to a different team. On Docker, your platform or operations team pulls a new image tag, replaces the container and keeps broker data on a mounted volume. Rollback then means starting the previous image against that same volume, which only works if the newer version did not change the stored data in a way the older one cannot read. On Kubernetes, the cluster team usually owns the rollout mechanics, such as the StatefulSet update strategy and revision history, while the messaging team owns the broker configuration and the call to roll back. On virtual machines, the operations team upgrades the package on each host, so OS patching, snapshots and EMQX upgrades compete for the same change window. Write down who runs each step before the first upgrade, not during an incident.
The backup plan has to cover two items that teams often leave out: the license file and the cluster state. From EMQX 5.9.0, deploying a cluster of more than one node requires a license file, so a restored cluster cannot form until someone can supply that file. Keep a copy outside the cluster's own volumes and record which account or contact holds the license, so a restore on a new host does not depend on one person's mailbox. Cluster state covers node configuration, authentication settings, rule engine definitions and the data integration connectors you configured, which the broker keeps in its own data store, separate from the container image or package. Confirm in the EMQX documentation for your exact version which of these can be exported, which a volume or VM snapshot captures, and whether a snapshot taken under live traffic restores cleanly.
Run the upgrade in the same order whichever model you choose. First, rehearse on a staging cluster built with the same EMQX version, the same license file and a copy of the production configuration. Second, before touching a node, drain or move client connections so devices reconnect to healthy nodes; check how your load balancer or DNS handles MQTT reconnects and confirm that your devices back off sensibly. Third, upgrade one node at a time where the EMQX release notes on GitHub and the documentation for your target version support a rolling upgrade, and confirm each node rejoins the cluster before moving on. Fourth, verify cluster membership, connection counts, a test publish and subscribe on each listener, and rule actions reaching Kafka or your database. Keep the previous image or package and the tested backup until verification is signed off.
Which team fits which EMQX deployment model
Illustrative example: a small team running an IoT pilot with a limited device fleet and no Kubernetes experience. For this team, one EMQX node on a single Docker host or one virtual machine is usually the most practical starting point. The Business Source License allows production use of a single node, as long as the platform is not offered to third parties on a hosted or embedded basis, so an internal pilot can run on one node without a license file. Clustering is where cost and complexity change, so the pilot should be designed with that step in mind.
- Model that fits: one EMQX node under Docker Compose or on one VM, with persistent storage for broker data and a tested restore path.
- In-house skills: basic Linux administration, container basics if you use Docker, TLS certificate handling, and the ability to read logs and rehearse an upgrade in a test environment first.
- Choose differently when: the pilot must survive a host failure, the device count grows toward a cluster, or a second team needs to share the broker. Then plan a multi-node design and the license file it requires.
- Licensing check: confirm that your use is internal production and that you are not offering the broker to third parties, because the single-node grant depends on those conditions. The EMQX license terms set out the details.
- Ask a partner: a written scope covering a single-node build, TLS and authentication setup, a backup and restore test, and a documented path to clustering if the pilot grows.
Confirm the license reading with your legal or procurement team before the pilot carries production traffic.
Illustrative example: an infrastructure team that already runs Linux virtual machines and manages them with configuration management. This team usually fits a VM-based deployment best, because the broker becomes one more managed host inside the patching, backup and monitoring workflows the team already runs. Clustering on VMs needs planning for node count, load balancing and cross-node networking. From version 5.9.0, a cluster of more than one node requires a license file, so the license should be part of the design review, not an afterthought.
- Model that fits: EMQX installed on VMs, clustered across hosts where the network allows, with installation and configuration handled by the team's existing configuration management tool.
- In-house skills: the configuration management tool already in use, certificate lifecycle management, load balancer configuration, and runbooks for rolling node restarts.
- Choose differently when: many application teams need self-service environments, or the organization already operates a Kubernetes platform for other services. Then a container model reduces the number of hand-built hosts to maintain.
- Upgrade discipline: upgrade one node at a time, check cluster health between steps, and rehearse the full sequence in a staging cluster. Review the EMQX releases on GitHub for the version you plan to run.
- Ask a partner: how roles or playbooks will be written, how the license file is installed and tracked, and what evidence the upgrade and restore tests will produce.
Confirm the supported upgrade path for your target version in the EMQX documentation before any work starts.
Illustrative example: a platform engineering team that already operates Kubernetes for other services and has GitOps and monitoring in place. This team usually fits a Kubernetes deployment, because scheduling, rolling updates, secrets management and network policy are handled by tooling it already runs. The trade-off is that the broker is stateful. Cluster membership, persistent storage and connection handling need deliberate design, so the team should not treat the broker like a stateless web service.
- Model that fits: EMQX deployed as a stateful workload with persistent storage, exposed MQTT listeners through a load balancer or ingress path, and a clustering setup validated in a non-production cluster first.
- In-house skills: Kubernetes operations for stateful workloads, storage class selection, network policy, load balancer design for MQTT ports, and GitOps workflows for controlled changes.
- Choose differently when: nobody on the team will own stateful workloads, or the device network needs direct connectivity that the cluster cannot expose cleanly. A VM model or a single-node deployment may then be simpler to run.
- Shared platform risk: a cluster upgrade or a noisy neighbor on a shared node pool can disrupt broker connections, so confirm disruption budgets, node pool isolation and upgrade windows.
- Ask a partner: a Helm or manifest design reviewed by your platform team, a load test plan, an upgrade rehearsal, and an operations handover. The EMQX README is a useful starting point for the protocol and listener settings to review.
Check the Kubernetes deployment option for your target EMQX version in the EMQX documentation before choosing this model.
What EMQX deployment options cost to run and staff
What drives the cost of running EMQX on Docker, Kubernetes or VMs?
The main cost drivers are the number of nodes, the people who patch and operate them, and the platform skills your team already has. Docker on a few hosts keeps the infrastructure simple but leaves scheduling, rolling restarts and failover to your operators. Kubernetes adds a cluster to run, with its own upgrades, networking, storage and monitoring, which pays off most when your organization already runs clusters. Virtual machines are familiar to most infrastructure teams, but every node needs its own OS patching, certificate rotation and backup routine. Recurring costs include infrastructure, staff time for upgrades and on-call duty, monitoring, and EMQX licensing for clusters. One-time costs include design, initial build, hardening and integration with your identity and data systems. Ask for each cost line separately in any quote.
Do I need Kubernetes for high availability with EMQX?
No. Kubernetes is one way to run a highly available EMQX cluster, and it is optional. EMQX supports masterless clustering, so high availability depends on how you deploy nodes, balance device connections, provision storage and recover from node loss, whichever platform you choose. On Docker or VMs, you set up that failover yourself, usually with a load balancer, health checks and a documented procedure for replacing a node. Kubernetes can automate restarts, rescheduling and rolling upgrades, but your team must understand pod disruption, persistent storage and network policy to rely on it. Confirm with EMQX which cluster configuration, load balancer behavior and session handling your version expects, and test node failure in a staging environment before you depend on the design. If your team has no cluster experience, a simpler VM or Docker layout may be easier to keep highly available.
Does the EMQX license file change anything for a cluster?
Yes. From EMQX 5.9.0, a cluster of more than one node requires a license file, so the deployment model does not remove the licensing question. EMQX merged its former Open Source and Enterprise editions into one offering under the Business Source License 1.1. The license allows production use of a single node, provided it is not offered to third parties on a hosted or embedded basis. Each release converts to Apache 2.0 four years after publication. The license text does not settle how Docker containers, Kubernetes replicas or VM nodes are counted, so confirm that with EMQX for your layout. Ask EMQX how the license file is loaded and renewed in each model, and who holds the file in your change process. Read the EMQX license text before you finalize the design.
How long does it take to move EMQX between deployment models?
The time depends on the size of the cluster, how much configuration and integration must move, and how much interruption your device connections can tolerate. No duration applies to every move, so ask for a schedule tied to your written scope. The main drivers are the rule engine rules and data integrations to rebuild and test, the authentication setup, TLS certificates, load balancer and DNS changes, and the device endpoints that point at the broker. Moving from VMs to Kubernetes usually adds a new platform to learn, while moving between Docker and VMs is mostly packaging and process work. A cutover plan with parallel running, a rollback path and a device reconnection test takes longer than the data copy itself. Most engagements are fixed-scope, with the schedule agreed in writing before work starts.
What does an EMQX deployment need from our own team?
Your team supplies access, decisions and the people who will own the platform after handover. Typical inputs include cloud or data center access, network and firewall changes, certificate authorities and identity systems, and a named owner for each integration target such as Kafka, PostgreSQL or Redis. Decision-makers must agree on the topology, retention, backup targets and change approvals. Operations staff should attend build reviews and the cutover test, and they need to learn the upgrade and restore procedures before go-live. Engineers should be able to read broker logs and metrics and test device connections with the tools your fleet uses. DeployOpen plans, implements, hardens, backs up, upgrades and documents self-hosted platforms inside your environment, so the handover package and runbooks belong in the written scope. Confirm which tasks stay with your staff before work starts.
Can our own team run EMQX without an implementation partner?
Often yes, if your team already operates clustered, stateful services and can take on the EMQX-specific work. The cluster design, rule engine and integrations, authentication, and upgrade procedures are the parts that need someone who knows the product well. Ask whether you have engineers who have built a cluster before, who can test failover, and who will read release notes before each upgrade. Consider whether the people who build the system will also be on call for it, and whether anyone else holds that knowledge when a key engineer leaves. An outside partner can be engaged for design review, build, hardening and training while operations stay with your team. Most engagements are fixed-scope, and ongoing support is available as a retainer if you want continuing help after handover.
What should a written quote for EMQX deployment include?
A written quote should state the scope, deliverables, environments and timeline in the terms the engagement will be measured against. Ask for each phase as a separate line: design, build, integration with each data target, authentication and certificates, testing including failover, backup and restore, cutover, documentation and handover. Ask which items are one-time and which recur, such as upgrades, monitoring, retainers and continuous testing. Ask what your staff must provide and how delays in those inputs affect the schedule. Ask which EMQX licensing and support costs are excluded and who buys them. Those terms come from EMQX, so confirm the license model for your cluster size and the support terms directly with EMQX and keep them separate from the implementation quote. DeployOpen does not publish a price list, and a quote follows from the written scope.
How DeployOpen plans and runs EMQX deployments
DeployOpen plans, builds and hands over EMQX inside your own infrastructure, on Docker hosts, a Kubernetes cluster or virtual machines. We start from your team's skills, upgrade process and recovery expectations, then recommend the runtime that your operators can run and your security team can review. Scope, deliverables and timelines are agreed in writing before work starts.
How we scope
- Scope records node count, since clusters above one node need an EMQX license file from 5.9.0.
- Sizing inputs such as connection counts, message rates and retention are documented and agreed before any host is provisioned.
- The scope sets out upgrade, backup and failover test steps for your chosen runtime, with sign-off owners named.
How we build
- Docker, Kubernetes or VM deployment definitions are built in your environment and kept in your own version control.
- Authentication options such as JWT or X.509 certificates are configured and tested before any device connects.
- Data integrations such as Kafka, PostgreSQL or Redis are wired through the rule engine and tested against expected traffic.
How we hand over
- Handover includes runbooks for scaling, upgrades, backup restores and node replacement, written for your operators.
- Architecture notes explain the topology chosen, the reasons for it, and what would change if you moved runtimes later.
- Configuration records, access settings and backup evidence are packaged for your compliance and security reviewers.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Upgrade planning tracks the EMQX release you run, including the license terms that apply to that release line.
- Ask for patching, node failure and response terms to be written into the retainer for your chosen runtime.

