econfd_ha Module
An Erlang interface equivalent to the HA C-API (documented in confd_lib_ha(3)).
Types
ha_node/0
-type ha_node() :: #ha_node{}.Functions
bemaster/2
-spec bemaster(Socket, NodeId) -> Result
when
Socket :: econfd:socket(),
NodeId :: econfd:value(),
Result :: ok | {error, econfd:error_reason()}.Related types: econfd:error_reason(), econfd:socket(), econfd:value()
Instruct a HA node to be primary in the cluster.
benone/1
Related types: econfd:error_reason(), econfd:socket()
Instruct a HA node to be nothing in the cluster.
beprimary/2
Related types: econfd:error_reason(), econfd:socket(), econfd:value()
Instruct a HA node to be primary in the cluster.
berelay/1
Related types: econfd:error_reason(), econfd:socket()
Instruct a HA secondary to be a relay for other secondaries.
besecondary/4
Related types: ha_node(), econfd:error_reason(), econfd:socket(), econfd:value()
Instruct a HA node to be secondary in the cluster where PrimaryNodeId is primary.
beslave/4
Related types: ha_node(), econfd:error_reason(), econfd:socket(), econfd:value()
Instruct a HA node to be secondary in the cluster where PrimaryNodeId is primary.
close/1
Related types: econfd:error_reason(), econfd:socket()
Close the HA connection.
connect/2
Related types: econfd:connect_result(), econfd:ip()
connect/3
do_connect/2
Related types: econfd:connect_result()
Connect to the HA subsystem.
If the port is changed it must also be changed in confd.conf To close a HA socket, use close/1.
getstatus/1
Related types: econfd:error_reason(), econfd:socket()
Request status from a HA node.
secondary_dead/2
Related types: econfd:error_reason(), econfd:socket(), econfd:value()
Instruct ConfD that another node is dead.
slave_dead/2
Related types: econfd:error_reason(), econfd:socket(), econfd:value()
Instruct ConfD that another node is dead.
Last updated
Was this helpful?

