Skip to main content
atoti.DistributionMessenger(
    *,
    discovery_timeout: timedelta = datetime.timedelta(seconds=60),
    hello_message_timeout: timedelta = datetime.timedelta(seconds=2),
    hello_message_trials: int = 10,
    message_timeout: timedelta = datetime.timedelta(seconds=30),
    transaction_timeout: timedelta = datetime.timedelta(seconds=30),
)
The messengers through which the cubes of a cluster talk to each other. Each attribute applies to the cubes that read it: the data cubes joining the cluster, its query cubes, or both.

Attributes

discovery_timeout

How long a data cube waits for a query cube to acknowledge its discovery. The discovery is the message holding the members of the data cube, sent when it joins the cluster, so the larger the data cube, the longer it takes to send. Once this timeout is reached, the data cube logs may not have been transmitted and greets the query cube again, even if the discovery is still on its way. Set it above the time the largest data cube takes to send its discovery, which the data cube logs in successfully transmitted to [...] in [...].

hello_message_timeout

How long a data cube waits for a query cube to answer each of its hello messages. A data cube sends a hello message to greet a query cube, before sending its discovery.

hello_message_trials

How many hello messages a data cube sends to a query cube before it gives up greeting it. Each of them waits for hello_message_timeout.

message_timeout

How long a data or query cube waits for the reply to a message that has no timeout of its own. Discoveries, hello messages and commits have their own: discovery_timeout, hello_message_timeout and transaction_timeout.

transaction_timeout

How long a data cube waits for the query cubes to acknowledge one of its commits. Once this timeout is reached, the data cube logs TimeoutException: The message TransactionCommittedMessage [...] may not have been received.