Teaching task allocation method and system based on dynamic heterogeneous resource perception
By using a teaching task allocation system that is aware of dynamic heterogeneous resources, and combining edge-cloud collaboration, adaptive sampling, genetic algorithm tree search, and blockchain management, the system solves the problems of resource heterogeneity, dynamism, and competition in teaching task allocation, and achieves efficient and reliable teaching resource management to meet the needs of smart education.
Patent Information
- Application Number
- CN202511782461.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-29
- Publication Date
- 2026-03-20
AI Technical Summary
The existing dynamic heterogeneous resource perception teaching task allocation is not effective, with significant differences in resource heterogeneity, strong task dynamism, and prominent resource competition issues. The existing allocation method is difficult to balance task completion time, resource utilization rate, task fairness, and system real-time performance, and cannot effectively improve the execution effect of teaching tasks and the efficiency of resource utilization.
A teaching task allocation system based on dynamic heterogeneous resource awareness is adopted, including a heterogeneous resource acquisition module, a task feature analysis module, an intelligent scheduling decision module, a dynamic load balancing module, a fault tolerance and recovery module, a teaching scenario adaptation module, and a performance evaluation module. Dynamic scheduling and optimization are achieved through edge-cloud collaboration mechanism, adaptive sampling algorithm, genetic algorithm and Monte Carlo tree search, blockchain state management, digital twin prediction, and domain-specific language configuration.
It improved the utilization rate of heterogeneous resources, enhanced the accuracy of task matching, reduced manual intervention, and shortened the fault recovery time, achieving the three zero maintenance goals of zero resource waste, zero task delay, and zero system downtime, providing flexible and reliable infrastructure support for smart education.
Smart Images

Figure CN121704953A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a teaching task allocation method and system based on dynamic heterogeneous resource perception, belonging to the technical field of teaching task allocation systems. Background Technology
[0002] Existing methods for allocating teaching tasks based on dynamic heterogeneous resource awareness are ineffective due to several drawbacks. First, the heterogeneity of resources is significant; different types of teaching resources (such as computing devices and storage devices) vary considerably in processing power and response latency. This necessitates considering numerous complex factors in task allocation, increasing the difficulty. Second, tasks are highly dynamic, with teaching tasks and resource states changing in real time. This requires allocation models with strong adaptability and dynamic adjustment capabilities, but current models struggle to adapt quickly and accurately to these changes. Third, resource competition is a prominent issue. Multiple teaching tasks may simultaneously request the same resource. Balancing competition to improve fairness and efficiency is a challenge, and existing allocation methods easily lead to uneven resource distribution.
[0003] Conventional approaches, such as assigning tasks to resources that can be completed in the shortest time using specific strategies, can reduce task execution time, but require accurate estimation and are prone to uneven resource utilization. Priority-based strategies, while ensuring high-priority tasks are executed first, may cause low-priority tasks to remain idle for extended periods, and high-priority tasks may monopolize resources. These methods suffer from the drawback of failing to comprehensively consider multiple indicators such as task completion time, resource utilization, task fairness, and system real-time performance. In real-world teaching task allocation scenarios, they struggle to adapt to complex and dynamic heterogeneous resource environments, failing to effectively improve overall teaching task execution and resource utilization efficiency. Therefore, there is an urgent need for teaching task allocation methods and systems based on dynamic heterogeneous resource awareness to address these issues. Summary of the Invention
[0004] The technical solution of the present invention is implemented as follows: a teaching task allocation system based on dynamic heterogeneous resource perception, including a heterogeneous resource acquisition module, a task feature parsing module, an intelligent scheduling decision module, a dynamic load balancing module, a fault tolerance and recovery module, a teaching scenario adaptation module, and a performance evaluation module.
[0005] The heterogeneous resource acquisition module includes a physical layer, a virtual layer, and a container layer;
[0006] The physical layer obtains the server hardware health status through the IPMI protocol;
[0007] The virtual layer monitors KVM container resource usage through the libvirt interface;
[0008] The container layer collects microservice-level metrics via cAdvisor;
[0009] When the system is deployed, an edge-cloud collaboration mechanism is adopted. Edge nodes compress and upload data to the cloud time-series database (InfluxDB) via the MQTT protocol. At the same time, 7 days of data are cached locally to meet offline analysis needs. For the periodic load characteristics unique to the teaching scenario (such as peak get out of class times), an adaptive sampling algorithm is developed. When the load is low, a power-saving mode with a 1-minute interval is used, and when the load is high, it switches to a fine monitoring mode with a 5-second interval.
[0010] In a preferred embodiment, the task feature parsing module includes a static layer and a dynamic layer;
[0011] The static layer uses the Clang compiler to insert performance probes during the task compilation phase to automatically identify key features of OpenMP parallel regions and CUDA kernel functions;
[0012] The dynamic layer uses eBPF technology to capture system call events and establishes a behavior fingerprint database specifically for typical behaviors in teaching scenarios (such as cell execution in Jupyter Notebook and real-time compilation in online IDEs).
[0013] The static layer and dynamic layer respectively form a dual-track analysis mode through static compilation instrumentation and dynamic behavior tracing;
[0014] The feature extraction results are serialized using Protobuf and stored in a Redis cache for quick querying by the subsequent scheduling module.
[0015] As a preferred embodiment, the intelligent scheduling decision module includes an upper layer and a lower layer;
[0016] The upper layer generates candidate solutions using a genetic algorithm;
[0017] The lower layer evaluates the long-term benefits of each option through Monte Carlo tree search;
[0018] To address the specific priority requirements of teaching tasks (such as ensuring the examination system must be prioritized), a dynamic weight adjustment mechanism is designed. Scheduling decisions are sent to execution nodes via the gRPC protocol, along with a resource reservation time window (typically 1.5 times the estimated task duration).
[0019] Each scheduling module acts as an independent agent, learning historical scheduling decisions through a deep Q-network (DQN).
[0020] As a preferred implementation, the dynamic load balancing module is based on predictive scheduling using digital twins. By constructing a digital twin of cluster resources, it simulates the load changes in the next 5 minutes in a simulation environment. During actual operation, a rolling window mechanism is used to collect real load data every 30 seconds and compare it with the digital twin. When the difference exceeds 15%, the scheduling strategy is adjusted.
[0021] As a preferred implementation, the fault tolerance and recovery module is based on the distributed state management mechanism of blockchain. The key states of each task (such as checkpoints and intermediate calculation results) are stored on the private chain through smart contracts. When a fault occurs, the system first attempts to recover on the local node. If that fails, it synchronizes the state from the three most recent healthy nodes. A fast rollback function is specially designed for teaching and experimental environments. When a student's operation causes the system to malfunction, it can be restored to the preset baseline state before class with one click. The recovery process uses differential transmission technology, which only needs to transmit an average of 12% of the changed data, keeping the rollback time within 10 seconds.
[0022] As a preferred implementation, the teaching scenario adaptation module develops a domain-specific language (DSL) configuration system, which allows teachers to describe task characteristics in natural language, and the system automatically parses them into machine-executable scheduling strategies, with built-in templates for common teaching scenarios;
[0023] The teaching scenario templates include: GPU affinity binding for virtual simulation experiments, storage locality optimization for big data analysis, and bandwidth guarantee strategies for online examinations;
[0024] The adaptation module also supports dynamic strategy combinations, which can simultaneously meet the isolation requirements of programming training and the high-performance requirements of scientific research computing.
[0025] As a preferred implementation, the evaluation data from the performance evaluation feedback module is used to generate a visual dashboard through Flink real-time processing stream, and automatically triggers strategy optimization: when GPU utilization is detected to be consistently below 50%, a task merging suggestion is initiated.
[0026] When network latency exceeds a threshold, topology reconfiguration is triggered, a scheduling policy health report is generated weekly, and potential problems are identified through an anomaly detection algorithm (IsolationForest) to keep the system in optimal operating condition.
[0027] After adopting the above technical solution, the beneficial effects of this system are: 1. The three-level monitoring system of physical layer-virtual layer-container layer combined with the edge-cloud collaboration mechanism reduces the performance consumption of the teaching cycle by 25%;
[0028] 2. Dual-track analysis of static compilation instrumentation and dynamic behavior tracing accurately identifies the characteristics of Jupyter / IDE teaching scenarios;
[0029] 3. The hybrid decision-making of genetic algorithm and Monte Carlo tree search, combined with the DQN learning mechanism, enables continuous optimization of the scheduling strategy;
[0030] 4. Digital twin pre-simulation and a 15% difference threshold triggering mechanism achieve a 5-minute load prediction accuracy of over 85%;
[0031] 5. Blockchain state management reduces fault recovery time to within 10 seconds, and differential transmission technology reduces the amount of rollback data by 88%;
[0032] The DSL configuration system supports natural language policy conversion, improves the efficiency of virtual simulation / online examination scenario adaptation by 3 times, and finally forms a self-evolving system of perception-decision-optimization through real-time evaluation by Flink and anomaly detection by IsolationForest, providing elastic infrastructure support for smart education with zero latency, zero downtime and zero waste.
[0033] A method for allocating teaching tasks based on a dynamic heterogeneous resource awareness system includes the following steps:
[0034] S1: After system startup, the heterogeneous resource acquisition module obtains the environmental status in real time through a three-layer monitoring architecture: the physical layer collects server CPU temperature and memory error rate hardware indicators through the IPMI protocol; the virtual layer uses the libvirt interface to monitor the vCPU utilization and memory balloon driver parameters of KVM virtual machines; the container layer collects fine-grained data on microservice CPU quotas and network packet loss rate through cAdvisor. Under the edge-cloud collaboration mechanism, edge nodes use the MQTT protocol to compress the data into TLV format and upload it to the cloud InfluxDB, while retaining 7 days of data cache locally.
[0035] S2: When a task is submitted, the static layer uses the Clang compiler to insert performance probes during the compilation phase, automatically identifying key features of OpenMP parallel regions and CUDA kernel functions, and generating a binary-level instruction dependency graph; the dynamic layer uses eBPF technology to capture system call events, and establishes a behavioral fingerprint database specifically for typical operations in teaching scenarios. The dual-track analysis results are serialized into structure data using Protobuf, stored in the Redis cache, and set to expire in 15 minutes.
[0036] S3: The intelligent scheduling module adopts a hybrid strategy of genetic algorithm-Monte Carlo tree search (GA-MCTS): The upper layer generates a candidate solution set containing task allocation schemes and resource reservation ratio parameters through a genetic algorithm; the lower layer simulates the execution path of each scheme within a 5-minute time window through a Monte Carlo tree, taking into account the priority differences of teaching tasks. The decision results are sent to the execution nodes through the gRPC protocol, with a resource reservation time window attached. Each scheduling agent learns historical decisions based on a deep Q network (DQN). When a programming training task with similar characteristics is detected, the node allocation strategy that has received high rewards will be selected first.
[0037] S4: The dynamic load balancing module builds a cluster simulation model based on digital twin technology. Every 30 seconds, it compares the real load data with the twin's predicted value. When the difference exceeds 15%, it triggers a strategy adjustment, migrating some virtual machines to low-load nodes. The fault tolerance module adopts blockchain distributed state management. The critical state of the task is stored on the private chain through smart contracts. In the event of a failure, the system first attempts to recover on the local node. If that fails, it synchronizes the state block from the three healthiest nodes. For teaching and experimental scenarios, the system provides a one-click rollback function. Through differential transmission technology, only 12% of the changed data is transmitted, and the system can be restored to the pre-class baseline state within 10 seconds to ensure the continuity of teaching.
[0038] S5: Teachers configure the system to describe task requirements using a Domain-Specific Language (DSL), such as needing four GPUs for PyTorch training. The system automatically parses these requirements into machine-executable scheduling policies. Built-in templates support typical scenarios: enabling GPU affinity binding for virtual simulation experiments, initiating storage locality optimization for big data analysis tasks, and implementing bandwidth guarantee strategies for online examination tasks. The performance evaluation module generates a visual dashboard through real-time processing of Flink streams. When GPU utilization is detected to be consistently below 50%, task merging suggestions are triggered. When network latency exceeds a threshold, the topology is automatically reconstructed. The system generates a health report weekly, using the IsolationForest algorithm to identify abnormal patterns and drive continuous optimization.
[0039] After adopting the above technical solution, the beneficial effects of this method are: 1. It can increase the utilization rate of heterogeneous resources by more than 40% and realize multidimensional feature quantization through tensor decomposition;
[0040] 2. The dual-track parsing engine achieves a task matching accuracy of 92%, significantly reducing manual intervention;
[0041] 3. PPO reinforcement learning and pre-cooling mechanism improve response speed for unexpected tasks by 60%;
[0042] 4. The three-level control system achieves millisecond-level regulation from hardware temperature to global load;
[0043] 5. The Tendermint consensus protocol reduces fault recovery time to the second level;
[0044] 6. The digital twin system shortens the algorithm iteration cycle by 70% through a 5% traffic experiment, ultimately achieving the three zero maintenance goals of zero resource waste, zero task delay, and zero system downtime, providing flexible, reliable, and adaptive infrastructure support for smart education. Attached Figure Description
[0045] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0046] Figure 1 This is a system flowchart of the teaching task allocation system based on dynamic heterogeneous resource perception of the present invention;
[0047] Figure 2 This is a flowchart illustrating the technical steps of the teaching task allocation method based on dynamic heterogeneous resource perception of the present invention. Detailed Implementation
[0048] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0049] Please see Figure 1 This system includes a heterogeneous resource acquisition module, a task feature parsing module, an intelligent scheduling decision module, a dynamic load balancing module, a fault tolerance and recovery module, a teaching scenario adaptation module, and a performance evaluation module.
[0050] The heterogeneous resource acquisition module includes a physical layer, a virtual layer, and a container layer;
[0051] The physical layer obtains the server hardware health status through the IPMI protocol;
[0052] The virtualization layer monitors KVM container resource usage through the libvirt interface;
[0053] The container layer collects microservice-level metrics via cAdvisor;
[0054] When the system is deployed, an edge-cloud collaboration mechanism is adopted. Edge nodes compress and upload data to the cloud time-series database (InfluxDB) via the MQTT protocol. At the same time, 7 days of data are cached locally to meet offline analysis needs. For the periodic load characteristics unique to the teaching scenario (such as peak get out of class times), an adaptive sampling algorithm is developed. When the load is low, a power-saving mode with a 1-minute interval is used, and when the load is high, it switches to a fine monitoring mode with a 5-second interval.
[0055] The task feature parsing module includes a static layer and a dynamic layer;
[0056] The static layer uses the Clang compiler to insert performance probes during the task compilation phase to automatically identify key features of OpenMP parallel regions and CUDA kernel functions;
[0057] The dynamic layer uses eBPF technology to capture system call events, and establishes a behavior fingerprint library specifically for typical behaviors in teaching scenarios (such as cell execution in Jupyter Notebook and real-time compilation in online IDEs).
[0058] The static layer and the dynamic layer form a dual-track analysis mode through static compilation instrumentation and dynamic behavior tracing, respectively;
[0059] The feature extraction results are serialized using Protobuf and stored in a Redis cache for quick querying by the subsequent scheduling module.
[0060] The intelligent scheduling decision-making module consists of an upper layer and a lower layer;
[0061] The upper layer generates candidate solutions using a genetic algorithm;
[0062] The lower level uses Monte Carlo tree search to evaluate the long-term benefits of each option;
[0063] To address the specific priority requirements of teaching tasks (such as ensuring the examination system must be prioritized), a dynamic weight adjustment mechanism is designed. Scheduling decisions are sent to execution nodes via the gRPC protocol, along with a resource reservation time window (typically 1.5 times the estimated task duration).
[0064] Each scheduling module acts as an independent agent, learning historical scheduling decisions through a deep Q-network (DQN).
[0065] The dynamic load balancing module is based on predictive scheduling using digital twins. By constructing a digital twin of cluster resources, it simulates load changes in the next 5 minutes in a simulation environment. During actual operation, a rolling window mechanism is used to collect real load data every 30 seconds and compare it with the digital twin. When the difference exceeds 15%, the scheduling strategy is adjusted.
[0066] The fault tolerance and recovery module is based on the distributed state management mechanism of blockchain. The key states of each task (such as checkpoints and intermediate calculation results) are stored on the private chain through smart contracts. When a failure occurs, the system first attempts to recover on the local node. If that fails, it synchronizes the state from the three healthiest nodes. A fast rollback function is specially designed for teaching and experimental environments. When a student's operation causes the system to malfunction, it can be restored to the pre-set baseline state with one click. The recovery process uses differential transmission technology, which only needs to transmit an average of 12% of the changed data, keeping the rollback time within 10 seconds.
[0067] The teaching scenario adaptation module development domain-specific language (DSL) configuration system allows teachers to describe task characteristics in natural language, which the system automatically parses into machine-executable scheduling strategies. It also includes built-in templates for common teaching scenarios.
[0068] The teaching scenario templates include: GPU affinity binding for virtual simulation experiments, storage locality optimization for big data analysis, and bandwidth guarantee strategies for online examinations;
[0069] The adaptation module also supports dynamic strategy combinations, which can simultaneously meet the isolation requirements of programming training and the high-performance requirements of scientific research computing.
[0070] The performance evaluation feedback module generates a visual dashboard through Flink's real-time processing stream based on the evaluation data, and automatically triggers policy optimization: when GPU utilization is detected to be consistently below 50%, a task merging suggestion is initiated.
[0071] When network latency exceeds a threshold, topology reconfiguration is triggered, a scheduling policy health report is generated weekly, and potential problems are identified through an anomaly detection algorithm (IsolationForest) to keep the system in optimal operating condition.
[0072] Please see Figure 2 A teaching task allocation method based on dynamic heterogeneous resource awareness includes the following steps:
[0073] S1: After system startup, the heterogeneous resource acquisition module obtains the environmental status in real time through a three-layer monitoring architecture: the physical layer collects server CPU temperature and memory error rate hardware indicators through the IPMI protocol; the virtual layer uses the libvirt interface to monitor the vCPU utilization and memory balloon driver parameters of KVM virtual machines; the container layer collects fine-grained data on microservice CPU quotas and network packet loss rate through cAdvisor. Under the edge-cloud collaboration mechanism, edge nodes use the MQTT protocol to compress the data into TLV format and upload it to the cloud InfluxDB, while retaining 7 days of data cache locally.
[0074] S2: When a task is submitted, the static layer uses the Clang compiler to insert performance probes during the compilation phase, automatically identifying key features of OpenMP parallel regions and CUDA kernel functions, and generating a binary-level instruction dependency graph; the dynamic layer uses eBPF technology to capture system call events, and establishes a behavioral fingerprint database specifically for typical operations in teaching scenarios. The dual-track analysis results are serialized into structure data using Protobuf, stored in the Redis cache, and set to expire in 15 minutes.
[0075] S3: The intelligent scheduling module adopts a hybrid strategy of genetic algorithm-Monte Carlo tree search (GA-MCTS): The upper layer generates a candidate solution set containing task allocation schemes and resource reservation ratio parameters through a genetic algorithm; the lower layer simulates the execution path of each scheme within a 5-minute time window through a Monte Carlo tree, taking into account the priority differences of teaching tasks. The decision results are sent to the execution nodes through the gRPC protocol, with a resource reservation time window attached. Each scheduling agent learns historical decisions based on a deep Q network (DQN). When a programming training task with similar characteristics is detected, the node allocation strategy that has received high rewards will be selected first.
[0076] S4: The dynamic load balancing module builds a cluster simulation model based on digital twin technology. Every 30 seconds, it compares the real load data with the twin's predicted value. When the difference exceeds 15%, it triggers a strategy adjustment, migrating some virtual machines to low-load nodes. The fault tolerance module adopts blockchain distributed state management. The critical state of the task is stored on the private chain through smart contracts. In the event of a failure, the system first attempts to recover on the local node. If that fails, it synchronizes the state block from the three healthiest nodes. For teaching and experimental scenarios, the system provides a one-click rollback function. Through differential transmission technology, only 12% of the changed data is transmitted, and the system can be restored to the pre-class baseline state within 10 seconds to ensure the continuity of teaching.
[0077] S5: Teachers configure the system to describe task requirements using a Domain-Specific Language (DSL), such as needing four GPUs for PyTorch training. The system automatically parses these requirements into machine-executable scheduling policies. Built-in templates support typical scenarios: enabling GPU affinity binding for virtual simulation experiments, initiating storage locality optimization for big data analysis tasks, and implementing bandwidth guarantee strategies for online examination tasks. The performance evaluation module generates a visual dashboard through real-time processing of Flink streams. When GPU utilization is detected to be consistently below 50%, task merging suggestions are triggered. When network latency exceeds a threshold, the topology is automatically reconstructed. The system generates a health report weekly, using the IsolationForest algorithm to identify abnormal patterns and drive continuous optimization.
[0078] 1. Increase the utilization rate of heterogeneous resources by more than 40% and achieve multidimensional feature quantization through tensor decomposition;
[0079] 2. The dual-track parsing engine achieves a task matching accuracy of 92%, significantly reducing manual intervention;
[0080] 3. PPO reinforcement learning and pre-cooling mechanism improve response speed for unexpected tasks by 60%;
[0081] 4. The three-level control system achieves millisecond-level regulation from hardware temperature to global load;
[0082] 5. The Tendermint consensus protocol reduces fault recovery time to the second level;
[0083] The digital twin system shortened the algorithm iteration cycle by 70% through a 5% traffic experiment, ultimately achieving the three zero maintenance goals of zero resource waste, zero task delay, and zero system downtime, providing flexible, reliable, and adaptive infrastructure support for smart education.
[0084] In actual deployment in university cloud computing labs, the system first collects physical server temperature and power hardware data via the IPMI protocol. Simultaneously, it uses cAdvisor to monitor container memory usage. When students submit Python machine learning assignments, the Clang compiler automatically identifies CUDA kernel function call characteristics, and the eBPF probe captures GPU memory allocation behavior in real time. Task characteristics are labeled as GPU-intensive and high-bandwidth. The scheduling module, combining current GPU utilization (e.g., NVIDIA A100 utilization reaching 78%) and topology, uses a genetic algorithm to generate a scheme to allocate tasks to nodes with NVLink connections, reserving 1.5 times the bandwidth. The system uses a resource window with an estimated duration. When the digital twin predicts an influx of online exam tasks within the next 5 minutes, it triggers KVM virtual machine warm-up in advance, locking the CPU frequency at 2.6GHz to ensure low latency. If a node experiences task interruption due to a GPU driver crash, the checkpoint data stored on the blockchain will be quickly recovered from adjacent nodes. Teachers can input the requirement of 4 GPU cards for model training via the DSL interface, and the system automatically binds the corresponding computing resources and allocates a high-speed RDMA network. When the Flink stream processing module continuously monitors a node's GPU utilization and finds it consistently below 50%, it recommends merging smaller training tasks, ultimately stabilizing the overall cluster resource utilization at over 82%.
[0085] The above test data is based on the actual operation records of the university's cloud computing laboratory in the fall semester of 2025, and fully verifies the system's technical indicators in heterogeneous resource management, intelligent scheduling decision-making, and fault tolerance and recovery.
[0086] Table 1. Monitoring data of heterogeneous resources (sampling from edge nodes)
[0087] Timestamp Physical layer temperature (°C) Virtual layer memory usage (%) Container layer GPU utilization (%) Sampling interval (s) Data transfer volume (KB) 2025-03-1908:30:00 42.3 68.2 15.7 60 1.2 2025-03-1908:30:05 41.8 72.4 89.3 5 8.7 2025-03-1908:35:00 40.1 65.9 12.5 60 1.1
[0088] Data Explanation: During peak class hours (08:30), the system automatically switches to 5-second fine sampling, and dynamic weight adjustment is triggered when GPU utilization suddenly increases.
[0089] Table 2 Validation of Task Scheduling Decisions
[0090] Task type Feature matching accuracy (%) Average scheduling time (ms) Resource reservation deviation (%) Fault recovery time (s) Deep learning 94.3 120 8.2 9.5 Online exams 98.7 85 3.1 5.2 Virtual simulation 91.6 150 12.4 12.8
[0091] Test method: 500 teaching task samples were marked with Clang instrumentation, and eBPF was used to capture the actual execution trajectory.
[0092] Table 3. Prediction Results of Digital Twins
[0093] Forecast period Real load (CPU cores) Predicted load (CPU cores) Difference rate (%) Number of scheduling triggers 08:30-08:35 48 52 8.3 2 10:45-10:50 22 19 13.6 1 14:00-14:05 37 40 8.1 3
[0094] Evaluation criteria: Scrolling window comparison; strategy adjustment is triggered when the difference exceeds 15%.
[0095] Practical application conclusions
[0096] 1. Resource utilization: Through an adaptive sampling mechanism, the daily data transmission volume of edge nodes is reduced by 37%, achieving an average utilization rate of 82% in GPU task scheduling;
[0097] 2. Scheduling reliability: Dual-track feature analysis ensures that the accuracy of matching teaching tasks remains stable at over 92%, and online examination tasks achieve a priority guarantee of 98.7%.
[0098] 3. Fault Recovery: Blockchain state management controls the experimental environment rollback time to within 10 seconds, and differential transmission technology reduces the amount of data recovery by 88%;
[0099] 4. Predictive capability: The digital twin system achieves an 85% accuracy rate in predicting 5-minute loads, and automatically corrects strategies in 83% of scenarios where the discrepancy rate exceeds the threshold.
[0100] The system validated the technical closed loop of edge-cloud collaboration, intelligent scheduling, and digital twins in a real teaching environment, meeting the three zero maintenance goals and providing quantifiable performance assurance for smart education.
[0101] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, substitutions, or improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A teaching task allocation system based on dynamic heterogeneous resource perception, characterized in that: This system includes a heterogeneous resource acquisition module, a task feature parsing module, an intelligent scheduling decision module, a dynamic load balancing module, a fault tolerance and recovery module, a teaching scenario adaptation module, and a performance evaluation module. The heterogeneous resource acquisition module includes a physical layer, a virtual layer, and a container layer; The physical layer obtains the server hardware health status through the IPMI protocol; The virtual layer monitors KVM container resource usage through the libvirt interface; The container layer collects microservice-level metrics via cAdvisor; When the system is deployed, an edge-cloud collaboration mechanism is adopted. Edge nodes compress and upload data to the cloud time-series database (InfluxDB) via the MQTT protocol. At the same time, 7 days of data are cached locally to meet offline analysis needs. For the periodic load characteristics unique to the teaching scenario, an adaptive sampling algorithm is developed. When the load is low, a power-saving mode with a 1-minute interval is used, and when the load is high, it switches to a fine monitoring mode with a 5-second interval.
2. The teaching task allocation system based on dynamic heterogeneous resource perception according to claim 1, characterized in that: The task feature parsing module includes a static layer and a dynamic layer; The static layer uses the Clang compiler to insert performance probes during the task compilation phase to automatically identify key features of OpenMP parallel regions and CUDA kernel functions; The dynamic layer uses eBPF technology to capture system call events and establishes a behavior fingerprint database specifically for typical behaviors in teaching scenarios. The static layer and dynamic layer respectively form a dual-track analysis mode through static compilation instrumentation and dynamic behavior tracing; The feature extraction results are serialized using Protobuf and stored in a Redis cache for quick querying by the subsequent scheduling module.
3. The teaching task allocation system based on dynamic heterogeneous resource perception according to claim 2, characterized in that: The intelligent scheduling decision module includes an upper layer and a lower layer; The upper layer generates candidate solutions using a genetic algorithm; The lower layer evaluates the long-term benefits of each option through Monte Carlo tree search; To address the specific priority requirements of teaching tasks, a dynamic weight adjustment mechanism is designed. Scheduling decisions are sent to execution nodes via the gRPC protocol, along with a resource reservation time window. Each scheduling module acts as an independent agent, learning historical scheduling decisions through a deep Q-network (DQN).
4. The teaching task allocation system based on dynamic heterogeneous resource perception according to claim 3, characterized in that: The dynamic load balancing module is based on predictive scheduling using digital twins. By constructing a digital twin of cluster resources, it simulates load changes in the next 5 minutes in a simulation environment. During actual operation, a rolling window mechanism is used to collect real load data every 30 seconds and compare it with the digital twin. When the difference exceeds 15%, the scheduling strategy is adjusted.
5. The teaching task allocation system based on dynamic heterogeneous resource perception according to claim 1, characterized in that: The fault tolerance and recovery module is based on the distributed state management mechanism of blockchain. The key state of each task is stored on the private chain through smart contracts. When a fault occurs, the system first attempts to recover on the local node. If that fails, it synchronizes the state from the three healthiest nodes. A fast rollback function is specially designed for teaching and experimental environments. When a student's operation causes the system to malfunction, it can be restored to the preset baseline state before class with one click. The recovery process uses differential transmission technology, which only needs to transmit an average of 12% of the changed data, keeping the rollback time within 10 seconds.
6. The teaching task allocation system based on dynamic heterogeneous resource perception according to claim 5, characterized in that: The teaching scenario adaptation module develops a domain-specific language (DSL) configuration system, which allows teachers to describe task characteristics in natural language, and the system automatically parses them into machine-executable scheduling strategies, with built-in templates for common teaching scenarios; The teaching scenario templates include: GPU affinity binding for virtual simulation experiments, storage locality optimization for big data analysis, and bandwidth guarantee strategies for online examinations; The adaptation module also supports dynamic strategy combinations, which can simultaneously meet the isolation requirements of programming training and the high-performance requirements of scientific research computing.
7. The teaching task allocation system based on dynamic heterogeneous resource perception according to claim 6, characterized in that: The performance evaluation feedback module generates a visual dashboard from the evaluation data through Flink real-time processing stream and automatically triggers strategy optimization: when GPU utilization is detected to be consistently below 50%, a task merging suggestion is initiated. When network latency exceeds a threshold, topology reconfiguration is triggered, a scheduling policy health report is generated weekly, and potential problems are identified through an anomaly detection algorithm (IsolationForest) to keep the system in optimal operating condition.
8. A method for allocating teaching tasks based on dynamic heterogeneous resource perception according to any one of claims 1-7, characterized in that, Includes the following steps: S1: After system startup, the heterogeneous resource acquisition module obtains the environmental status in real time through a three-layer monitoring architecture: the physical layer collects server CPU temperature and memory error rate hardware indicators through the IPMI protocol; the virtual layer uses the libvirt interface to monitor the vCPU utilization and memory balloon driver parameters of KVM virtual machines; the container layer collects fine-grained data on microservice CPU quotas and network packet loss rate through cAdvisor. Under the edge-cloud collaboration mechanism, edge nodes use the MQTT protocol to compress the data into TLV format and upload it to the cloud InfluxDB, while retaining 7 days of data cache locally. S2: When a task is submitted, the static layer uses the Clang compiler to insert performance probes during the compilation phase, automatically identifying key features of OpenMP parallel regions and CUDA kernel functions, and generating a binary-level instruction dependency graph. The dynamic layer uses eBPF technology to capture system call events and establishes a behavioral fingerprint database specifically for typical operations in teaching scenarios. The dual-track analysis results are serialized into structure data using Protobuf, stored in the Redis cache, and set to expire in 15 minutes. S3: The intelligent scheduling module adopts a hybrid strategy of genetic algorithm-Monte Carlo tree search (GA-MCTS): The upper layer generates a candidate solution set containing task allocation schemes and resource reservation ratio parameters through a genetic algorithm; the lower layer simulates the execution path of each scheme within a 5-minute time window through a Monte Carlo tree, taking into account the priority differences of teaching tasks. The decision results are sent to the execution nodes through the gRPC protocol, with a resource reservation time window attached. Each scheduling agent learns historical decisions based on a deep Q network (DQN). When a programming training task with similar characteristics is detected, the node allocation strategy that has received high rewards will be selected first. S4: The dynamic load balancing module builds a cluster simulation model based on digital twin technology. Every 30 seconds, it compares the real load data with the twin's predicted value. When the difference exceeds 15%, it triggers a strategy adjustment, migrating some virtual machines to low-load nodes. The fault tolerance module adopts blockchain distributed state management. The critical state of the task is stored on the private chain through smart contracts. In the event of a failure, the system first attempts to recover on the local node. If that fails, it synchronizes the state block from the three healthiest nodes. For teaching and experimental scenarios, the system provides a one-click rollback function. Through differential transmission technology, only 12% of the changed data is transmitted, and the system can be restored to the pre-class baseline state within 10 seconds to ensure the continuity of teaching. S5: Teachers configure the system to describe task requirements using a domain-specific language (DSL), such as needing 4 GPUs for PyTorch training. The system automatically parses these requirements into machine-executable scheduling strategies. Built-in templates support typical scenarios: enabling GPU affinity binding for virtual simulation experiments, initiating storage locality optimization for big data analysis tasks, implementing bandwidth guarantee strategies for online examination tasks, and generating visual dashboards through real-time Flink processing streams. When GPU utilization is detected to be consistently below 50%, task merging suggestions are triggered. When network latency exceeds a threshold, the topology is automatically restructured. The system generates a health report weekly and uses the IsolationForest algorithm to identify abnormal patterns, driving continuous optimization.