Hello, I decided to split my larger project into smaller libraries. As a result, I have released the first library written in Erlang called Elector.
Elector is a library that automatically selects the leader node from an Erlang cluster. It reacts automatically when a node joins or leaves the cluster and initiates election. It is possible to configure the code to be executed before and after automatic election using hooks.
By default, Elector uses a voting strategy that selects the node with the highest runtime, but it is possible to override this with a custom strategy.
Elector supports different configuration options.
I am hoping to receive any feedback on what could be improved or any other thoughts.
Thanks!