NAS Proxy Metadata Locking for Concurrent Access Consistency

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Inconsistency between target metadata buffered in proxy nodes and the actual metadata in the NAS cluster due to concurrent access and conflicts among multiple proxy nodes in a NAS storage system, leading to metadata errors.

Innovation Solution

Implementing a distributed lock control mechanism with local memory locks to manage exclusive access to metadata, ensuring consistency by allocating a distributed lock and configuring a local memory lock for each change request, thereby controlling the state of the distributed lock within a single proxy node.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If multiple proxy nodes access the NAS cluster concurrently to handle user requests, then the system throughput and responsiveness are improved, but metadata consistency deteriorates due to conflicts among proxy nodes

Engineering Contradiction:
Improvesystem throughputVSAvoidmetadata consistency
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The patent introduces a distributed lock control node as an intermediary between proxy nodes and the NAS cluster. This mediator manages lock allocation and coordination, allowing multiple proxy nodes to access the NAS cluster concurrently while maintaining metadata consistency through centralized lock control. The lock control node receives lock requests from proxy nodes, allocates distributed locks, and coordinates access to prevent conflicts.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If a distributed lock mechanism is implemented to ensure metadata consistency, then data reliability is improved, but system complexity increases due to lock management overhead

Engineering Contradiction:
Improvemetadata consistencyVSAvoidlock management complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent segments the lock management function into a separate distributed lock control node, distinct from the NAS cluster and proxy nodes. This segmentation isolates the complexity of distributed lock management to a dedicated component, allowing the NAS cluster and proxy nodes to interact through simplified lock request and response interfaces. The lock control node handles the complex logic of lock allocation, validation, and coordination independently.

Inventive Principle:
Principle #1Segmentation

3Speed

If proxy nodes buffer metadata locally to improve access speed, then response time is reduced, but metadata freshness deteriorates due to potential inconsistency with the NAS cluster

Engineering Contradiction:
Improvemetadata access speedVSAvoidmetadata freshness
Core Design Contradiction:
SpeedVSReliability

Solution Approach 1:

The patent implements preliminary action by requiring proxy nodes to acquire distributed locks before accessing or modifying metadata in the NAS cluster. This pre-acquisition of exclusive access rights ensures that when proxy nodes read metadata locally, they have guaranteed consistency with the NAS cluster state at that moment. The lock mechanism prevents other proxy nodes from modifying the same metadata simultaneously, ensuring freshness without requiring continuous synchronization.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS12561099B2Distributed data storage control method and apparatus, and electronic device
Publication Date: 2026.02.24 BEIJING VOLCANO ENGINE TECH CO LTD
  • US12561099B2 patent drawing
  • US12561099B2 patent drawing
  • US12561099B2 patent drawing

AI summary

Embodiments of the present disclosure provide a distributed data storage control method and apparatus, and an electronic device. The method includes: receiving, by a proxy node, a first change request for a target file in a NAS cluster, wherein the first change request is used to directly or indirectly trigger to change target metadata of the target file; allocating, by a distributed lock control node in the NAS cluster in response to the first change request, a corresponding distributed lock, and returning first response message to the proxy node; receiving, by the proxy node, the first response message, and configuring a corresponding local memory lock for the distributed lock corresponding to the first change request; and controlling a change of the target metadata of the target file in the NAS cluster based on the first change request with the distributed lock and the local memory lock.