powered by
This wraps the commands for creating a cluster suitable for future workloads.
gce_vm_cluster(vm_prefix = "r-cluster-", cluster_size = 3, docker_image = "rocker/r-parallel", ..., ssh_args = NULL, project = gce_get_global_project(), zone = gce_get_global_zone())
The prefix of the VMs you want to make. Will be appended the cluster number
The number of VMs in your cluster
The docker image the jobs on the cluster will run on. Recommend this is derived from rocker/r-parallel
rocker/r-parallel
Passed to gce_vm_template
A list of optional arguments that will be passed to gce_ssh_setup
The project to launch the cluster in
The zone to launch the cluster in
# NOT RUN { # } # NOT RUN { library(future) library(googleComputeEngineR) vms <- gce_vm_cluster() ## make a future cluster plan(cluster, workers = as.cluster(vms)) # }
Run the code above in your browser using DataLab