Skip to content

Footprint

What Tenax costs while nothing is being backed up: the size of the binary, and the memory and CPU of the two long-running processes, tenax controller and tenax api. Data moves only in Jobs and streamer pods, which exist only while they work (streamers run as long as point-in-time restore is on).

Binary

Build Size
tenax for linux/amd64, CGO_ENABLED=0 go build -trimpath -ldflags '-s -w' (as in the image) 64.5 MiB

One binary is the controller, the API and console (templates and static files embedded), the mover, streamer, restorer, receiver and volume copier, and the CLI.

Idle controller and API

Both processes ran against a local kube-apiserver and etcd (envtest, Kubernetes 1.34) with Tenax's CRDs, one BackupStore on an empty MinIO bucket and a growing number of BackupTargets on one BackupPolicy (a yearly schedule, PITR off, so no Job ever starts). Each step: 30 s to settle, then 60 s of sampling /proc and the processes' Prometheus metrics.

BackupTargets Process RSS CPU (average) Goroutines Go heap in use
0 controller 55 MiB 0.15 % of a core 252 10 MiB
0 api 71 MiB 0.07 % of a core 95 23 MiB
100 controller 64 MiB 0.85 % of a core 254 13 MiB
100 api 72 MiB 0.08 % of a core 97 23 MiB
1,000 controller 80 MiB 6.8 % of a core 254 27 MiB
1,000 api 79 MiB 0.18 % of a core 95 28 MiB
  • The controller's idle CPU grows with the number of targets: it re-checks every target once a minute (Helm value controller.resyncInterval, default 1m). 1,000 targets cost about 7 % of a core.
  • The API's memory grows with the catalog, not with the targets: these targets had no backups yet. See below for what an index of 100,000 backups costs.
  • The chart requests 50m CPU and 128 MiB for each process and limits memory to 512 MiB (controller) and 1 GiB (API), with no CPU limit. With 1,000 targets the controller uses a little more than its CPU request; see Helm values to raise it.

Catalog index

tenax-api keeps an in-memory index of every manifest, tag and segment summary in the stores and refreshes it every 30 s (TENAX_CATALOG_REFRESH). A Go benchmark (internal/catalog) indexes 1,000 targets with 100 backups each from the in-memory store:

Refresh Duration Allocated
Cold (tenax-api starts: every manifest read and parsed) 1.81 s, 18 µs per backup 589 MiB
Warm (periodic: one listing, manifests reused, tags re-read) 1.06 s 273 MiB

The index of 100,000 backups keeps about 150 MiB of heap. Against a real bucket a refresh is bound by listing the store and reading the tags (one request each); the benchmark leaves the network out.

Not measured here

  • The container image's size: it adds the Postgres 15, 16 and 17 client tools and the MySQL 8.4 client to the binary. Build it with make image and read the size with docker image ls.
  • The resources of a running backup, restore or streamer Job: they are bounded by the policy's jobs.cpu and jobs.memory (the pipeline keeps at most (concurrency + 1) parts of 16 MiB in memory per object).

Machine and versions

One VM: Intel Xeon @ 2.80 GHz, 4 vCPUs (one thread per core), 15 GiB RAM, Linux 6.18. Go 1.26.10, envtest Kubernetes 1.34.1, MinIO built from images/minio. Measured on 2026-10-21.

Reproduce

hack/perf/run.sh footprint      # artifacts/perf/footprint.md
# by hand:
make build
hack/envtest.sh go run ./hack/perf/footprint -tenax bin/tenax -targets 0,100,1000 [-s3 http://127.0.0.1:9000]
go test -run '^$' -bench Refresh -benchmem ./internal/catalog/