Task flow rescheduling method and system based on dynamic topology

By acquiring and processing real-time and historical data in a distributed computing cluster to generate an environment recovery configuration table, the problem of integrating the status information of faulty nodes is solved, and high availability continuity of task flow and stable system operation are achieved.

CN123157375APending Publication Date: 2026-11-24北京佳芯信息科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611358280.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-03
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

When a distributed computing cluster fails, the task execution environment is difficult to restore accurately, and lossless continuation cannot be achieved. Existing technologies lack the ability to flexibly adapt to changes in the runtime environment, resulting in execution interruptions or errors during task recovery.

Method used

By acquiring real-time status data and historical backup data of the faulty node, data sharding is performed, data consistency verification and interpolation are conducted to generate a complete status dataset. The node operation characteristics are extracted using an environmental parameter prediction model to generate an environment recovery configuration table. Task migration and continuation are achieved through cluster hierarchical broadcasting and incremental time-series synchronous transmission.

Benefits of technology

It enables rapid integration and accurate repair of faulty node status information, ensuring that the execution environment of the target backup node is highly aligned with the environment before the fault before task migration, avoiding execution interruption and secondary errors during task recovery, and improving the accuracy of task flow rescheduling and system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123157375A_ABST
    Figure CN123157375A_ABST
Patent Text Reader

Abstract

This invention relates to the field of distributed computing and discloses a task flow rescheduling method and system based on dynamic topology. The method includes: sharding node real-time status data and node historical backup data to obtain an initial state information set; imputing the initial state information set according to missing data locations to obtain a complete state dataset; scheduling a task allocation list containing a target backup node based on the complete state dataset; inputting the task allocation list and the complete state dataset into a pre-trained environment parameter prediction model to obtain underlying configuration parameters, and fusing them to obtain an environment recovery configuration table; broadcasting a migration start signal based on the environment recovery configuration table; obtaining a task migration completion identifier based on task data transfer link transmission; and performing continuity environment consistency compensation on the target backup node based on the task migration completion identifier to obtain a final continuity confirmation signal. This method can achieve accurate and lossless continuity of task flows under cluster failure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of distributed computing technology, and in particular to a task flow rescheduling method and system based on dynamic topology. Background Technology

[0002] Currently, distributed computing, as a core technology supporting big data processing and task execution, directly impacts the stability and reliability of critical business operations. However, with the continuous expansion of computing clusters, problems such as node failures or network interruptions inevitably arise during system operation.

[0003] In existing technologies, when facing failures in distributed computing clusters, there is often an over-reliance on pre-defined, fixed recovery mechanisms. However, this approach lacks flexibility in adapting to changes in the runtime environment and struggles to quickly detect and respond to dynamic changes caused by failures. When a failure occurs, the runtime status information of the failed node is often scattered across multiple adjacent nodes, lacking a unified integration mechanism, causing the system to be unable to grasp the true progress of tasks in a timely manner. Subsequently, due to the incomplete status information obtained, it is difficult for the standby node to accurately reconstruct the task's execution environment when taking over the task, leading to execution interruptions or errors during the task recovery process.

[0004] Existing technologies have the technical problem that when a distributed computing cluster fails, the task execution environment is difficult to restore accurately, making it impossible to achieve lossless task continuation. Summary of the Invention

[0005] This invention provides a task flow rescheduling method and system based on dynamic topology to solve the technical problem in the prior art that the task execution environment is difficult to accurately restore when a distributed computing cluster fails, and the task cannot be seamlessly continued.

[0006] Firstly, to address the aforementioned technical problems, this invention provides a task flow rescheduling method based on dynamic topology, comprising: Obtain real-time status data and historical backup data of faulty nodes in a distributed computing cluster, and perform data sharding on the real-time status data and the historical backup data to obtain an initial status information set. The initial state information set is subjected to data consistency verification to obtain the missing data positions. The initial state information set is then supplemented by interpolation based on the missing data positions to obtain a complete state dataset. Based on the complete state dataset, the distributed computing cluster is taken over and scheduled to obtain a task allocation list containing the target backup node; The task allocation list and the complete state dataset are input into a pre-trained environmental parameter prediction model to extract node running features, obtain the underlying configuration parameters, and perform feature fusion on the underlying configuration parameters to obtain the environmental recovery configuration table. A node status update package is generated based on the environment recovery configuration table, and the node status update package is sent to the target standby node through cluster hierarchical broadcasting to obtain a migration start signal; Based on the migration initiation signal, a task data transfer link is established to the target backup node, and incremental time-series synchronous transmission is performed based on the task data transfer link to obtain a task migration completion identifier. Based on the task migration completion identifier, the target backup node is compensated for continuity environment consistency to obtain the final continuity confirmation signal.

[0007] Secondly, the present invention provides a task flow rescheduling system based on dynamic topology, comprising: The status acquisition module is used to acquire real-time status data and historical backup data of faulty nodes in the distributed computing cluster, and to perform data sharding on the real-time status data and the historical backup data to obtain an initial status information set. The data repair module is used to perform data consistency verification on the initial state information set, obtain the missing data positions, and interpolate and supplement the initial state information set according to the missing data positions to obtain a complete state dataset. The takeover scheduling module is used to perform takeover scheduling on the distributed computing cluster based on the complete state dataset, and obtain a task allocation list containing the target backup node. The feature prediction module is used to input the task allocation list and the complete state dataset into a pre-trained environmental parameter prediction model to extract node running features, obtain underlying configuration parameters, and perform feature fusion on the underlying configuration parameters to obtain an environment recovery configuration table. The status update module is used to generate a node status update package based on the environment recovery configuration table, and send the node status update package to the target standby node through cluster hierarchical broadcast to obtain the migration start signal; The data migration module is used to establish a task data transfer link to the target backup node according to the migration start signal, perform incremental time-series synchronous transmission based on the task data transfer link, and obtain a task migration completion identifier. The consistency compensation module is used to perform continuity environment consistency compensation on the target backup node according to the task migration completion identifier, so as to obtain the final continuity confirmation signal.

[0008] Compared with the prior art, the present invention has the following beneficial effects: (1) This invention obtains real-time status data and historical backup data of faulty nodes for data sharding, and obtains a complete status dataset by combining data consistency verification and interpolation supplementation. This changes the passive mode of traditional fixed recovery mechanism that relies too much on single and easily lost node logs. By using multi-source data shard comparison and dynamic time-series interpolation of missing positions, it realizes rapid integration and accurate repair of fragmented status information at the underlying logic level. This effectively overcomes the defects of difficult integration of faulty node running status information and difficulty in grasping the real progress, and significantly improves the data recovery integrity and system adaptability of distributed computing clusters under sudden failures.

[0009] (2) This invention takes over and schedules the distributed computing cluster based on the complete state dataset, and inputs the generated task allocation list and the complete state dataset into a pre-trained environment parameter prediction model to extract node running features and fuse them to generate an environment recovery configuration table. This method abandons the inefficient approach of blindly restarting standby nodes from scratch or taking over tasks using static preset parameters. Through the feature prediction mechanism, the abstract task progress is accurately mapped to the underlying physical configuration parameters, ensuring that the execution environment of the target standby node before task migration is highly aligned with the environment before the failure. This solves the problem that standby nodes are difficult to accurately restore the task execution environment when taking over tasks, effectively avoids execution interruption and secondary errors during task recovery, and greatly improves the accuracy of task flow rescheduling.

[0010] (3) This invention establishes a task data transfer link for incremental time-series synchronous transmission, and performs continuity environment consistency compensation on the target backup node according to the task migration completion identifier after the migration is completed. The incremental synchronous transmission reduces the communication delay and network congestion risk of large-scale data transfer. By comparing the characteristic deviations between the actual environment and the expected environment, and using the exponential backoff algorithm to send synchronous compensation instructions for dynamic closed-loop correction, the final convergence of the continuity state is ensured. This ensures the temporal consistency and complete losslessness of task data during the transfer process, eliminates the state drift that may occur after the task continuity, and finally realizes the high availability continuity of task flow and the continuous and stable operation of the system under complex dynamic topology. Attached Figure Description

[0011] Figure 1 This is a schematic diagram of the task flow rescheduling method based on dynamic topology provided in the first embodiment of the present invention; Figure 2 This is a schematic diagram of the task flow rescheduling system structure based on dynamic topology provided in the second embodiment of the present invention. Detailed Implementation

[0012] 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.

[0013] Reference Figure 1 The first embodiment of the present invention provides a task flow rescheduling method based on dynamic topology, comprising the following steps: S1, obtain the real-time status data and historical backup data of the faulty node in the distributed computing cluster, and perform data sharding on the real-time status data and the historical backup data to obtain an initial status information set; S2, perform data consistency verification on the initial state information set to obtain the missing data positions, and perform interpolation to supplement the initial state information set according to the missing data positions to obtain a complete state dataset; S3, perform takeover scheduling on the distributed computing cluster based on the complete state dataset to obtain a task allocation list containing the target backup node; S4. Input the task allocation list and the complete state dataset into the pre-trained environment parameter prediction model to extract node running features, obtain the underlying configuration parameters, and perform feature fusion on the underlying configuration parameters to obtain the environment recovery configuration table. S5. Generate a node status update package according to the environment recovery configuration table, and send the node status update package to the target standby node through cluster hierarchical broadcasting to obtain a migration start signal; S6. Establish a task data transfer link to the target backup node according to the migration start signal, perform incremental time-series synchronous transmission based on the task data transfer link, and obtain a task migration completion identifier. S7. Based on the task migration completion identifier, perform continuity environment consistency compensation on the target backup node to obtain the final continuity confirmation signal.

[0014] In step S1, the real-time status data and historical backup data of the faulty node in the distributed computing cluster are obtained, and the real-time status data and historical backup data are sharded to obtain an initial status information set.

[0015] Specifically, the real-time status data of the node and the historical backup data of the node are sharded to obtain an initial status information set, including: The state acquisition frequency of the real-time state data of the node is obtained, and the real-time state data of the node is divided into time segments according to the state acquisition frequency to obtain real-time state segments. Extract the node backup features from the node's historical backup data, and align the node backup features with the real-time status shards using timestamps to obtain aligned status shards. The integrity of each alignment state fragment is verified using the MD5 algorithm. When the verification passes, the fragments are packaged and encapsulated according to their generation sequence to obtain an initial state information set.

[0016] In one implementation, real-time status data and historical backup data of a faulty node in a distributed computing cluster are obtained. This embodiment uses a distributed coordination service process to read the heartbeat list of surviving nodes in the cluster, compares it with a pre-built cluster topology graph to determine the node experiencing network communication interruption, and identifies this node as the faulty node. It should be noted that the pre-built cluster topology graph is a directed graph data structure constructed during cluster initialization by periodically broadcasting sniffing packets using the Link Layer Discovery Protocol (LLDP) to collect the physical media access control (MAC) addresses and port connection relationships of each node. Status retrieval commands are sent to adjacent mirror nodes within the same subnet as the faulty node to extract its real-time status data, and historical backup data is read from a remote cold backup database. The metadata request header of the real-time status data is parsed, and the number of status records generated per unit time is determined as the status collection frequency.

[0017] It is worth noting that the real-time status data of the node is divided into time segments based on the status acquisition frequency to obtain real-time status fragments. Specifically, the pre-configured fragment capacity limit index is extracted, and the quotient of the fragment capacity limit index and the average byte data volume of a single status record is calculated to obtain the upper limit of the number of records within a time window; the upper limit of the number of records within the time window is divided by the status acquisition frequency to obtain the baseline time span; continuous time intervals are extracted on the absolute time axis according to the baseline time span, and the real-time status data of the node falling within a single time interval is divided into independent data blocks to generate the real-time status fragments.

[0018] It should be noted that the method for determining the pre-configured upper limit of fragment capacity is as follows: The maximum transmission unit (MTU) payload bytes of the TCP (Transmission Control Protocol) between network nodes in the distributed computing cluster are read. This MTU payload bytes are multiplied by a constant of 10,000, and the resulting product is directly assigned as the pre-configured upper limit of fragment capacity. Using a constant of 10,000 as a proportional coefficient strikes a balance between the overhead of underlying network packet reassembly and the capacity of a single data slice, while ensuring that a single fragment can carry the sample size required for statistical feature extraction.

[0019] In one implementation, node backup features are extracted from the node's historical backup data. This embodiment performs file structure parsing on the node's historical backup data, extracts the generation time points of the periodically persistent snapshots recorded therein, and combines them to generate the node backup features. The node backup features are then timestamped with the real-time state shards to obtain aligned state shards. Specifically, the real-time state shards are traversed to extract a first log timestamp sequence, and a second snapshot timestamp with the smallest absolute difference from the start time in the first log timestamp sequence is searched within the node backup features; it is determined whether the absolute difference is less than a preset time alignment tolerance; if it is less, the data block corresponding to the second snapshot timestamp is appended to the end of the attributes of the real-time state shard to generate the aligned state shard.

[0020] It should be noted that the method for determining the preset time alignment tolerance is to calculate the average interval between two consecutive historical backup data generation times during normal operation, extract half of the average interval, and directly assign it as the preset time alignment tolerance.

[0021] In one implementation, the MD5 algorithm is used to perform integrity verification on each alignment state fragment. This embodiment extracts the binary payload content of the alignment state fragment, performs a one-way hash operation to output a measured MD5 digest string, and extracts the original MD5 digest string from the metadata message of the alignment state fragment. The measured MD5 digest string is then compared byte-by-byte with the original MD5 digest string. When the verification passes (i.e., the comparison result is completely consistent), the alignment state fragments are packaged and encapsulated according to their generation sequence to obtain an initial state information set. Specifically, the start timestamps of each alignment state fragment are extracted and sorted in ascending order; according to the sorted order, a self-delimited protocol header containing a sequence number and a fragment count identifier is added to each alignment state fragment sequentially; all alignment state fragments after adding the self-delimited protocol header are serially concatenated using consecutive memory addresses to output the initial state information set. It should be noted that if the comparison result is inconsistent, the alignment state fragment is determined to be corrupted, the fragment is discarded, and a state retrieval instruction for the corresponding time period is resent to the adjacent mirror node.

[0022] For example, suppose a distributed computing cluster contains 10 nodes, where node 3 is determined to be a faulty node due to a heartbeat timeout. The system uses LLDP sniffing to obtain the connection relationships between nodes and compares them with the topology graph. It then sends requests to neighboring nodes 2 and 4 to obtain the real-time status data of node 3. Parsing the metadata reveals that the status collection frequency is 10 records per second, and the size of a single status record is approximately 2500 bytes. Combining the rule that the maximum transmission unit of the network is 1500 bytes multiplied by a constant of 10,000, the upper limit of the fragment capacity is determined to be 15,000,000 bytes, approximately 15MB. The system calculates that the upper limit of the number of records within a time window is 6000 records. Dividing 6000 records by the collection frequency of 10 records per second yields a baseline time span of 600 seconds, or 10 minutes. The system segments the data stream at 10-minute intervals to obtain multiple independent real-time status fragments. Subsequently, the system extracts the snapshot generation time points generated every 5 minutes from the node's historical backup data as node backup features, and calculates a preset time alignment tolerance of 2.5 minutes. The system timestamps and appends them to the features of the most recent snapshot within a 2.5-minute time difference to generate aligned state fragments. Next, the system extracts the payload, performs MD5 verification, and after confirming consistency, encapsulates and concatenates them in ascending order, finally outputting the integrated initial state information set.

[0023] In step S2, the initial state information set is subjected to data consistency verification to obtain the missing data positions. The initial state information set is then interpolated and supplemented according to the missing data positions to obtain a complete state dataset.

[0024] Specifically, performing data consistency verification on the initial state information set to determine the missing data locations includes: The SHA-256 algorithm is used to calculate the unique identifier of each data sub-block in the initial state information set to obtain the measured hash value sequence; Obtain the metadata reference hash sequence associated with the initial state information set, calculate the matching degree between the measured hash value sequence and the metadata reference hash sequence, and obtain the sequence alignment result; Based on the sequence alignment results, missing sub-blocks are selected, and the timestamps of the missing sub-blocks are extracted to determine the missing data locations.

[0025] In one implementation, the SHA-256 algorithm is used to calculate the unique identifier for each data sub-block in the initial state information set. It should be noted that in this embodiment, the initial state information set is divided into several discrete data units with a fixed step size to obtain the data sub-blocks. In this embodiment, the binary bitstream of each data sub-block is input into a preset SHA-256 hash function, and a fixed-width hexadecimal feature string is calculated and output, which is then identified as an element in the measured hash value sequence.

[0026] It is worth noting that the method for determining the fixed step size of the data sub-block is to extract the historical backup block step size recorded in the system's global metadata dictionary and determine this historical backup block step size as the fixed step size. The historical backup block step size is a global constant determined during the initial system configuration phase by extracting one-quarter of the level 3 cache capacity of the cluster master control node, and matching it with the data throughput and processor cache scheduling strategy during the hash operation process. For example, if the level 3 cache capacity of the master control node is 20MB, then the size of the data sub-block is globally and uniformly set to 5MB.

[0027] It should be noted that the matching degree between the measured hash value sequence and the metadata reference hash sequence is calculated. In this embodiment, the metadata management node of the cluster pulls the preset verification index table corresponding to the current task flow, and extracts the metadata reference hash sequence from it. In this embodiment, a string equality comparison operation is performed on the corresponding elements in the measured hash value sequence and the metadata reference hash sequence. If the measured hash value string and the reference hash value string are completely identical, the matching degree of the data sub-block is determined to be successful; if there are any character differences, the matching degree of the data sub-block is determined to be unsuccessful. The determination status of all elements is combined to generate the sequence comparison result.

[0028] The preset verification index table records the SHA-256 hash values ​​of each data sub-block in the generated initial state information set in the order of sub-block generation during each data sharding and packaging process during the normal operation of the distributed computing cluster. It then associates these hash values ​​with the corresponding timestamp range and stores them in the metadata management node, forming a read-only hash index table bound to the task flow identifier.

[0029] In one implementation, missing sub-blocks are selected based on the sequence alignment results. This embodiment parses the sequence alignment results, extracts the index positions corresponding to records with failed matching, maps these index positions back to the data sub-block set, and marks the sub-blocks that failed the verification as missing sub-blocks. The timestamps of the missing sub-blocks are extracted and used as the data missing locations. Specifically, the header encapsulation data of the missing sub-blocks is parsed, and the globally unified clock count value recorded therein is read and used as the data missing location.

[0030] Specifically, the initial state information set is interpolated and supplemented according to the missing data locations to obtain a complete state dataset, including: Based on the missing data location, retrieve adjacent state nodes from the initial state information set, and calculate the state evolution slope between the adjacent state nodes; Based on the state evolution slope, compensated state data is generated using a linear interpolation algorithm; The compensated state data is filled into the missing data positions in the initial state information set to obtain a complete state dataset.

[0031] In one implementation, adjacent state nodes are retrieved from the initial state information set based on the missing data position. In this embodiment, using the timestamp as the axis, the system searches the initial state information set for the preceding and following normal record points with the smallest absolute distance on the time axis from the timestamp, and determines the searched record points as the adjacent state nodes. If no preceding state node is found, the first normal state node after the missing data position is used as the benchmark, and zero-order hold-and-fill is used to generate compensating state data. If no following state node is found, the last normal state node before the missing data position is used as the benchmark, and zero-order hold-and-fill is used to generate compensating state data. If there are no nodes before or after the missing data position, the system's preset initial state default value, i.e., the empirical median under normal conditions, is determined as the compensating state data, such as setting the CPU utilization to 50% and memory consumption to zero.

[0032] It is worth noting that the state evolution slope between adjacent state nodes is calculated. In this embodiment, physical feature components, such as CPU utilization or memory consumption, are extracted from the adjacent state nodes. The algebraic difference of the physical feature components is calculated, and the algebraic difference is divided by the time span between the adjacent state nodes to obtain the state evolution slope.

[0033] It should be noted that a linear interpolation algorithm is used to generate the compensated state data. In this embodiment, the slope of the state evolution is multiplied by the time offset of the missing data position relative to the preceding normal record point to calculate the feature increment. This feature increment is then superimposed on the physical feature value of the preceding normal record point to obtain the compensated state data. This embodiment simulates the operational trend at the moment of failure through this logic, restoring log gaps caused by communication interruptions or node failures.

[0034] In one implementation, the compensated state data is filled into the missing data positions in the initial state information set to obtain a complete state dataset. In this embodiment, the generated compensated state data is inserted into the corresponding storage slots of the initial state information set according to the corresponding timestamps, and data format alignment processing is performed.

[0035] It is worth noting that a secondary integrity check is performed after data infilling. Specifically, the physical characteristic fluctuation series of the infilled dataset within the time window corresponding to the missing data location is extracted, the standard deviation of this fluctuation series is calculated, and it is determined whether the standard deviation is less than a preset outlier threshold. If it is less, the integrity requirement is met, and the complete state dataset is output. The preset outlier threshold is determined by collecting characteristic fluctuation data of the task flow under normal operating conditions over the past 24 hours, calculating three times the standard deviation of this characteristic fluctuation data, and directly assigning the value of three times the standard deviation as the preset outlier threshold.

[0036] For example, the initial state information set is divided into multiple data sub-blocks according to the global constant of 5MB in the metadata dictionary. The system uses the SHA-256 algorithm to calculate the hash value of each sub-block, obtaining a sequence of measured hash values ​​containing the characteristic string. The system obtains the corresponding reference hash sequence from the metadata node and performs string equality comparison. If the measured hash value of a sub-block is found to be inconsistent with the reference hash value, the sub-block is determined to be a missing sub-block, and the timestamp 2026-05-14 10:05:00 recorded in the packet header of the sub-block is extracted as the missing data location. The system retrieves that the CPU occupancy rate of the preceding normal record point at 10:04:50 is 30%, and the following normal record point at 10:05:10 is 40%. The system calculates that the state evolution slope increases by 0.5% per second. The system multiplies this slope by a time offset of 10 seconds to calculate the compensated occupancy rate of 35%, and generates the corresponding compensated state data. The system fills the missing data into the missing positions, then calculates the standard deviation of the data in that window segment. After confirming that it is less than the preset 3-sigma outlier threshold, it finally outputs a complete state dataset without any faults.

[0037] In step S3, the distributed computing cluster is taken over and scheduled according to the complete state dataset to obtain a task allocation list containing the target standby node, including: The task breakpoint coordinates of the faulty node are determined based on the complete state dataset, and the remaining task quantity is calculated based on the task breakpoint coordinates. The remaining task volume is divided into task blocks according to a preset data parallel partitioning strategy to obtain task blocks to be scheduled. Obtain the real-time load index of each standby node in the distributed computing cluster, distribute the task block to be scheduled to the standby node with the lowest load according to the real-time load index, determine the standby node with the lowest load as the target standby node, and obtain the task allocation list.

[0038] In one implementation, the task breakpoint coordinates of the faulty node are determined based on the complete state dataset. This embodiment extracts the first state record from the complete state dataset, sorted in descending order of timestamp, and parses the task execution progress identifier in this state record; then, it obtains the global task topology graph pre-stored by the distributed computing cluster. It should be noted that the global task topology graph is a description file automatically generated and persistently stored by the directed acyclic graph task scheduler of the distributed cluster after parsing the task execution script and stripping dependencies when receiving the initial computing task. This embodiment matches the task execution progress identifier with the node sequence in the global task topology graph, extracts the topological level depth index and task slice offset of the matching node in the global task topology graph, and combines them to determine the task breakpoint coordinates.

[0039] It should be noted that the remaining task quantity is calculated based on the task breakpoint coordinates. In this embodiment, the total number of task data bytes defined in the global task topology map is obtained, and the number of completed task data bytes corresponding to the task breakpoint coordinates is calculated. The total number of task data bytes is then subtracted from the number of completed task data bytes to obtain the total number of unexecuted task data bytes, which is determined as the remaining task quantity.

[0040] It is worth noting that the remaining task volume is divided into task blocks according to a preset data parallel partitioning strategy to obtain task blocks to be scheduled. The preset data parallel partitioning strategy is determined by collecting the average physical memory balance of all available spare nodes in the distributed computing cluster through the system monitoring interface, multiplying the average physical memory balance by a constant of 80% to obtain a safe partitioning threshold, and determining this safe partitioning threshold as the maximum capacity for a single partition. The remaining 20% ​​of physical memory space is set to correspond to the resident memory overhead of the operating system kernel thread, network protocol stack buffer, and system-level daemons. In this embodiment, the maximum capacity for a single partition is used as the length step size. The unexecuted task data sequence corresponding to the remaining task volume is sequentially truncated to generate multiple independent data segments of equal size and a tail data segment with a size smaller than the step size. All the independent data segments and the tail data segment are determined as the task blocks to be scheduled.

[0041] In one implementation, real-time load metrics of each standby node in the distributed computing cluster are obtained. In this embodiment, the CPU utilization, memory usage, and network bandwidth usage of each standby node are read through the operating system kernel interface; the arithmetic mean of the CPU utilization, memory usage, and network bandwidth usage is calculated, and a scalar value reflecting the current resource consumption of the node is output, which is then determined as the real-time load metric.

[0042] It should be noted that the task blocks to be scheduled are distributed to the standby nodes with the lowest load based on the real-time load metrics. In this embodiment, the real-time load metrics of all standby nodes are extracted, and the reciprocal of each real-time load metric is calculated. The reciprocal of each standby node is divided by the sum of the reciprocals of all standby nodes to calculate the allocation weight of each standby node. In this embodiment, based on the above weight allocation method, the node corresponding to the global maximum allocation weight is extracted in descending order of the allocation weights, that is, the node with the smallest corresponding real-time load metric value. This node is determined as the standby node with the lowest load, and the identifier of the task block to be scheduled is mapped and bound to this standby node with the lowest load.

[0043] It is worth noting that the standby node with the lowest load is identified as the target standby node, resulting in the task allocation list. In this embodiment, the sequence number of the scheduled task block with which the mapping binding relationship is established is extracted, along with the network interconnection protocol address of the target standby node. These two are combined and encapsulated into a key-value pair data structure. All key-value pair records are summarized to generate a structured mapping table, which is then output as the task allocation list.

[0044] For example, assume a distributed computing cluster is processing a dataset with a total task data size of 100GB. The system parses the complete state dataset and finds that the task progress of the first log entry, sorted by timestamp in descending order, matches a task node with a depth of 5 and an offset of 500MB in the global task topology graph. The system combines this depth index and offset to determine the task breakpoint coordinates. The system calculates the corresponding completed progress as 75GB using the global task topology graph, and subtracts this to calculate the remaining task volume as 25GB. Subsequently, the system collects the average remaining physical memory of the cluster's backup nodes, which is 10GB. Multiplying this by 80% yields a maximum single-splitting capacity of 8GB, with the remaining 2GB of physical memory matching the kernel and network protocol stack residency overhead. The system splits the remaining 25GB of task volume into four task blocks to be scheduled, in 8GB increments. The system obtains the real-time load metrics of backup nodes A, B, and C as 80%, 20%, and 50%, respectively. After calculating the reciprocals and normalizing, backup node B receives the largest allocation weight. The system distributes the task blocks to be scheduled to the standby node B with the lowest load according to the weight allocation method, determines the standby node B as the target standby node, and finally generates a structured table that records the mapping relationship between the task block sequence and the network address of the standby node B as a task allocation list.

[0045] In step S4, the task allocation list and the complete state dataset are input into a pre-trained environmental parameter prediction model to extract node running features, obtain underlying configuration parameters, and perform feature fusion on the underlying configuration parameters to obtain an environment recovery configuration table.

[0046] Specifically, the task allocation list and the complete state dataset are input into a pre-trained environment parameter prediction model to extract node running features, thereby obtaining the underlying configuration parameters, including: Extract the task type labels from the task allocation list, normalize the complete state dataset, and obtain the environmental feature vector. The environmental feature vector is input into the pre-trained environmental parameter prediction model, and the predicted features are obtained by mapping. The predicted features are then determined as the underlying configuration parameters.

[0047] In one implementation, task type tags are extracted from the task allocation list. This embodiment parses the message header structure of the task allocation list, extracts enumerated values ​​representing task computational attributes, and uses a one-hot encoding algorithm to convert the enumerated values ​​into a sparse binary vector to obtain the task type tag. It should be noted that the complete state dataset is normalized to obtain an environment feature vector. This embodiment extracts multidimensional numerical state data from the complete state dataset and uses a maximum-minimum normalization algorithm to linearly map each multidimensional numerical state data item to a dimensionless numerical range of zero to one, obtaining normalized state data. The task type tag and the normalized state data are then concatenated to obtain the environment feature vector.

[0048] It is worth noting that the environmental feature vector is input into the pre-trained environmental parameter prediction model to obtain the predicted features. This embodiment uses a multilayer perceptron as the pre-trained environmental parameter prediction model, whose network structure includes an input layer, three fully connected hidden layers, and an output layer. The number of neurons in the three fully connected hidden layers is set to 128, 64, and 32 respectively from the input layer to the output layer, and all use modified linear units as non-linear activation functions. In this embodiment, the environmental feature vector is input into the input layer of the multilayer perceptron, and after forward propagation calculation through the three fully connected hidden layers, a continuous numerical sequence containing the number of CPU threads and memory buffer capacity allocated to the target node is output at the output layer. This continuous numerical sequence is determined as the predicted features. In this embodiment, the predicted features are directly determined as the underlying configuration parameters.

[0049] It should be noted that the offline training process of the pre-trained environmental parameter prediction model is as follows: Real-state datasets from the historical operation records of the distributed computing cluster over the past 30 days are collected and transformed into model feature inputs. If the historical operation records are less than 30 days old, default configuration parameters (4 CPU threads, 2048MB memory buffer) are used as the initial model output. After each task scheduling, the current environmental feature vector is combined with manually labeled optimal configuration parameters to form training samples and stored in a sample pool. When the sample pool accumulates 1000 samples, the model parameters are fully trained using an adaptive moment estimation optimization algorithm with mean squared error as the loss function, replacing the default model. For each historical operation record, an offline grid search algorithm is used to traverse and execute within a preset parameter discrete space. The preset parameter discrete space is set as follows: for the number of CPU threads, the search range is set to 2 to 64, with a search step size of 2; for the memory buffer capacity, the search range is set to 1024 megabytes to 32768 megabytes, with a search step size of 1024 megabytes. Extract the parameter combination record with the shortest end-to-end computation time for the corresponding task, construct a low-level parameter allocation table from this record, and output this low-level parameter allocation table as the prior label to construct the training dataset. Use mean squared error as the loss function and iteratively fit the network node weights of the multilayer perceptron using an adaptive moment estimation optimization algorithm. Set the initial learning rate of the adaptive moment estimation optimization algorithm to 0.001. Trigger an early stopping mechanism when the mean squared error value of the validation set does not decrease for 10 consecutive iterations, terminating the iteration, fixing the network node weights, and outputting the pre-trained environmental parameter prediction model.

[0050] In one implementation, feature fusion is performed on the underlying configuration parameters to obtain an environment recovery configuration table. This embodiment reads a system configuration template library pre-stored in the metadata node and extracts a basic structured template matching the hardware architecture of the current target standby node. The system configuration template library is a standardized set of Extensible Markup Language (XML) documents generated by the operations and maintenance platform during system deployment, using automated scripts to extract static resource allocation constraints of the underlying operating system kernel version and hardware instruction set architecture of each node in the cluster. In this embodiment, the continuous numerical sequence from the underlying configuration parameters is filled into the corresponding parameter fields of the basic structured template according to a preset key-value pair mapping relationship. An Extensible Markup Language serialization protocol is used to perform format conversion processing on the filled structured template, generating cross-platform compatible file format data, which is then used as the environment recovery configuration table.

[0051] For example, assuming the task allocation list indicates that the current breakpoint task is a computationally intensive task, the system parses its computational attribute enumeration values ​​and converts them into a one-hot encoding of length 4 [1,0,0,0] as the task type label. The system extracts the historical CPU occupancy rate from the complete state dataset, which is processed by the maximum-minimum normalization algorithm to be 0.85. The concatenated environmental feature vector is input into a multilayer perceptron model with weights fixed by an early stopping mechanism. The model weights are pre-obtained by iterative fitting of the mean square error between the labels and the real state data through a grid search, and the grid search traverses an objective discrete space with 2 to 64 threads and 1024MB to 32768MB of memory. After three layers of forward propagation calculations containing 128, 64, and 32 neurons, the output predicted features include a CPU thread allocation of 16 and a memory buffer allocation of 8192. After determining the above values ​​as the underlying configuration parameters, the system reads the basic structured template, fills 16 and 8192 as specific values ​​into the corresponding positions of the preset key names of Threads and Memory_Limit, performs extensible markup language serialization operation, and outputs the final environment recovery configuration table.

[0052] In step S5, a node status update package is generated according to the environment recovery configuration table, and the node status update package is sent to the target standby node through cluster hierarchical broadcasting to obtain a migration start signal.

[0053] Specifically, the node status update packet is sent to the target standby node via cluster hierarchical broadcasting to obtain the migration start signal, including: A broadcast hierarchical tree is constructed based on the network topology of the distributed computing cluster, and the node status update packet is distributed to the target backup node according to the depth level of the broadcast hierarchical tree; The reception status fed back by the target backup node is confirmed for consistency, and a broadcast confirmation identifier is obtained. The broadcast confirmation identifier is then identified as the migration start signal.

[0054] In one implementation, a node status update packet is generated based on the environment recovery configuration table. This embodiment extracts the underlying configuration parameters from the environment recovery configuration table and converts them into a continuous binary data stream using an Extensible Markup Language (EXPLAIN) serialization protocol. A preset application-layer block size constant is extracted, and the binary data stream is divided into multiple data sub-blocks of fixed byte length. A routing protocol header containing the source node address, the target standby node address, and the block sequence number is appended to the header of each data sub-block. These sub-blocks are then combined and encapsulated to generate the node status update packet.

[0055] It should be noted that the method for determining the preset application layer block size constant is as follows: The preset memory limit of the node's network interface card (NIC) receive buffer is read through the operating system interface; half of this preset memory limit is extracted; and the calculated product value is directly assigned as the preset application layer block size constant. The remaining half of the buffer memory capacity is set to correspond to the resident concurrent reception overhead of regular service heartbeat messages and control commands.

[0056] It is worth noting that a broadcast hierarchical tree is constructed based on the network topology of the distributed computing cluster. This embodiment obtains global link information for all network routing devices and computing nodes within the distributed computing cluster, and extracts the real-time communication delay scalar between nodes as the weight values ​​of the connected edges in the topology graph. Using Prim's minimum spanning tree algorithm, with the currently executing control node as the root node and the target backup node as the leaf node, the link with the smallest weight value is iteratively selected to expand the network connected components, constructing a directed acyclic graph data structure that generates the minimum total communication delay overhead, and this is determined as the broadcast hierarchical tree.

[0057] In one implementation, the node state update packet is distributed to the target backup node according to the depth level of the broadcast hierarchy. This embodiment parses the depth index of the broadcast hierarchy and sends each data sub-block in the node state update packet to an intermediate routing node at depth level one via a network socket interface. After receiving the complete data sub-block, the intermediate routing node forwards it in parallel to the next-level node at depth level two according to the edge pointing relationship of the broadcast hierarchy, performing a layer-by-layer recursive relay transmission until the target backup node receives all data sub-blocks.

[0058] It should be noted that a consistency confirmation is performed on the received status reported by the target backup node to obtain a broadcast confirmation identifier. In this embodiment, at the target backup node, the received data sub-blocks are reassembled according to the block sequence number, and the measured message digest string is calculated on the reassembled data stream using the MD5 hash algorithm. The target backup node encapsulates the measured message digest string into a return response message and sends it back to the control node; this return response message is the received status. At the control node, the original message digest string generated before the node status update packet is sent is extracted, and a string equality comparison operation is performed between the measured message digest string and the original message digest string. If the equality comparison results are exactly the same, a composite string variable containing a verification passed status code and the corresponding target backup node network address identifier is generated and determined as the broadcast confirmation identifier; if the equality comparison results are different, it is determined that the node status update packet was damaged during transmission, and a retransmission mechanism is triggered to the control node to redistribute the abnormal data sub-blocks.

[0059] It is worth noting that the broadcast confirmation flag is determined as the migration start signal. In this embodiment, the broadcast confirmation flag is written into the global environment shared storage area of ​​the distributed cluster, and the transition state of the physical memory address pointer corresponding to the flag is used as an interrupt request event to trigger the subsequent migration process. The software interrupt instruction corresponding to the interrupt request event is directly determined as the migration start signal.

[0060] For example, assume the binary data stream generated after serializing the environment recovery configuration table is 2.5MB in size. The system reads the preset memory limit of the network card receive buffer as 1000KB through the kernel interface, takes half of it to get the preset application layer block size constant of 500KB, and uses the remaining 500KB to carry the remaining parallel network communication traffic. The system then divides the binary data stream into five 500KB data sub-blocks and encapsulates the packet header. The control node constructs a broadcast hierarchical tree with three depth levels using the Prim algorithm based on global link delay information. The control node pushes the five data sub-blocks to the intermediate nodes of the first level, which relay them in parallel to the nodes of the second level, and finally delivers them to the target backup node as a leaf node. The target backup node reassembles the five data sub-blocks according to their sequence numbers, calculates the measured MD5 digest string, and uses it as the reception status feedback. The control node performs a string equivalence comparison verification between the measured MD5 digest and the original MD5 digest. After confirming that the two are completely consistent, it generates a broadcast confirmation flag containing the status code 200-OK and writes it to the shared memory area to generate an interrupt command as the final migration start signal. If the verification finds that the measured MD5 digest is different from the original digest, the system determines that the data packet is corrupted and directly triggers the retransmission process of the corresponding data sub-block.

[0061] In step S6, a task data transfer link to the target backup node is established according to the migration start signal, and incremental time-series synchronization transmission is performed based on the task data transfer link to obtain a task migration completion identifier.

[0062] Specifically, incremental time-series synchronization transmission based on the task data transfer link is used to obtain a task migration completion identifier, including: According to the preset handshake synchronization protocol, state synchronization confirmation is performed between the shared storage node of the distributed computing cluster and the target backup node. Based on the task data transfer link, the incremental data block of the faulty node is extracted from the shared storage node, and the incremental data block is transmitted to the target backup node according to the time sequence label to obtain the task migration completion identifier.

[0063] In one implementation, a task data transfer link to the target backup node is established based on the migration initiation signal. In this embodiment, based on the routing address carried by the migration initiation signal, a transmission port is allocated between the shared storage node and the target backup node, a bidirectional communication connection at the transmission control protocol layer is established, and this bidirectional communication connection is determined as the task data transfer link.

[0064] It should be noted that, according to a preset handshake synchronization protocol, state synchronization confirmation is performed between the shared storage node of the distributed computing cluster and the target backup node. In this embodiment, a synchronization request message containing an initial data version sequence number is sent to the target backup node, and a response message containing its latest local data version sequence number is received from the target backup node. The initial data version sequence number and the latest local data version sequence number are compared, and their algebraic difference is calculated. If the algebraic difference is greater than zero, the state synchronization confirmation is deemed complete, and an admission state for data transfer is established. The preset handshake synchronization protocol is an application layer communication protocol built on a three-way handshake mechanism, which includes three state transition phases: request, response, and readiness confirmation. The transitions of each phase are constrained by a preset timeout retransmission time constant.

[0065] It should be noted that the preset timeout retransmission time constant is determined by statistically analyzing the average round-trip latency of the distributed computing cluster over a historical week, multiplying this average round-trip latency by a constant of three, and directly assigning the calculated product value as the preset timeout retransmission time constant. This constant of three is set as a tolerance coefficient, corresponding to the time overhead of occasional network jitter caused by micro-burst traffic in the distributed cluster, and matching the basic empirical threshold of the classic retransmission mechanism of the transmission control protocol.

[0066] It is worth noting that incremental data blocks from the faulty node are extracted from the shared storage node based on the task data transfer link. In this embodiment, the global data snapshot mapped by the faulty node in the shared storage node is read, and all data slices whose generation time is greater than the timestamp corresponding to the latest local data version number are extracted. All extracted data slices are segmented and packaged according to a preset single-batch capacity threshold to obtain the incremental data block. The preset single-batch capacity threshold is determined by reading the available network bandwidth limit of the target backup node, multiplying the available network bandwidth limit by a preset maximum transmission time window span, and obtaining the preset single-batch capacity threshold. The preset maximum transmission time window span is determined by obtaining one-tenth of the average keep-alive time of the transmission control protocol connection in the cluster network. This one-tenth ratio corresponds to the lifecycle security overhead of a single data link in a single burst transmission state.

[0067] In one implementation, incremental data blocks are transmitted to the target backup node according to time sequence tags to obtain a task migration completion identifier. This embodiment parses the log generation time attribute of each incremental data block and determines it as the time sequence tag. Each incremental data block is transmitted sequentially to the target backup node through the task data transfer link in ascending order of the times corresponding to the time sequence tags. After the target backup node has completely received all incremental data blocks, it extracts the time sequence tag of the last received incremental data block and performs an equivalence comparison with the fault deadline timestamp recorded in the shared storage node. If the equivalence comparison results are identical, a system message string containing a migration completion status code and the corresponding time sequence tag sequence number is generated, and this system message string is determined as the task migration completion identifier. If the equivalence comparison results are different, it is determined that there is a gap in incremental synchronization, the cached data received by the target backup node is cleared, and a new status synchronization confirmation request is initiated to the shared storage node.

[0068] For example, assuming that during the synchronization confirmation process between the shared storage node and the target standby node, the local data version number of the target standby node is 1000, while the final data version number of the failed node recorded in the shared storage node is 1500. Subtracting the two yields an algebraic difference greater than zero, establishing a data transfer admission status. The system extracts data slices between version numbers 1001 and 1500, totaling 1.8GB. The system reads the available network bandwidth of the target standby node as 120MB / s, extracts one-tenth of the average keep-alive time, sets the maximum transmission time window span to 2.5 seconds, and calculates a single batch capacity threshold of 300MB. The system divides the 1.8GB data slice into 6 incremental data blocks and attaches time-series tags arranged chronologically. The system transmits these 6 incremental data blocks sequentially. After the transmission ends and an equivalent comparison verification is performed to confirm that the last time tag is completely consistent with the fault deadline timestamp, the system generates a task migration completion identifier containing the Migration_Success status code; if the comparison finds that the time tags are inconsistent, the received 1.8GB of data is cleared and the synchronization process is restarted.

[0069] In step S7, the target backup node is compensated for continuity environment consistency based on the task migration completion identifier to obtain the final continuity confirmation signal.

[0070] The process of performing connection environment consistency compensation on the target backup node to obtain the final connection confirmation signal includes: Extract the measured environment vector and the expected environment vector of the target backup node, and use the Euclidean distance algorithm to calculate the feature distance between the measured environment vector and the expected environment vector to obtain the state synchronization deviation; The compensation correction value is calculated based on the state synchronization deviation, and a synchronization compensation instruction is generated based on the compensation correction value. The synchronization compensation instruction is sent to the target backup node using the exponential backoff algorithm until the state synchronization deviation is less than a preset deviation threshold, and a final connection confirmation signal is obtained.

[0071] In one implementation, the measured environment vector and the expected environment vector of the target backup node are extracted. It should be noted that in this embodiment, the environment recovery configuration table generated in the preceding steps is read, and the underlying configuration parameters, including the number of CPU threads allocated and the memory buffer capacity allocation value, are extracted. A multi-dimensional numerical vector is constructed according to a preset fixed-dimensional order, and this vector is determined as the expected environment vector. The preset fixed-dimensional order is determined based on a globally shared performance monitoring configuration dictionary file of the cluster, so that all nodes in the network follow an absolutely uniform sequence when extracting features. Simultaneously, after receiving the task migration completion flag, this embodiment uses the operating system kernel performance monitoring interface to collect in real time the current physical resource usage indicators of the target backup node after the task resumes, and concatenates them according to the same dimensional order as the expected environment vector to construct the measured environment vector.

[0072] It should be noted that the performance monitoring configuration dictionary file is generated by the management node collecting the hardware performance counter list of each node through the operating system interface during cluster deployment initialization. The management node then filters out monitoring items that are supported by all nodes and whose sampling cost is less than one percent of the cost of a single CPU core. The names of the filtered monitoring items are arranged in the natural order returned by the operating system kernel interface, and a read-only configuration file is generated and synchronized to all nodes.

[0073] It is worth noting that the Euclidean distance algorithm is used to calculate the characteristic distance between the measured environment vector and the expected environment vector to obtain the state synchronization deviation. Since the dimensions and value ranges of different physical resource indicators vary significantly, this embodiment first employs a maximum-minimum normalization algorithm to unify the dimensions of the measured environment vector and the expected environment vector, linearly mapping the values ​​of each dimension to a dimensionless interval of zero to one. Subsequently, the sum of squares of the algebraic differences between the two normalized vectors in each corresponding dimension is calculated, and the square root operation is performed on the sum of squares. The resulting scalar value is the characteristic distance, which is directly determined as the state synchronization deviation.

[0074] In one implementation, a compensation correction value is calculated based on the state synchronization deviation, and a synchronization compensation instruction is generated based on the compensation correction value. In this embodiment, when the state synchronization deviation is determined to be greater than zero, the algebraic difference between the expected environment vector and the measured environment vector is calculated dimension by dimension, and the set of differences including the algebraic differences of each dimension is determined as the compensation correction value. The compensation correction value and the network layer address identifier of the target backup node are encapsulated in a message, and an application layer protocol header containing a process resource forced allocation identifier is added to generate the synchronization compensation instruction.

[0075] It should be noted that the exponential backoff algorithm is used to send the synchronization compensation command to the target backup node until the state synchronization deviation is less than a preset deviation threshold, thus obtaining the final connection confirmation signal. In this embodiment, the average cold start time of the underlying container of the target backup node is obtained and directly assigned as the initial retry time interval constant; the backoff multiplier constant is set to two to avoid broadcast storms in the cluster network by following the binary exponential backoff rule. After the first transmission of the synchronization compensation command, this embodiment re-collects and calculates the state synchronization deviation. If the deviation is still not less than the preset deviation threshold, the current retry time interval is multiplied by the backoff multiplier constant as the waiting time for the next transmission, and the synchronization compensation command is sent again after the waiting time ends, and so on for exponential delay iteration. When the recalculated state synchronization deviation is less than the preset deviation threshold, the transmission of the synchronization compensation command is stopped, a data packet containing a connection success status code is generated, and this is determined as the final connection confirmation signal.

[0076] It is worth noting that the method for determining the preset deviation threshold is as follows: Pseudo-random computing task blocks are continuously injected into the distributed computing cluster until the CPU utilization of all available worker nodes reaches and stabilizes at over 95% for ten minutes. This stage is defined as the full-load stress test stage. Various resource usage indicators of the cluster during the full-load stress test stage are collected, and the time series of these indicators within the ten-minute duration are extracted. The arithmetic mean of these time series is calculated to construct a steady-state mean vector. Subsequently, the maximum characteristic distance of each indicator vector from its steady-state mean vector is calculated. This maximum characteristic distance is multiplied by a constant of 120%, and the calculated product is directly assigned as the preset deviation threshold. An additional 20% safety redundancy tolerance is set to correspond to the objective state drift caused by differences in instruction sets of different batches of CPU architectures during task continuation.

[0077] For example, assume the target standby node completes data migration and starts up. The system extracts the expected parameters from the environment recovery configuration table and constructs a normalized expected environment vector. The system measures the target standby node is currently in a cold start state and constructs a normalized measured environment vector. After calculation using the Euclidean distance algorithm, the state synchronization deviation is found to be 0.25. The system continuously injects pseudo-random task blocks to bring the cluster's central processor utilization to over 95% and maintains it for ten minutes to enter the full load stress test phase. The system extracts the resource usage time series within this ten-minute period, calculates the arithmetic mean as the steady-state mean vector, and measures the historical maximum full load fluctuation distance as 0.04. Multiplying this by a 120% safety redundancy tolerance, the preset deviation threshold is derived to be 0.048. Since 0.25 is greater than 0.048, the system calculates the specific number of threads and memory to be allocated as compensation correction values, and encapsulates and generates synchronization compensation instructions. The system measures the average cold start time of the underlying container to be 2 seconds, thus determining the initial retry interval to be 2 seconds. After the system sends the command for the first time, if the deviation does not meet the target due to underlying resource scheduling delays, it will wait 2 seconds and resend. If it still does not meet the target, it will multiply by the backoff multiplier constant two and wait 4 seconds before resending. When the target backup node resources are gradually allocated and the measured environment vector approaches the expectation, and the state synchronization deviation drops to 0.03 (less than 0.048), the system will stop sending commands and output a final connection confirmation signal, completing the entire task flow rescheduling process.

[0078] In summary, this invention acquires the real-time status and historical backup data of faulty nodes, and combines hash consistency verification and linear interpolation to accurately reconstruct a complete state dataset without gaps. Then, based on this complete dataset, it calculates the breakpoint coordinates and remaining task load, and uses a data parallel partitioning strategy and weight allocation method to match the optimal target backup node for the task flow. Subsequently, the task characteristics are input into a pre-trained environment parameter prediction model optimized by grid search, accurately mapping the abstract progress to underlying multi-dimensional hardware configuration parameters, generating a cross-platform environment recovery configuration table. Furthermore, it executes layered broadcast communication based on the minimum spanning tree topology and establishes a bottom-level bidirectional data transfer link to complete the time-series synchronous transmission of incremental data. Finally, it uses Euclidean distance to quantify the characteristic deviation between measured and expected environments, supplemented by an exponential backoff algorithm for dynamic closed-loop compensation of resource allocation. This invention achieves high-fidelity integration of fragmented fault states in distributed computing clusters and accurate restoration of the underlying execution environment of target nodes, effectively overcoming the defects of environmental misalignment and secondary interruptions in traditional fixed rescheduling mechanisms. It solves the technical problem of lossless continuation of complex task flows under dynamic network topologies, ensuring high availability and continuous stable operation of large-scale clusters under sudden failures.

[0079] Reference Figure 2 The second embodiment of the present invention provides a task flow rescheduling system based on dynamic topology, comprising: The status acquisition module is used to acquire real-time status data and historical backup data of faulty nodes in the distributed computing cluster, and to perform data sharding on the real-time status data and the historical backup data to obtain an initial status information set. The data repair module is used to perform data consistency verification on the initial state information set, obtain the missing data positions, and interpolate and supplement the initial state information set according to the missing data positions to obtain a complete state dataset. The takeover scheduling module is used to perform takeover scheduling on the distributed computing cluster based on the complete state dataset, and obtain a task allocation list containing the target backup node. The feature prediction module is used to input the task allocation list and the complete state dataset into a pre-trained environmental parameter prediction model to extract node running features, obtain underlying configuration parameters, and perform feature fusion on the underlying configuration parameters to obtain an environment recovery configuration table. The status update module is used to generate a node status update package based on the environment recovery configuration table, and send the node status update package to the target standby node through cluster hierarchical broadcast to obtain the migration start signal; The data migration module is used to establish a task data transfer link to the target backup node according to the migration start signal, perform incremental time-series synchronous transmission based on the task data transfer link, and obtain a task migration completion identifier. The consistency compensation module is used to perform continuity environment consistency compensation on the target backup node according to the task migration completion identifier, so as to obtain the final continuity confirmation signal.

[0080] It should be noted that the task flow rescheduling system based on dynamic topology provided in this embodiment of the invention is used to execute all the process steps of the task flow rescheduling method based on dynamic topology in the above embodiment. The working principles and beneficial effects of the two are one-to-one, so they will not be described again.

[0081] It should be noted that the system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, in the accompanying drawings of the system embodiments provided by this invention, the connection relationships between modules indicate that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement this without any creative effort.

[0082] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. In particular, it should be noted that any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention for those skilled in the art.

Claims

1. A task flow rescheduling method based on dynamic topology, characterized in that, include: Obtain real-time status data and historical backup data of faulty nodes in a distributed computing cluster, and perform data sharding on the real-time status data and the historical backup data to obtain an initial status information set. The initial state information set is subjected to data consistency verification to obtain the missing data positions. The initial state information set is then supplemented by interpolation based on the missing data positions to obtain a complete state dataset. Based on the complete state dataset, the distributed computing cluster is taken over and scheduled to obtain a task allocation list containing the target backup node; The task allocation list and the complete state dataset are input into a pre-trained environmental parameter prediction model to extract node running features, obtain the underlying configuration parameters, and perform feature fusion on the underlying configuration parameters to obtain the environmental recovery configuration table. A node status update package is generated based on the environment recovery configuration table, and the node status update package is sent to the target standby node through cluster hierarchical broadcasting to obtain a migration start signal; Based on the migration initiation signal, a task data transfer link is established to the target backup node, and incremental time-series synchronous transmission is performed based on the task data transfer link to obtain a task migration completion identifier. Based on the task migration completion identifier, the target backup node is compensated for continuity environment consistency to obtain the final continuity confirmation signal.

2. The task flow rescheduling method based on dynamic topology according to claim 1, characterized in that, The process of data sharding of the real-time status data and historical backup data of the node to obtain an initial status information set includes: The state acquisition frequency of the real-time state data of the node is obtained, and the real-time state data of the node is divided into time segments according to the state acquisition frequency to obtain real-time state segments. Extract the node backup features from the node's historical backup data, and align the node backup features with the real-time status shards using timestamps to obtain aligned status shards. The integrity of each alignment state fragment is verified using the MD5 algorithm. When the verification passes, the fragments are packaged and encapsulated according to their generation sequence to obtain an initial state information set.

3. The task flow rescheduling method based on dynamic topology according to claim 1, characterized in that, The step of performing data consistency verification on the initial state information set to obtain the missing data locations includes: The SHA-256 algorithm is used to calculate the unique identifier of each data sub-block in the initial state information set to obtain the measured hash value sequence; Obtain the metadata reference hash sequence associated with the initial state information set, calculate the matching degree between the measured hash value sequence and the metadata reference hash sequence, and obtain the sequence alignment result; Based on the sequence alignment results, missing sub-blocks are selected, and the timestamps of the missing sub-blocks are extracted to determine the missing data locations.

4. The task flow rescheduling method based on dynamic topology according to claim 1, characterized in that, The step of interpolating and supplementing the initial state information set according to the missing data locations to obtain a complete state dataset includes: Based on the missing data location, retrieve adjacent state nodes from the initial state information set, and calculate the state evolution slope between the adjacent state nodes; Based on the state evolution slope, compensated state data is generated using a linear interpolation algorithm; The compensated state data is filled into the missing data positions in the initial state information set to obtain a complete state dataset.

5. The task flow rescheduling method based on dynamic topology according to claim 1, characterized in that, The step of taking over and scheduling the distributed computing cluster based on the complete state dataset to obtain a task allocation list containing the target backup node includes: The task breakpoint coordinates of the faulty node are determined based on the complete state dataset, and the remaining task quantity is calculated based on the task breakpoint coordinates. The remaining task volume is divided into task blocks according to a preset data parallel partitioning strategy to obtain task blocks to be scheduled. Obtain the real-time load index of each standby node in the distributed computing cluster, distribute the task block to be scheduled to the standby node with the lowest load according to the real-time load index, determine the standby node with the lowest load as the target standby node, and obtain the task allocation list.

6. The task flow rescheduling method based on dynamic topology according to claim 1, characterized in that, The step of inputting the task allocation list and the complete state dataset into a pre-trained environment parameter prediction model to extract node running features and obtain the underlying configuration parameters includes: Extract the task type labels from the task allocation list, normalize the complete state dataset, and obtain the environmental feature vector. The environmental feature vector is input into the pre-trained environmental parameter prediction model, and the predicted features are obtained by mapping. The predicted features are then determined as the underlying configuration parameters.

7. The task flow rescheduling method based on dynamic topology according to claim 1, characterized in that, The step of sending the node status update packet to the target standby node via cluster hierarchical broadcast to obtain the migration start signal includes: A broadcast hierarchical tree is constructed based on the network topology of the distributed computing cluster, and the node status update packet is distributed to the target backup node according to the depth level of the broadcast hierarchical tree; The reception status fed back by the target backup node is confirmed for consistency, and a broadcast confirmation identifier is obtained. The broadcast confirmation identifier is then identified as the migration start signal.

8. The task flow rescheduling method based on dynamic topology according to claim 1, characterized in that, The incremental time-series synchronization transmission based on the task data transfer link to obtain the task migration completion identifier includes: According to the preset handshake synchronization protocol, state synchronization confirmation is performed between the shared storage node of the distributed computing cluster and the target backup node. Based on the task data transfer link, the incremental data block of the faulty node is extracted from the shared storage node, and the incremental data block is transmitted to the target backup node according to the time sequence label to obtain the task migration completion identifier.

9. The task flow rescheduling method based on dynamic topology according to claim 1, characterized in that, The step of performing connection environment consistency compensation on the target backup node to obtain the final connection confirmation signal includes: Extract the measured environment vector and the expected environment vector of the target backup node, and use the Euclidean distance algorithm to calculate the feature distance between the measured environment vector and the expected environment vector to obtain the state synchronization deviation; The compensation correction value is calculated based on the state synchronization deviation, and a synchronization compensation instruction is generated based on the compensation correction value. The synchronization compensation instruction is sent to the target backup node using the exponential backoff algorithm until the state synchronization deviation is less than a preset deviation threshold, and a final connection confirmation signal is obtained.

10. A task flow rescheduling system based on dynamic topology, characterized in that, include: The status acquisition module is used to acquire real-time status data and historical backup data of faulty nodes in the distributed computing cluster, and to perform data sharding on the real-time status data and the historical backup data to obtain an initial status information set. The data repair module is used to perform data consistency verification on the initial state information set, obtain the missing data positions, and interpolate and supplement the initial state information set according to the missing data positions to obtain a complete state dataset. The takeover scheduling module is used to perform takeover scheduling on the distributed computing cluster based on the complete state dataset, and obtain a task allocation list containing the target backup node. The feature prediction module is used to input the task allocation list and the complete state dataset into a pre-trained environmental parameter prediction model to extract node running features, obtain underlying configuration parameters, and perform feature fusion on the underlying configuration parameters to obtain an environment recovery configuration table. The status update module is used to generate a node status update package based on the environment recovery configuration table, and send the node status update package to the target standby node through cluster hierarchical broadcast to obtain the migration start signal; The data migration module is used to establish a task data transfer link to the target backup node according to the migration start signal, perform incremental time-series synchronous transmission based on the task data transfer link, and obtain a task migration completion identifier. The consistency compensation module is used to perform continuity environment consistency compensation on the target backup node according to the task migration completion identifier, and obtain the final continuity confirmation signal.