snowFT-repair {snowFT} | R Documentation |
Functions to add, remove and restart nodes of a snowFT cluster.
addtoCluster(cl, spec, ..., options = defaultClusterOptions) removefromCluster(cl, nodes, ft_verbose = FALSE) repairCluster(cl, nodes, ..., options = defaultClusterOptions)
spec |
Cluster specification. Using PVM, it is the number of additional nodes to create. |
cl |
Cluster object. |
nodes |
Indices of nodes. |
options |
Cluster options object. |
ft_verbose |
If TRUE, debugging messages are sent to standard output. |
... |
Cluster option specifications. |
addtoCluster
adds new nodes to cluster cl
. For "PVM"
cluster the spec
argument should be an integer
specifying the number of nodes to create.
removefromCluster
removes nodes given by indices nodes
from cluster cl
.
repairCluster
replaces nodes (given by indices nodes
) by
new created nodes and loads snowFT on the new nodes.
Cluster options used in addtoCluster
and repairCluster
should be the same as used for creating the cluster cl
(see
makeClusterFT
).
All three functions return the updated cluster object.
Hana Sevcikova
## Not run: # create a cluster of size five cl <- makeClusterFT(5) clusterApply(cl, 1:5, get("+"), 3) # add three nodes cl <- addtoCluster(cl,3) printClusterInfo(cl) # remove nodes 3 and 7 cl <- removefromCluster(cl, c(3, 7), ft_verbose=TRUE) # check for failures fail<-findFailedNodes(cl) cl<-repairCluster(cl,fail[,1]) # stop cluster stopCluster(cl) ## End(Not run)