Migrations And Upgrades
Prerequisites
Section titled “Prerequisites”- Backup plan for PostgreSQL metadata and ClickHouse telemetry
- New Oriel binary available
- Same config file that the service uses
Check migration state:
oriel --config /etc/oriel/oriel.toml migrate statusApply pending migrations:
oriel --config /etc/oriel/oriel.toml migrate upTarget one store when needed:
oriel --config /etc/oriel/oriel.toml migrate up --store metadataoriel --config /etc/oriel/oriel.toml migrate up --store clickhouseSystemd deployments run oriel-migrate.service before oriel.service.
Verify
Section titled “Verify”oriel --config /etc/oriel/oriel.toml doctorcurl -fsS http://localhost:6743/readyzReadiness fails with ORL-5002 when a node is serving against an incompatible
schema.
Rollback/Recover
Section titled “Rollback/Recover”Down migrations exist but destroy data and require --yes:
oriel --config /etc/oriel/oriel.toml migrate down --steps 1 --yesUse down migrations only with a deliberate restore plan. Prefer restoring from database backups when an upgrade needs to be reverted.