Master-Slave Node Determination Using Heartbeat and Check Data

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The challenge in multi-node servers is determining a master-slave node configuration to ensure data availability and integrity, particularly in the event of node failures, where data stored on each storage node may be different and backups are necessary to prevent data loss.

Innovation Solution

A method and apparatus for determining master-slave nodes in a multi-node server by generating heartbeat and master-disable signals for multiple target nodes, using check data characters and preset values to identify and assign nodes as master or slave based on signal states and character matches.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If master-slave node determination is implemented in multi-node servers, then data availability and integrity are improved, but the complexity of node management and configuration increases

Engineering Contradiction:
Improvedata availabilityVSAvoidnode management complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The system performs preliminary actions by pre-configuring check data with first and last characters in each node, and establishing predetermined rules for master-slave determination before actual node failures occur. This allows automatic master-slave relationship establishment without complex real-time decision-making, reducing management complexity while ensuring data availability.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system enables self-service by allowing nodes to automatically determine their own master or slave status based on heartbeat signals, check data validation, and predetermined rules. Nodes autonomously participate in the determination process without requiring external manual configuration, simplifying node management while maintaining high data availability through automatic failover capabilities.

Inventive Principle:
Principle #25Self-service

2Quantity of substance

If multiple storage nodes are used in multi-node servers, then storage capacity and flexibility are improved, but the difficulty of determining master-slave nodes increases

Engineering Contradiction:
Improvestorage capacityVSAvoidmaster-slave node determination difficulty
Core Design Contradiction:
Quantity of substanceVSDifficulty of detecting and measuring

Solution Approach 1:

The system segments the master-slave determination process into distinct components: heartbeat signal generation, check data validation (first character and last character comparison), and rule-based decision making. This segmentation simplifies the overall determination difficulty by breaking down the complex multi-node assessment into manageable, independent verification steps that can be systematically applied to any number of storage nodes.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system uses parameter changes by monitoring heartbeat signal states and check data characteristics to dynamically determine node roles. When heartbeat signals or check data parameters indicate a master node failure, the system automatically adjusts node assignments based on predetermined rules, making the determination process more manageable despite the increasing number of storage nodes.

Inventive Principle:
Principle #35Parameter changes

3Reliability

If node failure backup mechanisms are implemented, then data loss prevention is improved, but the signal processing and node identification complexity increases

Engineering Contradiction:
Improvedata loss preventionVSAvoidsignal processing complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The system implements preliminary action by pre-configuring check data with specific first and last character patterns, and establishing predetermined determination rules before failures occur. This preparation reduces signal processing complexity during actual failure events, as the system only needs to validate against known patterns rather than performing complex real-time analysis, while still achieving effective data loss prevention.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system manages signal processing complexity by monitoring specific parameters (heartbeat signal presence/absence, check data character matches) rather than analyzing all possible node attributes. This parameter-focused approach simplifies the monitoring and identification process while maintaining reliable data loss prevention through systematic validation of key indicators.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS12519711B2Master/slave node determination method and apparatus, and electronic device and storage medium
Publication Date: 2026.01.06 INSPUR SUZHOU INTELLIGENT TECH CO LTD
  • US12519711B2 patent drawing
  • US12519711B2 patent drawing
  • US12519711B2 patent drawing

AI summary

A method for determining a master-slave node is provided. The method includes: determining a first target node, a second target node, a third target node and a fourth target node from the plurality of storage nodes, where the first target node includes first check data including a first first character and a first last character; generating heartbeat signals and master-disable signals for the target nodes; determining the first target node as a master node when the first first character and the first last character are the same and the first first character and the first last character are the same as a preset value, it is determined that the second target node, the third target node and the fourth target node are not master nodes, the first target node is not a slave node, the first master-disable signal is invalid, and the first heartbeat signal is in a normal state.