-
Notifications
You must be signed in to change notification settings - Fork 93
Upgrade Guide
Before upgrading from one version to another, please check the guide below.
Expected downtime: < 5 minutes
- Read the CHANGELOG.md since some command line arguments were changed, especially for running the server:
-D
becomingdaemon
. - If using redis sentinel, take at least half of the sentinels down: you don't want an unexpected failover during the upgrade.
- Install Mirrorbits 0.5 on all instances without restarting the service(s).
- Backup your master Redis instance:
- Run
redis-cli SAVE
and wait for the operation to finish. - Copy redis on-disk database (usually from
/var/lib/redis/dump.rdb
) in a safe place.
- Run
- Stop all Mirrorbits instances from the cluster you're about to upgrade.
-
Optional but recommended: start only one instance and follow the logs until you see:
Database upgrade successful
- Start all remaining instances.
Note I: during the upgrade all Mirrorbits instances will be prevented from using the database and therefore will only return results from the Fallbacks. At the time of the upgrade, be sure that this list is up-to-date.
Note II: Stats will not be lost, they will be kept in memory during the upgrade.
If the upgrade failed just re-install Mirrorbits 0.4. It should work without having to restore the database.
In any case, please open an issue.