Packages

Elects master node from Erlang/Elixir cluster that is agreed by all nodes.

Current section

Files

Jump to
elector include elector_header.hrl
Raw

include/elector_header.hrl

-define(NAME(BaseName, Suffix), list_to_atom(atom_to_list(BaseName) ++ "_" ++ Suffix)).
-define(ELECTION_DELAY, 1000).
-define(DEFAULT_STRATEGY, elector_ut_high_strategy).
-define(ERPC_TIMEOUT, 5000).
-define(HOOK_EXEC_TIMEOUT, 1000).
-define(LEADER_CHECKUP_INTERV, 10000).
-define(COMMISSION_CHECKUP_INTERV, 3000).