Minitransactions for Distributed File System Data Structures

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing distributed file systems face challenges with concurrent access, leading to issues like deadlocks, overloads, disruptions, insufficient fault tolerance, and slow processing due to the limitations of existing solutions such as locks, leases, home hosts, synchronization primitives, and database transaction processing systems.

Innovation Solution

The implementation of minitransactions, which are lightweight, serializable transactions that ensure data consistency and coordinate access in distributed or cluster file systems by using a set of compare and update items to manage data structures, preventing inconsistent updates and maintaining data integrity through atomic modifications.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If locks and leases are used to coordinate access, then conflicting access is avoided, but deadlocks and overloads occur

Engineering Contradiction:
Improveaccess coordinationVSAvoiddeadlocks and overloads
Core Design Contradiction:
ReliabilityVSObject-generated harmful factors

Solution Approach 1:

The patent segments the file access coordination mechanism into per-directory locks instead of per-file locks. This segmentation allows multiple files within the same directory to be accessed concurrently without causing deadlocks, while the directory-level locking maintains coordination for directory structure modifications. The segmentation principle resolves the contradiction by reducing the lock granularity to eliminate harmful factors while preserving access coordination.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements dynamic lease management where leases are automatically extended or renewed based on access patterns, and the lease holder is dynamically determined based on current system state. This dynamic approach prevents overloads by allowing flexible access patterns while maintaining coordination, resolving the contradiction between reliable access coordination and avoiding overloads.

Inventive Principle:
Principle #15Dynamics

2Device complexity

If home hosts are used to coordinate data access, then access coordination is simplified, but fault tolerance is insufficient

Engineering Contradiction:
Improveaccess coordination mechanismVSAvoidfault tolerance
Core Design Contradiction:
Device complexityVSReliability

Solution Approach 1:

The patent introduces a distributed lock manager as an intermediary component that coordinates access across the distributed file system. This intermediary maintains a global view of lock states and lease information, enabling fault-tolerant coordination without requiring a centralized home host. The lock manager acts as a mediator that resolves conflicts and coordinates access while providing fault tolerance through distributed operation.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Reliability

If synchronization primitives are used in tightly-coupled cluster file systems, then concurrent access is coordinated, but processing speed decreases

Engineering Contradiction:
Improveconcurrent access coordinationVSAvoidprocessing speed
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent applies local quality by implementing file-level locking within directories, allowing different files to have different lock states independently. This enables selective synchronization where only conflicting accesses are coordinated through locking, while non-conflicting accesses proceed concurrently without synchronization overhead. This resolves the contradiction by applying coordination only where necessary, maintaining speed for independent operations.

Inventive Principle:
Principle #3Local quality

4Reliability

If database transaction processing systems are used, then data consistency is maintained, but processing speed is slow

Engineering Contradiction:
Improvedata consistencyVSAvoidprocessing speed
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent extracts the essential consistency guarantees from heavy-weight database transaction systems and applies them only at the file system level through lightweight minitransactions. The minitransactions perform atomic operations on small data structures (inodes, directory entries) without the overhead of full database transactions. This extraction maintains data consistency for file system operations while eliminating the processing speed penalties associated with comprehensive database transaction processing.

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentUS8972345B1Modifying data structures in distributed file systems
Publication Date: 2015.03.03 HEWLETT PACKARD ENTERPRISE DEV LP
  • US8972345B1 patent drawing
  • US8972345B1 patent drawing
  • US8972345B1 patent drawing

AI summary

Embodiments include methods, apparatus, and systems for modifying data structures in distributed file systems. One method of software execution includes using minitransactions that include a set of compare items and a set of write items to atomically modify data structures in a distributed file system.