Consistent Hash for Distributed Lock State Reconstruction

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In large-scale distributed file systems, node additions or removals lead to significant resource changes, necessitating lock redistribution, which results in substantial backplane communication and system downtime during the lock reconstruction process, impacting performance.

Innovation Solution

Implementing a consistent hash to reassess and maintain coordinator nodes for locks, minimizing communication and downtime by retaining existing locking status wherever possible, and using an API lock to manage new operations during group changes.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If locks are redistributed when a node is added or removed from the cluster, then the distributed file system can adapt to group changes, but substantial backplane communication is required among all initiator nodes to reassert locks

Engineering Contradiction:
Improveadaptability to group changesVSAvoidbackplane communication volume
Core Design Contradiction:
Adaptability or versatilityVSQuantity of substance

Solution Approach 1:

The patent segments the lock management by identifying a subset of locks that need redistribution based on the consistent hash of the group change, rather than requiring all initiator nodes to reassert all locks. This segmentation reduces the communication volume from cluster-wide to only the necessary subset of locks affected by the group change.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent applies local quality by having only the affected initiator nodes (those whose locks hash to the changed group) participate in the reassertion process, while other nodes maintain their existing lock states. This localized approach minimizes backplane communication to only the necessary nodes and locks.

Inventive Principle:
Principle #3Local quality

2Adaptability or versatility

If locks are redistributed when a node is added or removed from the cluster, then the distributed file system can adapt to group changes, but the entire system is locked down during the reconstruction process

Engineering Contradiction:
Improveadaptability to group changesVSAvoidsystem availability during group change
Core Design Contradiction:
Adaptability or versatilityVSProductivity

Solution Approach 1:

The patent segments the lock reconstruction process to only affect the subset of locks that need redistribution, allowing other locks and operations to continue normally. This prevents system-wide lockouts while still completing the necessary group change adaptation.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent performs partial action by only reasserting the necessary subset of locks that are affected by the group change, rather than requiring all locks to be reasserted. This partial approach maintains system availability while completing the required adaptation.

Inventive Principle:
Principle #16Partial or excessive action

3Productivity

If coordinator nodes are reassigned after a group change, then lock distribution can be optimized, but minimal knowledge exists about which initiator nodes have locks asserted

Engineering Contradiction:
Improvelock distribution efficiencyVSAvoidknowledge of lock state
Core Design Contradiction:
ProductivityVSLoss of information

Solution Approach 1:

The patent uses feedback by having initiator nodes reassert their lock information to the new coordinator nodes, allowing the coordinators to learn about the current lock state. This feedback mechanism resolves the information loss problem while enabling optimized lock distribution through consistent hashing.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS9747323B1Method for reconstruction of a distributed lock state after a node addition or removal using a consistent hash
Publication Date: 2017.08.29 EMC IP HLDG CO LLC
  • US9747323B1 patent drawing
  • US9747323B1 patent drawing
  • US9747323B1 patent drawing

AI summary

Implementations are provided herein for an efficient reconstruction of distributed lock states during a group change within a distributed file system. When a node leaves or joins the cluster, a consistent hash can be used in reassigning the coordinator node to all the distributed locks throughout the file system. Through the use of the consistent hash, wherever possible, nodes that exist both prior to and after the group change can maintain their coordinator status for the locks they manage. If the node is aware they are maintaining coordinator status for the locks it manages, it can retain the locking status previously associated with the locks it was coordinating prior to the group change, thus reducing necessary backplane communication from a coordinator change, and increasing the efficiency for the group change process.