Hash Ring Virtual Node Uniformity Control

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In distributed systems, ensuring uniform data distribution across machines is crucial for maintaining system stability, as uneven data distribution can lead to instability and crashes due to excessive data on individual machines.

Innovation Solution

A data processing method and apparatus that uses hash values to distribute data across virtual nodes in a hash ring, identifying and adjusting nodes to maintain uniformity, including generating hash values for newly added devices and making adjustments to ensure data distribution does not exceed a preset threshold, thereby stabilizing the system.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Quantity of substance

If data is distributed across machines in a distributed system, then system capacity and availability are improved, but data distribution uniformity deteriorates leading to machine crashes

Engineering Contradiction:
Improvedata capacityVSAvoidsystem stability
Core Design Contradiction:
Quantity of substanceVSReliability

Solution Approach 1:

The patent implements a feedback mechanism by continuously monitoring data distribution uniformity across machines and automatically triggering rebalancing operations when uniformity deteriorates below a threshold, thereby preventing machine crashes while maintaining system capacity

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The system dynamically adjusts data distribution by adding or removing virtual nodes based on machine capacity and current distribution state, allowing the system to adapt to changing conditions and maintain uniformity without fixed static allocation

Inventive Principle:
Principle #15Dynamics

2Adaptability or versatility

If virtual nodes are added to the hash ring, then data distribution flexibility is improved, but distribution uniformity deteriorates

Engineering Contradiction:
Improvedistribution flexibilityVSAvoiddistribution uniformity
Core Design Contradiction:
Adaptability or versatilityVSManufacturing precision

Solution Approach 1:

Before adding virtual nodes to the hash ring, the system pre-calculates optimal hash values and determines the exact positions where new virtual nodes should be inserted to maintain uniformity, preventing distribution deterioration before it occurs

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent applies different strategies for different regions of the hash ring when adding virtual nodes, calculating local distribution characteristics and adjusting node placement accordingly to maintain overall uniformity while allowing local flexibility

Inventive Principle:
Principle #3Local quality

3Manufacturing precision

If data is migrated between machines, then data uniformity is improved, but system productivity deteriorates

Engineering Contradiction:
Improvedata uniformityVSAvoidsystem efficiency
Core Design Contradiction:
Manufacturing precisionVSProductivity

Solution Approach 1:

The system performs data migration in periodic batches rather than continuously, migrating data in controlled intervals and using asynchronous transfer mechanisms to minimize impact on system productivity while achieving uniformity goals

Inventive Principle:
Principle #19Periodic action

Data Source

PatentUS10698623B2Data processing method and apparatus and storage medium
Publication Date: 2020.06.30 TENCENT TECHNOLOGY (SHENZHEN) CO LTD
  • US10698623B2 patent drawing
  • US10698623B2 patent drawing
  • US10698623B2 patent drawing

AI summary

A method and an apparatus for data processing are provided. Interface circuitry connects the apparatus in a distributed system. Processing circuitry generates first hash values for a first group of virtual nodes to be added into a hash ring. The first group of virtual nodes represents a first newly added device in the distributed system. Then, the processing circuitry distributes the data in the distributed system according to the hash ring that includes the first group of virtual nodes. When the distribution of the data in the distribution system fails to satisfy a uniformity requirement, the processing circuitry identifies a specific virtual node in the first group of virtual nodes that causes the distribution to fail the uniformity requirement. Then, a hash value for a makeup virtual node to replace the specific virtual node is generated to update the distribution of the data in the distributed system.