Migration Guide for `v0.9.x`
Migration guide for self-hosted Measure v0.9.x. Configuration migration and database synchronization.
Use this guide only when you are on less than v0.9.0 and upgrading to v0.9.x.
Steps mentioned in this document will cause downtime.
Follow these steps when upgrading to 0.9.x. There is some downtime involved. During the downtime SDKs would receive a 503 Service Unavailable when sending sessions. Once the upgrade is complete, ingestion should resume normally. SDKs will retry sending unsent sessions automatically.
1. SSH into the VM where Measure is hosted
2. Shutdown all Measure services
cd ~/measure/self-hostsudo docker compose -f compose.yml -f compose.prod.yml --profile init --profile migrate down --remove-orphans3. Perform the upgrade
Visit Releases page to capture the latest tag matching the [MAJOR].[MINOR].[PATCH] format.
cd ~/measuregit reset --hard # only applies if you have local modificationsgit fetch --tagsgit checkout <git-tag>4. Migrate configurations
cd self-hostsudo ./config.sh --production --ensure5. Run database synchronization & migration scripts
Perform this step to complete the migration. Measure dashboard may not work properly until this step is completed.
sudo ./migrations/v0.9.x-sync-databases.sh6. Start Measure services
sudo ./install.shThink this page can be better?
Open an issue