Method and apparatus for implementing heartbeat service of high availability cluster
First Claim
1. A method for implementing a heartbeat service of a high availability cluster, comprising:
- writing, by a writing unit of a server, heartbeat counting information to a disk array, wherein the heartbeat counting information comprises a write heartbeat message sequence number, a read peer heartbeat message sequence number, active-standby state information, a heartbeat message, and a heartbeat message length of the server, to enable one or more corresponding servers to read the heartbeat counting information, in the disk array, of the server;
reading heartbeat counting information, by a reading unit of the server, which is written by the one or more corresponding servers to the disk array, of the one or more corresponding servers;
repeating the above write process by the writing unit and the above read process by the reading unit; and
wherein the heartbeat counting information of the one or more corresponding servers comprises a write heartbeat message sequence number, a read peer heartbeat message sequence number, active-standby state information, a heartbeat message, and a heartbeat message length of the one or more corresponding servers.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments of the present invention provide a method for implementing a heartbeat service of a high availability cluster, including: writing, by a server, heartbeat counting information to a disk array, where the heartbeat counting information includes a write heartbeat message sequence number, a read peer heartbeat message sequence number, active-standby state information, a heartbeat message, and a heartbeat message length of the server, so that one or more corresponding servers read the heartbeat counting information, in the disk array, of the server; and reading heartbeat counting information, which is written by the one or more corresponding servers to the disk array, of the one or more corresponding servers, and repeating the write operation and the read operation. Correspondingly, the embodiments of the present invention further provide a server, which solves a spit-brain problem, and improves data security.
-
Citations
14 Claims
-
1. A method for implementing a heartbeat service of a high availability cluster, comprising:
-
writing, by a writing unit of a server, heartbeat counting information to a disk array, wherein the heartbeat counting information comprises a write heartbeat message sequence number, a read peer heartbeat message sequence number, active-standby state information, a heartbeat message, and a heartbeat message length of the server, to enable one or more corresponding servers to read the heartbeat counting information, in the disk array, of the server; reading heartbeat counting information, by a reading unit of the server, which is written by the one or more corresponding servers to the disk array, of the one or more corresponding servers; repeating the above write process by the writing unit and the above read process by the reading unit; and wherein the heartbeat counting information of the one or more corresponding servers comprises a write heartbeat message sequence number, a read peer heartbeat message sequence number, active-standby state information, a heartbeat message, and a heartbeat message length of the one or more corresponding servers. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A server for implementing a heartbeat service of a high availability cluster, comprising:
-
a writing unit, configured to write heartbeat counting information to a disk array, wherein the heartbeat counting information comprises a write heartbeat message sequence number, a read peer heartbeat message sequence number, active-standby state information, a heartbeat message, and a heartbeat message length of the server, to enable one or more corresponding servers to read the heartbeat counting information, in the disk array, of the server; and a reading unit, configured to read heartbeat counting information, which is written by the one or more corresponding servers to the disk array, of the one or more corresponding servers;
wherein the heartbeat counting information of the one or more corresponding servers comprises a write heartbeat message sequence number, a read peer heartbeat message sequence number, active-standby state information, a heartbeat message, and a heartbeat message length of the one or more corresponding servers;
whereinthe writing unit and the reading unit are further configured to repeat the write operation and the read operation respectively. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
Specification