A computing cluster temperature alarm method, device, storage medium and electronic equipment
By obtaining the core chip hardware temperature of the computing cluster server and using a pre-trained model for automatic judgment, the problem of sensor error and unreasonable location selection is solved, accurate and timely monitoring of the computing cluster temperature is achieved, and hardware security and system stability are ensured.
Patent Information
- Application Number
- CN202410849946.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-06-27
AI Technical Summary
Existing computing cluster temperature monitoring methods have problems with sensor errors and unreasonable location selection, resulting in temperature anomalies not being discovered in time, affecting hardware security and system stability.
It uses the server core chip hardware temperature to obtain, and automatically determines the status of the server and cluster through pre-trained server and cluster alarm models, and performs multi-rule judgment to achieve temperature alarms.
It improves the accuracy and timeliness of temperature monitoring, avoids hardware damage and system crashes, and reduces R&D and maintenance costs.
Smart Images

Figure CN118394607B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a computing cluster temperature alarm method, device, storage medium and electronic device. Background Art
[0002] With the continuous development of science and technology, computing clusters are becoming more and more widely used, especially large-scale GPU-based computing clusters for large-scale artificial intelligence training deployment.
[0003] Since computing clusters often need to perform high-computing tasks such as model training and reasoning, the computer room where the computing cluster is located may experience abnormal temperatures. In order to monitor the temperature of the computing cluster, detect and resolve temperature anomalies in a timely manner to prevent hardware damage or system crashes, the temperature is generally obtained by placing sensors in the computer room where the computing cluster is located, and then determine whether the temperature reaches the set alarm threshold, and issue a temperature alarm based on the judgment result.
[0004] However, the sensor may have errors, resulting in inaccurate temperature data, and the location of the sensor may not be reasonable, resulting in inadequate temperature monitoring in some areas and failure to detect temperature anomalies in time. Therefore, how to issue temperature alarms for computing clusters is a very important issue.
[0005] Based on this, this specification provides a computing cluster temperature alarm method. Summary of the invention
[0006] This specification provides a computing cluster temperature alarm method, device, storage medium and electronic device to partially solve the above problems existing in the prior art.
[0007] This manual adopts the following technical solutions:
[0008] This specification provides a computing cluster temperature alarm method, the method is applied to a computing cluster, the computing cluster includes a plurality of servers; a plurality of sensors are deployed in the physical environment where the computing cluster is located, the sensors are used to collect the temperature of the physical environment where the computing cluster is located, the method includes:
[0009] Get the hardware temperature of the core chip of each server;
[0010] Inputting each hardware temperature into a pre-trained server alarm model corresponding to each server to determine a first state corresponding to each server;
[0011] Determine the ambient temperature collected by each sensor, and input each first state and each ambient temperature into a pre-trained cluster alarm model to determine an alarm state corresponding to the computing cluster;
[0012] According to the alarm status, a temperature alarm is issued for the computing cluster.
[0013] Optionally, inputting each hardware temperature into a pre-trained server alarm model corresponding to each server to determine the first state corresponding to each server, specifically includes:
[0014] For each server, the hardware temperature of the server is input into a pre-trained server alarm model corresponding to the server, so as to determine a first rule matching the hardware temperature of the server from among the first rules included in the server alarm model, and use the first rule as the target rule; the first rule includes at least a first result;
[0015] The first result included in the target rule is used as the first state corresponding to the server.
[0016] Optionally, the first rule further includes a first condition;
[0017] From the first rules included in the server alarm model, a first rule matching the hardware temperature of the server is determined and used as a target rule, specifically including:
[0018] For each first rule, determining a first condition included in the first rule;
[0019] When the hardware temperature of the server meets the first condition, the first rule is used as the target rule of the server.
[0020] Optionally, inputting each first state and each ambient temperature into a pre-trained cluster alarm model to determine an alarm state corresponding to the computing cluster specifically includes:
[0021] Taking each first state and each ambient temperature as initial information;
[0022] Inputting the initial information into a pre-trained cluster alarm model to determine a second rule matching the initial information from each second rule included in the cluster alarm model and use it as an alarm rule; the second rule includes at least a second result;
[0023] The second result included in the alarm rule is used as the alarm state corresponding to the computing cluster.
[0024] Optionally, the second rule further includes a second condition;
[0025] From the second rules included in the cluster alarm model, a second rule matching the initial information is determined and used as an alarm rule, specifically including:
[0026] For each second rule, determining a second condition included in the second rule;
[0027] When the initial information satisfies the second condition, the second rule is used as an alarm rule for the computing cluster.
[0028] Optionally, pre-train each server alarm model, specifically including:
[0029] For each server, obtain the temperature of the server in each historical time period and use it as each first sample;
[0030] For each first sample, determine a state of the server in a historical time period corresponding to the first sample, and use the state as a first initial result;
[0031] According to each first sample, generating a first initial condition corresponding to the first sample;
[0032] Generate a first initial rule corresponding to the first sample according to the first initial condition and the first initial result;
[0033] Determine a first initial model composed of the first initial rules and use it as a server alarm model to be trained corresponding to the server;
[0034] The server alarm model to be trained is trained according to the first samples and the first initial results.
[0035] Optionally, pre-train the cluster alarm model, specifically including:
[0036] Acquire the state of each server in each historical time period and use it as each second sample; and acquire the temperature collected by each sensor in each historical time period and use it as each third sample;
[0037] Determine fourth samples according to the second samples and the third samples;
[0038] For each fourth sample, determine a state corresponding to the computing cluster in a historical time period corresponding to the fourth sample, and use the state as a second initial result;
[0039] generating, according to each fourth sample, a second initial condition corresponding to the fourth sample;
[0040] Generate a second initial rule corresponding to the fourth sample according to the second initial condition and the second initial result;
[0041] Determine a second initial model composed of the second initial rules and use it as a cluster alarm model to be trained corresponding to the computing cluster;
[0042] The cluster alarm model to be trained is trained according to the fourth samples and the second initial results.
[0043] This specification provides a computing cluster temperature alarm device, which is applied to a computing cluster, wherein the computing cluster includes a plurality of servers; a plurality of sensors are deployed in the physical environment where the computing cluster is located, and the sensors are used to collect the temperature of the physical environment where the computing cluster is located, and the device includes:
[0044] The acquisition module is used to obtain the hardware temperature of the core chip of each server;
[0045] A first determination module is used to input each hardware temperature into a pre-trained server alarm model corresponding to each server to determine a first state corresponding to each server;
[0046] A second determination module is used to determine the ambient temperature collected by each sensor, and input each first state and each ambient temperature into a pre-trained cluster alarm model to determine the alarm state corresponding to the computing cluster;
[0047] The alarm module is used to issue a temperature alarm to the computing cluster according to the alarm status.
[0048] This specification provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned computing cluster temperature alarm method is implemented.
[0049] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned computing cluster temperature alarm method when executing the program.
[0050] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:
[0051] The computing cluster temperature alarm method provided in this specification obtains the hardware temperature of the core chip of each server, inputs each hardware temperature into the pre-trained server alarm model corresponding to each server, and determines the first state corresponding to each server. Determine the ambient temperature collected by each sensor, and input each first state and each ambient temperature into the pre-trained cluster alarm model to determine the alarm state corresponding to the computing cluster, and issue a temperature alarm to the computing cluster according to the alarm state.
[0052] It can be seen from the above method that when the present application performs a temperature alarm for the computing cluster, the hardware temperature of the core chip of each server is obtained, each hardware temperature is input into the pre-trained server alarm model corresponding to each server, and the first state corresponding to each server is determined. The ambient temperature collected by each sensor is determined, and each first state and each ambient temperature is input into the pre-trained cluster alarm model to determine the alarm state corresponding to the computing cluster, and a temperature alarm is issued for the computing cluster according to the alarm state. Through an interpretable multi-rule server alarm model, the state of the server is automatically determined, and through an interpretable multi-rule cluster alarm model, the alarm state of the computing cluster is automatically determined, thereby automatically monitoring the temperature of the computing cluster to avoid abnormal temperature of the computing cluster to prevent hardware damage or system crash. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings:
[0054] Figure 1 A flowchart of a computing cluster temperature alarm method provided in this specification;
[0055] Figure 2 A schematic diagram of a three-dimensional visualization model provided in this specification;
[0056] Figure 3 A schematic diagram of the training of each server alarm model provided in this specification;
[0057] Figure 4 A schematic diagram of a training process of a server alarm model provided in this specification;
[0058] Figure 5 A schematic diagram of the training of a cluster alarm model provided in this specification;
[0059] Figure 6 A schematic diagram of a training process of a cluster alarm model provided in this specification;
[0060] Figure 7 A schematic diagram of a training model provided in this specification;
[0061] Figure 8 A schematic diagram of a computing cluster temperature alarm device provided in this specification;
[0062] Fig. 9 A method corresponding to the Figure 1 Schematic diagram of the structure of an electronic device. DETAILED DESCRIPTION
[0063] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.
[0064] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.
[0065] Figure 1 The following is a flow chart of a computing cluster temperature alarm method provided in this specification. Figure 1 The method shown is applied to a computing cluster, which includes several servers. Several sensors are deployed in the physical environment where the computing cluster is located. The sensors are used to collect the temperature of the physical environment where the computing cluster is located. Specifically, the method includes the following steps:
[0066] S100: Obtain the hardware temperature of the core chip of each server.
[0067] In order to monitor the temperature of the computing cluster, the temperature is generally obtained by placing a sensor in the computer room where the computing cluster is located, and then it is determined whether the temperature reaches the set alarm threshold, and a temperature alarm is issued based on the judgment result. However, the sensor may have errors, resulting in inaccurate monitored temperature data, and the location of the sensor may not be reasonable, resulting in inadequate temperature monitoring in some areas, and temperature anomalies cannot be detected in time. In addition, it may be difficult to set the alarm threshold. An alarm threshold that is too high may result in the failure to issue an alarm in time when the temperature is too high, while an alarm threshold that is too low may frequently trigger false alarms. In addition, the above-mentioned method of temperature alarm based on sensors may also have the problem of alarm delay, and it is impossible to issue an alarm immediately when a temperature anomaly occurs, affecting the ability to handle the anomaly in a timely manner.
[0068] Based on this, in order to reduce the R&D cost and maintenance cost of the computing cluster temperature alarm system and improve the system's adaptability to various environments, in this specification, the device used for temperature alarm can obtain the hardware temperature of the core chip of each server. Among them, the device used for temperature alarm can be used for a server or system to detect the temperature of the computing cluster, or it can be an electronic device such as a desktop computer or a laptop computer. For the convenience of description, the computing cluster temperature alarm method provided in this specification is described below with the monitoring device as the execution subject.
[0069] In this specification, the computing cluster includes several servers, each of which is deployed with at least one core chip, which is a graphics processing unit (Graphics Processing Unit, referred to as GPU). The number of core chips included in each server may be equal or unequal, and this specification does not make specific restrictions. For the sake of convenience, the following description is given by taking the equal number of core chips included in each server as an example. The above hardware temperature is the temperature of the core chip in the server. When each server has one GPU, the hardware temperature of each server is the temperature of the GPU. When each server has two or more GPUs, taking each server as an example with three GPUs, i.e., GPU1~3, the hardware temperature of each server is the temperature of GPU1~3, and the hardware temperature can be expressed as "GPU1: x, GPU2: x, GPU3: x", where x represents the temperature value. Based on this, when the monitoring device obtains the hardware temperature of the core chip of each server, it can directly obtain the hardware temperature of the core chip, i.e., the temperature of the GPU, from the monitoring program of each server itself. Of course, any existing means can also be used to obtain the hardware temperature of the core chip of each server, and this specification does not make specific restrictions. For example, suppose the computing cluster includes three servers, namely servers 1 to 3, and each server is deployed with three GPUs, namely GPU0 to 2. The monitoring device can obtain the temperature of GPU0 to 2 included in servers 1 to 3, that is, the temperature of GPU0 to 2 of server 1 is 24, 18 and 23 respectively, the temperature of GPU0 to 2 of server 2 is 44, 45 and 43 respectively, and the temperature of GPU0 to 2 of server 3 is 94, 95 and 98 respectively.
[0070] S102: Inputting each hardware temperature into a pre-trained server alarm model corresponding to each server to determine a first state corresponding to each server.
[0071] In this specification, the monitoring device may input each hardware temperature into the pre-trained server alarm model corresponding to each server to determine the first state corresponding to each server. Wherein, each server has a corresponding server alarm model, which is pre-trained by the monitoring device, and the server alarm model is a rule model. The server alarm model corresponding to each server is used to determine the state of each server according to the hardware temperature of each server. The state of the server may include normal operation, high temperature and temperature alarm. Of course, it may also include normal operation, temperature level and temperature alarm, which is not specifically limited in this specification. For the sake of convenience, the following takes the state of the server including normal operation, high temperature and temperature alarm as an example, so the above-mentioned first state may be one of normal operation, high temperature and temperature alarm. The monitoring device may use a number to represent the first state, using "0" to represent normal operation, "1" to represent temperature alarm, and "2" to represent high temperature. Specifically, the monitoring device may input the hardware temperature of each server into the pre-trained server alarm model corresponding to the server for each server to determine the first state corresponding to the server. The first state of each server can be expressed by “{[server 1: first state], [server 2: first state], … [server N: first state]}”, where N represents the number of servers, and each server has a corresponding first state.
[0072] In this specification, the server alarm model is a rule model, and each server alarm model includes a number of first rules, the first rule is used to determine the state of the server, and the first rule includes at least a first result, and the first result represents the state of the server. Based on this, the monitoring device can input the hardware temperature of each server into the pre-trained server alarm model corresponding to the server, so as to determine the first rule that matches the hardware temperature of the server from the first rules included in the server alarm model, and use it as the target rule. Then, the first result included in the target rule is used as the first state corresponding to the server. Continuing with the above example, assuming that servers 1 to 3 correspond to server alarm models A to C respectively, and each server alarm model includes 50 first rules, the monitoring device can target servers 1 to 3. Assuming that for server 1, the hardware temperature of server 1 (i.e., GPU0: 24, GPU1: 18, and GPU2: 23) is input into the pre-trained server alarm model corresponding to server 1 (i.e., server alarm model A), so as to determine the first rule that matches the hardware temperature of server 1 from the 50 first rules included in the server alarm model, and use it as the target rule. Assuming that the target rule is the first rule 1 included in the server alarm model A, and the first result included in the first rule 1 is normal operation, the monitoring device can use the first result included in the first rule 1 as the first state corresponding to server 1, i.e., normal operation. Other servers can also determine the first state in the above manner, which will not be repeated here.
[0073] In this specification, in addition to the first result, the above-mentioned first rule also includes a first condition, and the first condition is used to determine whether the hardware temperature of the server matches the first rule. Therefore, when the first rule that matches the hardware temperature of the server is determined from the first rules included in the server alarm model and used as the target rule, the monitoring device can determine the first condition included in the first rule for each first rule. When the hardware temperature of the server meets the first condition, the first rule is used as the target rule for the server. Among them, the first condition includes the temperature range of the core chip of the server. The server has several core chips, and the first condition includes the temperature range of several core chips at most. Of course, the number of temperature ranges of core chips included in the first condition is not greater than the number of core chips included in the server. For example, if the server includes three GPUs, namely GPU0~2, the first condition may include the temperature range of GPU0~2. Assume that the temperature range of GPU0 is [93.5, 94.5], the temperature range of GPU1 is [94.5, 95.5], and the temperature range of GPU2 is [97.5, 98.5]. Of course, the first condition may also only include the temperature range of GPU0, that is, the temperature range of GPU0 is [93.5, 94.5].
[0074] In this specification, the first condition includes the temperature range of at least one core chip in the server. When the temperature of the core chip of the server (i.e., the hardware temperature) is within the temperature range of the core chip included in the first condition, it means that the hardware temperature of the server satisfies the first condition corresponding to the first condition, the first rule corresponding to the first condition matches the hardware temperature of the server, and the first rule corresponding to the first condition is the target rule of the server. When the temperature of any core chip in the server is not within the temperature range of the core chip included in the first condition, it means that the first rule corresponding to the first condition does not match the hardware temperature of the server, and the first rule corresponding to the first condition is not the target rule of the server. If the first condition includes the temperature range of all core chips of the server, then when the temperature of all core chips of the server is within the temperature range of the core chip included in the first condition, it means that the hardware temperature of the server satisfies the first condition corresponding to the first condition. However, if the first condition only includes the temperature range of some core chips of the server, then when the temperature of some core chips of the server (i.e., the core chips corresponding to the temperature range included in the first condition) is within the temperature range of the core chip included in the first condition, it means that the hardware temperature of the server satisfies the first condition corresponding to the first condition.
[0075] In this specification, when the hardware temperature of the server does not meet the first condition, the monitoring device cannot use the first rule as the target rule of the server. The monitoring device can continue to determine the first conditions included in other first rules except the first rule until the hardware temperature of the server meets the first condition, and then use the first rule at this time as the target rule. In addition, when all first rules do not match the hardware temperature of the server, the monitoring device can use the temperature alarm as the first state of the server. The monitoring device can also determine the temperature threshold corresponding to the server. When the hardware temperature of the server is greater than the temperature threshold, the temperature alarm is used as the first state of the server. The temperature threshold is pre-set by the monitoring device, and each server has a pre-set corresponding temperature threshold. Of course, the monitoring device can also use any existing means to determine the first state of the server, and this specification does not make specific limitations.
[0076] In this specification, since the server alarm model includes several first rules, there may be multiple target rules for the hardware temperature of each server. Based on this, when the first result included in the target rule is used as the first state corresponding to the server, the monitoring device can determine the first results included in each target rule, divide the target rules with the same first result into a group, determine the number of target rules included in each group, and use the first result of the target rule included in the group with the largest number as the first state of the server.
[0077] S104: Determine the ambient temperature collected by each sensor, and input each first state and each ambient temperature into a pre-trained cluster alarm model to determine an alarm state corresponding to the computing cluster.
[0078] In this specification, the monitoring device can determine the ambient temperature collected by each sensor, and input each first state and each ambient temperature into the pre-trained cluster alarm model to determine the alarm state corresponding to the computing cluster. Among them, a number of sensors are deployed in the physical environment where the computing cluster is located. The sensor may be a temperature sensor, and the sensor is used to collect the temperature (i.e., ambient temperature) of the physical environment where the computing cluster is located. The physical environment may be the computer room or any area where the computing cluster is located, and this specification does not make specific restrictions. The sensor can be deployed in any area or device in the physical environment where the computing cluster is located. Of course, the sensor can also be deployed in any area or device other than the server in the physical environment where the computing cluster is located, and this specification does not make specific restrictions. For ease of explanation, the following takes the deployment of sensors in devices other than servers in the physical environment where the computing cluster is located as an example. The sensor can be deployed in air conditioners, fans, computers and other equipment in the physical environment where the computing cluster is located. Of course, the sensor can also be deployed in areas such as the ground, desktops, and walls in the physical environment where the computing cluster is located. The above cluster alarm model is pre-trained by the monitoring device, and the cluster alarm model is a rule model. The cluster alarm model is used to determine the alarm state of the computing cluster according to the first state of each server and the ambient temperature collected by each sensor. The alarm state of the computing cluster can include normal operation and temperature alarm. The monitoring device can use numbers to represent the alarm state, using "0" to represent normal operation and "1" to represent temperature alarm. Specifically, the monitoring device can use each first state and each ambient temperature as initial information, and then input the initial information into the pre-trained cluster alarm model to determine the alarm state corresponding to the computing cluster.
[0079] In this specification, the cluster alarm model is a rule model, which includes several second rules, the second rules are used to determine the state of the computing cluster, and the second rules include at least a second result, and the second result characterizes the state of the computing cluster. Based on this, when each first state and each ambient temperature are input into the pre-trained cluster alarm model to determine the alarm state corresponding to the computing cluster, the monitoring device can use each first state and each ambient temperature as initial information. Then, the initial information is input into the pre-trained cluster alarm model to determine the second rule that matches the initial information from the second rules included in the cluster alarm model, and use it as an alarm rule. Afterwards, the second result included in the alarm rule is used as the alarm state corresponding to the computing cluster. For example, assuming that the first states corresponding to servers 1~3 are normal operation, temperature alarm and temperature alarm, respectively, and the temperatures of sensors 1~3 are 80, 90, and 95, respectively, the cluster alarm model includes 500 second rules. The monitoring device can use the first states corresponding to servers 1~3 and the ambient temperature of sensors 1~3 as initial information, and then input the initial information into a pre-trained cluster alarm model to determine the second rule that matches the initial information from the 500 second rules included in the cluster alarm model, and use it as the alarm rule. Assuming that the alarm rule is the second rule 1 included in the cluster alarm model, and the second result included in the second rule 1 is a temperature alarm, the monitoring device can use the second result included in the second rule 1 as the calculation cluster The corresponding alarm state, that is, the temperature alarm.
[0080] In this specification, in addition to the second result, the second rule also includes a second condition, which is used to determine whether the initial information matches the second rule. Therefore, when determining the second rule that matches the initial information from the second rules included in the cluster alarm model and using it as the alarm rule, the monitoring device can determine the second condition included in the second rule for each second rule. When the initial information meets the second condition, the second rule is used as the alarm rule for the computing cluster. The second condition includes at least one of the value range of the server status and the temperature range of the sensor, and when the second condition includes the value range of the server status, the second condition includes the value range of the status of at least one of the servers. Similarly, when the second condition includes the temperature range of the sensor, the second condition includes the temperature range of at least one of the sensors. For example, if the computing cluster includes servers 1-3, and sensors 1-3 are deployed in the physical environment where the computing cluster is located, the second condition may include at least one of the value range of the server status and the temperature range of the sensor. The second condition may be the value range corresponding to the status of servers 1-3, or the value range of the status of at least one of servers 1-3. Assume that the value range corresponding to the status of server 1 may be [1, 2], the value range corresponding to the status of server 2 may be [0, 2], and the value range corresponding to the status of server 3 may be [0, 1], where 0 indicates normal operation, 1 indicates temperature warning, and 2 indicates high temperature. In addition, the second condition may also be the temperature range corresponding to sensors 1-3, or the temperature range of at least one of sensors 1-3. Assume that the temperature range of sensor 1 is [93.5, 94.5], the temperature range of sensor 2 is [94.5, 95.5], and the temperature range of sensor 3 is [97.5, 98.5]. Of course, the second condition may also include the value range of the status of at least one of servers 1-3 and the temperature range of at least one of sensors 1-3.
[0081] In this specification, if the second condition only includes the value range of the state of at least one server among the servers, taking the second condition including the value range of the state of each server as an example, when the first state of each server in the initial information is within the value range of the state of each server included in the second condition, it means that the initial information meets the second condition, the second rule corresponding to the second condition matches the initial information, and the monitoring device can use the second rule corresponding to the second condition as the alarm rule of the computing cluster. However, if the first state of any server in the initial information is not within the value range of the state of the server included in the second condition, it means that the initial information does not meet the second condition, the second rule corresponding to the second condition does not match the initial information, and the monitoring device may not use the second rule corresponding to the second condition as the alarm rule of the computing cluster. If the second condition only includes the temperature range of at least one sensor among the sensors, taking the second condition including the temperature range of each sensor as an example, when the ambient temperature of each sensor in the initial information is within the temperature range of each sensor included in the second condition, it means that the initial information meets the second condition, the second rule corresponding to the second condition matches the initial information, and the monitoring device can use the second rule corresponding to the second condition as the alarm rule of the computing cluster. However, if the ambient temperature of any sensor in the initial information is outside the temperature range of the sensor included in the second condition, it means that the initial information does not meet the second condition, and the second rule corresponding to the second condition does not match the initial information. The monitoring device may not use the second rule corresponding to the second condition as the alarm rule for the computing cluster.
[0082] In addition, the second condition may also include the value range of the state of at least one of the servers and the temperature range of at least one of the sensors. Specifically, taking the second condition including the value range of the state of each server and the temperature range of each sensor as an example, when the first state of each server in the initial information is within the value range of the state of each server included in the second condition, and the ambient temperature of each sensor in the initial information is within the temperature range of each sensor included in the second condition, it means that the initial information meets the second condition, the second rule corresponding to the second condition matches the initial information, and the monitoring device may use the second rule corresponding to the second condition as the alarm rule of the computing cluster. However, if the first state of any server in the initial information is not within the value range of the state of the server included in the second condition, or the ambient temperature of any sensor in the initial information is not within the temperature range of the sensor included in the second condition, it means that the initial information does not meet the second condition, the second rule corresponding to the second condition does not match the initial information, and the monitoring device may not use the second rule corresponding to the second condition as the alarm rule of the computing cluster.
[0083] In this specification, when the initial information does not meet the second condition, the monitoring device cannot use the second rule as the alarm rule of the computing cluster. The monitoring device can continue to determine the second conditions included in other second rules except the second rule until the initial information meets the second condition, and then use the second rule at this time as the alarm rule of the computing cluster. In addition, when all second rules do not match the initial information, the monitoring device can use the temperature alarm as the alarm state of the computing cluster. The monitoring device can also determine the alarm condition of the computing cluster. When the initial information meets the alarm condition, the temperature alarm is used as the alarm state of the computing cluster. The alarm condition is pre-set by the monitoring device, and the alarm condition includes the limiting conditions of the state of each server and the temperature threshold of each sensor. Of course, the monitoring device can also use any existing means to determine the alarm state of the computing cluster, and this specification does not make specific restrictions.
[0084] In this specification, since the cluster alarm model includes several second rules, there may be multiple alarm rules in the computing cluster. Based on this, when the second result included in the alarm rule is used as the alarm state of the computing cluster, the monitoring device can determine the second results included in each alarm rule, divide the alarm rules with the same second result into a group, determine the number of alarm rules included in each group, and use the second result of the alarm rule included in the group with the largest number as the alarm state of the computing cluster.
[0085] S106: According to the alarm state, a temperature alarm is issued for the computing cluster.
[0086] In this specification, the monitoring device can perform a temperature alarm on the computing cluster according to the alarm state. Among them, the alarm state includes one of normal operation and temperature alarm. Specifically, the monitoring device can display the alarm state to the control personnel so that the control personnel can perform a temperature alarm on the computing cluster. Among them, the monitoring device can display the alarm state to the control personnel through text prompts, SMS notifications, etc., and the specific method used to display the alarm state to the control personnel is not specifically limited in this specification. Specifically, taking SMS notification as an example, when the alarm state is a temperature alarm, the monitoring device can send a temperature alarm SMS to the control personnel to prompt the control personnel to perform a temperature alarm on the computing cluster. After receiving the temperature alarm SMS, the control personnel can determine the device in the physical environment where the computing cluster is located that is in a state of temperature alarm, and shut down the device to control the computing cluster. However, when the alarm state is normal operation, the monitoring device can send a normal operation SMS to the control personnel to inform the control personnel that the computing cluster is operating normally.
[0087] It can be seen from the above method that the monitoring device can obtain the hardware temperature of the core chip of each server, input each hardware temperature into the pre-trained server alarm model corresponding to each server, and determine the first state corresponding to each server. Determine the ambient temperature collected by each sensor, and input each first state and each ambient temperature into the pre-trained cluster alarm model to determine the alarm state corresponding to the computing cluster, and issue a temperature alarm to the computing cluster according to the alarm state. Through an interpretable multi-rule server alarm model, the state of the server is automatically determined, and through an interpretable multi-rule cluster alarm model, the alarm state of the computing cluster is automatically determined, thereby automatically monitoring the temperature of the computing cluster to avoid abnormal temperature of the computing cluster to prevent hardware damage or system crash.
[0088] In this specification, the monitoring device can execute the above steps S100 to S106 according to a specified period to issue a temperature alarm to the computing cluster to avoid abnormal temperature of the computing cluster, to avoid damage to the hardware of the computing cluster, and to reduce economic losses.
[0089] In this specification, the second rule also includes at least one of the server range or the sensor range, that is, if the second condition includes the value range of the server state, the second rule includes the server range, and if the second condition includes the temperature range of the sensor, the second rule includes the sensor range. The server range is the range of the location of at least one server included in the second condition of the second rule, and the sensor range is the range of the location of at least one sensor included in the second condition of the second rule. The monitoring device can construct a three-dimensional space according to the physical environment where the computing cluster is located, and each server included in the computing cluster has a corresponding position in the three-dimensional space, that is, a three-dimensional coordinate. Therefore, the server range can be determined by the three-dimensional coordinates of at least one server included in the second condition of the second rule, and the server range can be represented by (X up, Y up, Z up, X down, Y down, Z down), wherein the values of X up, Y up and Z up are the maximum value of the X coordinate, the minimum value of the Y coordinate and the maximum value of the Z coordinate in the three-dimensional coordinates of all servers involved in the second condition, and the values of X down, Y down and Z down are the minimum value of the X coordinate, the maximum value of the Y coordinate and the minimum value of the Z coordinate in the three-dimensional coordinates of all servers involved in the second condition. Similarly, sensors also have corresponding positions in three-dimensional space, namely three-dimensional coordinates, and the sensor range can also be determined by the three-dimensional coordinates of at least one sensor included in the second condition of the second rule. The specific process is similar to the process of determining the server range, so it will not be repeated here.
[0090] Based on this, the above alarm state also includes an alarm area, which can be determined according to the alarm rule. If the alarm rule only includes the server range, the alarm area is the area within the server range in the three-dimensional space. If the alarm rule only includes the sensor range, the alarm area is the area within the sensor range in the three-dimensional space. Of course, if the alarm rule includes the server range and the sensor range, the alarm area is the area within the server range and the area within the sensor range in the three-dimensional space.
[0091] In this specification, in order to better display the alarm status to the control personnel, the monitoring device can display the alarm status to the control personnel in a pre-constructed three-dimensional space, so that the control personnel can intuitively see which areas of the physical environment where the computing cluster is located have abnormal temperature phenomena, which helps the control personnel to shut down the equipment in time to avoid hardware damage. Based on this, the monitoring device can display the alarm status to the control personnel in the pre-constructed three-dimensional visualization model of the computing cluster. Specifically, the monitoring device can determine the alarm area included in the alarm status, and determine the three-dimensional model corresponding to the equipment in the alarm area in the pre-constructed three-dimensional visualization model of the computing cluster, and use it as the target model. When the alarm status is a temperature alarm, the target model is set to the first color. When the alarm status is normal operation, the target model is set to the second color. Among them, the three-dimensional visualization model is pre-constructed by the monitoring device according to the physical environment where the computing cluster is located, and the physical environment where the computing cluster is located includes at least several servers and devices with sensors deployed. Each device has a corresponding three-dimensional model. The first color and the second color can be any pre-set colors, and the first color is different from the second color. The first color is used to represent the temperature alarm, and the second color is used to represent the normal operation. For example, Figure 2 As shown, Figure 2 is a schematic diagram of a three-dimensional visualization model provided in this specification. Figure 2 Region A in the figure is the area included in the 3D visualization model, which includes servers 1 to 8 and devices 1 to 3. Assuming that the alarm area is region B, servers 1 to 3 and device 4 in region B are the target models. When the alarm state is a temperature alarm, the target model is set to the first color, and when the alarm state is normal operation, the target model is set to the second color. Assuming that the alarm state is a temperature alarm and the first color is black, servers 1 to 3 and device 4 in region B are set to black.
[0092] When the three-dimensional visualization model of the physical environment where the computing cluster is located is pre-built, the monitoring device can first build a three-dimensional space corresponding to the physical environment where the computing cluster is located, and the three-dimensional space is described by three variables X, Y, and Z. Then, the structured light scanning technology is used to scan the physical environment where the computing cluster is located through multi-angle scanning to obtain point cloud data corresponding to the physical environment where the computing cluster is located. The point cloud data is processed using pre-stored professional software to obtain point cloud data corresponding to all devices included in the physical environment where the computing cluster is located, and three-dimensional models of all devices are constructed based on the point cloud data of all devices. Based on the point cloud data, the center coordinates corresponding to all devices are determined, that is, (x, y, z). Based on the center coordinates corresponding to all devices, the three-dimensional models of all devices are deployed in the three-dimensional space to obtain a three-dimensional visualization model to visualize the physical environment where the computing cluster is located. The physical environment where the computing cluster is located includes several servers and several devices where sensors are deployed. Each device has a corresponding central coordinate. For example, assuming that the computing cluster includes N servers, and S air conditioners in the physical environment where the computing cluster is located are deployed with sensors, each air conditioner is deployed with one sensor. Therefore, the central coordinates corresponding to the n servers are: {[Server 1: (x=3, y=3, z=2)], [Server 1: (x=10, y=10, z=5)], …, [Server N: (x=12, y=12, z=7)]}, and the central coordinates corresponding to the S air conditioners are: {[Air Conditioner 1: (x=13, y=13, z=12)], [Air Conditioner 1: (x=20, y=20, z=25)], …, [Air Conditioner S: (x=32, y=32, z=37)]}.
[0093] The above-mentioned professional software includes Autodesk Recap, CloudCompare, MeshLab, etc., which are not specifically limited in this specification. Of course, after obtaining the point cloud data, the point cloud data can also be processed manually, which is not specifically limited in this specification. When constructing the three-dimensional model of all devices based on the point cloud data of all devices, the monitoring equipment can use 3DMax to construct the three-dimensional model of all devices based on the point cloud data of all devices. Of course, any existing software or technology can also be used to construct the three-dimensional model of all devices based on the point cloud data of all devices. This specification does not make specific limitations. When determining the corresponding center coordinates of all devices based on the point cloud data, the corresponding center coordinates of all devices can be determined manually, and a pre-trained recognition model can be used to determine the corresponding center coordinates of all devices based on the point cloud data. Of course, any existing technology can also be used to determine the corresponding center coordinates of all devices. This specification does not make specific limitations.
[0094] In this specification, the monitoring device can construct a host computer visualization program based on the three-dimensional visualization model, and run the host computer visualization program to visualize the three-dimensional visualization model.
[0095] In this specification, each server has a corresponding server alarm model, so when pre-training each server alarm model, such as Figure 3 As shown, Figure 3 A schematic diagram of the training of each server alarm model provided in this specification, Figure 3 The first initial model shown is composed of the first initial rules. Figure 3 The first initial model shown is the server alarm model to be trained. The monitoring device can obtain the temperature of each server in each historical time period as each first sample. For each first sample, determine the corresponding state of the server in the historical time period corresponding to the first sample, and use it as the first initial result. According to each first sample, generate the first initial condition corresponding to the first sample. According to the first initial condition and the first initial result, generate the first initial rule corresponding to the first sample. Determine the first initial model composed of the first initial rules and use it as the server alarm model to be trained corresponding to the server. According to each first sample and each first initial result, train the server alarm model to be trained.
[0096] Among them, the first sample is the hardware temperature of the core chip in the historical time period of the server, that is, the temperature of the GPU. Since the server includes at least one core chip, the first sample includes at least the hardware temperature corresponding to one core chip. The historical time period can be pre-set by the monitoring device, and the length of the historical time period can be 10 minutes. Of course, it can also be any set length, which is not specifically limited in this specification. However, in order to ensure the continuity of the collected first sample on the timeline, each historical time period is a continuous and equal time period. In addition, the length of the historical time period can be set to 30 seconds, 1 minute, 5 minutes, 15 minutes, 20 minutes, etc., which is less than 20 minutes. The hardware temperature of the core chip in a historical time period is a first sample, that is, each first sample is the hardware temperature of the core chip in each historical time period. The number of historical time periods pre-set by the monitoring device is the same as the number of first samples. The number of historical time periods is pre-set by the monitoring device. The number of historical time periods can be 5000, or other values, which are not specifically limited in this specification. The label corresponding to the first sample is the state of the server in the historical time period corresponding to the first sample, and the state includes three states: 0, 1, and 2, namely normal operation, temperature warning, and high temperature. The first sample and the label can be expressed as "first sample: {(GPU0: x), (GPU1: x), ... (GPUn: x): label}", where x represents the temperature value and n represents the number of GPUs. For example, assuming that there are three GPU cards deployed on the server, each first sample includes the hardware temperatures of the three GPUs, and the label corresponding to each first sample is the corresponding status of the server in the historical time period corresponding to each first sample. Assuming that there are four historical time periods in total, the first samples and the labels corresponding to the first samples can be expressed as: first sample 1: {(GPU0: 24), (GPU1: 18), (GPU2: 23): 0}, first sample 2: {(GPU0: 44), (GPU1: 45), (GPU2: 43): 0}, first sample 3: {(GPU0: 44), (GPU1: 45), (GPU2: 96): 2}, and first sample 4: {(GPU0: 94), (GPU1: 95), (GPU2: 98): 1}.
[0097] In order to ensure that the server alarm model can better determine the status of the server, the monitoring device needs to ensure that the number of first samples with a label of 1 (i.e., temperature alarm) in each first sample is sufficient. Therefore, when obtaining the temperature of the server in each historical time period and using it as each first sample, the monitoring device can first obtain the temperature of the server in each historical time period and use it as each original sample, and determine the label corresponding to each original sample, that is, determine the corresponding status of the server in each historical time period and use it as the label corresponding to each original sample. According to the label corresponding to each original sample, each original sample is grouped to obtain each sample group. Then, for each sample group, a specified number of original samples are randomly selected from the sample group and used as the first sample. Among them, the labels include 0, 1, and 2, i.e., normal operation, temperature alarm, and high temperature. The labels of the original samples in the sample group are the same. Since there are three labels, there are also three sample groups, i.e., a sample group with a label of 0, a sample group with a label of 1, and a sample group with a label of 2. Each sample group has a preset designated number, and the designated number of the sample group with label 1 is different from the designated numbers of the other two sample groups (i.e., the sample group with label 1 and the sample group with label 2). The designated number of the sample group with label 1 is greater than the designated numbers of the other two sample groups. The designated numbers of the other two sample groups can be the same or different, and this specification does not make specific restrictions. The designated number of the sample group with label 1 can be 1500, and the sum of the designated numbers of the other two sample groups can be 3500. As for the designated numbers of the other two sample groups, they can be set randomly. Of course, in order to balance the sample distribution of the first sample, the designated number of the sample group with label 2 can be set to 1500, and the designated number of the sample group with label 0 can be set to 2000.
[0098] The first initial result is the label of the first sample, that is, the state corresponding to the server in the historical time period corresponding to the first sample is the label corresponding to the first sample, and the first initial result can be one of 0, 1 and 2, that is, one of normal operation, temperature warning and high temperature. When generating the first initial condition corresponding to the first sample according to each first sample, the monitoring device can group the hardware temperature of the core chip included in each first sample according to the core chip included in the server to obtain each first group. For each first group, a hardware temperature is randomly selected from the first group and used as the first temperature. The sum of the first temperature and the specified temperature is determined and used as the first temperature lower limit, and the difference between the first temperature and the specified temperature is determined and used as the first temperature upper limit. According to the first temperature upper limit and the first temperature lower limit, the first sub-condition of the first group is determined, and each first sub-condition is used as the first initial condition corresponding to the first sample. Among them, each first group includes the same core chip. If the server includes only one core chip, there is only one first group, and if the server includes two or more core chips, there are two or more first groups. The specified temperature is preset by the monitoring device, and the specified temperature can be 0.5. The first initial condition can be expressed as "[{GPU0: [first temperature upper limit, first temperature lower limit]} and {GPU1: [first temperature upper limit, first temperature lower limit]} and ... GPUn: [first temperature upper limit, first temperature lower limit]}]", which includes the temperature range of all core chips of the server. The above first initial rule can be expressed as "{first initial condition: [{GPU0: [first temperature upper limit, first temperature lower limit]} and {GPU1: [first temperature upper limit, first temperature lower limit]} and ... GPUn: [first temperature upper limit, first temperature lower limit]}], first initial result: a}", where a represents the first initial result.
[0099] For example, assuming that there are four first samples and the labels are "first sample 1: {(GPU0: 24), (GPU1: 18), (GPU2: 23): 0}, first sample 2: {(GPU0: 44), (GPU1: 45), (GPU2: 43): 0}, first sample 3: {(GPU0: 44), (GPU1: 45), (GPU2: 96): 2}, and first sample 4: {(GPU0: 94), (GPU1: 95), (GPU2: 98): 1}.", assuming that the first sample is first sample 4, the first initial result is 1. The monitoring device can group the hardware temperatures of the core chips included in the first samples 1 to 4 to obtain first groups, namely, the first groups corresponding to GPU0 to 2 respectively. For each first group, assuming that for the first group corresponding to GPU0, a hardware temperature is randomly selected from the first group and used as the first temperature, assuming that it is 94. Determine the sum of the first temperature and the specified temperature as the first temperature lower limit, i.e., 94.5, and determine the difference between the first temperature and the specified temperature as the first temperature lower limit, i.e., 93.5. According to the first temperature upper limit and the first temperature lower limit, determine the first sub-condition of the first group, i.e., GPU0: [93.5, 94.5]. Similarly, the first sub-conditions of other first groups can also be determined in the above manner, which will not be repeated here. Then, each first sub-condition is used as the first initial condition corresponding to the first sample. Assume that the first initial condition can be [{GPU0: [93.5, 94.5]} and {GPU1: [45.5, 44.5]} and {GPU2: [97.5, 98.5]}]. Then the first initial rule can be {first initial condition: [{GPU0: [93.5, 94.5]} and {GPU1: [45.5, 44.5]} and {GPU2: [97.5, 98.5]}], first initial result: 1}. Similarly, the first initial rules corresponding to other first samples may also be determined in the above manner, which will not be described in detail here.
[0100] In addition, the first initial condition includes the temperature range of at least one core chip of the server. When the first initial condition corresponding to the first sample is generated according to each first sample, the monitoring device can group the hardware temperature of the core chip included in each first sample according to the core chip included in the server to obtain each first group. From each first group, a first group is randomly selected to obtain each target group. For each target group, a hardware temperature is randomly selected from the target group and used as the first temperature. The sum of the first temperature and the specified temperature is determined as the first temperature lower limit, and the difference between the first temperature and the specified temperature is determined as the first temperature lower limit. According to the first temperature upper limit and the first temperature lower limit, the first sub-condition of the target group is determined, and each first sub-condition is used as the first initial condition corresponding to the first sample. Among them, the monitoring device can be randomly selected from each first group, and the number of target groups is greater than or equal to 1 and less than or equal to the number of first groups. As for the specific number of target groups, the monitoring device can be randomly set as long as it is within the range of [1, the number of first groups].
[0101] In the present specification, the number of first initial rules included in the first initial model may be the number of first samples. Of course, the number of first initial rules included in the first initial model may also be preset by the monitoring device. Therefore, when determining the first initial model composed of the first initial rules, when the first number of preset first initial models is not greater than the number of first samples, the monitoring device may randomly select the first number of first initial rules from the first initial rules, and determine the first initial model constructed by the selected first initial rules. However, when the first number is greater than the first initial rules, the monitoring device may continue to generate the first initial rules according to the above process of generating the first initial rules until the number of the first initial rules reaches the first number, at which time, the first initial model composed of the first initial rules is determined.
[0102] In addition, the monitoring device may also determine whether the first quantity is not greater than the quantity of the first samples before generating the first initial rule. Therefore, when obtaining the temperature of the server in each historical time period and using it as each first sample, when the first quantity of the preset first initial model is not greater than the quantity of the first sample, the monitoring device may first obtain the temperature of the server in each historical time period and use it as each original sample, and then randomly select the first quantity of original samples from each original sample and use them as each first sample. However, when the first quantity of the preset first initial model is greater than the quantity of the first sample, the monitoring device may obtain the first quantity of first initial rules in the above-mentioned manner of repeatedly generating the first initial rule, which will not be repeated here.
[0103] In this specification, the first initial rule also includes a first number of covered samples, and the first initial rule is expressed as: {first initial condition: [{GPU0: [first temperature upper limit, first temperature lower limit]} and {GPU1: [first temperature upper limit, first temperature lower limit]} and ...GPUn: [first temperature upper limit, first temperature lower limit]}], first initial result: a, first number of covered samples: b}, wherein b represents the first number of covered samples, and the first number of covered samples can be set to 0. When the server alarm model to be trained is trained according to each first sample and each first initial result, as Figure 4 As shown, Figure 4 This is a schematic diagram of a training process of a server alarm model provided in this specification, which specifically includes the following steps:
[0104] S200: For each first initial rule, determine a first sample among the first samples that matches the first initial rule and use it as a first target sample.
[0105] In the present specification, the monitoring device may determine, for each first initial rule, the first sample that matches the first initial rule among the first samples and use it as the first target sample. Wherein, when determining the first sample that matches the first initial rule among the first samples and using it as the first target sample, the monitoring device may, for each first sample, determine that the first sample matches the first initial rule when the first sample satisfies the first initial condition in the first initial rule, and use the first sample as the first target sample of the first initial rule. When the first sample does not satisfy the first initial condition in the first initial rule, it is determined that the first sample does not match the first initial rule, and the first sample is not used as the first target sample of the first initial rule. The above-mentioned first initial condition includes the temperature range of at least one core chip of the server, and the first sample includes the hardware temperature of all core chips of the server.
[0106] In this specification, the first initial condition includes the temperature range of at least one core chip in the server. When the hardware temperatures of the core chips of the server included in the first sample are all within the temperature range of at least one core chip in the server included in the first initial condition, the first sample satisfies the first initial condition in the first initial rule, and it is determined that the first sample matches the first initial rule. However, when the hardware temperature of any core chip in the first sample is not within the temperature range of the core chip included in the first initial condition, the first sample does not satisfy the first initial condition in the first initial rule, and it is determined that the first sample does not match the first initial rule. If the first initial condition includes the temperature range of all core chips of the server, when the hardware temperatures of all core chips of the server included in the first sample are all within the temperature range of all core chips of the server included in the first initial condition, the first sample satisfies the first initial condition in the first initial rule, and it is determined that the first sample matches the first initial rule. If the first initial condition includes the temperature range of the core chip of the server part, then when the hardware temperature of the core chip of the server part included in the first sample (that is, the core chip corresponding to the temperature range included in the first initial condition) is within the temperature range of the core chip of the server part included in the first initial condition, the first sample satisfies the first initial condition in the first initial rule, and it is determined that the first sample matches the first initial rule.
[0107] S202: Determine whether the label corresponding to the first target sample is the same as the first initial result included in the first initial rule.
[0108] S204: Increase the first coverage sample number of the first initial rule by one.
[0109] S206: Delete the first initial rule from the server alarm model to be trained.
[0110] S208: Sort the first initial rules in the server alarm model to be trained according to the first coverage sample number from high to low to obtain a first sequence, and determine the first target number of first initial rules according to the order of the first sequence as the first target initial rules.
[0111] In this specification, the monitoring device can determine whether the label corresponding to the first target sample is the same as the first initial result included in the first initial rule. If so, execute step S204, and increase the first coverage sample number of the first initial rule by one. If not, execute step S206, and delete the first initial rule from the server alarm model to be trained. According to the first coverage sample number, the first initial rules in the server alarm model to be trained are sorted from high to low to obtain a first sequence, and the first initial rules of the first target number are determined according to the order of the first sequence, and used as the first target initial rules. Among them, the first target number is a numerical value preset by the monitoring device, and the first target number is generally the difference between the number of first initial rules included in the server alarm model minus the preset first deletion number, and the first deletion number is a numerical value preset by the monitoring device. The first initial rules in the above-mentioned server alarm model to be trained are different from the first initial rules in the above-mentioned step S200, and the number of coverage samples of the two is different, or the number is different.
[0112] S210: Randomly select a first target initial rule from the first target initial rules, and adjust the selected first target initial rule to generate a new first target initial rule.
[0113] In this specification, the monitoring device may randomly select a first target initial rule from the first target initial rule, and adjust the selected first target initial rule to generate a new first target initial rule. Wherein, when adjusting the selected first target initial rule to generate a new first target initial rule, the monitoring device may use a first mutation operator to adjust the selected first target initial rule to generate a new first target initial rule. The first mutation operator is used to randomly adjust the first temperature upper limit or the first temperature lower limit of at least any one of the first sub-conditions in the selected first target initial rule. Specifically, the monitoring device may increase or decrease the specified temperature of the first temperature upper limit or the first temperature lower limit of at least any one of the first sub-conditions in the selected first target initial rule to generate a new first target initial rule, and the first initial result in the newly generated first target initial rule is the first initial result in the first target initial rule before adjustment (i.e., the selected first target initial rule), and the first number of coverage samples in the newly generated first target initial rule is set to 0. For example, the selected first target initial rule is: {first initial condition: [{GPU0: [93.5, 94.5]} and {GPU2: [97.5, 98.5]}], first initial result: 1, first number of coverage samples: 8}, then the newly generated first target initial rule is: {first initial condition: [{GPU0: [93.5, 94.5]} and {GPU2: [88.5, 98.5]}], first initial result: 1, first number of coverage samples: 0}.
[0114] If the number of the first target initial rules selected by the monitoring device is greater than 1, the monitoring device may use the first crossover operator to adjust the selected first target initial rules to generate new first target initial rules, and the first crossover operator is used to randomly exchange the first sub-conditions of each first target initial rule, and the first sub-conditions in the newly generated first target initial rules are all temperature ranges of different core chips. Specifically, taking the number of the first target initial rules selected by the monitoring device as 2 as an example, when the temperature range of the same core chip exists in the two selected first target initial rules, the monitoring device may exchange the first sub-conditions of the same core chip in the two selected first target initial rules to generate a new first target initial rule. Of course, the first sub-conditions other than the first sub-conditions of the same core chip in the two selected first target initial rules can also be randomly exchanged, and new first target initial rules can also be generated. It is necessary to explain that at least two new first target initial rules are generated for each exchange of the first sub-conditions. As for the number of exchanges of the first sub-conditions, this specification does not make specific restrictions, and the monitoring device can set it at will. When the temperature range of the same core chip does not exist in the two selected first target initial rules, the monitoring device may randomly exchange the first sub-conditions in the two selected first target initial rules. The first initial result in the newly generated first target initial rule is the first initial result in the first target initial rule before adjustment (i.e., the selected first target initial rule), and the first number of covered samples in the newly generated first target initial rule is set to 0. For example, the two selected first target initial rules are Rule 1 and Rule 2, Rule 1={first initial condition: [{GPU0: [93.5, 94.5]} and {GPU2: [97.5, 98.5]}], first initial result: 1, first number of covered samples: 8}, Rule 2={first initial condition: [{GPU0: [99.6, 100.7]} and {GPU1: [21.5, 47.8]}], first initial result: 1, first number of covered samples: 7}, then the newly generated first target initial rule includes Rule 3 and Rule 4, Rule 3={first initial condition: [{GPU0: [93.5, 94.5]} And {GPU1: [21.5, 47.8]} and {GPU2: [97.5, 98.5]}], first initial result: 1, first number of covered samples: 0}, Rule 4={first initial condition: [{GPU0: [99.6, 100.7]}], first initial result: 1[1], first number of covered samples: 0}.
[0115] S212: Use the newly generated first target initial rule and the first target initial rule before adjustment as the first initial rule of the server alarm model to be trained, and continue to iterate according to the process of step S200 to step S212 until the number of iterations reaches the preset first number, and determine that the training of the server alarm model to be trained is completed.
[0116] In this specification, the monitoring device can use the newly generated first target initial rule and the first target initial rule before adjustment as the first initial rule of the server alarm model to be trained, and continue to iterate according to the process of step S200 to step S212 until the number of iterations reaches the preset first number, and determine that the training of the server alarm model to be trained is completed. The first number is a value preset by the monitoring device.
[0117] In the present specification, since the number of first initial rules included in the server alarm model is the number of first samples or the pre-set first number, the monitoring device can repeatedly execute the above step S210 until the sum of the number of newly generated first target initial rules and the number of first target initial rules before adjustment reaches the number of first samples or the pre-set first number, and then execute the above step S212.
[0118] In this specification, when the number of iterations reaches the preset first number, the monitoring device can determine that the training of the server alarm model to be trained is completed, and the first initial rule included in the trained server alarm model to be trained is used as the first rule, the first initial condition in the first initial rule included in the trained server alarm model to be trained is used as the first condition of the first rule, and the first initial result in the first initial rule included in the trained server alarm model to be trained is used as the first result of the first rule. In addition, the monitoring device can also compress the trained server alarm model to be trained, and use the compressed server alarm model as the final server alarm model. Specifically, the monitoring device can also perform the above steps S200 to S208 based on the trained server alarm model to be trained, so as to compress the trained server alarm model to be trained, and use the compressed server alarm model as the final server alarm model. At this time, the first initial rule in the final server alarm model is the first target initial rule, and the number of the first target initial rules is the first target number. In addition, the first target initial rule is the first rule, the first initial condition in the first target initial rule is the first condition, and the first initial result in the first target initial rule is the first result.
[0119] In this manual, when pre-training the cluster alarm model, Figure 5 As shown, Figure 5This is a schematic diagram of the training of a cluster alarm model provided in this specification. Figure 5 The second initial model shown is composed of the second initial rules. Figure 5The second initial model shown is a cluster alarm model to be trained. The monitoring device can obtain the state of each server in each historical time period as each second sample, and obtain the temperature collected by each sensor in each historical time period as each third sample. According to each second sample and each third sample, each fourth sample is determined. For each fourth sample, the state corresponding to the computing cluster in the historical time period corresponding to the fourth sample is determined and used as the second initial result. According to each fourth sample, a second initial condition corresponding to the fourth sample is generated. According to the second initial condition and the second initial result, a second initial rule corresponding to the fourth sample is generated. A second initial model composed of each second initial rule is determined and used as the cluster alarm model to be trained corresponding to the computing cluster. According to each fourth sample and each second initial result, the cluster alarm model to be trained is trained. Among them, one second sample corresponds to one historical time period, and the second sample includes the state of each server in the historical time period. Each historical time period can be the same as each historical time period when the first sample is obtained, and it will not be repeated here. One third sample corresponds to one historical time period, and the third sample includes the temperature (i.e., ambient temperature) of each sensor in the historical time period. When determining each fourth sample based on each second sample and each third sample, the server may use the second sample corresponding to the historical time period and the third sample corresponding to the historical time period as the fourth sample for each historical time period. One fourth sample corresponds to one historical time period, and one fourth sample is composed of one second sample and one third sample. The label corresponding to the fourth sample is the state corresponding to the computing cluster during the historical time corresponding to the fourth sample, that is, the second initial result, and the state includes 0 and 1, that is, normal operation and temperature alarm. The fourth sample and the label can be expressed as "fourth sample: {(server 1: state), (server 2: state), ... (server N: state), (sensor 1: temperature), (sensor 2: temperature), ... (sensor S: temperature): label}" where S is the number of sensors.For example, the computing cluster includes 3 servers, namely servers 0~2, and 2 sensors, namely sensors 0~1. Then each fourth sample is composed of the status of the 3 servers and the temperature of the 2 sensors. Assuming that there are four historical time periods in total, each fourth sample and the label corresponding to each fourth sample can be expressed as: Fourth sample 1: {(server 0: 0), (server 1: 2), (server 2: 2), (sensor 0: 23), (sensor 1: 36): 0}, fourth sample 2: {(server 0: 2), (server 1: 2), (server 2: 2), (sensor 0: 26), (sensor 1: 23): 0}, fourth sample 3: {(server 0: 1), (server 1: 2), (server 2: 1), (sensor 0: 66), (sensor 1: 86): 1}, fourth sample 4: {(server 0: 2), (server 1: 1), (server 2: 1), (sensor 0: 58), (sensor 1: 74): 1}.
[0120] In order to ensure that the cluster alarm model can better determine the state of the computing cluster, the monitoring device can ensure that the number of fourth samples with a label of 1 (i.e., temperature alarm) in each fourth sample is sufficient. Therefore, when determining each fourth sample based on each second sample and each third sample, the monitoring device can first determine each initial sample based on each second sample and each third sample, and determine the label corresponding to each initial sample, that is, determine the state corresponding to the computing cluster in each historical time period, and use it as the label corresponding to each initial sample. According to the label corresponding to each initial sample, each initial sample is grouped to obtain each initial sample group. Then, for each initial sample group, a preset number of initial samples are randomly selected from the initial sample group and used as the fourth sample. Among them, the label includes 0 and 1, that is, normal operation and temperature alarm. The preset number is preset by the monitoring device, and each initial sample group has a preset number. The labels of the initial samples in the initial sample group are the same. Since there are two labels, there are also two initial sample groups, namely, the initial sample group with a label of 0 and the initial sample group with a label of 1. The above process of determining the fourth sample is similar to the above process of determining the first sample, and will not be repeated here.
[0121] The second initial result is the label of the fourth sample. When the second initial condition corresponding to each fourth sample is generated according to each fourth sample, the monitoring device can group the state of the server included in each fourth sample and the temperature of the sensor according to each server and each sensor included in the computing cluster to obtain each second group. For each second group, it is determined whether the data included in the two groups is the temperature of the sensor. If so, a temperature is randomly selected from the second group and used as the second temperature. The sum of the second temperature and the specified temperature is determined and used as the lower limit of the second temperature, and the difference between the second temperature and the specified temperature is determined and used as the upper limit of the second temperature. According to the second temperature upper limit and the second temperature lower limit, the second sub-condition of the second group is determined. If not, a state is randomly selected from the state of the server included in the second group and used as the second state. Determine other states except the second state in the preset state, and randomly select at least one state from other states, determine a set consisting of the selected state and the second state, and use the set as the second sub-condition of the second group. Afterwards, each second sub-condition is used as the second initial condition corresponding to the fourth sample. Among them, the second group includes two types of data, one is the status of the server, and the other is the temperature of the sensor. When the data included in the second group is the status of the server, the data included in the second group is the status of the same server in each historical time period. When the data included in the second group is the temperature of the sensor, the data included in the second group is the temperature of the same sensor in each historical time period. The preset states are 0, 1 and 2, namely normal operation, temperature warning and high temperature. The second initial condition can be expressed as "[{Server 1: [Set]} and [{Server 2: [Set]} and ... [{Server N: [Set]} and {Sensor 1: [Second temperature upper limit, second temperature lower limit]} and {Sensor 1: [Second temperature upper limit, second temperature lower limit]} and ... {Sensor S: [Second temperature upper limit, second temperature lower limit]}]", and the second initial condition includes the set of states of all servers and the temperature range of all sensors. The second initial rule can be expressed as “{second initial condition: [{Server 1: [set]} and [{Server 2: [set]} and…[{Server N: [set]} and {Sensor 1: [second temperature upper limit, second temperature lower limit]} and {Sensor 1: [second temperature upper limit, second temperature lower limit]} and…{Sensor S: [second temperature upper limit, second temperature lower limit]}], second initial result: c}” where c represents the second initial result.
[0122] For example, assuming that the four fourth samples and labels can be expressed as: "Fourth sample 1: {(server 0:0), (server 1:2), (server 2:2), (sensor 0:23), (sensor 1:36): 0}, fourth sample 2: {(server 0:2), (server 1:2), (server 2:2), (sensor 0:26), (sensor 1:23): 0}, fourth sample 3: {(server 0:1), (server 1:2), (server 2:1), (sensor 0:66), (sensor 1:86): 1}, fourth sample 4: {(server 0:2), (server 1:1), (server 2:1), (sensor 0:58), (sensor 1:74): 1}", assuming that the fourth sample is the fourth sample 3, the second initial result is 1. The monitoring device can group the status of the server and the temperature of the sensor included in the fourth samples 1-4 to obtain the second groups, namely, the second groups corresponding to servers 0-2 and the second groups corresponding to sensors 0-1. For each second group, assuming that the second group corresponding to sensor 0 is a determination as to whether the data included in the two groups is the temperature of the sensor, if it is, then a temperature is randomly selected from the second group and used as the second temperature, assuming it is 58. Determine the sum of the second temperature and the specified temperature and use it as the lower limit of the second temperature, namely, 58.5, and determine the difference between the second temperature and the specified temperature and use it as the upper limit of the second temperature, namely, 57.5. According to the second temperature upper limit and the second temperature lower limit, determine the second sub-condition of the second group, namely, sensor 0: [57.5, 58.5].
[0123] Assume again that for the second group corresponding to server 0, it is determined whether the data included in the second group is the temperature of the sensor. Obviously not, a state is randomly selected from the states of the servers included in the second group and used as the second state, assuming it is 1. Determine the other states in the preset state except the second state, that is, 0 and 2, and randomly select at least one state from the other states. Assume that 0 is selected, determine the set consisting of the selected state and the second state, and use the set as the second sub-condition of the second group, that is, server 0: [0, 1]. Similarly, the second sub-conditions of other second groups can also be determined in the above manner, which will not be repeated here. Afterwards, each second sub-condition is used as the first initial condition corresponding to the fourth sample. Assume that the second initial condition can be [{server 0: [0, 1]} and [{server 1: [1, 2]} and [{server 2: [0, 1, 2]} and {sensor 0: [57.5, 58.5]} and {sensor 1: [85.5, 86.5]}]. Then the second initial rule can be {second initial condition: [{server 0: [0, 1]} and [{server 1: [1, 2]} and [{server 2: [0, 1, 2]} and {sensor 0: [57.5, 58.5]} and {sensor 1: [85.5, 86.5]}], second initial result: 1}. Similarly, the second initial rules corresponding to other fourth samples can also be determined in the above manner, which will not be repeated here.
[0124] In addition, the second initial condition may include only a set of states of at least one server, or only a temperature range of at least one sensor, or a set of states of at least one server and a temperature range of at least one sensor. Therefore, when generating the second initial condition corresponding to the fourth sample according to each fourth sample, the monitoring device may group the states of the servers and the temperatures of the sensors included in each fourth sample according to the servers and sensors included in the computing cluster to obtain each second group. According to the data included in each second group, each second group is divided into a server group and a sensor group. If a second initial condition including only a set of states of at least one server or a second initial condition including only a temperature range of at least one sensor is to be generated, the monitoring device may generate the second initial condition corresponding to the fourth sample based on the server group or the sensor group. The specific process is similar to the process of generating the first initial condition including the temperature range of at least one core chip of the server, and will not be repeated here. Similarly, if a second initial condition including a set of states of at least one server and a temperature range of at least one sensor is to be generated, the monitoring device may generate a third initial condition corresponding to the fourth sample based on the server group, and at the same time, generate a fourth initial condition corresponding to the fourth sample based on the sensor group, and then use the third initial condition and the fourth initial condition as the second initial condition corresponding to the fourth sample.
[0125] In this specification, the number of second initial rules included in the second initial model may be the number of the fourth samples. Of course, the number of second initial rules included in the second initial model may also be preset by the monitoring device. The above process of determining the second initial model composed of the second initial rules is similar to the above process of determining the first initial model composed of the first initial rules, and will not be repeated here.
[0126] In this specification, the second initial rule also includes a second number of coverage samples, and the second initial rule is expressed as {second initial condition: [{Server 1: [set]} and [{Server 2: [set]} and…[{Server N: [set]} and {Sensor 1: [second temperature upper limit, second temperature lower limit]} and {Sensor 1: [second temperature upper limit, second temperature lower limit]} and…{Sensor S: [second temperature upper limit, second temperature lower limit]}], second initial result: c, second number of coverage samples: d}, where d represents the second number of coverage samples, which can also be set to 0.
[0127] When the cluster alarm model to be trained is trained according to each fourth sample and each second initial result, as shown in FIG. Figure 6 As shown, Figure 6 This is a schematic diagram of a training process of a cluster alarm model provided in this specification, which specifically includes the following steps:
[0128] S300: For each second initial rule, determine a fourth sample among the fourth samples that matches the second initial rule and use it as a second target sample.
[0129] In this specification, the monitoring device may determine, for each second initial rule, the fourth sample that matches the second initial rule among the fourth samples and use it as the second target sample. Wherein, when determining the fourth sample that matches the second initial rule among the fourth samples and uses it as the second target sample, the monitoring device may, for each fourth sample, determine that the fourth sample matches the second initial rule when the fourth sample satisfies the second initial condition in the second initial rule, and use the fourth sample as the second target sample of the second initial rule. When the fourth sample does not satisfy the second initial condition in the second initial rule, it is determined that the fourth sample does not match the second initial rule, and the fourth sample is not used as the second target sample of the second initial rule.
[0130] When the second initial condition includes only a set of states of at least one server, or only a temperature range of at least one sensor, then when the fourth sample includes the state of the server or the temperature of the sensor in the set of states of the server included in the second initial condition or in the temperature range of the sensor, the fourth sample matches the second initial condition. When any server state or sensor temperature in the fourth sample is not in the set of states of the server included in the second initial condition or in the temperature range of the sensor, the fourth sample does not match the second initial condition. Similarly, when the second initial condition includes a set of states of at least one server and a temperature range of at least one sensor, when the fourth sample includes the state of the server and the temperature of the sensor in the set of states of the server included in the second initial condition and in the temperature range of the sensor, the fourth sample matches the second initial condition. When any server state or sensor temperature in the fourth sample is not in the set of states of the server included in the second initial condition or in the temperature range of the sensor, the fourth sample does not match the second initial condition.
[0131] S302: Determine whether the label corresponding to the first target sample is the same as the second initial result included in the second initial rule.
[0132] S304: Increase the second coverage sample number of the second initial rule by one.
[0133] S306: Delete the second initial rule from the server alarm model to be trained.
[0134] S308: Sort the second initial rules in the cluster alarm model to be trained according to the second coverage sample number from high to low to obtain a second sequence, and determine the second target number of second initial rules according to the order of the second sequence as the second target initial rules.
[0135] In this specification, the monitoring device can determine whether the label corresponding to the second target sample is the same as the second initial result included in the second initial rule. If so, execute step S304, and increase the second coverage sample number of the second initial rule by one. If not, execute step S306, and delete the second initial rule from the cluster alarm model to be trained. Then, the monitoring device can sort the second initial rules in the cluster alarm model to be trained from high to low according to the second coverage sample number, obtain a second sequence, and determine the second target number of second initial rules according to the order of the second sequence, and use them as the second target initial rules. Among them, the second target number is a value preset by the monitoring device, and the second target number is generally the difference between the number of second initial rules included in the cluster alarm model minus the preset second deletion number, and the second deletion number is a value preset by the monitoring device. The second initial rules in the above-mentioned cluster alarm model to be trained are different from the second initial rules in the above-mentioned step S300, and the number of coverage samples of the two is different, or the number is different.
[0136] S310: Randomly select a second target initial rule from the second target initial rules, and adjust the selected second target initial rule to generate a new second target initial rule.
[0137] In this specification, the monitoring device may randomly select a second target initial rule from the second target initial rule, and adjust the selected second target initial rule to generate a new second target initial rule. Wherein, when adjusting the selected second target initial rule to generate a new second target initial rule, the monitoring device may use a second mutation operator to adjust the selected second target initial rule to generate a new second target initial rule. The second mutation operator is used to randomly adjust the second temperature upper limit or the second temperature lower limit of at least any second sub-condition in the selected second target initial rule, or the elements in the set of states of at least any second sub-condition. Specifically, the monitoring device may increase or decrease the specified temperature of the first temperature upper limit or the first temperature lower limit of at least any second sub-condition in the selected second target initial rule, or add or reduce other elements to the set of states of at least any second sub-condition, and the other elements are states other than the elements in the set in the preset state. The second initial result in the newly generated second target initial rule is the second initial result in the second target initial rule before adjustment (i.e., the selected second target initial rule), and the second number of coverage samples in the newly generated second target initial rule is set to 0.
[0138] If the number of second target initial rules selected by the monitoring device is greater than 1, the monitoring device may use a second crossover operator to adjust the selected second target initial rules to generate new second target initial rules. The second crossover operator is used to randomly exchange the second sub-conditions of each second target initial rule, and the second sub-conditions in the newly generated second target initial rules are a collection of states of different servers or temperature ranges of different sensors. The specific process is similar to the above-mentioned process of using the first crossover operator to adjust the selected first target initial rules to generate new first target initial rules, and will not be repeated here. The second initial result in the newly generated second target initial rule is the second initial result in the first target initial rule before adjustment (i.e., the selected first target initial rule), and the second number of coverage samples in the newly generated second target initial rule is set to 0.
[0139] S312: Use the newly generated second target initial rule and the second target initial rule before adjustment as the second initial rule of the cluster alarm model to be trained, and continue to iterate according to the process of steps S300 to S312 until the number of iterations reaches the preset second number, and determine that the training of the cluster alarm model to be trained is completed.
[0140] In this specification, the monitoring device can use the newly generated second target initial rule and the second target initial rule before adjustment as the second initial rule of the cluster alarm model to be trained, and continue to iterate according to the process of step S300 to step S312 until the number of iterations reaches the preset second number, and determine that the training of the cluster alarm model to be trained is completed. The second number is a value preset by the monitoring device.
[0141] In the present specification, since the number of second initial rules included in the cluster alarm model is the number of the fourth samples or the pre-set second number, the monitoring device may repeat the above step S310 until the sum of the number of newly generated second target initial rules and the number of second target initial rules before adjustment reaches the number of the fourth samples or the pre-set second number, and then execute the above step S312.
[0142] In the present specification, when the number of iterations reaches a preset second number, the monitoring device can determine that the training of the cluster alarm model to be trained is completed, and use the second initial rule included in the trained cluster alarm model to be trained as the second rule, use the second initial condition in the second initial rule included in the trained cluster alarm model to be trained as the second condition of the second rule, and use the second initial result in the second initial rule included in the trained cluster alarm model to be trained as the second result of the second rule.
[0143] In addition, the monitoring device can also compress the trained cluster alarm model to be trained, and use the compressed cluster alarm model as the final cluster alarm model. Specifically, the monitoring device can also perform the above steps S300 to S308 based on the trained cluster alarm model to be trained, so as to compress the trained cluster alarm model to be trained, and use the compressed cluster alarm model as the final cluster alarm model. At this time, the second initial rule in the final cluster alarm model is the second target initial rule, and the number of the second target initial rules is the second target number. In addition, the second target initial rule is the second rule, and the second initial condition in the second target initial rule is the second condition, and the second initial result in the second target initial rule is the second result.
[0144] In this specification, the monitoring device may first train each server alarm model, and then train the cluster alarm model based on the trained server alarm model. Of course, the monitoring device may also train each server alarm model and the cluster alarm model at the same time, and this specification does not make specific limitations. For example, first training each server alarm model, and then training the cluster alarm model based on the trained server alarm model. Figure 7 As shown, Figure 7 This is a schematic diagram of a training model provided in this specification. The monitoring device can first train the server alarm model to be trained for each server using each first sample and each first initial result of the server to obtain the server alarm model corresponding to the server. Afterwards, the monitoring device can determine the status of each server in each historical time period based on the server alarm model corresponding to each server, and use it as each second sample. Then obtain each third sample, and determine each fourth sample based on each second sample and each third sample. Then, train the cluster alarm model to be trained based on each fourth sample and each second initial result.
[0145] The above are one or more implementation methods of this specification. Based on the same idea, this specification also provides a corresponding computing cluster temperature alarm device, such as Figure 8 shown.
[0146] Figure 8 A schematic diagram of a computing cluster temperature alarm device provided in this specification includes:
[0147] This specification provides a computing cluster temperature alarm device, which is applied to a computing cluster, wherein the computing cluster includes a plurality of servers; a plurality of sensors are deployed in the physical environment where the computing cluster is located, and the sensors are used to collect the temperature of the physical environment where the computing cluster is located, and the device includes:
[0148] The acquisition module 400 is used to acquire the hardware temperature of the core chip of each server;
[0149] A first determination module 402 is used to input each hardware temperature into a pre-trained server alarm model corresponding to each server to determine a first state corresponding to each server;
[0150] A second determination module 404 is used to determine the ambient temperature collected by each sensor, and input each first state and each ambient temperature into a pre-trained cluster alarm model to determine the alarm state corresponding to the computing cluster;
[0151] The alarm module 406 is configured to issue a temperature alarm to the computing cluster according to the alarm status.
[0152] Optionally, the first determination module 402 is specifically used to, for each server, input the hardware temperature of the server into a pre-trained server alarm model corresponding to the server, so as to determine a first rule that matches the hardware temperature of the server from the first rules included in the server alarm model, and use it as the target rule; the first rule includes at least a first result; and the first result included in the target rule is used as the first state corresponding to the server.
[0153] Optionally, the first rule further includes a first condition;
[0154] The first determination module 402 is specifically configured to, for each first rule, determine a first condition included in the first rule; when the hardware temperature of the server meets the first condition, use the first rule as a target rule for the server.
[0155] Optionally, the second determination module 404 is specifically used to take each first state and each ambient temperature as initial information; input the initial information into a pre-trained cluster alarm model to determine a second rule that matches the initial information from each second rule included in the cluster alarm model, and use it as an alarm rule; the second rule includes at least a second result; and use the second result included in the alarm rule as the alarm state corresponding to the computing cluster.
[0156] Optionally, the second rule further includes a second condition;
[0157] The second determination module 404 is specifically configured to, for each second rule, determine a second condition included in the second rule; when the initial information satisfies the second condition, use the second rule as an alarm rule for the computing cluster.
[0158] Optionally, the device further comprises:
[0159] The first training module 408 is used to obtain, for each server, the temperature of the server in each historical time period and use it as each first sample; for each first sample, determine the corresponding state of the server in the historical time period corresponding to the first sample and use it as the first initial result; based on the first samples, generate the first initial condition corresponding to the first sample; based on the first initial condition and the first initial result, generate the first initial rule corresponding to the first sample; determine the first initial model composed of the first initial rules and use it as the server alarm model to be trained corresponding to the server; and train the server alarm model to be trained based on the first samples and the first initial results.
[0160] Optionally, the device further comprises:
[0161] The second training module 410 is used to obtain the state of each server in each historical time period and use it as each second sample; and to obtain the temperature collected by each sensor in each historical time period and use it as each third sample; determine each fourth sample based on the second samples and the third samples; for each fourth sample, determine the state corresponding to the computing cluster in the historical time period corresponding to the fourth sample and use it as the second initial result; based on each fourth sample, generate the second initial condition corresponding to the fourth sample; based on the second initial condition and the second initial result, generate the second initial rule corresponding to the fourth sample; determine the second initial model composed of the second initial rules and use it as the cluster alarm model to be trained corresponding to the computing cluster; train the cluster alarm model to be trained based on the fourth samples and the second initial results.
[0162] This specification also provides a computer-readable storage medium, which stores a computer program, which can be used to execute the above Figure 1 A computing cluster temperature alarm method is provided.
[0163] This manual also provides Fig. 9 The one shown corresponds to Figure 1 A schematic diagram of the electronic device. Fig. 9 As shown, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 The computing cluster temperature alarm method.
[0164] Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the executor of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0165] In the 1990s, it was very clear whether the improvement of a technology was hardware improvement (for example, improvement of the circuit structure of diodes, transistors, switches, etc.) or software improvement (improvement of the method flow). However, with the development of technology, many improvements of the method flow today can be regarded as direct improvements of the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented with hardware entity modules. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask chip manufacturers to design and make dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one kind of HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0166] The controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, and the memory controller may also be implemented as part of the control logic of the memory. It is also known to those skilled in the art that, in addition to implementing the controller in a purely computer-readable program code manner, the controller may be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, such a controller may be considered as a hardware component, and the devices for implementing various functions included therein may also be considered as structures within the hardware component. Or even, the devices for implementing various functions may be considered as both software modules for implementing the method and structures within the hardware component.
[0167] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0168] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0169] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0170] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0171] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0172] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0173] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0174] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0175] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0176] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0177] It should be understood by those skilled in the art that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0178] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0179] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0180] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.
Claims
1. A computing cluster temperature alarm method, It is characterized in that The method is applied to a computing cluster, the computing cluster includes a plurality of servers; a plurality of sensors are deployed in the physical environment where the computing cluster is located, the sensors are used to collect the temperature of the physical environment where the computing cluster is located, and the method includes: Get the hardware temperature of the core chip of each server; Inputting each hardware temperature into a pre-trained server alarm model corresponding to each server to determine a first state corresponding to each server; the first state includes normal operation, temperature level and temperature alarm; Determine the ambient temperature collected by each sensor, and input each first state and each ambient temperature into a pre-trained cluster alarm model to determine an alarm state corresponding to the computing cluster; According to the alarm status, a temperature alarm is issued for the computing cluster.
2. The method according to claim 1, It is characterized in that Inputting each hardware temperature into a pre-trained server alarm model corresponding to each server to determine a first state corresponding to each server, specifically including: For each server, the hardware temperature of the server is input into a pre-trained server alarm model corresponding to the server, so as to determine a first rule matching the hardware temperature of the server from among the first rules included in the server alarm model, and use the first rule as the target rule; the first rule includes at least a first result; the first result represents the state of the server; The first result included in the target rule is used as the first state corresponding to the server.
3. The method according to claim 2, It is characterized in that The first rule also includes a first condition; From the first rules included in the server alarm model, a first rule matching the hardware temperature of the server is determined and used as a target rule, specifically including: For each first rule, determining a first condition included in the first rule; the first condition includes a temperature range of a core chip of the server; When the hardware temperature of the server meets the first condition, the first rule is used as the target rule of the server.
4. The method according to claim 1, It is characterized in that Inputting each first state and each ambient temperature into a pre-trained cluster alarm model to determine an alarm state corresponding to the computing cluster specifically includes: Taking each first state and each ambient temperature as initial information; Inputting the initial information into a pre-trained cluster alarm model to determine a second rule matching the initial information from each second rule included in the cluster alarm model and use it as an alarm rule; the second rule includes at least a second result; the second result represents the state of the computing cluster; The second result included in the alarm rule is used as the alarm state corresponding to the computing cluster.
5. The method according to claim 4, It is characterized in that The second rule also includes a second condition; From the second rules included in the cluster alarm model, a second rule matching the initial information is determined and used as an alarm rule, specifically including: For each second rule, determining a second condition included in the second rule; the second condition includes a value range of the state of the server and a temperature range of the sensor; When the initial information satisfies the second condition, the second rule is used as an alarm rule for the computing cluster.
6. The method according to claim 1, It is characterized in that Pre-train each server alarm model, including: For each server, obtain the temperature of the server in each historical time period and use it as each first sample; For each first sample, determine a state of the server in a historical time period corresponding to the first sample, and use the state as a first initial result; According to each of the first samples, a first initial condition corresponding to the first sample is generated; the first initial condition includes a temperature range of at least one core chip of the server; Generate a first initial rule corresponding to the first sample according to the first initial condition and the first initial result; Determine a first initial model composed of the first initial rules and use it as a server alarm model to be trained corresponding to the server; The server alarm model to be trained is trained according to the first samples and the first initial results.
7. The method according to claim 1, It is characterized in that Pre-train the cluster alarm model, including: Acquire the state of each server in each historical time period and use it as each second sample; and acquire the temperature collected by each sensor in each historical time period and use it as each third sample; Determine fourth samples according to the second samples and the third samples; For each fourth sample, determine a state corresponding to the computing cluster in a historical time period corresponding to the fourth sample, and use the state as a second initial result; According to each of the fourth samples, a second initial condition corresponding to the fourth sample is generated; the second initial condition includes a set of states of all servers and a temperature range of all sensors; Generate a second initial rule corresponding to the fourth sample according to the second initial condition and the second initial result; Determine a second initial model composed of the second initial rules and use it as a cluster alarm model to be trained corresponding to the computing cluster; The cluster alarm model to be trained is trained according to the fourth samples and the second initial results.
8. A computing cluster temperature alarm device, It is characterized in that The device is applied to a computing cluster, the computing cluster includes a plurality of servers; a plurality of sensors are deployed in the physical environment where the computing cluster is located, the sensors are used to collect the temperature of the physical environment where the computing cluster is located, and the device includes: The acquisition module is used to obtain the hardware temperature of the core chip of each server; A first determination module, configured to input each hardware temperature into a pre-trained server alarm model corresponding to each server, and determine a first state corresponding to each server; the first state includes normal operation, temperature level, and temperature alarm; A second determination module is used to determine the ambient temperature collected by each sensor, and input each first state and each ambient temperature into a pre-trained cluster alarm model to determine the alarm state corresponding to the computing cluster; The alarm module is used to issue a temperature alarm to the computing cluster according to the alarm status.
9. A computer-readable storage medium, It is characterized in that The storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of claims 1 to 7 is implemented.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the method described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Monitoring method and device of server
CN104899127A
A method and device for testing an alarm function of a storage cluster and equipment and a storage medium
CN110535945A
Cluster state monitoring method and device
CN112115031A
Method and device for monitoring multi-node distributed cluster, equipment and readable medium
CN113886173A
Monitoring alarm method, system and equipment for server cluster and storage medium
CN114356722A
