Console and API latency¶
The console and the JSON API answer from tenax-api's in-memory catalog and an informer cache: listings and pages do not list the bucket or call the Kubernetes API (inventories and previews are read from the bucket once and kept in a small cache). The design target is a p99 under 50 ms with 1,000 targets and 100,000 backups.
Every number on this page comes from one run on 2026-11-07 on one VM (Intel Xeon @ 2.10 GHz, 4 vCPUs, 15 GiB RAM; see
Machine and versions). make perf-local (or hack/perf/run.sh console) reproduces them.
1,000 targets and 100,000 backups¶
tenax-api's HTTP handler in process, over a synthetic catalog of 1,000 targets with 100 backups each and a fake cluster, with production options (no response validation). Each page: 5 warm-up requests, then 200 sequential requests, the body read to the end as a browser would.
| Page | p50 | p99 |
|---|---|---|
Overview / |
0.21 ms | 0.40 ms |
Backups /backups |
1.08 ms | 2.20 ms |
Backups, filtered /backups?q=db-05&env=prod |
1.49 ms | 2.30 ms |
| Target page | 1.82 ms | 2.42 ms |
| Target changes | 0.92 ms | 1.21 ms |
GET /api/v1/targets |
0.33 ms | 0.66 ms |
GET /api/v1/targets/{ns}/{name}/backups |
1.30 ms | 2.09 ms |
| Activity | 0.56 ms | 0.92 ms |
| Sandboxes | 0.59 ms | 1.17 ms |
| Settings | 0.68 ms | 1.19 ms |
The overview is rendered once per catalog generation, language and role, and served from that cache until the next catalog refresh; the numbers above include that cache, as a busy console sees it.
Under concurrent load¶
The same fixture with 1, 8 and 32 concurrent clients, 400 requests per row. The clients run in the same process on the same 4 vCPUs, so at 32 clients the server and the load generator compete for the CPU.
| Page | Clients | Requests/s | p50 | p99 |
|---|---|---|---|---|
Overview / |
1 | 3,798 | 0.2 ms | 0.5 ms |
Overview / |
8 | 19,686 | 0.4 ms | 1.1 ms |
Overview / |
32 | 18,468 | 1.2 ms | 9.9 ms |
| Target page | 1 | 607 | 1.7 ms | 2.8 ms |
| Target page | 8 | 2,185 | 2.6 ms | 15.0 ms |
| Target page | 32 | 2,195 | 8.7 ms | 75.0 ms |
GET /api/v1/targets |
1 | 2,560 | 0.4 ms | 0.8 ms |
GET /api/v1/targets |
8 | 9,921 | 0.7 ms | 2.1 ms |
GET /api/v1/targets |
32 | 8,105 | 3.0 ms | 12.3 ms |
GET .../backups |
1 | 699 | 1.4 ms | 2.3 ms |
GET .../backups |
8 | 2,451 | 2.3 ms | 13.7 ms |
GET .../backups |
32 | 2,593 | 8.5 ms | 47.8 ms |
Throughput levels off at 8 clients: the 4 vCPUs are busy. Above that, requests queue and the tail grows. At 32 clients the overview and the API stay under 50 ms at p99; the target page, rendered on every request, reaches about 75 ms while the load generator shares the same 4 vCPUs. The earlier 44.5 ms came from a faster CPU (2.80 GHz); the code measured then also reaches about 75 ms on this machine, so this is not a regression.
The demo console over HTTP¶
hack/demo (9 targets, 135 backups, realistic data) as a separate process, measured with hack/perf/loadgen over
loopback TCP, 2,000 requests per row after 50 warm-up requests:
| Path | Clients | Requests/s | p50 | p90 | p99 | Body |
|---|---|---|---|---|---|---|
/ |
1 | 4,858 | 0.20 ms | 0.29 ms | 0.37 ms | 21 KiB |
/ |
8 | 32,653 | 0.17 ms | 0.44 ms | 1.31 ms | 21 KiB |
/ |
32 | 26,766 | 0.84 ms | 2.64 ms | 5.43 ms | 21 KiB |
/targets/shop/orders-db |
1 | 735 | 1.29 ms | 1.62 ms | 3.14 ms | 27 KiB |
/targets/shop/orders-db |
8 | 2,355 | 2.66 ms | 5.94 ms | 15.9 ms | 27 KiB |
/targets/shop/orders-db |
32 | 2,573 | 10.5 ms | 26.5 ms | 38.1 ms | 27 KiB |
/api/v1/targets |
1 | 6,776 | 0.14 ms | 0.19 ms | 0.27 ms | 39 KiB |
/api/v1/targets |
8 | 31,768 | 0.19 ms | 0.43 ms | 1.17 ms | 39 KiB |
/api/v1/targets |
32 | 32,859 | 0.65 ms | 1.76 ms | 7.38 ms | 39 KiB |
/api/v1/targets/shop/orders-db/backups |
1 | 1,817 | 0.52 ms | 0.68 ms | 0.92 ms | 11 KiB |
/api/v1/targets/shop/orders-db/backups |
8 | 5,403 | 1.19 ms | 2.63 ms | 6.93 ms | 11 KiB |
/api/v1/targets/shop/orders-db/backups |
32 | 5,218 | 5.27 ms | 12.4 ms | 21.3 ms | 11 KiB |
/activity |
1 | 1,169 | 0.85 ms | 1.01 ms | 1.61 ms | 13 KiB |
/activity |
8 | 3,661 | 1.65 ms | 3.98 ms | 10.6 ms | 13 KiB |
/activity |
32 | 4,853 | 4.11 ms | 15.9 ms | 34.4 ms | 13 KiB |
The target page, with its backups, restore window and charts for one target, is the most expensive page; it is rendered on every request.
Not measured here¶
- Latency through
kubectl port-forward, an ingress or Cloudflare Access: each adds its own round trip. - Sandbox queries through the query proxy: their time is the database's.
Machine and versions¶
One VM: Intel Xeon @ 2.10 GHz, 4 vCPUs (one thread per core), 15 GiB RAM, Linux 6.18. Go 1.26.10. Client and server on the same VM. Measured on 2026-11-07.
Reproduce¶
hack/perf/run.sh console
# or by hand:
TENAX_TEST_UI=1 TENAX_PERF_LOAD=1 go test -count=1 -v -run 'TestConsoleLatency|TestConsoleLoad' ./test/ui/
go run ./hack/demo -addr 127.0.0.1:8090 &
go run ./hack/perf/loadgen -url http://127.0.0.1:8090 -c 1,8,32 -n 2000 / /api/v1/targets
loadgen works against any console: pass -url and, behind authentication, -H 'Authorization: Bearer ...'.