Starting snowFT Cluster

Share:

Description

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

Usage

1
2
makeClusterFT(spec, type = getClusterOption("type"), 
    names = NULL, ft_verbose = FALSE, ...)

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.

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.

The cluster should be stopped by stopCluster of the snow package.

See Also

snow-startstop functions of the snow package.

Examples

1
2
3
4
5
6
7
## Not run: 
cl <- makeClusterFT(5)
res <- clusterApplyFT(cl, 1:10, get("+"), 3)
stopCluster(res[[2]])
print(res[[1]])
  
## End(Not run)