How many tasks at once? Count the cores you are given
In a container, the CPU count a program sees is the host's. vx reads the limit the kernel enforces, so it never starts more tasks than you have cores.
Performance
Performance
In a container, os.cpus() and os.totalmem() report the host, not
your limit. vx reads the limit the kernel enforces. In the container
this post was written in:
When more tasks are ready than workers, a runner has to pick. Five rules for picking, the graphs where each one wins and loses, measured with vx, and why recorded timings beat every rule that has to guess.
Execution
We swapped 20 guessed constants in DTE for one engine
vx DTE's planner was a pile of greedy rules that fought each other. One engine with one objective replaced them. Full runs of vx's own CI went from about 40 s past their ideal to 9 to 19 s.
Execution
DTE workers that fit the work, and a footer that says how full they ran
vx DTE puts each task on a machine type that can run it, books it by its measured memory peak and CPU, stops a server once nothing needs it, and prints how busy every worker was.
Turborepo, Nx and other product names are trademarks of their owners. vx is not affiliated with or endorsed by them.