Full Restart Upgrade
The preferred method for upgrading a CrateDB cluster is the Rolling Upgrade process, which allows for zero-downtime upgrades.
However, a full restart upgrade is necessary in certain cases, such as:
When upgrading across non-consecutive feature versions (e.g., from
X.5.xdirectly toX.8.x)When explicitly required by the release notes
When using testing or development builds that don’t support rolling upgrades
Caution: These instructions apply to most installation methods. If you are using Docker, be aware that docker service update performs a rolling upgrade by default.
To perform a full restart upgrade in Docker, you must remove the service and recreate it with the new image.
Before You Begin
Warning: Before upgrading, you must back up your data using CrateDB’s snapshot mechanism.
You should also:
Notify relevant stakeholders about the expected downtime
Plan a maintenance window
Validate your upgrade plan in a test environment, if possible
Full Restart Upgrade Steps
Step 1: Stop All Nodes
Shut down the CrateDB process on every node in the cluster using the appropriate method for your setup:
Systemd:
Tarball: If CrateDB was started manually:
Docker:
Ensure every node is stopped before proceeding. Continuing the upgrade with nodes still running can lead to data corruption or data loss.
Step 2: Upgrade CrateDB on All Nodes
Upgrade the CrateDB binary or package on each node using the method appropriate to your environment:
RPM-based systems (RHEL, CentOS, etc.):
Debian-based systems (Ubuntu, etc.):
Tarball: Replace the existing CrateDB directory with the new version:
Docker: Pull the new image and recreate the service:
Refer to your OS or orchestration platform’s documentation for specific upgrade instructions.
Step 3: Restart All Nodes
Once all nodes have been upgraded:
Restart each node, using the method appropriate for your installation.
Examples:
Systemd:
Tarball:
Docker: See your orchestration documentation (e.g.,
docker service create,docker-compose up)
The cluster will automatically recover and re-form once all upgraded nodes are online.
After the Upgrade
Check cluster health and logs to verify everything is functioning properly:
Run sample queries or smoke tests to confirm that data is accessible and operations work as expected
Re-enable any maintenance configurations you may have disabled (e.g., shard allocation)
Summary
1. Stop Nodes
Gracefully shut down all nodes
2. Upgrade Software
Install the new CrateDB version on each node
3. Start Nodes
Restart the CrateDB service on all nodes
Last updated

