start_options() =
#{name => atom() | string(),
longnames => boolean(),
host => string(),
peer_down => stop | continue | crash,
exec => exec(),
connection => connection(),
args => [string()],
env => [{string(), string()}],
wait_boot => wait_boot(),
shutdown => brutal_kill | timeout()}
#{name => atom() | string(),
longnames => boolean(),
host => string(),
peer_down => stop | continue | crash,
exec => exec(),
connection => connection(),
args => [string()],
env => [{string(), string()}],
wait_boot => wait_boot(),
shutdown => brutal_kill | timeout()}
Options that can be used when starting a peer node through start/1 and start_link/0,1.
- name
-
Node name (the part before "@"). When name is not specified, but host is, peer follows compatibility behaviour and uses the origin node name.
- host
-
Enforces a specific host name. Can be used to override the default behaviour and start "node@localhost" instead of "node@realhostname".
- longnames
-
Use long names to start a node. Default is taken from the origin using net_kernel:longnames(). If the origin is not distributed, short names is the default.
- peer_down
-
Defines the peer control process behaviour when the control connection is closed from the peer node side (for example when the peer crashes or dumps core). When set to stop (default), a lost control connection causes the control process to exit normally. Setting peer_down to continue keeps the control process running, and crash will cause the controlling process to exit abnormally.
- exec
-
Alternative mechanism to start peer nodes with, for example, ssh instead of the default bash.
- connection
-
Alternative connection specification. See the connection datatype.
- args
-
Extra command line arguments to append to the "erl" command. Arguments are passed as is, no escaping or quoting is needed or accepted.
- env
-
List of environment variables with their values. This list is applied to a locally started executable. If you need to change the environment of the remote peer, adjust args to contain -env ENV_KEY ENV_VALUE.
- wait_boot
-
Specifies the start/start_link timeout. See wait_boot datatype.
- shutdown
-
Specifies the peer node stopping behaviour. See stop().