Upgrading Kuzzle #
As for any product, releasing a new major version means many exciting changes, but also a lot of breaking changes forcing users to adapt.
The exhaustive list of breaking changes is available here: link.
Kuzzle can either be made in place, or by importing data from a Kuzzle v1 instance into a fresh v2 infrastucture.
New Kuzzle stack #
Simply follow our standard install procedure, and run our upgrade script (see below).
The choice will be proposed to import data from a different Elasticsearch instance than the one detected.
In-place migration #
First, shut down the Kuzzle v1 instance, but keep the Elasticsearch server running.
Upgrade Kuzzle source files (either in place, or by installing them in another directory).
Run the upgrade script (see below): a choice will be proposed to migrate using the same Elasticsearch instance as the target.
At the end of the script, if everything went well, it will ask permission to destroy the previously upgraded structure. This is the only point of no-return: if you accept, then it cannot be reverted.
The next step is to upgrade Elasticsearch to v7.0 or above (Elasticsearch upgrade documentation (opens new window)).
Once done, Kuzzle v2 can be started.
Upgrade script #
Kuzzle v2 comes with an upgrade script, making it easier to migrate from the previous version.
To start the script, launch
bin/upgrade --help and follow the instructions.
The script is idempotent: it can be restarted any number of times, without any danger to your data storage.
Except if you choose to destroy the upgraded storage structure, which is only proposed for in-place migrations, and after every other operations are successful.
The script upgrades the following:
- configuration files
- internal storage: security configuration, users, token seed, ...
- public and plugin-dedicated storages
- cache: users can continue using their active tokens after a successful upgrade
Other breaking changes, especially those involving the API, must be dealt with manually.