Transferred from:http://blog.csdn.net/keda8997110/article/details/8349049
Heartbeat Heartbeat Technology Principle:
Heartbeat (Linux-ha) Working principle: Heartbeat core consists of two parts, heartbeat monitoring part and the resource taking over part, heartbeat monitoring can be carried out through the network link and serial port, and support redundant links, they send each other a newspaper Greek tell each other their current state, If the message is not received by the other party within the specified time, then it is considered to be invalid, then a resource takeover module should be initiated to take over the resources or services running on the other host.
Highly available clusters
A highly available cluster is a set of independent computers that are connected by hardware and software that behave as a single system in front of the user, where one or more nodes within a set of computer systems stop working, and the service switches from a failed node to a functioning node without interruption of service. As you can see from this definition, the cluster must detect when nodes and services are invalidated and when they are available. This task is usually done by a set of code called "Heartbeat". In linux-ha This function is done by a program called Heartbeat.
Heartbeat Heartbeat Technology