Repository navigation
v1.6.0
·
39 commits
to develop
since this release
Immutable
release. Only release title and notes can be modified.
What's new
- Add a benchmark run API to
powerpipe server:POST /api/v0/benchmark/<benchmark>/runstarts a benchmark run,GETon the run returns its status,GET .../snapshotreturns the same snapshot as--export=<file>.pps, andDELETEcancels and removes it. Many runs share the one loaded mod and the server's database connections, so a server running several benchmarks at once uses much less memory and time than a process for each run. At most 10 runs run at once; a run that no client has read for a minute is removed. Note: the run API has no authentication. Anyone who can reach the server can start and read benchmark runs, so use it only on a network you trust. - Add
powerpipe benchmark run <benchmark> --host <url>to run a benchmark on apowerpipe serverthrough the run API. It writes the same snapshot and exits with the same codes as a local run. It supports--output=snapshot|none,--export=<file>.pps|pps,--benchmark-timeoutand--progress, for one benchmark.
Enhancements
powerpipe benchmark runandpowerpipe control runnow load only the resources the benchmark or control uses, which cuts load time and memory.powerpipe benchmark run --exportnow streams control results to the export file, and keeps them on disk when the output does not print them, so memory no longer grows with the number of result rows.
Dependencies
- Bump
pipe-fittings/v2to v2.9.5,github.com/mattn/go-sqlite3to v1.14.52,github.com/spf13/cobrato v1.10.2 andgithub.com/spf13/viperto v1.21.0. - Bump
go.opentelemetry.io/otelto v1.45.0 andgithub.com/klauspost/compressto v1.20.3.