Node consensus method, distributed system and storage medium

By introducing a new node consensus method in the distributed system, the follower node judges the leader node based on the heartbeat information and elects a new leader node when necessary, solving the problem of small number of nodes and frequent changes in the mobile scenario, achieving rapid recovery and efficient stability of the system.

CN119728720APending Publication Date: 2025-03-28BEIJING XIAOMI MOBILE SOFTWARE CO LTD
5 Cites 0 Cited by

Patent Information

Application Number
CN202311285345.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-28
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

The existing Raft and Paxos consensus protocols are difficult to effectively deal with the situation where the number of nodes is small and the number of frequent changes in mobile scenarios.

Method used

Provide a node consensus method, by receiving heartbeat information by the follower node, it determines whether it is sent by a known leader node. If it is not sent by a known leader node, it is recognized as a new leader node and initiates the election of a new leader node if necessary.

Benefits of technology

In mobile scenarios, the normal state of the distributed system can be quickly restored to ensure the stability and consistency of the system, and provide higher flexibility and efficiency.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The invention relates to a node consensus method, a distributed system and a storage medium, belongs to the field of distributed systems, and aims to enable the distributed system to quickly return to normal and ensure the stability of the distributed system and the consistency in the distributed system. According to the node consensus method of the distributed system, the distributed system comprises follower nodes and leader nodes, and the node consensus method comprises the steps that the follower nodes receive heartbeat information; the follower node judges whether the received heartbeat information is sent by a known leader node or not; and if the received heartbeat information is not sent by the known leader node, the follower node regards the node sending the heartbeat information as a new leader node.
Need to check novelty before this filing date? Find Prior Art