Upgrade to v0.8.0 from earlier versions
v0.8.0 is a breaking release which requires data migration, if you are upgrading from an older version then you have to run the data migration scripts to be able to see past data.
First upgrade to v0.8.0
Follow the platform specific instructions to upgrade to v0.8.0 and above.
Note that the past data will not be visible on the new application until you run the migration script.
Upgrade Docker Installation
git clone -b main https://github.com/SigNoz/signoz.git && cd signoz/deploy/
git checkout v0.8.0
Upgrade Kubernetes Installation
helm repo update
helm search repo signoz --versions
helm -n platform upgrade my-release signoz/signoz
Steps to run migration script:
docker run --name signoz-migrate --network clickhouse-setup_default \
-it -d signoz/migrate:0.8 -host=clickhouse -port=9000
Steps to check logs:
docker logs -f signoz-migrate
In case of failure and have to run again, make sure to cleanup the container before running the migration script again.
docker stop signoz-migrate
docker rm signoz-migrate
kubectl -n platform run -i -t signoz-migrate --image=signoz/migrate:0.8 --restart='Never' \
-- -host=my-release-clickhouse -port=9000 -userName=admin -password=27ff0399-0d3a-4bd8-919d-17c2181e6fb9
Steps to check logs:
kubectl -n platform logs -f signoz-migrate
In case of failure and have to run again, make sure to cleanup the pod before running the migration script again.
kubectl -n platform delete pod signoz-migrate
There are some custom flags which can be enabled based on different usecases.
All the flags below are
-port: Specify port of clickhouse.
-host: Specify host of clickhouse.
-userName: Specify user name of clickhouse.
-password: Specify password of clickhouse.
-dropOldTable: If it is set to true then the old tables will be dropped after data migration is successful
-service: If you want to restart the migration starting with the service after it has failed specify the service name with -service.
-timeNano: Timestamp in nano after which the migration needs to be restarted.