snowFT-repair {snowFT}R Documentation

Repairing a Cluster

Description

Functions to add, remove and restart nodes of a snowFT cluster.

Usage

addtoCluster(cl, spec, ..., options = defaultClusterOptions)
removefromCluster(cl, nodes)
repairCluster(cl, nodes, ..., options = defaultClusterOptions)

Arguments

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.
... Cluster option specifications.

Details

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).

Value

All three functions return the updated cluster object.

Author(s)

Hana Sevcikova

Examples

  ## Not run: 
cl <- makeClusterFT(5)
clusterApply(cl, 1:5, get("+"), 3)
cl <- addtoCluster(cl,3)
fail<-findFailedNodes(cl)
cl<-repairCluster(cl,fail[,1])
## End(Not run)

[Package snowFT version 0.0-2 Index]