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 ClickHouse and Postgres migrations before starting the new gateway.
Valkey (Redis) does not require any migrations.