Four-Phase Commit Protocol for Distributed Storage Consistency

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In enterprise computing environments, coordinating consistency points across multiple volumes can be challenging, especially during disaster recovery situations, leading to inconsistencies and lengthy reconciliation processes due to incomplete or missing transaction logs across geographically distributed volumes.

Innovation Solution

A four-phase commit mechanism is introduced to ensure all volumes in a group reflect consistency points taken at the same time, using a protocol that records progress at each phase and employs a root volume to ascertain the completion status of consistency points, allowing for consistent mounting of volumes even in the event of failures.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If traditional consistency point coordination is used across distributed volumes, then system simplicity is maintained, but data consistency and reliability deteriorate during disaster recovery

Engineering Contradiction:
Improvedata consistencyVSAvoidcoordination protocol complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent introduces a coordinator component as an intermediary that manages consistency points across distributed volumes. This coordinator receives consistency point notifications from individual volumes and orchestrates the group consistency protocol, thereby improving data consistency without requiring complex peer-to-peer coordination between all volumes.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system performs preliminary actions by establishing a group consistency protocol before disaster recovery operations begin. The coordinator pre-configures the volumes and defines the consistency protocol that will be executed, ensuring that when recovery is needed, the volumes can be restored to a consistent state without ad-hoc coordination complexity.

Inventive Principle:
Principle #10Preliminary action

2Loss of time

If traditional consistency point coordination is used across distributed volumes, then implementation simplicity is maintained, but reconciliation time increases during recovery

Engineering Contradiction:
Improvereconciliation timeVSAvoidprotocol structure
Core Design Contradiction:
Loss of timeVSDevice complexity

Solution Approach 1:

The patent replaces manual or traditional mechanical reconciliation processes with an automated electronic protocol. The coordinator electronically communicates with all volumes, automatically detecting consistency states and orchestrating recovery actions, thereby dramatically reducing reconciliation time despite the added protocol structure.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Solution Approach 2:

The system implements feedback mechanisms where volumes report their consistency point status to the coordinator, which then uses this feedback to determine the appropriate recovery actions. This automated feedback loop eliminates the need for lengthy manual reconciliation by continuously monitoring and responding to volume states.

Inventive Principle:
Principle #23Feedback

3Reliability

If consistency points are taken independently on each volume, then operational simplicity is maintained, but data inconsistency increases across the volume group

Engineering Contradiction:
Improvegroup consistencyVSAvoidcoordination overhead
Core Design Contradiction:
ReliabilityVSEase of operation

Solution Approach 1:

The coordinator acts as an intermediary that receives consistency point notifications from individual volumes and manages the group consistency state. This allows volumes to operate independently in taking consistency points while the coordinator ensures group-level consistency, thereby improving reliability without significantly increasing operational complexity for volume managers.

Inventive Principle:
Principle #24Intermediary (Mediator)

4Reliability

If a four-phase commit mechanism is implemented for group consistency, then consistency reliability is improved, but processing time and complexity increase

Engineering Contradiction:
Improveconsistency point reliabilityVSAvoidcommit protocol complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The four-phase commit mechanism is segmented into distinct phases (prepare, commit, rollback, etc.), with each phase having specific responsibilities. This segmentation allows the complex reliability protocol to be broken down into manageable, well-defined steps that can be implemented and tracked systematically, reducing the perceived complexity while maintaining high reliability.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS7752180B1File system group consistency point
Publication Date: 2010.07.06 NETAPP INC
  • US7752180B1 patent drawing
  • US7752180B1 patent drawing
  • US7752180B1 patent drawing

AI summary

A network storage filer implements a four-phase commit protocol to coordinate consistency points among a group of volumes (a “group consistency point”) such that, upon recovery, all volumes of the group reflect consistency points taken at the same time. The filer records progress at each phase while creating the consistency points of the volumes. Upon recovery, the same or a different filer uses the last recorded progress indicator to ascertain whether the consistency points were completed on all of the volumes in the group. If all the volume consistency points of the group consistency point were completed, the filer users the volume consistency points to mount the volumes. Otherwise, the filer uses an earlier group consistency point to mount the volumes. In either ease, the volumes are consistent with each other.