Skip to content

Commit

Permalink
add ssh reverse tunnel example
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Sep 29, 2023
1 parent b7da122 commit fee40a5
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 2 deletions.
22 changes: 21 additions & 1 deletion R/parallel.R
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,27 @@
#' # launch nodes using SSH
#' command = "ssh",
#' # node IP / hostnames to connect to with custom port number
#' args = ssh_args(names = c("10.75.37.90", "10.75.37.91"), port = 222)
#' args = ssh_args(
#' names = c("10.75.37.90", "10.75.37.91"),
#' port = 222,
#' timeout = 1
#' ),
#' )
#' , error = identity)
#' if (inherits(cl, "cluster")) stop_cluster(cl)
#'
#' cl <- tryCatch(
#' make_cluster(
#' # use 'localhost' or '127.0.0.1' with a port available on all machines
#' url = "tcp://localhost:5555",
#' # launch nodes using SSH
#' command = "ssh",
#' # launch 2 nodes on the remote machine with SSH tunnelling
#' args = ssh_args(
#' names = c("10.75.37.90", "10.75.37.90"),
#' timeout = 1,
#' tunnel = TRUE
#' )
#' )
#' , error = identity)
#' if (inherits(cl, "cluster")) stop_cluster(cl)
Expand Down
22 changes: 21 additions & 1 deletion man/make_cluster.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fee40a5

Please sign in to comment.