Guidance on setting number of workers in crew_controller_local()
#181
-
Hello! I've been enjoying using In other parallel processing packages I get that you define the number of cores you want to use, which is simple, but I can't see anything in the I imagine setting Part of this is that I'm keen to use Thanks very much |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Each local You will probably see most benefits from setting |
Beta Was this translation helpful? Give feedback.
Each local
crew
worker is an R process on your computer, just as withparallel::mclapply()
orfuture::future()
withfuture::plan(future::multisession)
. So whatever number formc.cores
orworkers
you would choose for other packages applies here too.You will probably see most benefits from setting
workers
equal to the number of available cores on your machine. Anything more probably won't be much better, even with CPU hyperthreading. And of course, if you are runningcrew
on a shared machine, e.g. the login node of a cluster, others will need cores too.