Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Upgrading

Versions

Tappet follows Semantic Versioning. Before 1.0, a minor release (0.x.0) may contain breaking changes; they are listed under Changed in the changelog with migration steps. Patch releases never require more than replacing the binary.

Container images are tagged with the exact version (0.4.2), the minor line (0.4) and latest. Pin the exact version in production and upgrade deliberately.

Single node

  1. Read the changelog entries between your version and the target.

  2. Take a backup (see Backups).

  3. Replace the binary or image and restart:

    # systemd
    sudo install -m 0755 tappet /usr/local/bin/tappet && sudo systemctl restart tappet
    # Docker Compose
    docker compose pull && docker compose up -d
    

Migrations run automatically at startup. Executions that were running are checkpointed on shutdown and resume after the restart; waiting executions are unaffected.

HA, without downtime

Database migrations within a minor release line are backward compatible: the previous version keeps working against the migrated schema. That allows a rolling upgrade:

  1. Back up the database.

  2. Run migrations once, with the new version:

    tappet migrate
    

    With Helm, the chart runs this as a pre-upgrade hook Job when migrations.job.enabled is true.

  3. Roll the API processes one at a time. The load balancer drains each process; webhooks keep being accepted by the others.

  4. Roll the workers. Each worker stops claiming, checkpoints or finishes its executions within TAPPET_SHUTDOWN_TIMEOUT, and releases its leases; other workers continue.

When a release notes that a migration is not backward compatible (only in a minor or major release, and always called out), stop all processes, migrate, then start the new version.

Downgrading

Downgrades are not supported once a newer version has migrated the database. To go back, restore the backup taken before the upgrade.