snowFT-repair             package:snowFT             R Documentation

_R_e_p_a_i_r_i_n_g _a _C_l_u_s_t_e_r

_D_e_s_c_r_i_p_t_i_o_n:

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

_U_s_a_g_e:

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

_A_r_g_u_m_e_n_t_s:

    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.

_D_e_t_a_i_l_s:

     'addtoCluster' adds new nodes to cluster 'cl' and loads snowFT on
     them. 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').

_V_a_l_u_e:

     All three functions return the updated cluster object.

_A_u_t_h_o_r(_s):

     Hana Sevcikova

_E_x_a_m_p_l_e_s:

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

