snowFT-startstop: Starting snowFT Cluster

snowFT-startstopR Documentation

Starting snowFT Cluster

Description

Functions to start and stop a snowFT cluster and to set default cluster options.

Usage

makeClusterFT(spec, type = getClusterOption("type"), 
    names = NULL, ft_verbose = FALSE, ...)
    
stopClusterFT(cl)

Arguments

spec

Cluster size.

type

Character string that specifies cluster type. "MPI" and "SOCK" are supported ("PVM" is currently not available).

names

Used only for the ‘SOCK’ layer. It should be a vector of host names, or a list containing specification for each host (see Example in makeCluster). Due to the dynamic resizing feature, the length of this vector (or list) does not need to match the size of the cluster spec - it is used as a pool from which hosts are taken as they are needed. If names is NULL, each node is started on ‘localhost’.

ft_verbose

If TRUE, debugging messages are sent to standard output.

...

Cluster option specifications. A useful option is outfile, specifying name of a file to which slave node output is to be directed.

cl

Cluster object.

Details

makeClusterFT starts a cluster of the specified or default type, loads the snowFT library on each node and returns a reference to the cluster. See makeCluster for more details.

stopClusterFT stops the cluster.

See Also

snow-startstop functions of the snow package.

Examples

## Not run: 
cl <- makeClusterFT(5, ft_verbose = TRUE)
res <- clusterApplyFT(cl, 1:10, get("+"), y = 3)
stopClusterFT(res[[2]])
print(unlist(res[[1]]))
  
## End(Not run)

snowFT documentation built on Sept. 21, 2023, 9:07 a.m.