package distributed

  1. Overview
  2. Docs

The configuration of a node to be run as a remote node i.e., one that can both send an receive messages with other nodes.

type t = {
  1. remote_nodes : (string * int * string) list;
    (*

    The initial list of remote nodes which this node can send messages to. A list of external ip address/port/node name triplets.

    *)
  2. local_port : int;
    (*

    The port that this node should run on.

    *)
  3. heart_beat_timeout : float;
    (*

    The maximum amount of time in seconds to wait between heart beats from remote nodes before marking them as unavailable.

    *)
  4. heart_beat_frequency : float;
    (*

    The amount of time between sending hearts to nodes that are connected to this node.

    *)
  5. connection_backlog : int;
    (*

    The the argument used when listening on a socket.

    *)
  6. node_name : string;
    (*

    The name of this node.

    *)
  7. node_ip : string;
    (*

    The external ip address of this node.

    *)
  8. logger : logger;
    (*

    The logger that should be used.

    *)
}