Migration Guide
Upgrades
Weaviate is under active development, with new features and improvements being added regularly, including bugfixes. To take advantage of these updates, we recommend upgrading your Weaviate instance regularly.
General upgrade instructions
When upgrading Weaviate, we recommend that you:
- Create a complete backup of your current Weaviate instance before beginning any upgrade process.
- Plan to upgrade one minor version at a time, always using the latest patch version of each minor release.
This approach of upgrading one minor version at a time helps to minimize the risk of issues during the upgrade process, by mirroring our testing and release process. Upgrading to the latest patch version of each minor release ensures that you have the latest bugfixes and improvements.
Version-specific migration guides
- When upgrading to version
1.25.x
from1.24.x
(or lower), you must perform a Raft migration. - When upgrading to version
1.26.x
or higher (from the preceding version), ensure that the cluster metadata is synchronized.- To do so, poll the
/cluster/statistics
endpoint, and check that the correct number of nodes are reporting statistics, and thesynchronized
flag is showingtrue
, before proceeding with the upgrade. - For an example implementation, see the
wait_for_raft_sync
function here.
- To do so, poll the
v1.25.10
to v1.27
Between v1.25
and v1.27
, there are two minor versions, v1.26
and v1.27
. So:
- Create a backup of your current Weaviate instance.
- Go to the Weaviate releases page:
- Find the latest
v1.26
patch version (e.g.:1.26.11
). - Find the latest
v1.27
patch version (e.g.:1.27.5
).
- Find the latest
- Upgrade to the latest patch version of
v1.26
. - Upgrade to the latest patch version of
v1.27
.
Raft Migration (v1.25.0+)
Weaviate v1.25.0
introduced Raft as the consensus algorithm for cluster metadata. This requires a one-time migration of the cluster metadata.
In Docker-based self-hosted instances, the migration is automatic.
In Kubernetes-based self-hosted instances, you must perform a manual migration step. For more information, see the Weaviate v1.25.0
migration guide.
This was a significant change to the Weaviate architecture. Accordingly, we suggest performing another backup after upgrading to v1.25.latest
, before proceeding with further upgrades to ensure that you have a recent backup.
Backup Restoration Fix (v1.23.13+)
Before v1.23.13
, there was a bug with the backup restoration process, which could lead to data not being stored correctly.
If you are upgrading from a version before v1.23.13
, we recommend that you:
- Create a backup of your current Weaviate instance.
- Upgrade to at least
v1.23.13
(preferably tov1.23.16
) or higher, using the general upgrade instructions above. - Restore your backup to the upgraded instance.
Questions and feedback
If you have any questions or feedback, let us know in the user forum.