Cloud computing task tracking processing method and system

By deploying distributed task monitoring units and central coordinators on the cloud service platform, the task execution queue and resource allocation are optimized, which solves the problems of low resource allocation efficiency and insufficient fault recovery in traditional cloud computing systems, and achieves efficient task processing and Resource management improves system availability and adaptability.

CN118656200AInactive Publication Date: 2024-09-17WUHAN COLLEGE
View PDF 0 Cites 13 Cited by

Patent Information

Application Number
CN202410568204.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-09
Publication Date
2024-09-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional cloud computing task management systems face problems such as low resource allocation efficiency, improper handling of task dependencies, and insufficient fault recovery mechanisms, leading to resource waste, performance bottlenecks, and service interruptions, affecting service quality and user experience.

Method used

Deploy a distributed task monitoring unit on the cloud service platform, and use the central coordinator to optimize task execution queues and resource allocation through task dependency analysis, real-time data synchronization and fault detection mechanisms, achieve automatic failover and resource prediction, and ensure task continuity and Resource utilization.

Benefits of technology

It improves resource utilization, reduces resource waste and performance bottlenecks, enhances the system's self-recovery capability and service availability, ensures that tasks are executed in a timely manner according to dependencies, and adapts to fluctuations in business needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656200A
    Figure CN118656200A
Patent Text Reader

Abstract

The invention relates to the technical field of task tracking processing, in particular to a cloud computing task tracking processing method and system, and the method comprises the following steps: a plurality of monitoring nodes are used in a cloud service platform, and each monitoring node is responsible for tracking and managing a group of cloud computing resources; task dependency analysis is introduced, and an optimized task execution queue is created; distributing tasks to the monitoring nodes through a central coordinator according to the task execution queue; each monitoring node obtains and executes a task, and feeds back task execution data to the central coordinator in real time; when any monitoring node monitors a fault, a task is automatically transferred to other available monitoring nodes to be continuously executed; the central coordinator periodically generates a task execution report; and predicting future resource demands based on a piecewise linear trend prediction algorithm, and adjusting resource allocation. According to the method and the device, execution delay caused by task dependence and incorrect processing is reduced, and the task processing efficiency and speed are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of task tracking and processing, and in particular to a cloud computing task tracking and processing method and system. Background Art

[0002] In the modern cloud computing environment, with the rapid development and widespread application of cloud services, the demand for cloud resource management and task scheduling is growing. Traditional cloud computing task management systems usually face several key challenges, including inefficient resource allocation, improper task dependency handling, and insufficient fault recovery mechanisms. These problems often lead to resource waste, system performance bottlenecks, and service interruptions, thus affecting the overall service quality and user experience.

[0003] First, resource management is often static or slow to respond in traditional methods, and cannot accurately predict and respond to dynamically changing needs, resulting in overuse of resources in some periods and idleness in other periods. This imbalance in resource allocation not only increases costs, but may also lead to failure to meet user needs when resource demand peaks.

[0004] Secondly, task scheduling and dependency management are often inefficient. Without fully considering the dependencies between tasks, task scheduling may lead to execution delays or failures. Especially in complex application scenarios, the optimization of task execution order and resource allocation is particularly critical.

[0005] In addition, fault recovery is a major challenge in cloud computing environments. In traditional systems, the detection and recovery of faulty nodes often rely on manual intervention, which not only has a long response time but also has low recovery efficiency, and sometimes leads to data loss or task failure.

[0006] Therefore, there is an urgent need for a cloud computing task tracking and processing method that can achieve dynamic optimization of resource usage, efficient processing of task dependencies, and fast and automatic fault detection and recovery. Summary of the invention

[0007] Based on the above objectives, the present invention provides a cloud computing task tracking and processing method and system.

[0008] The cloud computing task tracking processing method includes the following steps:

[0009] S1: Deploy a distributed task monitoring unit in the cloud service platform. The distributed task monitoring unit uses multiple monitoring nodes, each of which is responsible for tracking and managing a group of cloud computing resources;

[0010] S2: Introducing task dependency parsing, analyzing the dependencies of all tasks before task assignment, and creating an optimized task execution queue based on dependency data to reduce the delay caused by waiting for dependent tasks to complete;

[0011] S3: Communication between monitoring nodes is achieved through a central coordinator, and the central coordinator assigns tasks to monitoring nodes according to the task execution queue;

[0012] S4: Each monitoring node obtains and executes tasks, and feeds back task execution data to the central coordinator in real time;

[0013] S5: During the task execution process, by synchronizing the task status between multiple monitoring nodes, when any monitoring node detects a fault, the task is automatically transferred to other available monitoring nodes for continued execution, ensuring task continuity and data integrity. At the same time, the abnormal status is recorded and fault recovery is attempted;

[0014] S6: The central coordinator regularly generates task execution reports, including task completion status, resource utilization, performance indicators, and fault recovery status;

[0015] S7: Based on the piecewise linear trend prediction algorithm (SLTP), future resource requirements are predicted according to historical resource usage data and task execution patterns, so that the central coordinator can adjust resource allocation in advance according to the prediction results to avoid resource waste.

[0016] Further, the S1 includes configuring basic network security settings on the cloud service platform, including firewall and security authentication settings, to ensure the security of data transmission and isolation of monitoring nodes;

[0017] S11: On the cloud service platform, multiple virtual machines or containers are deployed as monitoring nodes, and each monitoring node is configured with computing and storage resources to process the assigned tasks and data;

[0018] S12: Program each monitoring node to set the specific cloud computing resource group it is responsible for, where the cloud computing resource group includes computing resources (CPU and GPU), storage resources (database and file system), and network resources;

[0019] S13: Implement an automated service discovery and registration mechanism so that each monitoring node can automatically detect and link to the corresponding cloud computing resource group.

[0020] Furthermore, the S2 specifically includes:

[0021] S21: collect metadata of each task and perform preprocessing, the metadata includes the type of task, required resources, and estimated execution time;

[0022] S22: inputting the collected task metadata into a dependency resolution engine, wherein the dependency resolution engine uses topological sorting to determine the dependency relationship between tasks, and ensures that the order of the dependencies is correct;

[0023] S23: After the dependency resolution engine completes the analysis, it uses a weight-based shortest path first algorithm to create an optimized task execution queue taking into account resource availability and task priority;

[0024] S24: The optimized task execution queue is passed to the central coordinator. The central coordinator adjusts the distribution of tasks among the monitoring nodes to ensure that each task is executed on the node that best suits its needs and dependencies are met.

[0025] Furthermore, the dependency parsing engine specifically includes:

[0026] Task metadata collection: When each task is submitted to the cloud service platform, it is accompanied by metadata, including the task ID (unique identifier), resource requirements (CPU, memory, storage), and estimated execution time, and dependent task IDs (which tasks must be completed before the current task can start);

[0027] Use topological sorting to determine task dependencies: Represent tasks and their dependencies as a directed acyclic graph (DAG), where each node represents a task and the edge represents the dependency, pointing to the subsequent tasks that depend on the task. The topological sorting algorithm steps are as follows:

[0028] Initialize a node queue with no in-degree (i.e., tasks that have no dependencies or whose dependencies have all been processed);

[0029] Take a node from the queue and add it to the sorting result;

[0030] Remove the node and all its outgoing edges (indicating that the subsequent tasks that depend on this task can now be executed), and update the in-degree of these subsequent tasks;

[0031] When the in-degree of a subsequent task becomes zero, it is added to the queue;

[0032] Repeat the steps of taking out and removing until the queue is empty;

[0033] Let D represent the dependency matrix, where D[i][j]=1 means that task i must be completed before task j, then topological sorting helps determine the execution order P.

[0034] Furthermore, the weight-based shortest path priority algorithm adopts the Dijkstra algorithm:

[0035] Define the starting weight of each task, based on its resource requirements and priority;

[0036] For each task node i, define the path cost C(i,j) from it to other nodes j, taking into account the availability of resources and the closeness of dependencies;

[0037] Calculate the shortest path from the starting node (i.e. the node with zero in-degree) to all other nodes to determine the optimal execution order for resources;

[0038] Assume that R[i] represents the resource demand of task i, P[i] represents the priority, and define C(i,j)=αR[i]+β(1 / P[i]), where α and β are coefficients that adjust the impact of resource demand and priority.

[0039] Furthermore, the S5 specifically includes:

[0040] S51: configure a real-time data synchronization channel between all monitoring nodes so that each status update of the task is shared instantly among all monitoring nodes, implement a message delivery system based on a publish / subscribe model, allow monitoring nodes to subscribe to each other's status updates, and ensure that each node can receive the task status information of other monitoring nodes in real time;

[0041] S52: Run a fault detection mechanism at each monitoring node to continuously check the status information of itself and other nodes received to identify potential faults. If the monitoring node finds a fault itself or receives a fault notification from other nodes, it immediately reports to the central coordinator and marks its own status as "fault mode";

[0042] S53: After receiving the fault report, the central coordinator evaluates the current resource status and the load of all monitoring nodes, selects the best standby node to take over the tasks of the affected nodes, and instructs the standby node to restore the tasks of the faulty monitoring nodes from the most recent synchronization point, using the synchronized state data to minimize task recovery time and data loss;

[0043] S54: The standby node executes the task according to the synchronized data recovery task and continues to synchronize the data in real time to keep the task status up to date. The original faulty node performs self-diagnosis and repair operations. Once it recovers to normal, it rejoins the node pool. The central coordinator decides whether it can take over the task again or serve as a standby node.

[0044] Furthermore, the fault detection mechanism adopts a heartbeat mechanism. Each monitoring node sends a heartbeat signal to the central coordinator and other monitoring nodes regularly (every second). The heartbeat includes the health status of the node and the last activity timestamp. A timestamp check is performed to receive the timestamp of the heartbeat message of the monitoring node (including the central coordinator and other monitoring nodes). If the heartbeat of a monitoring node is not received within a preset timeout period (5 seconds), the monitoring node is marked as a suspected fault state.

[0045] Perform status confirmation and secondary check: When a monitoring node is marked as suspected of failure, a status confirmation request is initiated to request the monitoring node to confirm its status. If the confirmation request is not responded to within the second preset timeout period (an additional 3 seconds), or a failure confirmation is received, the monitoring node is officially marked as "failure mode";

[0046] When a monitoring node is confirmed to be faulty, the information will be broadcast to all other monitoring nodes and the central coordinator so that appropriate failover measures can be taken.

[0047] Furthermore, the piecewise linear trend prediction algorithm predicts future resource demand based on historical resource usage data and task execution mode, specifically including:

[0048] Continuously collect historical usage data u of resource type r of each monitoring node r,t , where t represents the time point, resource type r includes CPU usage, memory usage, storage space usage, and network bandwidth usage, and records the task execution mode, including task type, execution time, required resources, and efficiency of task completion;

[0049] Standardized resource usage data: historical usage data r,t Convert to relative usage u r,t ′,

[0050] Among them, U r is the total capacity of resource r;

[0051] Segment Identification:

[0052] Change point detection: Use the standard deviation change of the sliding window to determine the rapid change points in resource usage, including sudden increases or decreases in utilization. Rapid change points identify potential behavioral changes and thus define segments.

[0053] Linear trend modeling: Perform piecewise linear regression and, for each segment s, calculate a linear regression model to fit u r,t The dependence of ′ on time t, linear model formula:

[0054] u r,t ′=β 0,s +β 1,s ×t+∈ s , where β 0,s is the intercept, which indicates the baseline resource utilization at the beginning of the segment, and β 1,s is the slope, which indicates the rate of change of resource utilization over time, ∈ s is the error term, which represents the deviation between the model and the actual data;

[0055] Forecast future resource requirements: including short-term forecasts and long-term forecast adjustments.

[0056] Furthermore, the short-term prediction includes: for the most recent segment s, using its linear model parameter β 0,s and β 1,s Predict resource usage in the short term (e.g., the next week). The prediction formula is:

[0057]

[0058] The long-term prediction adjustment includes introducing the attenuation factor γ to adjust β 1,s , adjust the prediction formula: Where k is the prediction step size, and γ is the decay coefficient between 0 and 1, which is used to simulate the slowdown or acceleration of resource usage trends;

[0059] Resource allocation adjustment: The central coordinator adjusts the resource allocation according to the prediction results. Dynamically adjust resource allocation strategies.

[0060] The cloud computing task tracking and processing system is used to implement the above-mentioned cloud computing task tracking and processing method, and includes the following modules:

[0061] Distributed task monitoring unit module: deploys and manages multiple monitoring nodes on the cloud service platform. Each monitoring node is responsible for tracking and managing a group of cloud computing resource groups. It also includes basic network security settings and deployment of monitoring nodes.

[0062] Task dependency parsing engine module: collects and preprocesses task metadata, uses topological sorting to determine the dependencies between tasks, and optimizes the task execution queue through a weighted shortest path first algorithm;

[0063] Central coordinator module: responsible for monitoring the communication between nodes, assigning tasks according to the task execution queue, and handling fault detection and recovery operations;

[0064] Fault management and recovery module: synchronizes task status between all monitoring nodes, implements fault detection and fault recovery mechanisms, implements fault detection through heartbeat mechanism and timestamp check, marks and manages faulty nodes, and automatically restarts affected tasks on other monitoring nodes to maintain task continuity;

[0065] Resource forecasting and adjustment module: Based on historical resource usage data and task execution patterns, a piecewise linear trend forecasting algorithm is used to predict future resource requirements and adjust resource allocation accordingly.

[0066] Beneficial effects of the present invention:

[0067] The present invention predicts future resource demands by implementing a piecewise linear trend prediction algorithm (SLTP). The central coordinator can dynamically adjust resources according to the prediction results. This prediction makes resource allocation more in line with actual needs and avoids excessive configuration and waste of resources. In addition, by accurately adjusting resource allocation, sufficient resources can be prepared in advance during peak demand periods to avoid performance bottlenecks, while reducing resource usage during low demand periods, thereby reducing operating costs.

[0068] The present invention implements real-time data synchronization and fault detection mechanisms between monitoring nodes. The system can respond quickly when any node failure is monitored, and automatically transfer tasks to other healthy nodes for continued execution. This not only ensures task continuity and data integrity, but also improves the system's self-recovery ability to faults and enhances overall service availability.

[0069] The present invention, by introducing task dependency parsing and a weight-based shortest path first algorithm, enables the central coordinator to more accurately manage the dependencies and execution priorities between tasks, ensuring that tasks are executed on nodes that best suit their needs and whose dependencies are met, reducing execution delays caused by incorrect processing of task dependencies, and improving the efficiency and speed of task processing.

[0070] The present invention, by continuously collecting and analyzing resource usage data and task execution patterns, can not only respond to current needs, but also predict future trends, so that the central coordinator can make decisions in advance, such as adjusting resources or rebalancing loads in a timely manner, so that the system can better adapt to fluctuations in business needs and achieve forward-looking resource and task management. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only for the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0072] Figure 1 A schematic diagram of a method flow chart of an embodiment of the present invention;

[0073] Figure 2 A schematic diagram of system function modules according to an embodiment of the present invention;

[0074] Figure 3 Schematic diagram of a directed graph according to an embodiment of the present invention. DETAILED DESCRIPTION

[0075] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments.

[0076] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0077] like Figure 1 As shown, the cloud computing task tracking processing method includes the following steps:

[0078] S1: Deploy a distributed task monitoring unit in the cloud service platform. The distributed task monitoring unit uses multiple monitoring nodes, each of which is responsible for tracking and managing a group of cloud computing resources;

[0079] S2: Introducing task dependency parsing, analyzing the dependencies of all tasks before task assignment, and creating an optimized task execution queue based on dependency data to reduce the delay caused by waiting for dependent tasks to complete;

[0080] S3: Communication between monitoring nodes is achieved through a central coordinator, and the central coordinator assigns tasks to monitoring nodes according to the task execution queue;

[0081] S4: Each monitoring node obtains and executes tasks, and feeds back task execution data to the central coordinator in real time;

[0082] S5: During the task execution process, by synchronizing the task status between multiple monitoring nodes, when any monitoring node detects a fault, the task is automatically transferred to other available monitoring nodes for continued execution, ensuring task continuity and data integrity. At the same time, the abnormal status is recorded and fault recovery is attempted;

[0083] S6: The central coordinator regularly generates task execution reports, including task completion status, resource utilization, performance indicators, and fault recovery status;

[0084] S7: Based on the piecewise linear trend prediction algorithm (SLTP), future resource requirements are predicted according to historical resource usage data and task execution patterns, so that the central coordinator can adjust resource allocation in advance according to the prediction results to avoid resource waste.

[0085] S1 includes configuring basic network security settings on the cloud service platform, including firewall and security authentication settings, to ensure the security of data transmission and isolation of monitoring nodes;

[0086] S11: On the cloud service platform, multiple virtual machines or containers are deployed as monitoring nodes, and each monitoring node is configured with computing and storage resources to process the assigned tasks and data;

[0087] S12: Program each monitoring node to set the specific cloud computing resource group it is responsible for, where the cloud computing resource group includes computing resources (CPU and GPU), storage resources (database and file system), and network resources;

[0088] S13: Implement an automated service discovery and registration mechanism so that each monitoring node can automatically detect and link to the corresponding cloud computing resource group.

[0089] S2 specifically includes:

[0090] S21: collect metadata of each task and perform preprocessing, the metadata includes the type of task, required resources, and estimated execution time;

[0091] S22: Input the collected task metadata into the dependency resolution engine. The dependency resolution engine uses topological sorting to determine the dependency relationship between tasks and ensure that the order of dependencies is correct.

[0092] S23: After the dependency resolution engine completes the analysis, it uses a weight-based shortest path first algorithm to create an optimized task execution queue taking into account resource availability and task priority;

[0093] S24: The optimized task execution queue is passed to the central coordinator. The central coordinator adjusts the distribution of tasks among the monitoring nodes to ensure that each task is executed on the node that best suits its needs and dependencies are met.

[0094] The dependency resolution engine specifically includes:

[0095] Task metadata collection: When each task is submitted to the cloud service platform, it is accompanied by metadata, including the task ID (unique identifier), resource requirements (CPU, memory, storage), and estimated execution time, and dependent task IDs (which tasks must be completed before the current task can start);

[0096] Use topological sorting to determine task dependencies: Represent tasks and their dependencies as a directed acyclic graph (DAG), where each node represents a task and the edge represents the dependency, pointing to the subsequent tasks that depend on the task. The topological sorting algorithm steps are as follows:

[0097] Initialize a node queue with no in-degree (i.e., tasks that have no dependencies or whose dependencies have all been processed);

[0098] Take a node from the queue and add it to the sorting result;

[0099] Remove the node and all its outgoing edges (indicating that the subsequent tasks that depend on this task can now be executed), and update the in-degree of these subsequent tasks;

[0100] When the in-degree of a subsequent task becomes zero, it is added to the queue;

[0101] Repeat the steps of taking out and removing until the queue is empty;

[0102] Let D represent the dependency matrix, where D[i][j]=1 means that task i must be completed before task j, then topological sorting helps determine the execution order P.

[0103] The weight-based shortest path priority algorithm uses the Di jkstra algorithm:

[0104] Define the starting weight of each task, based on its resource requirements and priority;

[0105] For each task node i, define the path cost C(i,j) from it to other nodes j, taking into account the availability of resources and the closeness of dependencies;

[0106] Calculate the shortest path from the starting node (i.e. the node with zero in-degree) to all other nodes to determine the optimal execution order for resources;

[0107] Assume that R[i] represents the resource demand of task i, P[i] represents the priority, and define C(i,j)=αR[i]+β(1 / P[i]), where α and β are coefficients that adjust the impact of resource demand and priority.

[0108] In this way, the execution order of tasks not only takes dependencies into account, but also optimizes resource allocation and task priority to maximize the overall performance of the system, while also ensuring that critical tasks are given priority. It is suitable for cloud computing environments that handle large-scale concurrent tasks and can significantly improve efficiency and response speed.

[0109] In order to clearly illustrate the application role of topological sorting and shortest path first algorithm in Ben Amin, a specific example is used to explain. Suppose there is a task scheduling problem in a cloud computing environment, involving four tasks (A, B, C, D), each of which has specific resource requirements and priorities, as well as clear dependencies.

[0110] Task Description:

[0111] Task A: Resource requirement: 2CPU; Priority: High; Dependency: None (starting task);

[0112] Task B: Resource requirement: 1CPU; Priority: Medium; Dependency: Task A;

[0113] Task C: Resource requirement: 3CPU; Priority: Low; Dependency: Task A;

[0114] Task D: Resource requirement: 2CPU; Priority: High; Dependency: Task B, Task C;

[0115] Task dependency graph and topological sorting: First, construct the tasks and their dependencies into a directed graph (see Figure 3 );

[0116] Using topological sorting, the execution order of the tasks may be A, B, C, D (A must be executed first because B and C both depend on A, and D depends on B and C).

[0117] Application of shortest path first algorithm

[0118] Next, we use the weighted shortest path first algorithm to optimize this order. We will define the path cost of the task C(i,j), where α and β are coefficients used to adjust the impact of resource demand and priority. Let α = 0.5 and β = 0.5, and assume that the priority can be expressed inversely (i.e., the higher the priority, the smaller the value).

[0119] For simplicity, we can assume:

[0120] Priority weight: High = 1, Medium = 2, Low = 3

[0121] Then, calculate the cost from A to other tasks:

[0122] C(A,B)=0.5*1+0.5*(1 / 2)=0.75;

[0123] C(A,C)=0.5*3+0.5*(1 / 3)≈1.67;

[0124] C(B,D) and C(C,D) are calculated and compared, and the path with the lowest total cost is selected

[0125] Finally, the actual order in which tasks are executed is adjusted based on these cost calculations to ensure that resources are optimally utilized while meeting the needs of high-priority tasks as much as possible.

[0126] In a cloud environment, the central coordinator will allocate tasks based on the above algorithm results, and the monitoring nodes will receive tasks according to the allocation and start executing them, feeding back execution data, and dynamically adjusting according to real-time data to respond to any possible changes, such as resource bottlenecks or task execution delays.

[0127] S5 specifically includes:

[0128] S51: configure a real-time data synchronization channel between all monitoring nodes so that each status update of the task is shared instantly among all monitoring nodes, implement a message delivery system based on a publish / subscribe model, allow monitoring nodes to subscribe to each other's status updates, and ensure that each node can receive the task status information of other monitoring nodes in real time;

[0129] S52: Run a fault detection mechanism at each monitoring node to continuously check the status information of itself and other nodes received to identify potential faults. If the monitoring node finds a fault itself or receives a fault notification from other nodes, it immediately reports to the central coordinator and marks its own status as "fault mode";

[0130] S53: After receiving the fault report, the central coordinator evaluates the current resource status and the load of all monitoring nodes, selects the best standby node to take over the tasks of the affected nodes, and instructs the standby node to restore the tasks of the faulty monitoring nodes from the most recent synchronization point, using the synchronized state data to minimize task recovery time and data loss;

[0131] S54: The standby node executes the task according to the synchronized data recovery and continues to synchronize the data in real time to keep the task status up to date. The original faulty node performs self-diagnosis and repair operations. Once it recovers to normal, it rejoins the node pool. The central coordinator decides whether it can take over the task again or serve as a standby node.

[0132] Detailed logs of all failure and recovery activities are recorded in the central coordinator's monitoring system for future failure prevention and optimization analysis.

[0133] The fault detection mechanism adopts the heartbeat mechanism. Each monitoring node sends a heartbeat signal to the central coordinator and other monitoring nodes regularly (every second). The heartbeat contains the health status of the node and the last activity timestamp. The timestamp check is performed to receive the timestamp of the heartbeat message of the monitoring node (including the central coordinator and other monitoring nodes). If the heartbeat of a monitoring node is not received within the preset timeout period (5 seconds), the monitoring node is marked as a suspected fault state.

[0134] Perform status confirmation and secondary check: When a monitoring node is marked as suspected of failure, a status confirmation request is initiated to request the monitoring node to confirm its status. If the confirmation request is not responded to within the second preset timeout period (an additional 3 seconds), or a failure confirmation is received, the monitoring node is officially marked as "failure mode";

[0135] When a monitoring node is confirmed to be faulty, the information will be broadcast to all other monitoring nodes and the central coordinator so that appropriate failover measures can be taken;

[0136] Failed nodes attempt to perform self-diagnosis and basic self-healing operations, such as restarting services or reloading configurations.

[0137] The fault detection mechanism has the following advantages:

[0138] Fast response: By combining heartbeat and timestamp checks, node failures can be quickly discovered and responded to, reducing the overall downtime of the system.

[0139] Reduce false positives: The status confirmation and secondary check process reduces false positives caused by network delays or temporary loads.

[0140] System stability: Broadcasting fault status ensures that all relevant nodes can update their status information in real time and adopt appropriate fault recovery strategies, which enhances the stability and reliability of the entire system.

[0141] The piecewise linear trend prediction algorithm predicts future resource requirements based on historical resource usage data and task execution patterns. Specifically, it includes:

[0142] Continuously collect historical usage data u of resource type r of each monitoring node r,t , where t represents the time point, resource type r includes CPU usage, memory usage, storage space usage, and network bandwidth usage, and records the task execution mode, including task type, execution time, required resources, and efficiency of task completion;

[0143] Standardized resource usage data: historical usage data r,t Convert to relative usage u r,t ′,

[0144] Among them, U r is the total capacity of resource r;

[0145] Segment Identification:

[0146] Change point detection: Use the standard deviation change of the sliding window to determine the rapid change points in resource usage, including sudden increases or decreases in utilization. Rapid change points identify potential behavioral changes and thus define segments.

[0147] Linear trend modeling: Perform piecewise linear regression and, for each segment s, calculate a linear regression model to fit u r,t The dependence of ′ on time t, linear model formula:

[0148] u r,t ′=β 0,s +β 1,s ×t+∈ s , where β 0,s is the intercept, which indicates the baseline resource utilization at the beginning of the segment, and β 1,s is the slope, which indicates the rate of change of resource utilization over time, ∈ s is the error term, which represents the deviation between the model and the actual data;

[0149] Forecast future resource requirements: including short-term forecasts and long-term forecast adjustments.

[0150] Short-term prediction involves: for the most recent segment s, using its linear model parameters β 0,s and β 1,s Predict resource usage in the short term (e.g., the next week). The prediction formula is:

[0151] Long-term forecast adjustments include introducing an attenuation factor γ to adjust β 1,s , adjust the prediction formula: Where k is the prediction step size, and γ is the decay coefficient between 0 and 1, which is used to simulate the slowdown or acceleration of resource usage trends;

[0152] Resource allocation adjustment: The central coordinator adjusts the resource allocation according to the prediction results. Dynamically adjust resource allocation strategies.

[0153] The central coordinator obtains the resource utilization prediction result at a certain point in the future t+k through the SLTP algorithm. For each resource (CPU, memory, storage, network bandwidth), predict the utilization It represents the expected utilization rate of resource r at the future time t+k, including the relative demand for the resource, expressed as a percentage of the overall capacity.

[0154] Resource allocation adjustment strategy:

[0155] According to the prediction results The central coordinator will adopt the following strategies to dynamically adjust resource allocation:

[0156] Resource expansion / reduction:

[0157] Extension: If If the usage rate of resource r is shown to exceed a preset threshold (80%), the supply of resource r is increased in advance, such as adding a virtual machine, expanding storage space, or enhancing network bandwidth.

[0158] Reduction: If If the utilization rate of resource r is lower than another threshold (20%), resource allocation is reduced to save costs and improve the allocation efficiency of other resources.

[0159] Load balancing adjustment:

[0160] According to the predicted utilization of each resource r, the task and load distribution are adjusted to make resource utilization more even, which involves transferring tasks from high-load servers to low-load servers, or reallocating tasks within the data center to balance resource usage.

[0161] Priority and fault tolerance management:

[0162] For critical tasks with high expected resource requirements, more redundant resources are allocated in advance to ensure high availability and fault tolerance.

[0163] Adjust resource allocation strategies to ensure that key components and services of the system receive priority access to necessary resources when resources are scarce.

[0164] Establish an early warning mechanism to automatically notify system administrators or trigger automated resource adjustment scripts when the predicted resource usage approaches the upper or lower threshold. By implementing automated expansion and reduction strategies, the system can quickly respond to upcoming changes in resource usage, thereby maintaining service continuity and stable performance.

[0165] like Figure 2 As shown, the cloud computing task tracking and processing system is used to implement the above-mentioned cloud computing task tracking and processing method, and includes the following modules:

[0166] Distributed task monitoring unit module: deploys and manages multiple monitoring nodes on the cloud service platform. Each monitoring node is responsible for tracking and managing a group of cloud computing resource groups. It also includes basic network security settings and deployment of monitoring nodes.

[0167] Task dependency parsing engine module: collects and preprocesses task metadata, uses topological sorting to determine the dependencies between tasks, and optimizes the task execution queue through a weighted shortest path first algorithm;

[0168] Central coordinator module: responsible for monitoring the communication between nodes, assigning tasks according to the task execution queue, and handling fault detection and recovery operations. It receives the optimized task execution queue from the dependency resolution engine, adjusts the distribution of tasks among the monitoring nodes, and quickly performs task migration and data recovery when a node failure is detected.

[0169] Fault management and recovery module: synchronizes task status between all monitoring nodes, implements fault detection and fault recovery mechanisms, implements fault detection through heartbeat mechanism and timestamp check, marks and manages faulty nodes, and automatically restarts affected tasks on other monitoring nodes to maintain task continuity;

[0170] Resource forecasting and adjustment module: Based on historical resource usage data and task execution patterns, a piecewise linear trend forecasting algorithm is used to predict future resource requirements and adjust resource allocation accordingly.

[0171] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present invention is limited to these examples. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity.

[0172] The present invention is intended to cover all such substitutions, modifications and variations that fall within the broad scope of the claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A cloud computing task tracking and processing method, characterized in that: The following steps are involved: S1: Deploy a distributed task monitoring unit in the cloud service platform. The distributed task monitoring unit uses multiple monitoring nodes, each of which is responsible for tracking and managing a group of cloud computing resources; S2: Introducing task dependency parsing, analyzing the dependencies of all tasks before task assignment, and creating an optimized task execution queue based on the dependency data; S3: Communication between monitoring nodes is achieved through a central coordinator, and the central coordinator assigns tasks to monitoring nodes according to the task execution queue; S4: Each monitoring node obtains and executes tasks, and feeds back task execution data to the central coordinator in real time; S5: During the task execution process, by synchronizing the task status between multiple monitoring nodes, when any monitoring node detects a fault, the task is automatically transferred to other available monitoring nodes for continued execution, ensuring task continuity and data integrity. At the same time, the abnormal status is recorded and fault recovery is attempted; S6: The central coordinator regularly generates task execution reports, including task completion status, resource utilization, performance indicators, and fault recovery status; S7: Based on the piecewise linear trend prediction algorithm, future resource requirements are predicted according to historical resource usage data and task execution patterns, so that the central coordinator can adjust resource allocation in advance according to the prediction results to avoid resource waste.

2. The cloud computing task tracking and processing method according to claim 1, characterized in that: S1 includes configuring basic network security settings on the cloud service platform, including firewall and security authentication settings; S11: On the cloud service platform, multiple virtual machines or containers are deployed as monitoring nodes, and each monitoring node is configured with computing and storage resources to process the assigned tasks and data; S12: Program each monitoring node to set the specific cloud computing resource group it is responsible for, where the cloud computing resource group includes computing resources, storage resources, and network resources; S13: Implement an automated service discovery and registration mechanism so that each monitoring node can automatically detect and link to the corresponding cloud computing resource group.

3. The cloud computing task tracking and processing method according to claim 1, characterized in that: The S2 specifically includes: S21: collect metadata of each task and perform preprocessing, the metadata includes the type of task, required resources, and estimated execution time; S22: inputting the collected task metadata into a dependency parsing engine, wherein the dependency parsing engine uses topological sorting to determine the dependency relationship between tasks, and ensures that the order of the dependencies is correct; S23: After the dependency resolution engine completes the analysis, it uses a weighted shortest path first algorithm to create an optimized task execution queue taking into account resource availability and task priority; S24: The optimized task execution queue is passed to the central coordinator, and the central coordinator adjusts the distribution of tasks among the monitoring nodes.

4. The cloud computing task tracking processing method according to claim 3, characterized in that: The dependency parsing engine specifically includes: Task metadata collection: When each task is submitted to the cloud service platform, it is accompanied by metadata, including the task ID, resource requirements, and estimated execution time, which depends on the task ID; Use topological sorting to determine task dependencies: Represent tasks and their dependencies as a directed acyclic graph, where each node represents a task and the edge represents the dependency, pointing to the subsequent tasks that depend on the task. The steps of the topological sorting algorithm are as follows: Initialize a node queue with no in-degree; Take a node from the queue and add it to the sorting result; Remove the node and all its outgoing edges, and update the in-degree of these subsequent tasks; When the in-degree of a subsequent task becomes zero, it is added to the queue; Repeat the steps of taking out and removing until the queue is empty; Let D represent the dependency matrix, where D[i][j]=1 means that task i must be completed before task j, then topological sorting helps determine the execution order P.

5. The cloud computing task tracking and processing method according to claim 4, characterized in that: The weight-based shortest path first algorithm adopts Dijkstra algorithm: Define the starting weight of each task, based on its resource requirements and priority; For each task node i, define its path cost C(i, j) to other nodes j, taking into account the availability of resources and the closeness of dependencies; Calculate the shortest path from the starting node to all other nodes to determine the resource-optimal execution order; Assume that R[i] represents the resource demand of task i, P[i] represents the priority, and define C(i, j) = αR[i] + β(1 / P[i]), where α and β are coefficients that adjust the impact of resource demand and priority.

6. The cloud computing task tracking and processing method according to claim 1, characterized in that: The S5 specifically includes: S51: configure a real-time data synchronization channel between all monitoring nodes so that each status update of the task is shared instantly among all monitoring nodes, implement a message delivery system based on a publish / subscribe model, allow monitoring nodes to subscribe to each other's status updates, and ensure that each node can receive the task status information of other monitoring nodes in real time; S52: Run a fault detection mechanism at each monitoring node to continuously check the status information of itself and other nodes received to identify potential faults. If the monitoring node finds a fault itself or receives a fault notification from other nodes, it immediately reports to the central coordinator and marks its own status as "fault mode"; S53: After receiving the fault report, the central coordinator evaluates the current resource status and the load of all monitoring nodes, selects the best standby node to take over the tasks of the affected nodes, and instructs the standby node to restore the tasks of the faulty monitoring nodes from the most recent synchronization point, using the synchronized state data to minimize task recovery time and data loss; S54: The standby node executes the task according to the synchronized data recovery task and continues to synchronize the data in real time to keep the task status up to date. The original faulty node performs self-diagnosis and repair operations. Once it recovers to normal, it rejoins the node pool. The central coordinator decides whether it can take over the task again or serve as a standby node.

7. The cloud computing task tracking and processing method according to claim 6, characterized in that: The fault detection mechanism adopts a heartbeat mechanism. Each monitoring node regularly sends a heartbeat signal to the central coordinator and other monitoring nodes. The heartbeat contains the health status and the last activity timestamp of the node. A timestamp check is performed to receive the timestamp of the heartbeat message of the monitoring node. If the heartbeat of a monitoring node is not received within a preset timeout period, the monitoring node is marked as a suspected fault state. Perform status confirmation and secondary check: When a monitoring node is marked as suspected of failure, a status confirmation request is initiated to request the monitoring node to confirm its status. If the confirmation request is not responded to within the second preset timeout period, or a failure confirmation is received, the monitoring node is officially marked as "failure mode"; When a monitoring node is confirmed to be faulty, this information will be broadcast to all other monitoring nodes and the central coordinator so that appropriate failover measures can be taken.

8. The cloud computing task tracking and processing method according to claim 1, characterized in that: The piecewise linear trend prediction algorithm predicts future resource demand based on historical resource usage data and task execution patterns, specifically including: Continuously collect historical usage data u of resource type r of each monitoring node r,t , where t represents the time point, resource type r includes CPU usage, memory usage, storage space usage, and network bandwidth usage, and records the task execution mode, including task type, execution time, required resources, and efficiency of task completion; Standardized resource usage data: historical usage data r,t Convert to relative usage u r,t ′, Among them, U r is the total capacity of resource r; Segment Identification: Change point detection: Use the standard deviation change of the sliding window to determine the rapid change points in resource usage, including sudden increases or decreases in utilization. Rapid change points identify potential behavioral changes and thus define segments. Linear trend modeling: Perform piecewise linear regression and, for each segment s, calculate a linear regression model to fit u r,t′ Dependence on time t, linear model formula: u r,t ′=β 0,s +β 1,s ×t+∈ s , where β 0,s is the intercept, which indicates the baseline resource utilization at the beginning of the segment, and β 1,s is the slope, which indicates the rate of change of resource utilization over time, ∈ s is the error term, which represents the deviation between the model and the actual data; Forecast future resource requirements: including short-term forecasts and long-term forecast adjustments.

9. The cloud computing task tracking and processing method according to claim 8, characterized in that: The short-term prediction includes: for the most recent segment s, using its linear model parameters β 0,s and β 1,s Predict resource utilization in the short term. The prediction formula is: The long-term prediction adjustment includes introducing the attenuation factor γ to adjust β 1,s , adjust the prediction formula: Where k is the prediction step size, and γ is the decay coefficient between 0 and 1, which is used to simulate the slowdown or acceleration of resource usage trends; Resource allocation adjustment: The central coordinator adjusts the resource allocation according to the prediction results. Dynamically adjust resource allocation strategies.

10. A cloud computing task tracking and processing system, used to implement the cloud computing task tracking and processing method according to any one of claims 1 to 9, characterized in that: Includes the following modules: Distributed task monitoring unit module: deploys and manages multiple monitoring nodes on the cloud service platform. Each monitoring node is responsible for tracking and managing a group of cloud computing resource groups. It also includes basic network security settings and deployment of monitoring nodes. Task dependency parsing engine module: collects and preprocesses task metadata, uses topological sorting to determine the dependencies between tasks, and optimizes the task execution queue through a weighted shortest path first algorithm; Central coordinator module: responsible for monitoring the communication between nodes, assigning tasks according to the task execution queue, and handling fault detection and recovery operations; Fault management and recovery module: synchronizes task status between all monitoring nodes, implements fault detection and fault recovery mechanisms, implements fault detection through heartbeat mechanism and timestamp check, marks and manages faulty nodes, and automatically restarts affected tasks on other monitoring nodes to maintain task continuity; Resource forecasting and adjustment module: Based on historical resource usage data and task execution patterns, a piecewise linear trend forecasting algorithm is used to predict future resource requirements and adjust resource allocation accordingly.

Citation Information

Cited By

  • Distributed intelligent video image scheduling system

    CN119155522A

  • Scheduling method and device for cloud computing resources in urban simulation field

    CN119248520A

  • Production project implementation progress intelligent statistical analysis method and system

    CN119578806A

  • Cloud-side collaborative real-time task scheduling method for intelligent network connection automobile

    CN119835335A

  • Remote sensing big data automatic processing method based on cloud computing

    CN120256144A