wlandau / crew

A distributed worker launcher
https://wlandau.github.io/crew/
Other
123 stars 4 forks source link

Worker statistics #44

Closed wlandau closed 1 year ago

wlandau commented 1 year ago

For the controller and controller group, it would be nice to combine the output of mirai::daemons()$daemons with information about the load balancing of tasks in a nice data frame.

wlandau commented 1 year ago

This means the crew_eval() and monad will probably have to report which worker it ran on. That's easy.

wlandau commented 1 year ago

Should also record launch attempts in the launcher.

wlandau commented 1 year ago

Extra custom load balancing info should include the number of tasks on each worker and the total amount of time each worker spent on tasks. Here, each worker is labeled according to its mirai websocket. In the case of transient workers, mirai websockets may be reused a lot.

wlandau commented 1 year ago
wlandau commented 1 year ago

FYI @shikokuchuo, this feature may delay the CRAN release of crew by a little bit.

shikokuchuo commented 1 year ago

FYI @shikokuchuo, this feature may delay the CRAN release of crew by a little bit.

It will take some time after the Windows binary is built for it to replicate to the win-devel test machine in any case for your package to pass pretest - as you are depending on mirai >= 0.8.0.

On the other hand - the groundwork at nanonext is pretty much done for the next version of mirai, just needs a lot of testing. Then a re-design of the internals at dispatcher(). This also won't be quick. But in the meantime have a look over this and see if you're not excited: https://shikokuchuo.net/nanonext/reference/cv.html

wlandau commented 1 year ago

On the other hand - the groundwork at nanonext is pretty much done for the next version of mirai, just needs a lot of testing. Then a re-design of the internals at dispatcher(). This also won't be quick. But in the meantime have a look over this and see if you're not excited: https://shikokuchuo.net/nanonext/reference/cv.html

Very exciting indeed!