Predictive Resource Scheduling for Distributed File System Hotspot Detection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current resource scheduling methods in distributed file systems, such as HDFS, inaccurately identify hotspot data blocks based on historical access frequencies, leading to inefficient data IO and unnecessary memory waste, as moving data blocks into memory does not always improve IO efficiency and can result in underutilization of memory resources.

Innovation Solution

A resource scheduling method that determines the current task queue and identifies hotspot data blocks by calculating the future access frequency of data blocks, moving these blocks into memory, and scheduling tasks accordingly to optimize data access, while also moving less frequently accessed data blocks out of memory to free up resources.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If data blocks are moved into memory based on historical access frequency, then data IO efficiency is improved, but memory resources are wasted when accessed data blocks are not actually hotspots

Engineering Contradiction:
Improvedata IO efficiencyVSAvoidmemory resource waste
Core Design Contradiction:
ProductivityVSLoss of energy

Solution Approach 1:

The system performs preliminary actions by moving data blocks into memory before actual access occurs, based on predictive hotspot identification. The scheduling module predicts which data blocks will be accessed and pre-loads them into memory, avoiding the need to wait for actual access patterns to emerge. This preliminary action resolves the contradiction by ensuring hotspots are ready in memory when needed (improving IO efficiency) while avoiding premature loading of non-hotspots (reducing memory waste).

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system implements feedback mechanisms where the scheduling module continuously monitors actual access patterns and adjusts predictions accordingly. When a data block is accessed, the system feeds this information back to refine future predictions, ensuring that memory resources are allocated to actual hotspots rather than predicted ones. This feedback loop resolves the contradiction by dynamically adapting memory allocation to real access patterns, improving IO efficiency for actual hotspots while preventing waste on non-hotspots.

Inventive Principle:
Principle #23Feedback

2Ease of manufacture

If historical access frequency is used to identify hotspot data blocks, then implementation is simple, but accuracy of hotspot identification deteriorates

Engineering Contradiction:
Improveimplementation simplicityVSAvoidhotspot identification accuracy
Core Design Contradiction:
Ease of manufactureVSMeasurement precision

Solution Approach 1:

The system changes the parameter used for hotspot identification from historical access frequency to a predictive metric that combines multiple factors including task queue analysis, data block access patterns, and workload characteristics. The scheduling module calculates a predictive hotspot score based on these parameters, which more accurately reflects future access needs. This parameter change resolves the contradiction by maintaining implementation simplicity through automated calculation while significantly improving identification accuracy over simple historical frequency counting.

Inventive Principle:
Principle #35Parameter changes

3Speed

If data blocks are moved into memory, then access speed is improved, but system complexity increases due to data movement management

Engineering Contradiction:
Improvedata access speedVSAvoiddata movement management complexity
Core Design Contradiction:
SpeedVSDevice complexity

Solution Approach 1:

The system implements self-service mechanisms where the scheduling module automatically identifies hotspots and triggers data movement without manual intervention. The system monitors its own access patterns and autonomously manages data placement between disk and memory based on predictive analysis. This self-service approach resolves the contradiction by maintaining fast access speeds through automated memory loading while reducing operational complexity by eliminating manual data movement management.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS11194623B2Resource scheduling method and related apparatus
Publication Date: 2021.12.07 HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
  • US11194623B2 patent drawing
  • US11194623B2 patent drawing
  • US11194623B2 patent drawing

AI summary

A resource scheduling method and a related resource scheduling apparatus to improve data input/output (I/O) efficiency, where the method includes determining a current task queue, where the current task queue includes a plurality of to-be-executed application tasks, determining, for data blocks on a disk to be accessed by the application tasks, a quantity of times that each data block is to be accessed by the application tasks, determining a hotspot data block according to the quantity of times that each data block is to be accessed by the application tasks, and sending a move-in instruction to a local node of the hotspot data block, where the move-in instruction instructs to move the hotspot data block into a memory such that the hotspot data block can be accessed in the memory.