Replication Heartbeat Tracking via Sequence Numbers

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In distributed systems that utilize replication for guaranteed availability, traditional synchronous network transmission breaks down during endpoint failures due to complex retry logic and inability to leverage request batching during outages, making it challenging to determine if data is available on sufficient replica nodes.

Innovation Solution

A method is introduced to track replication state and provide quorum visible retrievals by assigning a sequence number to write operations, replicating it asynchronously across replica nodes, and communicating the latest hardened sequence number to ensure data availability, allowing reader nodes to query and retrieve results up to a specified sequence number limit.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If synchronous network transmission is used to validate availability with remote nodes, then data availability can be guaranteed in continuously available systems, but the system breaks down during endpoint failures due to complex retry logic and inability to leverage request batching

Engineering Contradiction:
Improvedata availabilityVSAvoidretry logic complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent separates the data replication process into distinct components: sequence numbers are assigned to write operations and replicated independently through a first network channel, while availability validation is performed separately through a second network channel using heartbeat messages. This segmentation allows each channel to be optimized independently and avoids the breakdown of synchronous transmission during failures.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system performs preliminary actions by assigning sequence numbers to write operations before replication and maintaining a record of the latest sequence number at each replica node. This preliminary tracking enables rapid availability validation without complex retry logic, as the system can immediately determine if a replica is available by checking its sequence number against the writer node.

Inventive Principle:
Principle #10Preliminary action

2Productivity

If asynchronous replication is used to leverage request batching during outages, then the system can handle failures better, but it becomes challenging to determine if data is available on a sufficient number of replica nodes

Engineering Contradiction:
Improverequest batching efficiencyVSAvoiddata availability determination
Core Design Contradiction:
ProductivityVSDifficulty of detecting and measuring

Solution Approach 1:

The patent implements a feedback mechanism where replica nodes send heartbeat messages containing their latest sequence number to the writer node through a second network channel. The writer node receives these heartbeats and determines availability based on the sequence numbers returned, providing continuous feedback about replica status without requiring complex availability checking protocols.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

Sequence numbers serve as an intermediary mechanism that bridges asynchronous replication and availability determination. By embedding sequence numbers in both the data replication stream and the heartbeat messages, the system enables indirect tracking of replication state and availability without requiring direct synchronization or complex validation logic.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Productivity

If sequence numbers are replicated asynchronously through a first network channel, then write operations can be batched efficiently, but a separate mechanism is needed to communicate the hardened state to other replica nodes

Engineering Contradiction:
Improvewrite operation batchingVSAvoidnetwork channel structure
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent makes the sequence number serve multiple functions: it acts as both the data payload for asynchronous replication through the first network channel and as the availability indicator for heartbeat messages through the second network channel. This multi-functionality reduces the need for separate mechanisms and simplifies the overall system architecture despite having multiple network channels.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS11853322B2Tracking data availability using heartbeats
Publication Date: 2023.12.26 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US11853322B2 patent drawing
  • US11853322B2 patent drawing
  • US11853322B2 patent drawing

AI summary

One embodiment provides for a method to track replication state and providing quorum visible retrievals. The method includes assigning, by a writer node performing write operations, a sequence number. The sequence number is replicated with a write operation to other replica nodes in an asynchronous fashion thru a first network channel. On a second network channel, a state of a local system is communicated by sending a latest sequence number available that has been hardened to the other replica nodes. A query is obtained by a reader node, and a sequence number limit is selected. Results up to the sequence number limit are returned.