Distributed machine learning method in heterogeneous computing

By acquiring and integrating node status data in heterogeneous computing environments, dynamically allocating computing tasks and designing fault-tolerant mechanisms, we solve the problems of incomplete acquisition of hardware specifications, inaccurate classification of failure modes and lack of data synchronization strategies, and achieve balanced allocation of computing resources. and system performance improvement.

CN118734994APending Publication Date: 2024-10-01GUANGXI POWER GRID CORP
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410749537.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In heterogeneous computing environments, the acquisition of hardware specifications and configuration information is not comprehensive and efficient enough, the classification of hardware failure modes is not accurate enough, and the data synchronization strategy lacks a systematic approach, resulting in uneven distribution of computing resources and performance degradation.

Method used

Obtain node status data in the distributed machine learning environment through network communication protocols, integrate it to form a global status data set, dynamically allocate computing tasks, design a fault-tolerant mechanism based on hardware failure modes, apply it to each node, and analyze the application results to adjust data synchronization Strategy.

Benefits of technology

It realizes the entire process of hardware specifications and configuration information acquisition, fault mode classification, data synchronization and computing resource allocation in heterogeneous computing environments, provides optimization methods for fault tolerance mechanisms and data synchronization strategies, and improves system stability and performance. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118734994A_ABST
    Figure CN118734994A_ABST
Patent Text Reader

Abstract

The invention provides a distributed machine learning method in heterogeneous computing, and the method comprises the steps: obtaining hardware specification and configuration information in a heterogeneous computing environment, and carrying out the preliminary classification of hardware fault modes; integrating state data of all nodes into a central node by adopting a data synchronization strategy to form a global state data set; the global state data set is analyzed, and calculation tasks are dynamically distributed to all the nodes; designing a preliminary fault-tolerant mechanism according to the dynamically distributed calculation task and the hardware fault mode; in a distributed machine learning environment, applying the designed fault-tolerant mechanism to each node, and recording an application result; analyzing result data after the fault-tolerant mechanism is applied, and correspondingly adjusting a data synchronization strategy; through a network communication protocol, fault-tolerant and synchronization state information of all nodes is recorded in a central node.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information technology, and in particular to a distributed machine learning method in heterogeneous computing. Background Art

[0002] With the rapid development and widespread application of distributed machine learning environments, operations such as hardware specification and configuration information acquisition, hardware failure mode classification, data synchronization, and computing resource allocation in heterogeneous computing environments have become key issues. The methods for obtaining hardware specification and configuration information are not comprehensive and efficient. Current methods are mostly manual recording or rely on dedicated hardware monitoring systems. These methods have problems such as incomplete information, large workload, and low efficiency. At the same time, in heterogeneous computing environments, the hardware specifications and configurations of each node may also differ, resulting in inconsistent information obtained. The preliminary classification of hardware failure modes is not accurate and reliable enough. Current methods mainly rely on experience and expert knowledge for classification, which is easily affected by subjective factors and has low classification accuracy. In addition, due to the differences in hardware specifications and configurations in heterogeneous computing environments, the failure modes of different nodes may differ, resulting in inconsistent classification results. There is a lack of systematic methods for the design and optimization of data synchronization strategies. Current methods are mainly based on static configurations or empirical rules, which cannot adapt to dynamically changing distributed machine learning environments. At the same time, due to the delay and inconsistency of data synchronization, it may lead to uneven allocation of computing resources and performance degradation. In addition, there are many different hardware failure modes in distributed machine learning environments, and the corresponding fault-tolerance mechanisms also need to be designed for different failure modes. Therefore, how to preliminarily classify hardware failure modes in order to design corresponding fault-tolerance mechanisms for each node is a problem that needs to be solved. Summary of the invention

[0003] The present invention provides a distributed machine learning method in heterogeneous computing, which mainly includes:

[0004] Obtain hardware specifications and configuration information in a heterogeneous computing environment, and perform a preliminary classification of hardware failure modes; obtain status data of each node in a distributed machine learning environment through a network communication protocol, wherein the node status data includes hardware status data and software status data; adopt a data synchronization strategy to integrate the status data of all nodes into a central node to form a global status data set; parse the global status data set and dynamically assign computing tasks to each node; design a preliminary fault-tolerant mechanism based on the dynamically assigned computing tasks and hardware failure modes; apply the designed fault-tolerant mechanism to each node in a distributed machine learning environment and record the application results; analyze the result data after applying the fault-tolerant mechanism and make corresponding adjustments to the data synchronization strategy; record the fault-tolerant and synchronization status information of all nodes in a central node through a network communication protocol.

[0005] Furthermore, the obtaining of hardware specifications and configuration information in a heterogeneous computing environment and the preliminary classification of hardware failure modes include:

[0006] Through the HWiNFO tool, hardware specifications and configuration information are obtained in a heterogeneous computing environment, and a hardware attribute analysis report is generated. The hardware specifications and configuration information include brand, model, production date and usage time information; based on the hardware attribute analysis report, hardware performance data is extracted, and the hardware performance data includes processing speed, operating efficiency and power consumption; real-time hardware performance data of the heterogeneous computing environment is obtained, and the K-Means algorithm is used to identify potential hardware failures and performance degradation problems; if a potential hardware failure is identified, the abnormal parameters are compared with the preset failure data to automatically identify the hardware failure type and performance problem; the hardware failure type and performance problem are classified, and the classification results are automatically stored.

[0007] Furthermore, the state data of each node in the distributed machine learning environment is obtained through the network communication protocol, and the state data of the node includes hardware state data and software state data, including:

[0008] Determine the network communication protocol and data format for obtaining node status data, the network communication protocol includes HTTP, TCP / IP or MQTT, and the data format includes JSON or Protobuf; obtain the hardware status data and software status data of the node through the monitoring agent, the hardware status data includes CPU usage, memory usage, hard disk status, network bandwidth and GPU usage, and the software status data includes operating system information, running status of a distributed machine learning framework, process status, network connection status and log information.

[0009] Furthermore, the data synchronization strategy is adopted to integrate the status data of all nodes into a central node to form a global status data set, including:

[0010] The hardware status data and software status data of the node are integrated into a node status data object; a network connection with a central node is established, and the node status data is sent to the central node through the network connection; the central node receives and stores the status data of each node, and processes the received node status data, including parsing the data, verifying the integrity and correctness of the data, and obtaining a global status data set; the processed node status data is stored in a database or storage system of the central node; and the node status is monitored and analyzed based on the stored node status data, including generating reports, triggering alarms, and performing fault diagnosis.

[0011] Furthermore, the parsing of the global state data set and dynamically allocating computing tasks to each node includes:

[0012] The global status data set is indexed by the node number and task number to obtain the task type, task priority and task resource requirement of each computing task, as well as the node status and node resource situation of each computing node; the task scheduling strategy is determined according to the task type and task priority, and the tasks are scheduled from high to low priority; the load balancing strategy is determined according to the node status and node resource situation, and the idle node with the lowest resource utilization is selected for task allocation; for each computing task, whether there are sufficient computing resources available for allocation is determined according to the task resource requirement and node resource situation; if there are sufficient computing resources available for allocation, a node is selected for task allocation according to the load balancing strategy, and the node status and resource situation are updated; if there are not enough computing resources available for allocation, whether to wait for allocation or select the node with the lowest resource utilization for task migration is determined according to the task priority; after assigning the task, the task allocation plan and allocation time are recorded, and the task completion time is updated; the resource allocation judgment and task allocation are executed cyclically until all computing tasks are allocated.

[0013] Furthermore, the preliminary fault tolerance mechanism is designed according to the dynamically allocated computing tasks and hardware failure modes, including:

[0014] Use monitoring systems and sensors to monitor the status and operation of hardware equipment in real time. When a hardware failure is found, the diagnosis mechanism is automatically triggered to determine the cause of the failure through fault mode identification and fault location. According to different hardware failure modes and task requirements, the fault-tolerant strategy is automatically adjusted. The computing tasks on the faulty hardware are suspended, and based on the characteristics of the task and the status of other hardware, they are reallocated to other hardware for execution. The status of the repaired hardware is continuously monitored, and by analyzing the hardware parameters and performance data, it is determined whether the hardware has returned to normal. After confirming that the hardware has returned to normal, the previously suspended computing tasks are reallocated back to the repaired hardware, and the task continues to execute. When the task resumes execution, the integrity of the task data is checked, and if there is any loss or damage, it is restored based on the data backup.

[0015] Furthermore, in the distributed machine learning environment, the designed fault tolerance mechanism is applied to each node, and the application results are recorded, including:

[0016] Apply a fault-tolerance mechanism on each node and record the fault-tolerance results; if an error occurs, record the type of error, which includes hardware failure, network error, or data corruption; take appropriate error handling measures based on the error type; evaluate the impact of the fault-tolerance mechanism on system performance and perform corresponding performance optimization, which includes increased latency and decreased bandwidth utilization.

[0017] Furthermore, the analysis of the result data after applying the fault tolerance mechanism and the corresponding adjustment of the data synchronization strategy include:

[0018] Analyze the logs or reports of the fault-tolerant mechanism to obtain synchronization failures or delays, problems with the current synchronization method, and conflicts during data synchronization; adjust the frequency of data synchronization according to the frequency and degree of synchronization failures or delays; if the fault-tolerant mechanism shows data synchronization errors or conflicts, use asynchronous synchronization or incremental synchronization; according to the frequency and severity of the conflicts, use distributed locks or version control mechanisms to resolve conflicts during data synchronization; re-implement the data synchronization strategy, monitor the results of data synchronization, and confirm whether the adjusted strategy has improved the effect of data synchronization; if synchronization problems still exist, adjust the synchronization strategy again according to the monitoring results; regularly review and update the data synchronization strategy based on actual conditions and feedback.

[0019] Furthermore, the fault tolerance and synchronization status information of all nodes are recorded in a central node through the network communication protocol, including:

[0020] Through the network communication protocol, the AES encryption algorithm is used to enhance the security of data transmission; the real-time updated fault tolerance information and synchronization status are recorded by the central node, and based on the real-time updated information, the system monitoring mechanism is started to dynamically monitor the operating status of all nodes; abnormal behaviors are identified and processed in real time to maintain the normal operating status of all nodes; the status information is fed back to the central node, and remote access rights are controlled by setting specific access authorization standards, including IP whitelists and access frequency restrictions; on the premise of meeting the access authorization standards, remote access requests obtain fault tolerance and synchronization status information through the central node; the central node encrypts and transmits data based on the information obtained through the AES encryption algorithm; all nodes receive the encrypted fault tolerance and synchronization status information, complete the update and verification of the information, and ensure the overall stability and security of the system.

[0021] The technical solution provided by the embodiment of the present invention may have the following beneficial effects:

[0022] The present invention discloses a method for obtaining hardware specifications and configuration information in a heterogeneous computing environment and performing preliminary classification of hardware failure modes. The method obtains the status data of each node in a distributed machine learning environment through a network communication protocol, including hardware status data and software status data, and uses a data synchronization strategy to integrate the status data of all nodes into a central node to form a global status data set. Then, the global status data set is parsed, and computing tasks are dynamically assigned to each node. At the same time, a preliminary fault-tolerant mechanism is designed according to the dynamically assigned computing tasks and hardware failure modes. In a distributed machine learning environment, the designed fault-tolerant mechanism is applied to each node, and the application results are recorded. Further, the result data after applying the fault-tolerant mechanism is analyzed, and the data synchronization strategy is adjusted accordingly. Finally, the fault-tolerant and synchronization status information of all nodes is recorded in a central node through a network communication protocol. The present invention integrates the above-mentioned technologies together, realizes the whole process of hardware specification and configuration information acquisition, hardware failure mode classification, data synchronization and computing resource allocation in a heterogeneous computing environment, and provides an optimization method for the fault-tolerant mechanism and data synchronization strategy. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 The present invention is a flow chart of a distributed machine learning method in heterogeneous computing.

[0024] Figure 2 A schematic diagram of a distributed machine learning method in heterogeneous computing according to the present invention.

[0025] Figure 3 This is another schematic diagram of a distributed machine learning method in heterogeneous computing according to the present invention. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0027] In this embodiment, a distributed machine learning method in heterogeneous computing may specifically include:

[0028] S101. Obtain hardware specifications and configuration information in a heterogeneous computing environment, and perform a preliminary classification of hardware failure modes.

[0029] Through the HWiNFO tool, hardware specifications and configuration information are obtained in a heterogeneous computing environment, and a hardware attribute analysis report is generated. The hardware specifications and configuration information include brand, model, production date and usage time information. According to the hardware attribute analysis report, hardware performance data is extracted, and the hardware performance data includes processing speed, operating efficiency and power consumption. Real-time hardware performance data of the heterogeneous computing environment is obtained, and the K-Means algorithm is used to identify potential hardware failures and performance degradation problems. If a potential hardware failure is identified, the abnormal parameters are compared with the preset failure data to automatically identify the hardware failure type and performance problem. The hardware failure type and performance problem are classified, and the classification results are automatically stored. For example, the hardware specifications and configuration information obtained through the HWiNFO tool are as follows: the brand is NVIDIA, the model is GeForceRTX2080Ti, the production date is September 2018, and the usage time is 500 hours. According to the hardware attribute analysis report, the extracted hardware performance data is as follows: the processing speed is 1600MHz, the operating efficiency is 12GFLOPS, and the power consumption is 250W. The hardware performance data obtained in real time in a heterogeneous computing environment is as follows: the processing speed is 1550MHz, the operating efficiency is 11GFLOPS, and the power consumption is 260W. The K-Means algorithm is used to identify potential hardware faults and performance degradation problems. The K-Means algorithm divides the hardware performance data into two clusters, cluster 1 represents normal operation, and cluster 2 represents potential faults. According to the results of the algorithm, it is assumed that the hardware is divided into cluster 2. By comparing the abnormal parameters with the preset fault data, the hardware fault type and performance problems are automatically identified. The abnormal parameters are processing speed and power consumption, and the preset fault data are a 10% decrease in processing speed and a 10% increase in power consumption. According to the comparison results, the hardware fault type is identified as a problem of decreased processing speed and increased power consumption. The hardware fault type and performance problems are classified, and the classification results are automatically stored. According to the above identification results, the hardware fault type is classified as a problem of decreased processing speed and increased power consumption, and the classification results are stored as "HardwareFaultType:ProcessingSpeedDecrease,PowerConsumptionIncrease".

[0031] S102. Obtain status data of each node in a distributed machine learning environment through a network communication protocol, where the status data of the node includes hardware status data and software status data.

[0032] Determine the network communication protocol and data format for obtaining node status data, the network communication protocol includes HTTP, TCP / IP or MQTT, and the data format includes JSON or Protobuf. Obtain the hardware status data and software status data of the node through the monitoring agent, the hardware status data includes CPU usage, memory usage, hard disk status, network bandwidth and GPU usage, and the software status data includes operating system information, running status of the distributed machine learning framework, process status, network connection status and log information. For example, the HTTP protocol is used to obtain the node status data, and the JSON format is used to transmit the data. The hardware status data of the node can be obtained through the monitoring agent, the CPU usage is 80%, the memory usage is 60%, the hard disk status is normal, the network bandwidth is 100Mbps, and the GPU usage is 0%. At the same time, the monitoring agent can also obtain the software status data of the node, the operating system information is Ubuntu104, the running status of the distributed machine learning framework is normal, the process status has 10 running, the network connection status is stable, and the log information shows that the most recent training task has been successfully completed. After parsing the received status data on the centralized monitoring server, these data can be stored in the database. The hardware status data is stored in a table called "hardware_status", which contains the node ID, timestamp, and the numerical value of each hardware status. Similarly, the software status data is stored in a table called "software_status", which contains the node ID, timestamp, and information of each software status.

[0033] S103. Adopt a data synchronization strategy to integrate the status data of all nodes into a central node to form a global status data set.

[0034] The hardware status data and software status data of the node are integrated into a node status data object. A network connection is established with a central node, and the node status data is sent to the central node through the network connection. The central node receives and stores the status data of each node, processes the received node status data, including parsing the data, verifying the integrity and correctness of the data, and obtaining a global status data set. The processed node status data is stored in a database or storage system of the central node. According to the stored node status data, the node status is monitored and analyzed, including generating reports, triggering alarms, and performing fault diagnosis. For example, there is a node status data object, which contains hardware status data and software status data. The hardware status data includes indicators such as CPU usage, memory usage, and disk space usage, while the software status data includes information such as operating system version, application version, and service status. A network connection is established with a central node, and the node status data is sent to the central node using the connection. After receiving the data, the central node first parses the data and stores the hardware status data and the software status data separately. Then, the data is verified to ensure data integrity and correctness. The hardware status data of a node is received, wherein the CPU usage is 80%, the memory usage is 60%, and the disk space usage is 70%. At the same time, the software status data of the node is also received, wherein the operating system version is Windows 10, the application version is 5.0, and the service status is normal. The processed node status data is stored in the database or storage system of the central node. Taking the received node as an example, its hardware status data is stored as a data record, which contains the CPU usage of 80%, the memory usage of 60%, and the disk space usage of 70%. At the same time, the software status data is also stored as a data record, which contains the operating system version of Windows 10, the application version of 5.0, and the service status is normal. Based on the stored node status data, the node status can be monitored and analyzed. A report can be generated based on the CPU usage and memory usage data to show the resource utilization of the node. An alarm can also be set to trigger an alarm when the disk space usage of a node exceeds a certain threshold. In addition, fault diagnosis can be performed by analyzing the node status data, for example, by comparing the software versions of different nodes to find out possible compatibility problems.

[0035] S104: Analyze the global state data set and dynamically assign computing tasks to each node.

[0036] The global state data set is indexed by the node number and task number to obtain the task type, task priority and task resource requirement of each computing task, as well as the node status and node resource situation of each computing node. According to the task type and task priority, the task scheduling strategy is determined, and the tasks are scheduled from high to low priority. According to the node status and node resource situation, the load balancing strategy is determined, and the idle node with the lowest resource utilization is selected for task allocation. For each computing task, it is determined whether there are enough computing resources available for allocation based on the task resource requirements and node resource situation. If there are enough computing resources available for allocation, a node is selected for task allocation based on the load balancing strategy, and the node status and resource situation are updated. If there are not enough computing resources available for allocation, it is determined whether to wait for allocation or select the node with the lowest resource utilization for task migration based on the task priority. After the task is allocated, the task allocation plan and allocation time are recorded, and the task completion time is updated. The resource allocation judgment and task allocation are executed cyclically until all computing tasks are allocated. For example, there is a global state data set that contains the following information. The node numbers are 1, 2, 3, 4, and 5, and the task numbers are A, B, C, D, and E. The task type, task priority, and task resource requirements of each computing task are shown below. The type of task A is image processing, the priority is high, and the resource requirement is 4 CPU cores and 2GB of memory. The type of task B is data analysis, the priority is medium, and the resource requirement is 2 CPU cores and 4GB of memory. The type of task C is machine learning, the priority is high, and the resource requirement is 6 CPU cores and 8GB of memory. The type of task D is image processing, the priority is low, and the resource requirement is 3 CPU cores and 6GB of memory. The type of task E is data analysis, the priority is medium, and the resource requirement is 4 CPU cores and 4GB of memory. The node status and node resource status of each computing node are as follows: Node 1 is idle, and its resources are 8 CPU cores and 16GB memory; Node 2 is busy, and its resources are 6 CPU cores and 8GB memory; Node 3 is idle, and its resources are 4 CPU cores and 4GB memory; Node 4 is busy, and its resources are 4 CPU cores and 8GB memory; Node 5 is idle, and its resources are 6 CPU cores and 12GB memory. According to the task type and task priority, the task scheduling strategy is determined, and tasks are scheduled from high to low priority. The task scheduling strategy is to schedule tasks with high priority first. According to the node status and node resource status, the load balancing strategy is determined, and the idle node with the lowest resource utilization is selected for task allocation. The load balancing strategy is to select the idle node with the lowest resource utilization for task allocation. First, according to the task scheduling strategy, select Task A and Task C for scheduling because their priorities are both high. According to the load balancing strategy, select Node 1 for task allocation because it is an idle node with the lowest resource utilization.Assign Task A and Task C to Node 1, and update the status and resource situation of Node 1. Next, select Task B and Task E for scheduling because their priorities are both medium. According to the load balancing strategy, select Node 5 for task assignment because it is an idle node and has the lowest resource utilization. Assign Task B and Task E to Node 5, and update the status and resource situation of Node 5. Then, select Task D for scheduling because its priority is low. According to the load balancing strategy, select Node 3 for task assignment because it is an idle node and has the lowest resource utilization. Assign Task D to Node 3, and update the status and resource situation of Node 3. At this point, all computing tasks have been assigned. Record the task assignment plan and assignment time, and update the task completion time.

[0037] S105. Design a preliminary fault-tolerant mechanism based on dynamically allocated computing tasks and hardware failure modes.

[0038] The monitoring system and sensors are used to monitor the status and operation of hardware devices in real time. When a hardware failure is found, the diagnostic mechanism is automatically triggered. Through fault mode recognition and fault location, the cause of the failure is determined. According to different hardware failure modes and task requirements, the fault tolerance strategy is automatically adjusted. The computing tasks on the faulty hardware are suspended and reallocated to other hardware for execution based on the characteristics of the task and the status of other hardware. The status of the repaired hardware is continuously monitored, and the hardware parameters and performance data are analyzed to determine whether the hardware has returned to normal. After confirming that the hardware has returned to normal, the previously suspended computing tasks are reallocated back to the repaired hardware, and the tasks continue to be executed. When the task is restarted, the integrity of the task data is checked. If there is any loss or damage, it is restored according to the data backup. For example, the monitoring system detects that the CPU temperature of a server exceeds the normal range, which may mean that there is a hardware failure. Based on the fault mode recognition and fault location algorithm, the system can determine that this is caused by a radiator failure. According to the characteristics of the task and the status of other hardware, the system automatically adjusts the fault tolerance strategy, suspends the computing tasks on the server, and reallocates them to other normally running servers for execution. If there are 5 servers, each with 10 computing tasks being executed, the system will redistribute the 10 tasks on the failed server to the other 4 normal servers, with 3 tasks assigned to each server. After repair, the system will continue to monitor the status of the repaired hardware, for example, check whether the CPU temperature has returned to the normal range. By analyzing the hardware parameters and performance data, the CPU temperature value is 60℃, which is compared with the normal range of 40℃-80℃, and it can be judged that the hardware has returned to normal. After confirming that the hardware has returned to normal, the system will redistribute the previously suspended computing tasks back to the repaired hardware, and the tasks will continue to execute. The 10 previously suspended computing tasks are redistributed back to the repaired server. When the task resumes execution, the system will check the integrity of the task data. If the task data previously stored on the failed server is lost or damaged, the system will restore it based on the data backup. If the data backup on the server is saved on other servers, the system will restore the backup data from other servers to the repaired server to ensure the integrity of the task data.

[0039] S106. In a distributed machine learning environment, apply the designed fault-tolerant mechanism to each node and record the application results.

[0040] Apply the fault tolerance mechanism on each node and record the fault tolerance results. If an error occurs, record the type of error, which includes hardware failure, network error, or data corruption. Take corresponding error handling measures according to the error type. Evaluate the impact of the fault tolerance mechanism on system performance and perform corresponding performance optimization, which includes increased latency and decreased bandwidth utilization. For example, in a distributed system, data is transmitted between node A and node B. Apply the fault tolerance mechanism on each node to deal with possible errors. Error types such as hardware failure, network error, or data corruption occur, and take corresponding error handling measures. Node A encounters a hardware failure and cannot process data normally. In this case, a backup mechanism can be adopted. Node B can serve as a backup node for node A. When node A fails, node B takes over the data processing task to ensure the continuous operation of the system. Evaluate the impact of the fault tolerance mechanism on system performance, and record the increase in latency and decreased bandwidth utilization of the system after node A fails. After node A fails, the data transmission delay increases by 50 milliseconds and the bandwidth utilization decreases by 10%. Network connection errors cause data transmission between node A and node B to be interrupted. In this case, reconnection error handling measures can be taken. Node A and Node B can periodically try to reestablish the connection to ensure the continuity of data transmission. To evaluate the impact of the fault-tolerant mechanism on system performance, the time spent on reconnection and the decrease in bandwidth utilization can be recorded. Reconnection takes 5 seconds and bandwidth utilization decreases by 5%. Data is damaged during transmission. In this case, error handling measures such as data checksum and error correction code can be taken. When node A sends data to node B, it adds a checksum. Node B checks the data after receiving it and uses error correction code to repair it when errors are found. To evaluate the impact of the fault-tolerant mechanism on system performance, the time required for checksum calculation and error correction code repair can be recorded, and the changes in delay and bandwidth utilization can be observed. Checksum calculation takes 10 milliseconds, error correction code repair takes 30 milliseconds, delay increases by 40 milliseconds, and bandwidth utilization decreases by 2%. The stability of the network connection can be optimized to reduce the time for reconnection; the error correction code algorithm can be optimized to reduce the repair time, etc. These optimization measures can improve the fault-tolerant performance of the system and reduce the increase in delay and the decrease in bandwidth utilization.

[0041] S107. Analyze the result data after applying the fault-tolerant mechanism, and adjust the data synchronization strategy accordingly.

[0042] Analyze the logs or reports of the fault tolerance mechanism to obtain synchronization failures or delays, problems with the current synchronization method, and conflicts during data synchronization. Adjust the frequency of data synchronization according to the frequency and severity of synchronization failures or delays. If the fault tolerance mechanism shows errors or conflicts in data synchronization, use asynchronous synchronization or incremental synchronization. Use distributed locks or version control mechanisms to resolve conflicts during data synchronization according to the frequency and severity of conflicts. Re-implement the data synchronization strategy, monitor the results of data synchronization, and confirm whether the adjusted strategy improves the effect of data synchronization. If synchronization problems still exist, adjust the synchronization strategy again according to the monitoring results. Review and update the data synchronization strategy regularly according to actual conditions and feedback. For example, real-time data synchronization is required between data centers to ensure data consistency and reliability. First, analyze the logs or reports of the fault tolerance mechanism to find synchronization failures. Assume that in the past month, there were 10 synchronization failures. Among these events, 5 were complete synchronization failures and 5 were partial synchronization failures. The synchronization delays were also recorded. On average, there were 2 synchronization delays per day, with delays ranging from 5 minutes to 30 minutes. From the above data, it can be seen that there are problems with the current synchronization method. The frequency of synchronization failures is high, and some synchronization failures occur, which may lead to inconsistent data. At the same time, synchronization delays are also frequent, which may affect the availability and accuracy of real-time data. In order to solve the synchronization failure and delay problems, the frequency of data synchronization needs to be adjusted. Depending on the frequency and severity of synchronization failures, you can consider changing the synchronization frequency from real-time to once every 5 minutes. This can reduce the possibility of synchronization failures and reduce the impact of synchronization delays. However, if the fault tolerance mechanism shows errors or conflicts in data synchronization, asynchronous synchronization or incremental synchronization can be used. In the above 10 synchronization failures, data conflicts occurred in 3 cases. This means that there are conflicts in the synchronization process and corresponding solutions need to be taken. Depending on the frequency and severity of the conflicts, distributed locks or version control mechanisms can be used to resolve conflicts in the data synchronization process. Distributed locks can be used to ensure that only one data center can perform write operations during synchronization to avoid data conflicts. After re-implementing the data synchronization strategy, you need to monitor the results of data synchronization. Record the number of synchronization successes and failures and the duration of synchronization delays every day. Through monitoring results, confirm whether the adjusted strategy has improved the effect of data synchronization. After adjusting the data synchronization strategy, the number of synchronization failures was reduced to 2, and the frequency and duration of synchronization delays were also reduced. This shows that the adjusted strategy has effectively improved the effect of data synchronization. However, if synchronization problems still exist, the synchronization strategy can be adjusted again based on the monitoring results. The synchronization frequency can be further reduced, or other fault-tolerant mechanisms can be adopted to improve the reliability and efficiency of synchronization. According to actual conditions and feedback, the data synchronization strategy needs to be reviewed and updated regularly.The effectiveness of data synchronization is evaluated and analyzed every quarter, and strategies are adjusted and optimized based on the results.

[0043] S108. Record the fault tolerance and synchronization status information of all nodes in a central node through a network communication protocol.

[0044] Through the network communication protocol, the AES encryption algorithm is used to enhance the security of data transmission. The real-time updated fault tolerance information and synchronization status are recorded by the central node. According to the real-time updated information, the system monitoring mechanism is started to dynamically monitor the operating status of all nodes. Abnormal behavior is identified and processed in real time to maintain the normal operation of all nodes. The status information is fed back to the central node, and the remote access rights are controlled by setting specific access authorization standards, including IP whitelist and access frequency limit. Under the premise of meeting the access authorization standards, the remote access request obtains the fault tolerance and synchronization status information through the central node. The central node encrypts the data through the AES encryption algorithm based on the information obtained. All nodes receive the encrypted fault tolerance and synchronization status information, complete the information update and verification, and ensure the overall stability and security of the system. For example, there are 3 nodes in a network communication system, namely node A, node B and node C. Each node is responsible for transmitting and processing specific data. During the operation of the system, node A suddenly becomes abnormal and cannot operate normally. The central node will immediately record the abnormal status of the node and start the system monitoring mechanism. At this time, the central node will send fault tolerance information and synchronization status information to node B and node C through the network communication protocol. Fault tolerance information refers to the specific method of handling the abnormality of node A. The central node sends commands to nodes B and C, asking them to reallocate the tasks of node A to other available nodes for processing. Fault tolerance information is updated in real time and recorded in the central node. Synchronization status information refers to the operating status information of nodes B and C. The central node records information such as CPU usage, memory usage, and network transmission rate of nodes B and C. This information is updated in real time and counted based on specific evaluation and analysis. The system monitoring mechanism finds that the CPU usage of node B exceeds the set threshold, which is an abnormal behavior. The central node will immediately identify and handle the abnormal behavior. The central node can send commands to node B, asking it to reduce the load or optimize the algorithm. The central node will record the processing results and feedback to node B. In the actual data transmission process, the central node will set specific access authorization standards, including IP whitelists and access frequency restrictions. Only specific IP addresses are allowed to access remotely, and the number of accesses per minute is limited. Only when these access authorization standards are met can remote access requests obtain fault tolerance and synchronization status information through the central node. The central node will use the AES encryption algorithm to encrypt data for transmission. The fault tolerance and synchronization status information will be encrypted and sent to Node B and Node C. This ensures the security of the data and prevents unauthorized visitors from obtaining sensitive information. After receiving the encrypted fault tolerance and synchronization status information, all nodes will complete the update and verification of the information. Node B and Node C will decrypt the received information and perform corresponding operations according to the instructions in it. This ensures the overall stability and security of the system.

[0045] Based on the above embodiments of the present invention, relevant personnel can make various changes and modifications without departing from the technical concept of the present invention through the above description. The technical scope of the present invention is not limited to the content in the specification, and its technical scope must be determined according to the scope of the claims.

Claims

1. A distributed machine learning method in heterogeneous computing, characterized in that: The method comprises: Obtain hardware specifications and configuration information in a heterogeneous computing environment, and perform a preliminary classification of hardware failure modes; obtain status data of each node in a distributed machine learning environment through a network communication protocol, wherein the node status data includes hardware status data and software status data; adopt a data synchronization strategy to integrate the status data of all nodes into a central node to form a global status data set; parse the global status data set and dynamically assign computing tasks to each node; design a preliminary fault-tolerant mechanism based on the dynamically assigned computing tasks and hardware failure modes; apply the designed fault-tolerant mechanism to each node in a distributed machine learning environment and record the application results; analyze the result data after applying the fault-tolerant mechanism and make corresponding adjustments to the data synchronization strategy; record the fault-tolerant and synchronization status information of all nodes in a central node through a network communication protocol.

2. The method according to claim 1, wherein: The obtaining of hardware specifications and configuration information in a heterogeneous computing environment and preliminary classification of hardware failure modes include: Through the HWiNFO tool, hardware specifications and configuration information are obtained in a heterogeneous computing environment, and a hardware attribute analysis report is generated. The hardware specifications and configuration information include brand, model, production date and usage time information; based on the hardware attribute analysis report, hardware performance data is extracted, and the hardware performance data includes processing speed, operating efficiency and power consumption; real-time hardware performance data of the heterogeneous computing environment is obtained, and the K-Means algorithm is used to identify potential hardware failures and performance degradation problems; if a potential hardware failure is identified, the abnormal parameters are compared with the preset failure data to automatically identify the hardware failure type and performance problem; the hardware failure type and performance problem are classified, and the classification results are automatically stored.

3. The method according to claim 1, wherein: The state data of each node in the distributed machine learning environment is obtained through the network communication protocol, and the state data of the node includes hardware state data and software state data, including: Determine the network communication protocol and data format for obtaining node status data, the network communication protocol includes HTTP and TCP / IP or MQTT, and the data format includes JSON or Protobuf; obtain the hardware status data and software status data of the node through the monitoring agent, the hardware status data includes CPU usage, memory usage, hard disk status, network bandwidth and GPU usage, and the software status data includes operating system information, running status of a distributed machine learning framework, process status, network connection status and log information.

4. The method according to claim 1, wherein: The data synchronization strategy is adopted to integrate the status data of all nodes into a central node to form a global status data set, including: The hardware status data and software status data of the node are integrated into a node status data object; a network connection with a central node is established, and the node status data is sent to the central node through the network connection; the central node receives and stores the status data of each node, and processes the received node status data, including parsing the data, verifying the integrity and correctness of the data, and obtaining a global status data set; the processed node status data is stored in a database or storage system of the central node; and the node status is monitored and analyzed based on the stored node status data, including generating reports, triggering alarms, and performing fault diagnosis.

5. The method according to claim 1, wherein: The step of parsing the global state data set and dynamically allocating computing tasks to each node includes: The global status data set is indexed by the node number and task number to obtain the task type, task priority and task resource requirement of each computing task, as well as the node status and node resource situation of each computing node; the task scheduling strategy is determined according to the task type and task priority, and tasks are scheduled from high to low priority; the load balancing strategy is determined according to the node status and node resource situation, and the idle node with the lowest resource utilization is selected for task allocation; for each computing task, whether there are sufficient computing resources available for allocation is determined according to the task resource requirement and node resource situation; if there are sufficient computing resources available for allocation, a node is selected for task allocation according to the load balancing strategy, and the node status and resource situation are updated; if there are not enough computing resources available for allocation, whether to wait for allocation or select the node with the lowest resource utilization for task migration is determined according to the task priority; After assigning tasks, record the task assignment plan and assignment time, and update the task completion time; execute resource allocation judgment and task assignment in a loop until all computing tasks are assigned.

6. The method according to claim 1, wherein: The preliminary fault-tolerance mechanism is designed based on the dynamically allocated computing tasks and hardware failure modes, including: Use monitoring systems and sensors to monitor the status and operation of hardware equipment in real time. When a hardware failure is found, the diagnosis mechanism is automatically triggered to identify the fault mode and locate the fault, and the fault tolerance strategy is automatically adjusted according to different hardware failure modes and task requirements. Suspend computing tasks on the faulty hardware and reallocate them to other hardware for execution based on the characteristics of the tasks and the status of other hardware; continuously monitor the status of the repaired hardware and determine whether the hardware has returned to normal by analyzing hardware parameters and performance data; After confirming that the hardware has returned to normal, the previously suspended computing tasks are reallocated back to the repaired hardware and the tasks continue to execute. When the tasks are restarted, the integrity of the task data is checked. If there is any loss or damage, it is restored based on the data backup.

7. The method according to claim 1, wherein: In the distributed machine learning environment, the designed fault tolerance mechanism is applied to each node, and the application results are recorded, including: Apply fault tolerance mechanisms on each node and record the fault tolerance results; If an error occurs, the type of error is recorded, including hardware failure and network error or data corruption; Take appropriate error handling measures based on the error type; Evaluate the impact of the fault tolerance mechanism on system performance and perform corresponding performance optimization, wherein the impact on system performance includes increased latency and decreased bandwidth utilization.

8. The method according to claim 1, wherein: The analysis of the result data after applying the fault tolerance mechanism and the corresponding adjustment of the data synchronization strategy include: Analyze the logs or reports of the fault-tolerant mechanism to obtain synchronization failures or delays, problems with the current synchronization method, and conflicts during data synchronization; adjust the frequency of data synchronization according to the frequency and degree of synchronization failures or delays; if the fault-tolerant mechanism shows data synchronization errors or conflicts, use asynchronous synchronization or incremental synchronization; according to the frequency and severity of the conflicts, use distributed locks or version control mechanisms to resolve conflicts during data synchronization; re-implement the data synchronization strategy, monitor the results of data synchronization, and confirm whether the adjusted strategy has improved the effect of data synchronization; if synchronization problems still exist, adjust the synchronization strategy again according to the monitoring results; regularly review and update the data synchronization strategy based on actual conditions and feedback.

9. The method according to claim 1, wherein: The fault tolerance and synchronization status information of all nodes are recorded in a central node through the network communication protocol, including: Through the network communication protocol, the AES encryption algorithm is used to enhance the security of data transmission; the real-time updated fault tolerance information and synchronization status are recorded by the central node, and based on the real-time updated information, the system monitoring mechanism is started to dynamically monitor the operating status of all nodes; abnormal behaviors are identified and processed in real time to maintain the normal operating status of all nodes; the status information is fed back to the central node, and remote access rights are controlled by setting specific access authorization standards, including IP whitelists and access frequency restrictions; on the premise of meeting the access authorization standards, remote access requests obtain fault tolerance and synchronization status information through the central node; the central node encrypts and transmits data based on the information obtained through the AES encryption algorithm; all nodes receive the encrypted fault tolerance and synchronization status information, complete the update and verification of the information, and ensure the overall stability and security of the system.

Citation Information

Cited By

  • Distributed cooperative processing method for weak network and full dynamic

    CN119383118A

  • Data analysis method, system and equipment based on distributed communication and medium

    CN119402440A

  • Data multidirectional synchronization method and system based on data analysis

    CN121125742A