Container-based algorithm training platform fault automatic processing method and system
Through monitoring and querying, faulty nodes are identified, isolated and cooled, which solves the problem of frequent AI algorithm training platform task failures in k8s clusters due to hardware resource failures or abnormal environmental configurations, and improves identification accuracy and cluster stability.
Patent Information
- Application Number
- CN202410858878.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-06
AI Technical Summary
Existing technology is difficult to effectively identify and deal with the problem of frequent AI algorithm training platform task failures in k8s clusters caused by hardware resource failures or abnormal environmental configurations.
By monitoring the running indicators of the container cluster and querying the container task status, the faulty node is identified, isolated, restarted and cooled down, the task execution status is restored, and the faulty node is converted into a normal node.
It improves the identification accuracy of faulty nodes, avoids task failures, improves the stability and availability of the AI algorithm training cluster, and solves the problem of frequent task failures caused by hardware resource failures and abnormal environment configurations.
Smart Images

Figure CN118606005A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of AI algorithm training platforms, and in particular to a method and system for automatically handling faults of an algorithm training platform based on a container. Background Art
[0002] Container technology plays an important role in the algorithm training platform, and its main features include isolation, reproducibility, and scalability. Isolation means that the container can provide an isolated environment for algorithm training, thereby preventing interference between different algorithms or tasks; reproducibility means that the container can standardize the environment for algorithm training, thereby improving the reproducibility of model training; scalability means that the container can be expanded according to the needs of algorithm training, thereby improving the efficiency of the model.
[0003] During the algorithm model training process, algorithm engineers use algorithms, data and computing resources to calculate, train and produce the required models. In this process, various computing devices such as CPUs and GPUs are used. After long-term operation, there is a certain probability of failure of the equipment, or changes in environmental differences may cause the tasks running on the environment to fail. If the fault is not identified in time and the node where the fault occurs is isolated, subsequent tasks may continue to fail, affecting the stability of the entire algorithm training platform and the development of business.
[0004] In the existing technology, fault identification is mainly carried out through monitoring, and faulty nodes are isolated or removed from the scheduling list through container labels to achieve fault isolation. Some studies have described the deployment of applications based on k8s clusters, and the monitoring of container groups according to Deployment groups. The monitoring dimensions mainly include whether the usage of the node's memory core CPU continues to exceed a certain value, whether the container has an incorrect keyword, whether the container thread pool is exhausted, and other indicators. Although these indicators can reflect whether the monitored node is busy to a certain extent, they are prone to false alarms. For example, when the CPU and memory continue to exceed a certain value, in some scenarios, although the node resource utilization rate is high, the program may still be able to execute normally, because the monitoring false alarm causes the node to be isolated or deregistered, and the program or task cannot be executed normally. There are also studies that describe how to determine whether the working status of devices such as graphics processing units (GPUs), neural network processing units (NPUs), field programmable gate arrays (FPGAs), and application-specific integrated circuits (ASICs) is normal by reading the information of the registers in the device. When an abnormality is detected in the register information, the device will be reset through a reset operation. If the reset operation cannot restore the device's register information to normal, an alarm will be issued. This fault monitoring method is mainly described from the perspective of physical devices. When the physical computing device is normal, the task failure caused by the node due to software configuration or environment variables at the application level is not monitored, which may still lead to task failure.
[0005] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0006] The main purpose of this application is to provide a method and system for automatic fault handling of an algorithm training platform based on a container, aiming to solve the problem of frequent failure of AI algorithm training platform tasks caused by hardware resource failure or abnormal environment configuration of nodes in the existing k8s cluster.
[0007] The first aspect of the present application provides a method for automatically handling faults of a container-based algorithm training platform, comprising the following steps: collecting operating indicators of cluster nodes, and identifying faulty nodes based on the operating indicators; or monitoring the task status corresponding to the container under the cluster business namespace by querying and listening, and identifying the faulty nodes based on the task status; isolating and restarting the identified faulty nodes, and cooling the restarted nodes; restoring the task execution status of the cooled nodes, and converting the corresponding nodes from faulty nodes to normal nodes based on the task execution results of the restored nodes.
[0008] According to the above-mentioned technical means, the embodiments of the present application realize the identification of faulty nodes in the container cluster by monitoring the main operating indicators of the container cluster or querying and listening to the task status corresponding to the container, thereby making up for the information missing based on the monitoring of hardware indicators and improving the identification accuracy of faulty nodes; and by isolating and restarting the faulty nodes, avoiding the situation where all tasks running on the faulty nodes fail due to the faulty nodes, effectively improving the abnormal identification and processing capabilities of the entire AI algorithm training cluster, and improving the stability of the entire cluster, thereby solving the problem of frequent failure of AI algorithm training platform tasks caused by hardware resource failure or abnormal environment configuration of nodes in the k8s cluster; and by recovering the faulty nodes and resetting some abnormal nodes caused by task execution, the availability of the entire AI algorithm training cluster is improved.
[0009] Optionally, in one embodiment of the present application, the operating indicators of the cluster nodes are collected and the faulty nodes are identified based on the operating indicators, specifically including: obtaining the operating status of the CPU, memory, network, disk, GPU and container of the cluster nodes through the node exporter plug-in to obtain the operating indicators; monitoring and alarming the operating indicators of the cluster nodes through conditional triggering rules; comparing the current operating status and time of the container with the historical operating status and time to determine the duration of the abnormality, and judging whether the duration of the abnormality exceeds a preset threshold; if the duration of the abnormality exceeds the preset threshold, determining that the corresponding node that triggers the alarm is a faulty node.
[0010] According to the above-mentioned technical means, the embodiment of the present application obtains the status of the node's CPU, memory, network, disk, GPU device and container through the nodeexporter plug-in of the k8s cluster, and uses hardware monitoring to monitor and alarm the hardware indicators of the cluster nodes; and by comparing the current container status with the last container status and time in the cache, the duration of the abnormal situation is analyzed, and the node that triggers the alarm is determined to be abnormal only when the abnormal time exceeds the threshold, which can avoid false alarms in hardware monitoring and improve the fault identification accuracy of hardware monitoring.
[0011] Optionally, in one embodiment of the present application, the task status corresponding to the container under the cluster business namespace is monitored by querying and listening, and the faulty node is identified according to the task status, specifically including: monitoring the task status corresponding to the container under the cluster business namespace by querying and listening, and detecting and determining the cluster node status by comparing the historical event data in the cache of the container and the node, and determining the corresponding faulty node.
[0012] According to the above-mentioned technical means, the embodiment of the present application describes the task information based on the container dimension, associates the description of the container with the specific task information, and can monitor the task status corresponding to the container under the cluster business namespace by querying and listening. It can also determine whether the node has a fault based on the task status executed on the node based on the rules, thereby supplementing the information missing from the monitoring based on hardware indicators and improving the accuracy of identifying faulty nodes.
[0013] Optionally, in one embodiment of the present application, the task status corresponding to the container under the cluster business namespace is monitored by the query and listening method, and the cluster node status is detected and determined by comparing the historical event data in the cache of the container and the node, specifically including: obtaining change information of the containers, nodes and services under the cluster business namespace, and judging whether the corresponding container status has changed to a failed state according to the change information; if the corresponding container status has changed to the failed state, caching the node information corresponding to the failed container in the cache database and recording the task information; comparing the historical event data in the cache of the failed container and the node, judging whether the node information corresponding to the container in the failed state has more than a specified number of different tasks; if there are more than a specified number of different tasks, judging the corresponding node to be a faulty node.
[0014] According to the above technical means, the embodiment of the present application uses the Kubernetes API to implement a listening object to subscribe to event data of resources such as containers and nodes, and detects and determines the status of cluster nodes by comparing historical event data in the cache of containers and nodes. This solves the problem of task failure caused by factors such as environment variable configuration when the cluster nodes are operating normally, and makes up for the shortcomings of monitoring based on hardware indicators.
[0015] Optionally, in one embodiment of the present application, the identified faulty nodes are isolated and restarted, and the restarted nodes are cooled, specifically including: calling the REST interface of the API service to isolate the identified faulty nodes, setting the faulty nodes as node stains, and canceling the business identification label of the faulty nodes; restarting the isolated faulty nodes, and adding the restarted faulty nodes to the cooling group; determining whether the node cooling time of the faulty nodes in the cooling group exceeds a preset duration; if it exceeds the preset duration, recovering the corresponding faulty nodes.
[0016] According to the above-mentioned technical means, the embodiment of the present application isolates the faulty node from the cluster according to the labels and stains, so that after the isolation, new tasks will no longer be scheduled to the faulty node, thereby avoiding the situation where all tasks running on the node fail due to the node, thereby effectively improving the abnormal recognition and processing capabilities of the entire AI algorithm training cluster, and improving the stability of the entire cluster; and by restarting the isolated faulty node, the faulty node can be restored by using the cooling method of the cooling group, thereby utilizing the faulty node to the greatest extent.
[0017] Optionally, in one embodiment of the present application, the task execution status of the node after cooling treatment is restored, and the corresponding node is converted from a faulty node to a normal node according to the task execution result of the restored node, specifically including: performing node decontamination or adding service label processing on the faulty node in the cooling group whose cooling time exceeds a preset time, rejoining the cluster, and reducing the priority of the corresponding faulty node through node affinity; monitoring the task execution process of the faulty node with reduced priority to determine whether the faulty node with reduced priority executes the task normally; if the faulty node with reduced priority executes the task normally, then after completing an algorithm training task, removing the low-priority affinity label of the corresponding faulty node and converting it from a faulty node to a normal node.
[0018] According to the above-mentioned technical means, the embodiment of the present application introduces a cooling group and an abnormal node group, and can use the method of restarting the node to clean the faulty node or add a business label to the node, so that the faulty node continues to execute tasks in a low-priority manner, thereby improving the efficiency of task processing of the entire cluster; and by performing state transitions on the faulty nodes that successfully execute tasks and removing the affinity labels of the low-priority faulty nodes, some abnormal nodes caused by task execution can be reset, thereby improving the availability of the entire AI algorithm training cluster.
[0019] Optionally, in one embodiment of the present application, the task execution process of the faulty node with a lowered priority is monitored to determine whether the faulty node with a lowered priority executes the task normally, and then also includes: if the faulty node with a lowered priority fails to execute the task, the corresponding faulty node is added to the abnormal node group; the corresponding faulty node is re-isolated, and an alarm message of the corresponding faulty node is issued.
[0020] According to the above technical means, after the nodes are in the cooling group, the embodiment of the present application adds the nodes that still cannot perform tasks normally to the abnormal node group and issues an alarm notification for manual processing. The cooling group and the abnormal node group can be used to reset and repair common errors, thereby further repairing some abnormal nodes manually.
[0021] The second aspect of the present application provides an automatic fault handling system for an algorithm training platform based on a container, and the automatic fault handling system for an algorithm training platform based on a container includes: a fault identification module, which is used to collect operating indicators of cluster nodes and identify faulty nodes based on the operating indicators; or monitor the task status corresponding to the container under the cluster business namespace by querying and listening, and identify the faulty node based on the task status; a fault handling module, which is used to isolate and restart the identified faulty node, and cool down the restarted node; a recovery module, which is used to restore the task execution status of the node after the cooling process, and convert the corresponding node from a faulty node to a normal node according to the task execution result of the restored node.
[0022] Optionally, in one embodiment of the present application, the fault identification module includes: an acquisition unit, used to obtain the operating status of the CPU, memory, network, disk, GPU and container of the cluster node through a node exporter plug-in to obtain the operating indicators; a monitoring and alarm unit, used to monitor and alarm the operating indicators of the cluster node through conditional triggering rules; an abnormal time judgment unit, used to compare the current operating status and time of the container with the historical operating status and time, determine the abnormal duration, and judge whether the abnormal duration exceeds a preset threshold; a first judgment unit, used to judge that the corresponding node that triggers the alarm is a faulty node when the abnormal duration exceeds the preset threshold.
[0023] Optionally, in one embodiment of the present application, the fault identification module also includes: a second determination unit, used to monitor the task status corresponding to the container under the cluster business namespace through the query and monitoring method, and to detect and determine the cluster node status by comparing the historical event data in the cache of the container and the node, and determine the corresponding faulty node.
[0024] Optionally, in one embodiment of the present application, the second determination unit includes: a container status determination subunit, used to obtain change information of containers, nodes and services under the cluster business namespace, and determine whether the corresponding container status has changed to a failed status based on the change information; a task recording subunit, used to cache the node information corresponding to the failed container in a cache database and record the task information when the corresponding container status changes to the failed status; a cache comparison subunit, used to compare historical event data in the cache of the failed container and node, and determine whether the node information corresponding to the container in the failed status has more than a specified number of different tasks; a fault determination subunit, used to determine that the corresponding node is a faulty node when there are more than a specified number of different tasks.
[0025] Optionally, in one embodiment of the present application, the fault handling module includes: an isolation unit, used to call the REST interface of the API service to isolate the identified faulty node, set the faulty node as a node stain, and cancel the business identification label of the faulty node; a restart unit, used to restart the isolated faulty node, and add the restarted faulty node to the cooling group; a cooling time judgment unit, used to judge whether the node cooling time of the faulty node in the cooling group exceeds a preset time; and a recovery unit, used to recover the corresponding faulty node when the preset time is exceeded.
[0026] Optionally, in one embodiment of the present application, the recovery module includes: a priority reduction unit, which is used to perform node decontamination or add service label processing to the faulty node in the cooling group whose cooling time exceeds a preset time, rejoin the cluster, and reduce the priority of the corresponding faulty node through node affinity; a task execution process monitoring unit, which is used to monitor the task execution process of the faulty node with reduced priority, and determine whether the faulty node with reduced priority performs the task normally; a node conversion unit, which is used to remove the low-priority affinity label of the corresponding faulty node and convert it from a faulty node to a normal node after completing an algorithm training task when the faulty node with reduced priority performs the task normally; an abnormal node unit, which is used to add the corresponding faulty node to the abnormal node group when the faulty node with reduced priority fails to perform the task; an alarm unit, which is used to re-isolate the corresponding faulty node and issue an alarm message of the corresponding faulty node.
[0027] A third aspect of the present application provides a vehicle, comprising: a memory, a processor, and a container-based algorithm training platform fault automatic handling program stored in the memory and executable on the processor, wherein the container-based algorithm training platform fault automatic handling program, when executed by the processor, implements the steps of the container-based algorithm training platform fault automatic handling method as described in the above embodiment.
[0028] The fourth aspect of the present application provides a computer-readable storage medium, which stores a container-based algorithm training platform fault automatic handling program. When the container-based algorithm training platform fault automatic handling program is executed by a processor, the steps of the container-based algorithm training platform fault automatic handling method described in the above embodiment are implemented.
[0029] Beneficial effects of this application:
[0030] (1) The embodiments of the present application realize the identification of faulty nodes in a container cluster by monitoring the main operating indicators of the container cluster or querying and listening to the task status corresponding to the container, thereby supplementing the information missing from the monitoring based on hardware indicators and improving the accuracy of identifying faulty nodes.
[0031] (2) The embodiments of the present application isolate and restart the faulty nodes to avoid the situation where all tasks running on the faulty nodes fail due to the faulty nodes, effectively improve the abnormal identification and processing capabilities of the entire AI algorithm training cluster, and enhance the stability of the entire cluster, thereby solving the problem of frequent failure of AI algorithm training platform tasks due to hardware resource failure or abnormal environment configuration of nodes in the k8s cluster.
[0032] (3) The embodiment of the present application recovers the faulty nodes and resets some nodes that are abnormal due to task execution, thereby improving the availability of the entire AI algorithm training cluster.
[0033] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0035] Figure 1 It is a flowchart of a preferred embodiment of the method for automatically handling faults of an algorithm training platform based on a container according to an embodiment of the present application;
[0036] Figure 2 is a structural diagram of a fault identification module in an embodiment of the present application;
[0037] Figure 3 is a flowchart of a fault identification module according to an embodiment of the present application;
[0038] Figure 4 It is a structural schematic diagram of a preferred embodiment of the automatic fault handling system of the algorithm training platform based on the container of the embodiment of the present application;
[0039] Figure 5 This is a schematic structural diagram of a preferred embodiment of the vehicle of the present application.
[0040] Among them, 10, automatic fault handling system of container-based algorithm training platform; 100, fault identification module; 200, fault handling module; 300, recovery module; 501, memory; 502, processor; 503, communication interface. DETAILED DESCRIPTION
[0041] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0042] The following describes the automatic fault handling method and system of the algorithm training platform based on the container of the embodiment of the present application with reference to the accompanying drawings. In view of the problem that the AI algorithm training platform tasks frequently fail due to hardware resource failure or abnormal environment configuration of the nodes in the existing k8s cluster mentioned in the above background technology, the present application provides a method for automatic fault handling of the algorithm training platform based on the container, in which the operation indicators of the cluster nodes are collected, and the faulty nodes are identified according to the operation indicators; or the task status corresponding to the container under the cluster business namespace is monitored by query and monitoring, and the faulty nodes are identified according to the task status; the identified faulty nodes are isolated and restarted, and the restarted nodes are cooled; the task execution status of the nodes after cooling is restored, and the corresponding nodes are converted from faulty nodes to normal nodes according to the task execution results of the restored nodes. The present application implements the monitoring of the training platform and the decision-making of the isolation instructions of the faulty container nodes based on the k8sapiserver plug-in mechanism, and solves the problem that the AI algorithm training platform tasks frequently fail due to hardware resource failure or abnormal environment configuration of the nodes in the k8s cluster.
[0043] Specifically, Figure 1 A flowchart of a method for automatically handling faults of a container-based algorithm training platform provided in an embodiment of the present application.
[0044] like Figure 1 As shown, the automatic fault handling method of the container-based algorithm training platform includes the following steps:
[0045] In step S101, the operation indicators of the cluster nodes are collected, and the faulty nodes are identified according to the operation indicators; or the task status corresponding to the container under the cluster business namespace is monitored by querying and listening, and the faulty nodes are identified according to the task status.
[0046] It can be understood that in the embodiment of the present application, based on the k8s apiserver plug-in (the k8s apiserver plug-in is used to manage system status and resources) mechanism, the fault identification module and the apiserver (i.e., API service, which provides operations on various resource objects in the k8s cluster and is the central hub for data interaction and communication between various functional modules in the cluster) are introduced to interact to realize the monitoring of the training platform and the decision-making of fault container node isolation instructions, thereby solving the problem of frequent failure of AI algorithm training platform tasks caused by hardware resource failure or abnormal environment configuration of nodes in the k8s cluster.
[0047] It should be noted that in the embodiment of the present application, the fault identification module can identify the faulty nodes in the k8s cluster through two methods: hardware operation indicator monitoring and container task status monitoring. Through these two methods of identifying faulty nodes, the missing information based on hardware indicator monitoring can be supplemented, and the accuracy of identifying faulty nodes can be improved, thereby avoiding the situation where all tasks running on the faulty nodes fail due to the faulty nodes.
[0048] As an example, Figure 2 As shown, in the embodiment of the present application, in the process of the fault identification module identifying the faulty node, the first method is to collect the main operating indicators of the container cluster (for example, CPU, memory, network, disk and container status), and monitor and alarm these main operating indicators to identify the faulty nodes in the k8s cluster. The second method is to use the k8s cluster API to subscribe to the event data of resources such as containers and nodes, and determine the faulty nodes in the k8s cluster by monitoring the event data of these resources.
[0049] Further, collecting the operation indicators of the cluster nodes and identifying the faulty nodes according to the operation indicators specifically includes:
[0050] Obtain the operating status of the CPU, memory, network, disk, GPU and container of the cluster node through the node exporter plug-in to obtain the operating indicators;
[0051] Monitor and issue alarms on the operating indicators of the cluster nodes through conditional triggering rules;
[0052] Compare the current running state and time of the container with the historical running state and time, determine the duration of the abnormality, and determine whether the duration of the abnormality exceeds a preset threshold;
[0053] If the abnormality duration exceeds the preset threshold, the corresponding node that triggers the alarm is determined to be a faulty node.
[0054] In the first fault identification method of the embodiment of the present application, first, the fault identification module obtains the main operating indicators of the node (for example, the status of CPU, memory, network, disk, GPU device and container) through the node exporter plug-in (an indicator data collection component) of the k8s cluster, and records these main operating indicators in the cache; then, through the conditional triggering rules, the hardware indicators of the cluster nodes are monitored and alarmed.
[0055] In the process of monitoring and alarming the hardware indicators of the node, the fault identification module monitors the indicators of the hardware environment, and first issues an alarm for abnormal nodes whose hardware indicators do not meet the requirements (for example, insufficient remaining disk space, damaged GPU devices, and abnormal nodes caused by memory). Then, the fault alarm module compares the current container status with the last container status and time in the cache, analyzes the duration of the abnormal situation, and when the duration of the abnormal situation exceeds a threshold (for example, 30 minutes), determines that the corresponding node that triggers the alarm is a faulty node.
[0056] The embodiment of the present application obtains the status of the node's CPU, memory, network, disk, GPU device and container through the nodeexporter plug-in of the k8s cluster, and uses hardware monitoring to monitor and alarm the hardware indicators of the cluster nodes; and by comparing the current container status with the last container status and time in the cache, the duration of the abnormal situation is analyzed, and the node that triggers the alarm is determined to be abnormal only when the abnormal time exceeds the threshold, which can avoid false alarms in hardware monitoring and improve the fault identification accuracy of hardware monitoring.
[0057] Further, monitoring the task status corresponding to the container under the cluster service namespace by querying and listening, and identifying the faulty node according to the task status, specifically includes:
[0058] The task status corresponding to the container under the cluster business namespace is monitored by the query and monitoring method, and the cluster node status is detected and determined by comparing the historical event data in the cache of the container and the node to determine the corresponding faulty node.
[0059] In the second fault identification method of the embodiment of the present application, a monitoring object is mainly implemented by using the k8s cluster API to subscribe to event data of resources such as containers and nodes, and the task execution status corresponding to the container is determined by comparing the historical event data in the cache of the container and the node, so as to detect and determine the cluster node status and determine the faulty node in the k8s cluster.
[0060] The embodiment of the present application adds the monitoring of the training task dimension on top of the basic operating indicators (i.e. the main operating indicators of the node), wherein the monitoring of the training task dimension includes the monitoring of the task container's image, algorithm name, data set, startup parameters, submitting personnel and other task information, and the monitoring of this information is mainly performed through the task monitoring module. The task monitoring module is a specified task description template, which is based on the status monitoring of the training cluster container by associating the description of the container with the specific task information; wherein the description of the container includes the node information where the container is located: such as the node's IP, memory size, network card name, container image and name, the number of GPU cards allocated to the POD, the number of CPU cores, memory size and other information.
[0061] As an example, the embodiment of the present application describes the task information based on the container dimension, associates the task status with the container through the task monitoring module, and uses the container name and task ID as keywords to form an associated record stored in the database. Based on the success or failure of the task and the relationship between the GPU node where the training task is located, according to the combined relationship between the image and the server node, the algorithm and the server node, the data set and the server node, the task personnel information and the server node, a statistical analysis is performed on the server node, and the task statistics of the image to the node, the algorithm to the node, the data set to the node, and the personnel to the node are output, thereby forming a task running node portrait of the entire k8s cluster. For example, these task running node portraits include: whether a specific image will report an error on a specific server node, a specific algorithm will execute an error on a specific server node, a specific data set will report an error on a specific server node, and a specific person's task will report an error on a specific server node, etc.
[0062] The task monitoring module is based on rules and uses the status of tasks executed on the node to determine whether the node is faulty. If all tasks on the node fail after a short run, based on the statistical data of the tasks and the node, and the number of failed tasks on the node exceeds the maximum number of failed tasks per unit time set by the system for a single node, it can be determined that the node may be faulty. It can be understood that the task monitoring module mainly solves the task failure caused by factors such as environment variable configuration when the cluster nodes are running normally, making up for the shortcomings of monitoring based on hardware indicators.
[0063] The embodiment of the present application describes the task information based on the container dimension, associates the description of the container with the specific task information, and can monitor the task status corresponding to the container under the cluster business namespace by querying and listening. It can also determine whether the node has a fault based on the task status executed on the node based on the rules, thereby supplementing the information missing from the monitoring based on hardware indicators and improving the accuracy of identifying faulty nodes.
[0064] Further, monitoring the task status corresponding to the container under the cluster business namespace by the query and monitoring method, and detecting and determining the cluster node status by comparing the historical event data in the cache of the container and the node, specifically includes:
[0065] Obtain change information of containers, nodes, and services under the cluster business namespace, and determine whether the corresponding container status has changed to a failed state according to the change information;
[0066] If the corresponding container state changes to the failed state, the node information corresponding to the failed container is cached in the cache database and the task information is recorded;
[0067] Compare the historical event data in the cache of the failed container and the node, and determine whether the node information corresponding to the failed container has more than a specified number of different tasks;
[0068] If there are more than the specified number of different tasks, the corresponding node is determined to be a faulty node.
[0069] It is understandable that the fault identification module in the embodiment of the present application can obtain information changes of components such as containers, nodes and services under the cluster business namespace by querying (query) and monitoring (watch), and analyze whether the status of the container is a failed state. Among them, the information change of the node includes: changes in node task information; the information of the node includes: data sets, algorithms and images of training tasks, etc. These node task information are key information of a task and are stored in the environment variables of the container. The fault identification module obtains the task information in the container environment variables by obtaining the V1EnvVar object of the container.
[0070] When the container status changes to failure, the fault identification module caches the node information corresponding to the failed container in the cache database and records the task information. If the same algorithm, data set, and image fail repeatedly, and there is no abnormality in the cluster node, the node cannot be determined as an abnormal node and the node will not be isolated. When more than three different tasks fail to execute on the current node, such as different algorithms, different data sets, or different images, the current node is determined to be abnormal, and the fault identification module operates the apiserver (API service) of the k8s cluster to isolate the node and issue an alarm. After isolation, new tasks will no longer be scheduled to the abnormal node, which can effectively improve the abnormal identification and processing capabilities of the entire AI algorithm training cluster and improve the stability of the entire cluster.
[0071] The embodiment of the present application uses the Kubernetes API to implement a monitoring object to subscribe to event data of resources such as containers and nodes. By comparing the historical event data in the cache of containers and nodes, the cluster node status is detected and determined, and the task failure caused by factors such as environment variable configuration when the cluster nodes are running normally is solved, thereby making up for the shortcomings of monitoring based on hardware indicators.
[0072] In step S102, the identified faulty nodes are isolated and restarted, and the restarted nodes are cooled down.
[0073] It should be noted that, in the embodiment of the present application, for the faulty nodes identified by the above two identification methods, the node can be isolated from the cluster according to the label and stain to avoid the situation where all tasks running on the node fail due to the node; wherein, the operation of isolating the node is: adding a specific task label through the custom label (label) in the k8s cluster to indicate whether the server node can join the resource pool to perform tasks. When a specific node fails, by canceling the custom label of the node, the node cannot continue to perform other tasks, and the node is added to the cooling group for cooling.
[0074] Furthermore, isolating and restarting the identified faulty nodes, and cooling down the restarted nodes, specifically includes:
[0075] Calling the REST interface of the API service to isolate the identified faulty node, setting the faulty node as a node taint, and canceling the service identification tag of the faulty node;
[0076] Restart the isolated faulty node and add the restarted faulty node to the cooling group;
[0077] Determine whether the node cooling time of the faulty node in the cooling group exceeds a preset time;
[0078] If the preset time period is exceeded, the corresponding faulty node is restored.
[0079] In an embodiment of the present application, the fault identification module performs isolation operations on the faulty nodes of the cluster by calling the REST interface of the apiserver. These isolation operations include: setting node taints and canceling the business identification tags of the nodes. After the node is isolated, the node failed task information in the cache database is cleared. The fault isolation module adds the isolated node to the cooling group and restarts the node to recover some node anomalies and some hardware anomalies caused by task execution.
[0080] As an example, the retention time of the nodes in the cooling group in the embodiment of the present application is 30 minutes as a unit. By judging whether the node cooling time of the faulty node in the cooling group exceeds 30 minutes (that is, the preset duration is 30 minutes), it is determined whether to further restore the corresponding faulty node; when the node retention time in the cooling group exceeds 30 minutes, the corresponding faulty node is restored.
[0081] The embodiment of the present application isolates the faulty node from the cluster according to the label and the stain, so that after the isolation, new tasks will no longer be scheduled to the faulty node, avoiding the situation where all tasks running on the node fail due to the node, thereby effectively improving the abnormal recognition and processing capabilities of the entire AI algorithm training cluster, and improving the stability of the entire cluster; and by restarting the isolated faulty node, the faulty node can be restored by using the cooling method of the cooling group, thereby maximizing the utilization of the faulty node.
[0082] In step S103, the task execution state of the node after the cooling process is restored, and the corresponding node is converted from a faulty node to a normal node according to the task execution result of the restored node.
[0083] It should be noted that in an embodiment of the present application, for a faulty node in a cooling group, when the retention time of a faulty node in a cooling group exceeds a preset time length, the fault isolation module removes the taint or adds a service label to the faulty node so that it can rejoin the k8s cluster.
[0084] Further, the restoring the task execution state of the node after the cooling process, and converting the corresponding node from a faulty node to a normal node according to the task execution result of the restored node, specifically includes:
[0085] Decontaminate or add service labels to the faulty nodes in the cooling group whose cooling time exceeds the preset time, rejoin the cluster, and reduce the priority of the corresponding faulty nodes through node affinity;
[0086] Monitor the task execution process of the faulty node with a lowered priority to determine whether the faulty node with a lowered priority executes the task normally;
[0087] If the faulty node with a lowered priority performs tasks normally, after completing an algorithm training task, the low-priority affinity label of the corresponding faulty node is removed and the faulty node is converted into a normal node.
[0088] In the embodiment of the present application, when the fault isolation module removes the taint or adds a service label to the faulty node, it also reduces the priority of the node through node affinity, and the faulty node is in the recovery period. The fault identification module monitors the faulty node. If the faulty node can perform tasks normally without abnormalities, after completing an algorithm training task, the low-priority affinity label of the faulty node is removed, and the faulty node is restored to a normal node, and can accept other training tasks normally.
[0089] The embodiments of the present application, by introducing a cooling group and an abnormal node group, can use the method of restarting the node to clean the faulty node or add a service label to the faulty node, so that the faulty node continues to execute tasks in a low-priority manner, thereby improving the efficiency of task processing of the entire cluster; and by performing state transitions on the faulty nodes that successfully execute tasks and removing the affinity labels of the low-priority faulty nodes, some abnormal nodes caused by task execution can be reset, thereby improving the availability of the entire AI algorithm training cluster.
[0090] Further, the task execution process of the faulty node with a lowered priority is monitored to determine whether the faulty node with a lowered priority executes the task normally, and then further includes:
[0091] If the faulty node with a lowered priority fails to execute the task, the corresponding faulty node is added to the abnormal node group;
[0092] The corresponding faulty node is re-isolated and an alarm message of the corresponding faulty node is issued.
[0093] In the embodiment of the present application, if a node in the recovery period fails to execute a task, the node is added to the abnormal node group and re-isolated, and an alarm is issued for subsequent operations such as manual intervention, for example, resetting the system baseline settings, hardware maintenance, etc. By introducing the cooling group and the abnormal node group, regular errors can be reset and repaired by restarting the node, and some abnormal nodes caused by task execution can be reset, thereby improving the availability of the entire AI algorithm training cluster.
[0094] In the embodiment of the present application, after the nodes are in the cooling group, the nodes that still cannot perform tasks normally are added to the abnormal node group and an alarm is notified for manual processing. The cooling group and the abnormal node group can be used to reset and repair common errors, so that some abnormal nodes can be further repaired manually.
[0095] As an example, Figure 3 As shown, in the embodiment of the present application, the working process of the fault identification module is as follows:
[0096] S11, the fault identification module starts;
[0097] S12, collects cluster node hardware and system indicators through the node exporter plug-in;
[0098] S13, determine whether the node fails; if yes, execute step S19; if no, execute step S12;
[0099] S14, monitor the container status under the cluster business namespace by querying and listening;
[0100] S15, determine whether the task POD Status is Failed; if yes, execute step S16; if no, execute step S14;
[0101] S16, the fault identification module obtains task information corresponding to the container by querying the container environment variables;
[0102] S17, the fault identification module caches the node information corresponding to the failed container and records the task information;
[0103] S18, determine whether there are more than 3 tasks (ie, determine whether there are more than 3 different tasks in the node information corresponding to the failed container); if yes, execute step S19; if no, execute step S14.
[0104] The above steps S12 to S13 and steps S14 to S18 can be performed simultaneously; wherein the fault identification method corresponding to steps S12 to S13 is the first identification method; and the fault identification method corresponding to steps S14 to S18 is the second identification method.
[0105] S19, the fault identification module isolates cluster nodes, adds taints, and removes business labels through the apiserver REST interface;
[0106] S20, restart the failed node;
[0107] S21, the fault identification module adds the cluster node to the cooling group;
[0108] S22, the fault identification module detects the computing nodes in the cooling group;
[0109] S23, determine whether it exceeds 30 minutes (i.e., determine whether the node cold time exceeds 30 minutes); if yes, execute step S24; if no, execute step S22;
[0110] S24, the fault identification module removes the taint from the node and adds a business label through the REST API;
[0111] S25, the fault identification module reduces the node priority through k8s affinity and monitors the task execution status of the node in the recovery period;
[0112] S26, judging whether the task is executed successfully (i.e. judging whether the task of the recovery period node is executed successfully); if yes, executing step S27; if no, executing step S28;
[0113] S27, the fault identification module removes the low priority affinity label of the node, and the node ends the recovery period and becomes a normal node;
[0114] S28, the fault identification module re-isolates the node and adds the node to the abnormal node group;
[0115] S29, the fault identification module issues an alarm to notify humans to handle the node.
[0116] The embodiments of the present application realize the identification of faulty nodes in the container cluster by monitoring the main operating indicators of the container cluster or querying and listening to the task status corresponding to the container, thereby making up for the information missing based on the monitoring of hardware indicators and improving the identification accuracy of faulty nodes; and by isolating and restarting the faulty nodes, avoiding the situation where all tasks running on the faulty nodes fail due to the faulty nodes, effectively improving the abnormal identification and processing capabilities of the entire AI algorithm training cluster, and improving the stability of the entire cluster, thereby solving the problem of frequent failure of AI algorithm training platform tasks caused by hardware resource failure or abnormal environment configuration of nodes in the k8s cluster; and by recovering the faulty nodes and resetting some abnormal nodes caused by task execution, the availability of the entire AI algorithm training cluster is improved.
[0117] Next, the automatic fault handling system for the algorithm training platform based on a container proposed in accordance with an embodiment of the present application is described with reference to the accompanying drawings.
[0118] Figure 4 It is a structural diagram of an automatic fault handling system for an algorithm training platform based on a container according to an embodiment of the present application.
[0119] like Figure 4 As shown, the automatic fault handling system 10 of the algorithm training platform based on the container includes:
[0120] The fault identification module 100 is used to collect the operation indicators of the cluster nodes and identify the faulty nodes according to the operation indicators; or monitor the task status corresponding to the container under the cluster business namespace by querying and listening, and identify the faulty nodes according to the task status;
[0121] The fault processing module 200 is used to isolate and restart the identified faulty nodes, and to cool down the restarted nodes;
[0122] The recovery module 300 is used to restore the task execution status of the node after the cooling process, and convert the corresponding node from a faulty node to a normal node according to the task execution result of the restored node.
[0123] Optionally, in one embodiment of the present application, the fault identification module 100 includes:
[0124] An acquisition unit, used to obtain the operating status of the CPU, memory, network, disk, GPU and container of the cluster node through a node exporter plug-in to obtain the operating indicator;
[0125] A monitoring and alarm unit, used to monitor and alarm the operation indicators of the cluster nodes through conditional triggering rules;
[0126] An abnormal time judgment unit is used to compare the current operating state and time of the container with the historical operating state and time, determine the duration of the abnormality, and judge whether the duration of the abnormality exceeds a preset threshold;
[0127] The first determination unit is configured to determine that the corresponding node triggering the alarm is a faulty node when the abnormality duration exceeds the preset threshold.
[0128] Optionally, in one embodiment of the present application, the fault identification module 100 further includes:
[0129] The second determination unit is used to monitor the task status corresponding to the container under the cluster business namespace by means of the query and monitoring, and to detect and determine the cluster node status by comparing the historical event data in the cache of the container and the node to determine the corresponding faulty node.
[0130] Optionally, in one embodiment of the present application, the second determining unit includes:
[0131] A container status judgment subunit is used to obtain change information of containers, nodes and services under the cluster service namespace, and judge whether the corresponding container status has changed to a failed state according to the change information;
[0132] A task recording subunit, configured to cache node information corresponding to the failed container in a cache database and record task information when the corresponding container state changes to the failed state;
[0133] A cache comparison subunit, used to compare the historical event data in the cache of the failed container and the node, and determine whether the node information corresponding to the failed container has more than a specified number of different tasks;
[0134] The fault determination subunit is used to determine that the corresponding node is a faulty node when there are more than a specified number of different tasks.
[0135] Optionally, in an embodiment of the present application, the fault processing module 200 includes:
[0136] An isolation unit, configured to call a REST interface of an API service to isolate an identified faulty node, set the faulty node as a node taint, and cancel a service identification tag of the faulty node;
[0137] A restart unit, used to restart the isolated faulty node and add the restarted faulty node to the cooling group;
[0138] A cooling time determination unit, used to determine whether the node cooling time of the faulty node in the cooling group exceeds a preset time length;
[0139] The recovery unit is used to recover the corresponding faulty node when the preset time period is exceeded.
[0140] Optionally, in one embodiment of the present application, the recovery module 300 includes:
[0141] A priority reduction unit is used to perform node decontamination or service label processing on the faulty nodes in the cooling group whose cooling time exceeds the preset time, rejoin the cluster, and reduce the priority of the corresponding faulty nodes through node affinity;
[0142] A task execution process monitoring unit is used to monitor the task execution process of the faulty node with a lowered priority, and determine whether the faulty node with a lowered priority executes the task normally;
[0143] A node conversion unit, configured to remove the low-priority affinity label of the corresponding faulty node and convert it from the faulty node to a normal node after completing an algorithm training task when the faulty node with a reduced priority is performing tasks normally;
[0144] An abnormal node unit, configured to add the corresponding faulty node to an abnormal node group when the faulty node with a lowered priority fails to execute a task;
[0145] The alarm unit is used to re-isolate the corresponding faulty node and send out the alarm information of the corresponding faulty node.
[0146] It should be noted that the aforementioned explanation of the embodiment of the method for automatically handling faults of an algorithm training platform based on a container is also applicable to the automatic handling system for faults of an algorithm training platform based on a container of this embodiment, and will not be repeated here.
[0147] In response to the problem of frequent failure of AI algorithm training platform tasks due to hardware resource failure or abnormal environment configuration of nodes in the existing k8s cluster mentioned in the above background technology, the present application provides a method for automatic fault handling of the algorithm training platform based on containers, in which the operating indicators of the cluster nodes are collected, and the faulty nodes are identified according to the operating indicators; or the task status corresponding to the container under the cluster business namespace is monitored by query and monitoring, and the faulty nodes are identified according to the task status; the identified faulty nodes are isolated and restarted, and the restarted nodes are cooled; the task execution status of the nodes after cooling is restored, and the corresponding nodes are converted from faulty nodes to normal nodes according to the task execution results of the restored nodes. The present application implements the monitoring of the training platform and the decision-making of fault container node isolation instructions based on the k8s apiserver plug-in mechanism, and solves the problem of frequent failure of AI algorithm training platform tasks due to hardware resource failure or abnormal environment configuration of nodes in the k8s cluster.
[0148] Figure 5 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. The vehicle may include:
[0149] A memory 501 , a processor 502 , and a computer program stored in the memory 501 and executable on the processor 502 .
[0150] When the processor 502 executes the program, the automatic fault handling method for the container-based algorithm training platform provided in the above embodiment is implemented.
[0151] Furthermore, the vehicle also includes:
[0152] The communication interface 503 is used for communication between the memory 501 and the processor 502 .
[0153] The memory 501 is used to store computer programs that can be executed on the processor 502 .
[0154] The memory 501 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0155] If the memory 501, the processor 502 and the communication interface 503 are implemented independently, the communication interface 503, the memory 501 and the processor 502 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EIS) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0156] Optionally, in a specific implementation, if the memory 501, the processor 502 and the communication interface 503 are integrated on a chip, the memory 501, the processor 502 and the communication interface 503 can communicate with each other through an internal interface.
[0157] The processor 502 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0158] This embodiment also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned method for automatically handling faults of a container-based algorithm training platform is implemented.
[0159] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0160] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0161] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0162] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable storage medium for use by an instruction execution system, device or vehicle (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or vehicle and execute the instructions), or in combination with these instruction execution systems, devices or vehicles. For the purposes of this specification, a "computer-readable storage medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or vehicle, or in combination with these instruction execution systems, devices or vehicles. More specific examples (non-exhaustive list) of computer-readable storage media include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable storage medium may even be paper or other suitable medium on which the program is printed, since the program can be obtained electronically by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways as necessary, and then storing it in a computer memory.
[0163] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0164] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0165] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0166] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
[0167] It should be understood that the application of the present application is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to this application.
Claims
1. A method for automatically handling faults in a container-based algorithm training platform. It is characterized in that The automatic fault handling method of the container-based algorithm training platform includes: Collect the operating indicators of the cluster nodes and identify the faulty nodes according to the operating indicators; or monitor the task status corresponding to the container under the cluster business namespace by querying and listening, and identify the faulty nodes according to the task status; Isolate and restart the identified faulty nodes, and cool down the restarted nodes; The task execution status of the node after the cooling process is restored, and the corresponding node is converted from a faulty node to a normal node according to the task execution result of the restored node.
2. According to claim 1, the automatic fault handling method of the container-based algorithm training platform, It is characterized in that The collecting operation indicators of the cluster nodes and identifying the faulty nodes according to the operation indicators specifically includes: Obtain the operating status of the CPU, memory, network, disk, GPU and container of the cluster node through the node exporter plug-in to obtain the operating indicators; Monitor and issue alarms on the operating indicators of the cluster nodes through conditional triggering rules; Compare the current running state and time of the container with the historical running state and time, determine the duration of the abnormality, and determine whether the duration of the abnormality exceeds a preset threshold; If the abnormality duration exceeds the preset threshold, the corresponding node that triggers the alarm is determined to be a faulty node.
3. According to the automatic fault handling method of the container-based algorithm training platform according to claim 1, It is characterized in that The step of monitoring the task status corresponding to the container under the cluster service namespace by querying and listening, and identifying the faulty node according to the task status specifically includes: The task status corresponding to the container under the cluster business namespace is monitored by the query and monitoring method, and the cluster node status is detected and determined by comparing the historical event data in the cache of the container and the node to determine the corresponding faulty node.
4. According to claim 3, the automatic fault handling method of the container-based algorithm training platform, It is characterized in that The monitoring of the task status corresponding to the container under the cluster service namespace by the query and monitoring method, and detecting and determining the cluster node status by comparing the historical event data in the cache of the container and the node, specifically includes: Obtain change information of containers, nodes, and services under the cluster business namespace, and determine whether the corresponding container status has changed to a failed state according to the change information; If the corresponding container state changes to the failed state, the node information corresponding to the failed container is cached in the cache database and the task information is recorded; Compare the historical event data in the cache of the failed container and the node, and determine whether the node information corresponding to the failed container has more than a specified number of different tasks; If there are more than the specified number of different tasks, the corresponding node is determined to be a faulty node.
5. According to claim 1, the automatic fault handling method of the container-based algorithm training platform, It is characterized in that The isolating and restarting the identified faulty nodes and cooling down the restarted nodes specifically include: Calling the REST interface of the API service to isolate the identified faulty node, setting the faulty node as a node taint, and canceling the service identification tag of the faulty node; Restart the isolated faulty node and add the restarted faulty node to the cooling group; Determine whether the node cooling time of the faulty node in the cooling group exceeds a preset time; If the preset time period is exceeded, the corresponding faulty node is restored.
6. According to claim 1, the automatic fault handling method of the container-based algorithm training platform, It is characterized in that The step of restoring the task execution state of the node after the cooling process and converting the corresponding node from a faulty node to a normal node according to the task execution result of the restored node specifically includes: Decontaminate or add service labels to the faulty nodes in the cooling group whose cooling time exceeds the preset time, rejoin the cluster, and reduce the priority of the corresponding faulty nodes through node affinity; Monitor the task execution process of the faulty node with a lowered priority to determine whether the faulty node with a lowered priority executes the task normally; If the faulty node with a lowered priority performs tasks normally, after completing an algorithm training task, the low-priority affinity label of the corresponding faulty node is removed and the faulty node is converted into a normal node.
7. The automatic fault handling method for the container-based algorithm training platform according to claim 6, It is characterized in that The task execution process of the faulty node with a lowered priority is monitored to determine whether the faulty node with a lowered priority executes the task normally, and then further includes: If the faulty node with a lowered priority fails to execute the task, the corresponding faulty node is added to the abnormal node group; The corresponding faulty node is re-isolated and an alarm message of the corresponding faulty node is issued.
8. An automatic fault handling system for algorithm training platform based on containers, It is characterized in that The automatic fault handling system of the algorithm training platform based on the container includes: A fault identification module is used to collect the operating indicators of cluster nodes and identify the faulty nodes according to the operating indicators; or monitor the task status corresponding to the container under the cluster business namespace by querying and listening, and identify the faulty nodes according to the task status; a fault handling module is used to isolate and restart the identified faulty nodes, and cool down the restarted nodes; The recovery module is used to restore the task execution status of the node after the cooling process, and convert the corresponding node from a faulty node to a normal node according to the task execution result of the restored node.
9. A vehicle, It is characterized in that The vehicle includes: a memory, a processor, and a container-based algorithm training platform fault automatic handling program stored in the memory and executable on the processor. When the container-based algorithm training platform fault automatic handling program is executed by the processor, the steps of the container-based algorithm training platform fault automatic handling method as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a container-based algorithm training platform fault automatic handling program, and when the container-based algorithm training platform fault automatic handling program is executed by a processor, the steps of the container-based algorithm training platform fault automatic handling method as described in any one of claims 1-7 are implemented.
Citation Information
Cited By
Fault processing method of cluster node, electronic equipment, medium and program product
CN119728396A
Heterogeneous cluster large model training monitoring method and electronic equipment
CN120086097A
Monitoring Method for Large Model Training in Heterogeneous Clusters and Electronic Device
CN120086097B
Fault detection method applied to heterogeneous training cluster
CN120371576A
A fault detection method applied to heterogeneous training clusters
CN120371576B
