×

Method and device for processing failure in at least one distributed cluster, and system

  • US 10,560,315 B2
  • Filed: 08/10/2017
  • Issued: 02/11/2020
  • Est. Priority Date: 02/10/2015
  • Status: Active Grant
First Claim
Patent Images

1. A method for processing a failure in at least one distributed cluster, comprising:

  • receiving, by a first secondary node, a first heartbeat message from a first reference node, wherein the first heartbeat message comprises first indication information indicating that the first reference node is disconnected from a first Master node;

    determining, by the first secondary node according to the first indication information, that the first reference node is disconnected from the first Master node;

    detecting, by the first secondary node, whether a second heartbeat message from the first Master node to the first secondary node is interrupted;

    determining, by the first secondary node, that the first secondary node is also disconnected from the first Master node when the second heartbeat message from the first Master node to the first secondary node is interrupted;

    determining, by the first secondary node, that the first Master node disconnected from both the first secondary node and the first reference node is faulty, wherein the at least one distributed cluster comprises a first distributed cluster, and wherein the first distributed cluster comprises the first Master node, a first Slave node, the first reference node, and the first secondary node that serves as a backup of the first Master node; and

    sending, by the first secondary node, a broadcast message to all nodes in the first distributed cluster in response to the first Master node being faulty, wherein the broadcast message indicates that the first secondary node is upgraded to a new first Master node.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×