snowFT-startstop {snowFT} | R 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 |
ft_verbose |
If TRUE, debugging messages are sent to standard output. |
... |
Cluster option specifications. A useful option is |
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)