Method, apparatus, and system for implementing heartbeat mechanism

    公开(公告)号:US11128718B2

    公开(公告)日:2021-09-21

    申请号:US16023532

    申请日:2018-06-29

    Inventor: Yanan Zhi Wei Cheng

    Abstract: The method, an apparatus and a system for implementing a heartbeat mechanism, so as to reduce a quantity of heartbeat responses sent by a node, and reduce unnecessary resource consumption in a distributed database system. The solution includes: obtaining, a heartbeat request sent by a first node to a second node; recording, a first moment, wherein the first moment is a moment that the heartbeat request is received; querying, according to the identity of the second node from cached information, a second moment, wherein the second moment is a moment that the switching node most recently, where the cached information stores a correspondence between a moment at which the switching node receives a message and an identity of the node; and if an absolute value of a difference between the first moment and the second moment is less than a threshold, sending a heartbeat response to the first node.

    STORAGE CLUSTER CONFIGURATION CHANGE METHOD, STORAGE CLUSTER, AND COMPUTER SYSTEM

    公开(公告)号:US20200257593A1

    公开(公告)日:2020-08-13

    申请号:US16862591

    申请日:2020-04-30

    Abstract: Various embodiments provide a storage cluster configuration change method, an apparatus, a computer system, and the like. In a storage cluster that uses a consensus replication protocol, when half of storage nodes become faulty, if it is determined that at least one storage node exists in the storage cluster after the fault, and a latest log index number of the storage node is greater than or equal to an index number of a committed log provided by the storage cluster for a client, an arbitration module sends a forced cluster configuration change instruction to a fault-free storage node. The forced cluster configuration change instruction is used to instruct the fault-free storage node to change local cluster configuration information.

Patent Agency Ranking