Skip to content

Help needed setting up cores for workers #618

Discussion options

You must be logged in to vote

With

future::plan(list(
  future::tweak(future::cluster, workers = c('rey', 'r2d2'), homogeneous = FALSE),
  future::tweak(future::multisession, workers = custom_workers)
))

you're configuring two layers of workers. In order to reach the second layer of workers, you need to use nested futures, which are explained in https://future.futureverse.org/articles/future-3-topologies.html.

Having said that, I think you're really asking for the following:

workers <- c(rep("rey", times = 64L), rep("r2d2", times = 40L))
future::plan(future::cluster, workers = workers, homogeneous = FALSE)

I'm not how sure how well this is documented, but it's mentioned in https://future.futureverse.org/articles/futur…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ramiromagno
Comment options

Answer selected by ramiromagno
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants