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

Operations

This section is for the people who run Tappet in production.

PageCovers
DeploymentChoosing a topology; Docker Compose, Kubernetes (Helm and manifests), systemd, Fly.io, Render; reverse proxies
Backups and restoreWhat to back up, SQLite and Postgres procedures, restore drills
Key rotationRotating the encryption key
Scaling and high availabilityAPI and worker processes, leader election, sizing
Metrics, logs and tracingPrometheus metrics, OpenTelemetry, logs, alerts
RetentionExecution pruning, blob garbage collection, database size
UpgradingVersioning, migrations, rolling upgrades

What Tappet stores

DataWhereNotes
Workflows, versions, credentials (encrypted), users, projects, executions, queue, audit logThe database: SQLite file (${TAPPET_DATA}/tappet.db) or Postgres (TAPPET_DATABASE_URL)Back up.
Large payloads and binary filesBlob store: ${TAPPET_DATA}/blobs or S3 (TAPPET_BLOBS_URL)Back up together with the database.
Encryption keyTAPPET_ENCRYPTION_KEY, or ${TAPPET_DATA}/encryption.key in development modeBack up separately. Without it, credentials are lost.
ConfigurationEnvironment variables and optional tappet.tomlKeep in version control, secrets in a secret store.

Health and lifecycle

  • GET /healthz returns 200 when the process can serve requests and reach its database. Use it for liveness and readiness probes and load balancer checks. It needs no authentication.
  • On startup, Tappet runs pending database migrations, then starts serving. Use tappet migrate to run them as a separate step.
  • On SIGTERM, Tappet stops accepting new executions, finishes or checkpoints running ones within TAPPET_SHUTDOWN_TIMEOUT, releases its leases and exits. Give orchestrators a termination grace period longer than that timeout.

Resource guidance

WorkloadCPUMemoryNotes
Personal, a few dozen workflows1 vCPU256 MBIdle memory is under 50 MB with SQLite.
Team, thousands of executions per hour2 vCPU1 GBSQLite on local SSD is fine; keep execution retention modest.
High volume webhooks4 vCPU4 GBTested target: 5,000 concurrent 100 KB webhook requests with peak memory under 300 MB.
HA2+ API, 2+ workers, Postgres512 MB to 2 GB per processSize workers by concurrent executions and Code node usage.

Memory grows mainly with concurrent executions holding large item lists, and with JavaScript runtimes (each capped at 64 MB by default). Large binary data is streamed and does not count.