METHOD, APPARATUS, AND SYSTEM FOR IMPLEMENTING HEARTBEAT MECHANISM

    公开(公告)号:US20180309835A1

    公开(公告)日:2018-10-25

    申请号:US16023532

    申请日:2018-06-29

    Inventor: Yanan ZHI Wei CHENG

    CPC classification number: H04L67/145 H04L43/10 H04L67/2842

    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.

Patent Agency Ranking