Module econfd_ha

An Erlang interface equivalent to the HA C-API (documented in confd_lib_ha(3)).

Version: 6.5.4

Description

An Erlang interface equivalent to the HA C-API (documented in confd_lib_ha(3)).

Data Types

ha_node()

ha_node() = #ha_node{}

Function Index

bemaster/2(Deprecated.) Instruct a HA node to be primary in the cluster.
benone/1Instruct a HA node to be nothing in the cluster.
beprimary/2Instruct a HA node to be primary in the cluster.
berelay/1Instruct a HA secondary to be a relay for other secondaries.
besecondary/4Instruct a HA node to be secondary in the cluster where PrimaryNodeId is primary.
beslave/4(Deprecated.) Instruct a HA node to be secondary in the cluster where PrimaryNodeId is primary.
close/1Close the HA connection.
connect/2
connect/3
getstatus/1Request status from a HA node.
secondary_dead/2Instruct ConfD that another node is dead.
slave_dead/2(Deprecated.) Instruct ConfD that another node is dead.

Function Details

bemaster/2

bemaster(Socket, NodeId) -> Result

This function is deprecated: Please use beprimary/2 instead

Instruct a HA node to be primary in the cluster.

benone/1

benone(Socket) -> Result

Instruct a HA node to be nothing in the cluster.

beprimary/2

beprimary(Socket, NodeId) -> Result

Instruct a HA node to be primary in the cluster.

berelay/1

berelay(Socket) -> Result

Instruct a HA secondary to be a relay for other secondaries.

besecondary/4

besecondary(Socket, NodeId, PrimaryNodeId, WaitReplyBool) -> Result

Instruct a HA node to be secondary in the cluster where PrimaryNodeId is primary.

beslave/4

beslave(Socket, NodeId, PrimaryNodeId, WaitReplyBool) -> Result

This function is deprecated: please use besecondary/2 instead

Instruct a HA node to be secondary in the cluster where PrimaryNodeId is primary.

close/1

close(Socket) -> Result

Close the HA connection.

connect/2

connect(Path, Token) -> econfd:connect_result()

  • Path = string()
  • Token = binary()

connect(Address, Token) -> econfd:connect_result()

connect/3

connect(Address, Port, Token) -> any()

getstatus/1

getstatus(Socket) -> Result

Request status from a HA node.

secondary_dead/2

secondary_dead(Socket, NodeId) -> Result

Instruct ConfD that another node is dead.

slave_dead/2

slave_dead(Socket, NodeId) -> Result

This function is deprecated: Please use secondary_dead/2 instead

Instruct ConfD that another node is dead.


Generated by EDoc