Why a multi-node Metabase cluster needs a different major upgrade
A major upgrade runs application database migrations on startup and takes a migration lock on the application database, so a cluster of several Metabase nodes behind a load balancer must be reduced to one node before the major upgrade starts. Every other node running the old version can conflict with the schema changes, so the scale-down is a precondition, not an optimization. The Metabase upgrade docs describe this single-node rule for major versions, and your team should confirm the exact sequence against the release notes for the target version before scheduling the window.
Minor upgrades are different. The upgrade docs note that minor releases rarely need database migrations, so a rolling replacement of nodes is often the practical route for them. Before choosing a path, check the target version: if it is a major release, plan the single-node migration; if it is a minor release, confirm in the release notes whether any migrations are included. Treat the answer as an input to the change plan, not an assumption carried over from the last upgrade.
The migration itself is the step that cannot be interrupted. Metabase's docs warn that the orchestrator must not kill the process mid-migration, because a partial run can corrupt the application database. That means your platform's health checks, restart policies and rollout timers must allow the container or service enough time to finish, and the remaining node must not be restarted or scaled while migrations run. Confirm these timeouts with your platform team before the change window opens, and keep the pre-upgrade application database backup ready for a restore.
What changes in a major Metabase upgrade and what you must do
This table compares what changes in a major Metabase upgrade against what changes in a minor one, and the action each change requires in a cluster. Read it before scheduling the window, because the migration lock and automatic startup migrations shape the sequence more than anything else. Items marked to confirm depend on the release notes for your target version.
| Change | Impact on a cluster | Action needed |
|---|---|---|
| Automatic application database migrations on startup | A major upgrade runs all application database migrations when the first node starts, so the schema changes before other nodes are touched. | Back up the application database first, then start one upgraded node and watch its logs until migrations finish. |
| Migration lock on the application database | The upgrade takes a lock on the application database, so nodes running the old and new versions cannot safely run together during migration. | Scale the cluster to one node before starting the major upgrade, then scale back out only after the upgraded node is healthy. |
| Orchestrator stopping the process mid-migration | If Kubernetes or another orchestrator kills the pod during migration, the application database can be left corrupted. | Confirm the migration pod has enough startup time and that liveness probes do not restart it while migrations run. |
| Minor upgrades rarely need migrations | Minor releases usually skip schema migrations, so the single-node step is often unnecessary for them. | Check the release notes for each minor release. If migrations are listed, apply the same single-node sequence used for majors. |
| Java runtime for the target release | The target release sets a supported Java version, and nodes running an unsupported Java version will fail to start. | Confirm the required Java version for the target release in its release notes and update every node image or host. |
| Application database version and character set | The target release sets supported application database engines and versions, and the database must use the character set Metabase requires. | Confirm supported PostgreSQL or MySQL versions for the target release and verify the database settings before upgrading. |
| Metabase 64 LTS (published 16 September 2026) | LTS support runs until 1 December 2027, which suits clusters that need fewer major upgrades. | Confirm the 64 LTS release notes for changes that affect your configuration, plugins, or embedded content. |
| Metabase 65 (released 12 October 2026) | A monthly major release with a shorter support window, so each major upgrade repeats the single-node sequence. | Confirm the 65 release notes and plan a rollback path before moving a production cluster onto it. |
What to inventory and back up before touching the cluster
A multi-node Metabase upgrade is hard to reverse once migrations have run against the application database, so the work before the first change decides how safe the rest is. The cards below cover the backup, the inventory, the configuration that affects startup, the rehearsal copy and the schedule that ties them together.
Verified application database backup
Take a backup of the PostgreSQL or MySQL application database before anything else changes. This backup is the recommended rollback point, because a major upgrade runs application database migrations on startup and rolling back by running migrate down with the newer JAR is the alternative, not the default. Confirm the backup is complete by restoring it to a scratch instance and checking that the cluster's saved questions, dashboards and users are present. Record where it is stored and who can restore it.
Upgrading Metabase docsCurrent version on every node
Record the exact Metabase version, JAR file or container image tag running on each node, not just the first one behind the load balancer. Nodes that were deployed at different times can differ, and a mismatch will show up as a startup failure during the migration. Also record the Java runtime each node uses. Keep this inventory in your change record so the rollback target is unambiguous.
Plugins, drivers and startup settings
List every custom plugin, additional database driver, environment variable and JVM option set on the nodes. Include the reverse proxy and orchestrator settings that affect startup, such as health check paths, readiness and liveness timing, termination grace periods and any rule that restarts a pod that is slow to start. A plugin or driver that was not tested against the target version can block startup, and an orchestrator that restarts a node mid-migration is the failure this upgrade must avoid.
Staging copy of the application database
Restore the production application database backup into a staging environment and run the full upgrade there first. Use the same Metabase version path, the same database engine and a comparable node count, so the migration timing and any errors resemble production. Keep the staging run's logs, the list of migrations applied and the post-upgrade checks, because these become the runbook for production. Staging does not prove the production upgrade will succeed, but it removes the surprises you can find without users affected.
Maintenance window and communication plan
Agree the maintenance window with the teams that depend on dashboards and embedded analytics, and state in advance that Metabase will be unavailable while the cluster is reduced to a single node and migrations run. Name the person who decides whether to roll back, the criteria for that decision and the channel used to tell users. Confirm with your own team how long the migration took in staging before setting the window, since the length depends on your data and instance.
How to run the upgrade sequence on a cluster
The sequence takes a horizontally scaled Metabase through a major upgrade safely by isolating the migration on one node, protecting it from the orchestrator, and then bringing each node back into the cluster on the new version.
Take and verify the application database backup
Before anything changes, the platform owner takes a backup of the Metabase application database, the store that holds users, permissions, saved questions and dashboards. Because the migration runs automatically on startup, this backup is the rollback point that matters most. Confirm the backup is complete by restoring it to a separate database and checking that Metabase starts against it and that a sample of content loads. Record the backup identifier, time and the current Metabase version so the rollback path is documented before the upgrade begins.
Drain traffic and scale to one node
Stop routing new user sessions to the cluster by removing it from the load balancer or ingress, then scale the Metabase deployment down to a single node. The upgrade takes a migration lock on the application database, so only one instance can run migrations at a time, and the documented practice is to reduce the cluster to one node before a major upgrade. Confirm that exactly one instance is running and healthy, and that no other node is still serving requests or running background sync jobs against the application database.
Configure the orchestrator to tolerate a long startup
Adjust the orchestrator so it does not terminate the Metabase process while migrations are running. Killing the process mid-migration can corrupt the application database. In Kubernetes, this usually means setting a termination grace period long enough for a clean shutdown and making liveness probes tolerant of a slow startup, for example through a startup probe with a generous failure threshold. In systemd or a plain container runtime, check the stop timeout and restart policy. Ask your platform team to confirm the actual values in your environment, because the right numbers depend on database size and hardware.
Pin the target image or JAR
Change the deployment to reference the exact target Metabase version, either a specific container image tag or a specific JAR file on the host. Avoid floating tags such as latest, so that every node and every restart runs the same build. Confirm the Java runtime on hosts running the JAR meets the version the target release requires, and check the release notes for any other prerequisites. Keep the previous image tag or JAR path recorded, since it is the reference for rollback. Verify the pinned value in the live deployment manifest or service definition before starting the node.
Start the single node and watch migrations finish
Start the one remaining node on the new version and follow its logs until the application database migrations complete and the server reports that it is ready to accept connections. Migrations run automatically on startup during a major upgrade, and the time they take depends on the size of the application database and the number of changes between versions, so plan for a wait rather than a fixed duration. Treat any migration error as a stop condition: do not restart repeatedly, and do not scale out until the cause is understood and a rollback decision is made.
Verify the upgraded instance before scaling out
Confirm the single node is functioning before adding capacity back. Sign in with an administrator account, check the version shown in the admin area, run a saved question against a connected database, load a dashboard, and confirm that SSO sign-in and scheduled subscriptions work if your organization uses them. Review the logs for errors that repeat after startup. Record the result against your acceptance checklist. This is the last point where restoring the pre-upgrade backup is a simple, low-impact rollback, so the decision to proceed should be recorded explicitly.
Scale back out one node at a time
Increase the replica count by one, wait for the new node to start and report healthy, and confirm in the logs and admin area that it has joined on the new version. Repeat until the planned node count is reached, then return the cluster to the load balancer. Adding nodes one at a time keeps each join observable, and makes it clear which node caused a problem if one occurs. Confirm that every node reports the same version and that sessions are served across the full set.
Confirm the cluster and close the rollback window
Run the same functional checks against the load-balanced address that you ran on the single node, and watch error rates and resource use across all nodes for a period your operations team sets. Rollback after the cluster is serving traffic is still possible by restoring the pre-upgrade application database backup, but it affects content created after the upgrade, so record the time and decision in the change record. Ask your upgrade lead to confirm the final state in writing before the change is closed.
How orchestrator settings differ between Kubernetes, Docker and VM clusters
On Kubernetes, the Metabase workload is usually a Deployment or StatefulSet whose replica count is set in the manifest or by a GitOps controller. Scaling to one node means changing that replica count, but a controller that reconciles the desired state can scale the workload back up during the upgrade. The liveness probe is the setting most likely to kill a migrating process: if the probe times out while Metabase is applying migrations, the kubelet restarts the container and interrupts the lock holder. Check the following in your own cluster:
- Replica count and controllers: Confirm which object owns the replica count (manifest, Helm values or an Argo CD application) and pause automated sync or autoscaling for the upgrade window.
- Liveness probe timing: Review the initial delay, period, timeout and failure threshold, and confirm they tolerate a long startup. A startup probe can hold off liveness checks until the application is ready.
- Pod disruption budgets and drains: Check whether node drains or cluster autoscaling could evict the single pod during the migration.
- Restart policy and rollout strategy: Confirm the container restart behavior and that a rolling update does not start a second pod with the new image while the first is still migrating.
- Termination grace period: Compare the grace period with how long a migration may run, and confirm the application database is not stopped mid-write.
Before the upgrade, verify these values in your cluster and in a staging copy, since the exact settings depend on your own manifests.
In Docker Compose, the replica count is typically set with the deploy.replicas key under Swarm or by running multiple service instances of the same service definition. Under plain Compose, a container with a restart policy such as always or unless-stopped will be restarted by the Docker daemon when it exits, which can start a second migration attempt after an interruption. Swarm adds its own reconciliation loop, so a scaled service may be reset to its declared replica count. Check the following in your own environment:
- Declared replica count: Confirm the
deploy.replicasvalue in the stack file and that a redeploy from source control will not restore the old count. - Restart policy: Review the
restartsetting and any Swarmrestart_policyblock to understand what happens if the container exits during migrations. - Health checks: Review any
healthcheckblock, since an unhealthy status can trigger replacement in Swarm. - Stop timeouts: Check the stop grace period before Docker sends a kill signal, and confirm it covers a long migration.
- Image tag pinning: Confirm the image tag in the file, so that the single running instance uses the intended release and only one instance applies migrations.
Run the upgrade in a non-production stack first, and record the exact values your version of Docker uses.
On virtual machines, Metabase usually runs as a JAR under a systemd unit or a process supervisor on each node, behind a load balancer. The orchestrator here is the init system and the load balancer, and neither one knows that a migration is in progress. Systemd can restart a failed unit according to its Restart= directive, and a configuration-management tool can start a stopped service again on its next run. The load balancer can also send traffic to a node whose health check passes before migrations finish. Check the following on your own hosts:
- Unit restart behavior: Review the
Restart=andRestartSec=settings in the unit file, and theTimeoutStopSec=value, which controls how long systemd waits before forcing a stop. - Configuration management: Confirm that Ansible, Puppet, Chef or a similar tool will not start or reconfigure the service on other nodes during the window.
- Load balancer membership: Remove every node except the upgraded one from the pool, and confirm that the health check cannot route traffic to a partly migrated node.
- Java and JAR path: Confirm the JAR path and Java runtime the unit uses, so the single node runs the intended release.
- Shutdown sequence: Confirm the steps that stop the service before a migration and the order for restarting the other nodes afterward.
After the migration completes, restore the remaining nodes one at a time and confirm each one starts on the same version.
Where Kubernetes adds risk to a Metabase cluster upgrade
If Metabase runs on Kubernetes, the cluster itself becomes part of the upgrade. The control plane version, kubelet versions and etcd health all matter in the same change window as the Metabase migration, because a platform problem during a single-node migration leaves you with no margin. Kubernetes is open source under the Apache 2.0 license, and the project maintains the three most recent minor releases. Before you schedule the Metabase change, confirm which minor version your cluster runs, whether it is still inside that supported set, and whether your distribution has a tested path to the version you plan to reach.
The version skew policy sets the order of operations. kube-apiserver must be upgraded one minor version at a time, and it must move before kube-controller-manager, kube-scheduler and kubelets. Kubelets may run up to three minor versions behind kube-apiserver, so a cluster can be partly upgraded without being broken, but a half-finished control plane change during the Metabase migration adds a second variable to troubleshoot. Plan the platform upgrade as its own step with a recorded rollback point, and do not start the Metabase migration until the control plane and nodes are in a steady state. Check the current policy on the Kubernetes site before you set the sequence, since it is the source of truth for skew limits.
Metabase's application database credentials usually sit in a Kubernetes Secret, and Secrets are stored unencrypted in etcd by default. Unless encryption at rest is configured on the API server, anyone who can read the etcd data or take an etcd backup can read those credentials. The upgrade plan should confirm that encryption at rest is enabled, that RBAC limits list and watch access to the namespace holding Metabase, and that etcd snapshots are taken before the change using the documented backup procedure. Treat the etcd snapshot as part of the Metabase rollback plan, alongside the application database backup, and test restoring it in a non-production cluster before you rely on it.
What makes a cluster upgrade take longer
This table lists the factors that lengthen a multi-node Metabase major upgrade, why each one matters, and what to change before the window opens. Read it as a pre-upgrade checklist: the rows that apply to your environment show where to spend preparation time before any node is scaled down.
| Driver | Why it matters | How to reduce it |
|---|---|---|
| Application database size and migration history | A major upgrade runs all application database migrations on startup while the migration lock is held, so a larger, older schema generally means more work before the cluster serves traffic again. | Check the current version and schema state with the vendor docs, archive stale content where your governance allows, and confirm backup and restore timing on a copy of the database. |
| Number of versions skipped | Versions older than 40 must be upgraded release by release, so each skipped release adds another full upgrade cycle with its own migration run and verification. | Map the path from your current version to the target before planning. Ask whether a rebuild on a fresh instance with content migrated is faster for your case. |
| Custom plugins or drivers | Custom drivers or plugins built against an older version may fail to load after the upgrade, forcing a rebuild or a rollback during the window. | Inventory every custom component, confirm compatibility with the target version, and test loading each one in staging. |
| Orchestrator and load balancer complexity | Kubernetes or another orchestrator may restart or reschedule pods during a migration unless it is told to wait, which can interrupt the migration and corrupt the application database. | Scale to one node, set the orchestrator so it does not kill the migrating process, and confirm the load balancer routes only to the single running node until scale-out. |
| Need to rehearse in staging | Without a staging run on a copy of production data, migration duration, plugin behavior and the proxy setup remain unknown until the production window. | Restore a recent application database backup into staging, run the same steps and timings, and record each command so the production run follows the tested sequence. |
| Number of nodes to re-add | Each node added after the upgrade must start cleanly against the new version and pass health checks before it takes load, so more nodes mean more startup checks and a longer return to full capacity. | Confirm node configuration is identical, scale out in controlled steps, and check each node's health and version before adding the next. |
Questions teams ask before upgrading a Metabase cluster
Does a minor Metabase upgrade on a cluster also need the single-node step?
The single-node step is documented for major upgrades, where Metabase takes a migration lock on the application database. Minor upgrades rarely run migrations, so the step is usually not needed for them. Confirm this against the release notes for the exact versions you are moving between, because a release can include migrations even when it is labeled minor. Check the logs during the first start to see whether any migrations run. If you are unsure, treat the upgrade as major and follow the single-node sequence, since skipping it when a migration does run is the riskier mistake. The Upgrading Metabase docs describe the sequence.
What does an upgrade cost in internal time and partner fees?
Internal cost is the time your engineers spend on backups, change planning, testing, the cutover and monitoring, plus any downtime your users see. Partner fees cover whatever scope you hand over, such as assessment, a test-environment rehearsal, the cutover itself or post-upgrade support. Both are mostly one-time costs, while ongoing support and upgrades are recurring if you buy a retainer. Costs rise with the number of nodes, the size of the application database, the number of versions you must step through, the number of integrations and custom configuration, and the number of environments to rehearse. Ask any partner for a written scope that lists the environments covered, the number of rehearsal runs, who performs the backup and rollback test, the change window, acceptance criteria and what is excluded. DeployOpen works on fixed scope agreed in writing, and it does not publish prices.
How long does a cluster upgrade take, and what drives that duration?
No duration is fixed by the researched facts, so confirm it for your own environment in a rehearsal rather than relying on a general figure. The main drivers are the number of Metabase versions between your current and target release, since older versions need a release-by-release path, the size and health of the application database, how many nodes you must scale down and back up, the time your orchestrator takes to pull images and pass health checks, and how many migrations the target version runs. A staging rehearsal on a copy of the production application database gives you the most reliable estimate. Ask your team or a partner to record the timing of each step during that rehearsal.
Can our team run a cluster upgrade without outside help?
Yes, if your team has the skills and access to follow the documented sequence. The work needs people who can back up and restore the application database, operate your orchestrator, read Metabase startup logs and roll back cleanly. The risky points are the migration lock, the orchestrator killing the process mid-migration and any step that differs from your staging environment. Teams with limited Kubernetes or database experience, or with compliance evidence to produce, often choose to buy part of the work, such as the rehearsal or the cutover review. Decide based on who on your team has done a major upgrade before and whether they can be available during the change window.
What must we provide before a cluster upgrade starts?
You need to provide access and environments before work begins. In practice this means:
- Database access to the application database, with rights to take a backup and perform a restore
- Orchestrator access to scale the deployment, read pod status and change the termination behavior that controls how the process stops
- A test environment with a copy of the application database and the same node layout as production
- A change window with named approvers, a communications plan and a rollback decision owner
- Monitoring and log access for the cutover period
Confirm each item in writing with whoever owns it, since access requests often take longer than the technical work.
What happens if a migration fails during the upgrade, and how does rollback work?
If a migration fails, stop the rollout, keep the cluster at a single node and avoid restarting the new version repeatedly. Metabase documents two rollback paths. The recommended one is restoring the application database backup taken before the upgrade, then running the previous JAR or image. The other is running the migrate down command with the newer JAR, which the docs describe as a secondary option. Restoring the backup also reverts content created after the upgrade, so decide in advance how you will handle dashboards and questions saved during the window. Verify the backup can be restored before the change window, and keep the orchestrator from killing the process while a migration is still running, since interrupting it can corrupt the application database.
Does moving between open source and paid Metabase plans change the licensing?
Yes, the edition and plan change what you are licensed to use and what features you can run. The repository ships the open source edition under the AGPL and the commercial editions under the Metabase Commercial Software License. On the pricing page, Open Source is free, Starter and Pro are monthly plans with user allowances, and Enterprise is priced by quote starting at $20,000 per year. SSO, row and column level permissions, multi-tenant data segregation and usage analytics and auditing are included only in Pro and Enterprise. Before an upgrade that also changes editions, confirm the plan terms, the current prices and the license that applies to your image or JAR with Metabase, and make sure the target edition supports the features your cluster depends on.
How the cluster, orchestrator and application database move through the upgrade
The sequence starts with a verified application database backup and ends with every node running the new version. The orchestrator is the hand-off that matters most: it must be told to hold the single migrating node in place, because killing the process mid-migration can corrupt the application database. Before scaling back out, check that the migration finished in the logs and that the instance answers normally. If verification fails, the rollback branch restores the pre-upgrade backup rather than trying to reverse migrations.
Phases of a major upgrade, showing the orchestrator guarding the single migrating node and the rollback branch.
How to roll back if the upgrade goes wrong
Decide the rollback path before the change window opens, because the two options Metabase documents behave differently and only one of them is the recommended default. The recommended path is restoring the pre-upgrade application database backup and starting the older JAR or container image against it. This returns the application database to the state it was in before the migrations ran, so the cluster is back on the previous version with the previous schema. The cost is that anything written after the upgrade, such as dashboards, saved questions, collections, permission changes and user accounts created during the window, is lost unless you can recreate it from another source. Confirm with your Metabase administrators which changes were made during the window and whether they can be reapplied by hand.
The other option is running the migrate down command with the newer JAR. This reverses the migrations without restoring a file, so content created after the upgrade may survive where the reversed schema can still hold it, but it depends on the down migrations working cleanly for your data. Because a failed major upgrade can already have left the application database partly migrated, treat this as the riskier path and do not assume it will succeed. Confirm with Metabase's upgrading documentation which command form applies to your target version before relying on it.
Whichever path you choose, rehearse it on a copy of the application database in a non-production environment, with the same cluster shape you will use in production. Time the restore or the down migration, confirm the older version starts and serves dashboards, and check that SSO, scheduled jobs and embedded content behave as expected. Keep the cluster at a single node during rollback as well, since the same migration lock logic applies when older code touches the database. Write the steps and the go or no-go criteria into the change plan so the decision is made from the rehearsal results, not during the incident.
How DeployOpen scopes, delivers and supports a Metabase cluster upgrade
DeployOpen plans, implements, backs up, documents and supports self-hosted open-source platforms inside your own infrastructure, so a cluster upgrade is handled as a controlled change with written scope and handover. The work starts with an inventory of your nodes, orchestrator, application database and load balancer, then follows the single-node migration sequence in a rehearsed plan.
How we scope
- Inventory every Metabase node, the orchestrator, load balancer and application database before agreeing any timeline.
- Confirm the current and target versions, and whether the path crosses intermediate releases from older installs.
- Agree in writing which environments, rehearsal runs, backups and rollback steps the fixed-scope engagement includes.
How we build
- Take and verify an application database backup, then rehearse the single-node migration in a non-production copy first.
- Configure the orchestrator so it does not terminate the node while the migration lock is held, and record the settings.
- Scale back out in stages, checking node health, sessions and query behavior at each step before routing full traffic.
How we hand over
- Deliver a runbook with the exact steps, scaling commands, orchestrator settings and go or no-go checks used in the upgrade.
- Document the rollback path, including restoring the pre-upgrade backup, and who decides to invoke it.
- Walk your platform and database teams through the runbook and leave them with the evidence of each completed step.
How we support
- Offer ongoing support, upgrades and continuous testing for your Metabase estate as a retainer, scoped separately.
- Plan the next upgrade window around the support end-of-life dates your team confirms with the Metabase version support page.
- Review the runbook after each upgrade and update it for changes to the cluster, orchestrator or Metabase release.

