Load Testing
Trackarr ships the tooling of its load audits in tests/load/. It plays the traffic of a tracker of a given size against a real install: announces, open browser tabs, logins and Torznab requests, each simulated member with its own IP address.
WARNING
Only against a disposable test server. The tooling fills the database with fake accounts and makes Caddy take the client address from a header.
What it measures
- Announces, with one new HTTPS connection per announce, as BitTorrent clients do
- Open tabs replaying what a real browser sends: page data, background polling, full page loads
- Logins and Torznab requests at a chosen rate
- CPU and memory of every container, with the stack pinned to a chosen number of cores to stand for a server of that size
Quick start
On a fresh Ubuntu VM, install Trackarr with a domain ending in .localhost, so that Caddy issues its own certificate:
DOMAIN=trackarr.localhost ACME_EMAIL=ops@example.test MONITORING_PASSWORD=change-me-123 \
BACKUP_ENABLED=false MONERO_ENABLED=false sudo ./scripts/install.sh --yesThen, in /opt/trackarr/tests/load:
sudo ./prepare-server.sh --yes-this-is-a-test-server
sudo ./seed.sh 1 10000
sudo ./k6.sh announce.js populate USERS=10000 TORRENTS=20000 MODE=populate VUS=30
# 10,000 members on a 2-core server
sudo ./run.sh t10k 2 USERS=10000 ANN_RATE=333 WEB_VUS=500 WEB_RAMP=120s WARMUP=140 \
DURATION=320s LOGIN_PER_MIN=100 TORZNAB_PER_MIN=133The run prints latencies per page, error rates, and CPU and memory per container. Raw results go to tests/load/out/.
Every parameter and the load model are described in tests/load/README.md.
Targets
| Metric | Target |
|---|---|
| Pages (95th percentile) | under 500 ms |
| Errors | under 1 % |
| Containers | none killed for memory |
A run only counts if the load generator had CPU to spare: its own usage is printed next to the results.