Documentation
¶
Overview ¶
Command fleetsoak measures what a fleet's churn costs the hub and its manager: it runs a throwaway hub (its own home directory, port and Postgres container) from the tree under test, with computers whose nodes it plays itself and app connections that read what the hub pushes, and reports the manager's and the hub's allocation and CPU time per minute (docs/operations/testing.md "Fleet soak").
cd server go run ./scripts/fleetsoak -label head -minutes 20 go run ./scripts/fleetsoak -label base -minutes 20 -tree <a worktree of the base commit>/server go run ./scripts/fleetsoak -compare <base out>/report.json <head out>/report.json
CPU time follows the machine's state: to compare it, run the two soaks at the same time (each in its own terminal, they share nothing) and -compare prints the second's CPU time over the first's in the same minute.
It never reads or writes the machine's own installation: every process it starts gets an environment made here.