This guide covers how to upgrade the TensorZero Gateway, run database migrations, and perform zero-downtime upgrades.Documentation Index
Fetch the complete documentation index at: https://www.tensorzero.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Before you upgrade
Check the release notes
Review the release notes on GitHub for any breaking changes or special migration instructions.
Upgrade the TensorZero Gateway
The TensorZero Gateway is stateless: it does not store any data locally. This means you can upgrade it by simply replacing the running container with a new one. The gateway handlesSIGTERM gracefully, so in-flight requests will complete before shutdown.
Update the image tag
Update the gateway image tag (e.g. in your
docker-compose.yml, Helm values, or deployment manifest) to the desired version.Run database migrations
Run any required Postgres and ClickHouse migrations before starting the new gateway.
Valkey (Redis) does not require any migrations.