trace-forward-2.2.2: The forwarding protocols library for cardano node.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Trace.Forward.Configuration.TraceObject

Synopsis

Documentation

data AcceptorConfiguration lo Source #

Acceptor configuration, parameterized by trace item's type.

Constructors

AcceptorConfiguration 

Fields

data ForwarderConfiguration lo Source #

Forwarder configuration, parameterized by trace item's type.

Constructors

ForwarderConfiguration 

Fields

  • forwarderTracer :: !(Tracer IO (TraceSendRecv (TraceObjectForward lo)))

    The tracer that will be used by the forwarder in its network layer.

  • acceptorEndpoint :: !FilePath

    The endpoint that will be used to connect to the acceptor. Only local socket/pipe is supported.

  • disconnectedQueueSize :: !Word

    The big size of internal queue for tracing items. We use it in the beginning of the session, to avoid queue overflow, because initially there is no connection with acceptor yet, and the number of tracing items after node's start may be very big.

  • connectedQueueSize :: !Word

    The small size of internal queue for tracing items. We use it after the big queue is empty, which means that acceptor is connected and tracing items are already forwarded to it. We switch to small queue to reduce memory usage in the node.