mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-03 21:29:59 -05:00
* API benchmark: run history and regression detection api_perf.py --record saves each run to a SQLite history kept outside the repository (--data-dir, $WROLPI_BENCH_DIR, or ~/.local/share/wrolpi-bench) and reports endpoints that got slower than their own baseline: the median of the last 5 trustworthy runs, flagged at 1.5x and +100 ms, with hot regressions re-timed before they are reported. Also reports slow drift, errors, slow endpoints, response growth, library growth, and the commits between the baseline and the run that touched related code. Runs on a busy host (downloads, load above core count) or during which the API was unavailable are recorded but never used as baselines. Host profiles can live in the data dir so LAN addresses stay out of every checkout; a profile marked production refuses --cold without --restart-production. The catalog drops the removed ai/chat endpoints and adds repos, bookmarks, jobs, torrents, sync, speedtest, map and video description endpoints. test_api_perf.py fails when a GET route is neither timed nor deliberately excluded, so new endpoints are not silently left out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * API benchmark: a 5xx is an endpoint error, not an unavailable API Sanic answers 503 when a single request exceeds its response timeout; that endpoint is reported as an error and the run stays a usable baseline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
822 B
JSON
30 lines
822 B
JSON
{
|
|
"docker": {
|
|
"url": "https://192.0.2.10:8443",
|
|
"ssh": "user@192.0.2.10",
|
|
"ssh_opts": [],
|
|
"restart": "docker restart wrolpi-api-1",
|
|
"drop_caches": "sudo -n sh -c \"sync; echo 3 > /proc/sys/vm/drop_caches\""
|
|
},
|
|
"pi": {
|
|
"url": "https://192.0.2.11",
|
|
"ssh": "user@192.0.2.11",
|
|
"ssh_opts": [
|
|
"-o",
|
|
"IdentitiesOnly=yes"
|
|
],
|
|
"restart": "sudo -n systemctl restart wrolpi-api",
|
|
"drop_caches": "sudo -n sh -c \"sync; echo 3 > /proc/sys/vm/drop_caches\""
|
|
},
|
|
"pi-limited-sudo": {
|
|
"url": "https://192.0.2.12",
|
|
"ssh": "wrolpi@192.0.2.12",
|
|
"ssh_opts": [
|
|
"-o",
|
|
"IdentitiesOnly=yes"
|
|
],
|
|
"restart": "sudo -n systemctl stop wrolpi-api.service && sudo -n systemctl start wrolpi-api.service",
|
|
"drop_caches": null,
|
|
"production": true
|
|
}
|
|
}
|