- n
integer number of daemons to launch.
- url
[default NULL] if specified, a character string comprising a URL
at which to listen for remote daemons, including a port accepting incoming
connections, e.g. 'tcp://hostname:5555' or 'tcp://10.75.32.70:5555'.
Specify a URL with scheme 'tls+tcp://' to use secure TLS connections (for
details see Distributed Computing section below). Auxiliary function
host_url
may be used to construct a valid host URL.
- remote
[default NULL] required only for launching remote daemons, a
configuration generated by remote_config
or
ssh_config
.
- dispatcher
[default TRUE] logical value, whether to use dispatcher.
Dispatcher runs in a separate process to ensure optimal scheduling,
although this may not always be required (for details see Dispatcher
section below).
- ...
(optional) additional arguments passed through to
daemon
if launching daemons. These include ‘asyncdial’,
‘autoexit’, ‘cleanup’, ‘output’, ‘maxtasks’,
‘idletime’ and ‘walltime’.
- force
[default TRUE] logical value whether to always reset daemons and
apply new settings for a compute profile, even if already set. If FALSE,
applying new settings requires daemons to be explicitly reset first using
daemons(0)
.
- seed
[default NULL] (optional) supply a random seed (single value,
interpreted as an integer). This is used to inititalise the L'Ecuyer-CMRG
RNG streams sent to each daemon. Note that reproducible results can be
expected only for dispatcher = 'none'
, as the unpredictable timing
of task completions would otherwise influence the tasks sent to each
daemon. Even for dispatcher = 'none'
, reproducibility is not
guaranteed if the order in which tasks are sent is not deterministic.
- serial
[default NULL] (optional, requires dispatcher) a configuration
created by serial_config
to register serialization and
unserialization functions for normally non-exportable reference objects,
such as Arrow Tables or torch tensors.
- tls
[default NULL] (optional for secure TLS connections) if not
supplied, zero-configuration single-use keys and certificates are
automatically generated. If supplied, either the character path to
a file containing the PEM-encoded TLS certificate and associated private
key (may contain additional certificates leading to a validation chain,
with the TLS certificate first), or a length 2 character vector
comprising [i] the TLS certificate (optionally certificate chain) and [ii]
the associated private key.
- pass
[default NULL] (required only if the private key supplied to
‘tls’ is encrypted with a password) For security, should be provided
through a function that returns this value, rather than directly.
- .compute
[default 'default'] character value for the compute profile
to use (each compute profile has its own independent set of daemons).