Launches a P2P worker and adds it to a P2P cluster
Usage
worker(
cluster = p2p_cluster_name(host = host, ssh_args = ssh_args),
host = "pipe.pico.sh",
ssh_args = NULL,
duration = 60 * 60,
sandbox = FALSE
)Arguments
- cluster
The P2P cluster to contribute to.
- host
(character string) The hostname serving the pico service.
- ssh_args
(character vector) Optional SSH arguments.
- duration
Duration (in seconds) to offer working on futures.
- sandbox
If TRUE, the future is resolved in R WebAssembly (webR), using the external
rwtool (1).
Sequential, single-core processing by default
A P2P worker runs sequentially and is configured with a single CPU core to prevent nested parallelization.
References
rw: CLI for webR with Sandboxing Features, under development, https://github.com/HenrikBengtsson/rw.