distrax.mons.abstract_mon class#

This holds the AbstractMon Class, which is expected to be used as a template for all created MON classes.

class distrax.mons.abstract_mon.AbstractMON(*args, **kwargs)[source]#

An interface for MON Classes.

A MON is the cluster monitor daemon, this is often used to maintain cluster health, and make sure that all the parts of the cluster can communicate.

This is designed such plugins of the MON can be made easily.

The only methods publicly visible to the user should be create_mon and remove_mon

create_mon(interface)[source]#

Create the monitor node.

Parameters:

interface (str) – the network interface the cluster will be using.

Return type:

None

remove_mon()[source]#

Remove the monitor node.

Return type:

None