Method and device for determining server power failure, storage medium and electronic device

CN116185158BActive Publication Date: 2026-10-27INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310102155.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-10
Publication Date
2026-10-27
Estimated Expiration
2043-02-10

AI Technical Summary

Technical Problem

[0005]本申请实施例提供了一种服务器电源故障的确定方法及装置、存储介质及电子装置,以至少解决相关技术中服务器电源故障的确定效率较低的问题

Benefits of technology

[0017]通过本申请实施例,由于可以根据服务器电源和服务器之间是否连接正常以及服务器电源的运行温度是否超过预设的运行温度,实现了及时准确地确定服务器电源所出现的故障,因此,可以解决服务器电源故障的确定效率较低问题,达到提升服务器电源故障的确定效率的效果。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116185158B_ABST
    Figure CN116185158B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a server power failure determination method and device, a storage medium and an electronic device, wherein the server power failure determination method comprises: obtaining a current connection state between a server power supply and a server; obtaining a current running temperature of the server power supply; determining a target failure of the server power supply according to a relationship between the current connection state and the current running temperature and a preset target running temperature. Through the embodiments of the present application, the problem of low determination efficiency of the server power failure is solved, and the effect of improving the determination efficiency of the server power failure is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computers, and more specifically, to a method and apparatus for determining server power supply failures, a storage medium, and an electronic device. Background Technology

[0002] In the era of cloud computing and big data, data centers, as the infrastructure of IT (Internet Technology), are facing immense pressure from massive amounts of data, diverse information services, and complex data aggregation and interaction. Servers, as the core equipment of data centers, are being used more and more widely. For servers, the stability of the server power supply is crucial.

[0003] In existing technologies, manual methods such as visual inspection and multimeter resistance measurement are often used to check the connection status between the server power supply and the server. If no obvious faults are found, a stress aging test is performed, and once the test passes, the server is delivered to the customer without further testing. This approach has drawbacks in terms of accuracy and timeliness in detecting server power supply faults. For example, poor contact can be difficult to detect during server assembly and debugging, occasionally leading to intermittent power outages. Maintenance personnel often need to spend considerable time and effort to reproduce, analyze, and locate the problem.

[0004] There is still no effective solution to the technical problem of low efficiency in determining server power supply failures in related technologies. Summary of the Invention

[0005] This application provides a method and apparatus for determining server power failure, a storage medium, and an electronic device, to at least solve the problem of low efficiency in determining server power failure in related technologies.

[0006] According to one embodiment of this application, a method for determining server power supply failure is provided, comprising: obtaining the current connection status between the server power supply and the server; obtaining the current operating temperature of the server power supply; and determining a target failure of the server power supply based on the current connection status and the relationship between the current operating temperature and a preset target operating temperature.

[0007] In an exemplary embodiment, determining the target fault of the server power supply based on the current connection state and the relationship between the current operating temperature and a preset target operating temperature includes one of the following: If the current connection state indicates that the server power supply and the server are connected normally, and the current operating temperature is greater than a first operating temperature, then the target fault is determined to be that the current operating load is greater than a preset target operating load, wherein the target operating temperature includes the first operating temperature, which is the highest temperature allowed by the server power supply under the target operating load; If the current connection state indicates that the server power supply and the server are connected abnormally, and the current operating temperature is less than or equal to a second operating temperature, then the target fault is determined to be that the server power supply and the server are connected abnormally, wherein the target operating temperature includes the second operating temperature, which is the highest temperature allowed by the server power supply; If the current connection state indicates that the server power supply and the server are connected abnormally, and the current operating temperature is greater than the second operating temperature, then the target fault is determined to be a server power supply failure.

[0008] In an exemplary embodiment, obtaining the current connection state between the server power supply and the server includes: obtaining a first set of voltage level states of a first set of detection points deployed on the positive power input terminal of the server, and obtaining a second set of voltage level states of a second set of detection points deployed on the negative power input terminal of the server, wherein the positive power input terminal and the negative power input terminal of the server are respectively connected to the positive power output terminal and the negative power output terminal of the server power supply; and determining the current connection state based on the first set of voltage level states and the second set of voltage level states.

[0009] In an exemplary embodiment, determining the current connection state based on the first group of level states and the second group of level states includes one of the following: when all level states in the first group of level states are high and all level states in the second group of level states are low, the current connection state is determined to be a normal connection; when at least one level state in the first group of level states is low and / or at least one level state in the second group of level states is high, the current connection state is determined to be an abnormal connection.

[0010] In an exemplary embodiment, obtaining the first set of level states of the first set of detection points deployed on the positive power input terminal of the server includes: obtaining the level state of the i-th detection point among N detection points by performing the following steps, wherein the first set of detection points includes the N detection points, N is a positive integer greater than or equal to 1, and i is a positive integer greater than or equal to 1 and less than or equal to N: obtaining the voltage value of the i-th detection point to obtain the i-th voltage value; if the difference between the i-th voltage value and a preset first voltage value is less than or equal to a preset first difference threshold, determining the level state of the i-th detection point as a high-level state; if the difference between the i-th voltage value and the preset first voltage value is greater than the first difference threshold, determining the level state of the i-th detection point as a low-level state.

[0011] In an exemplary embodiment, obtaining the second set of level states of the second set of detection points deployed on the negative power input terminal of the server includes: obtaining the level state of the j-th detection point among M detection points by performing the following steps, wherein the second set of detection points includes the M detection points, M is a positive integer greater than or equal to 1, and j is a positive integer greater than or equal to 1 and less than or equal to M; obtaining the voltage value of the j-th detection point to obtain the j-th voltage value; if the difference between the j-th voltage value and a preset second voltage value is less than or equal to a preset second difference threshold, determining the level state of the j-th detection point as a low level state; if the difference between the j-th voltage value and the second voltage value is greater than the second difference threshold, determining the level state of the j-th detection point as a high level state.

[0012] In one exemplary embodiment, after determining the target fault of the server power supply, the method further includes one of the following: generating an alarm prompt when the target fault is an abnormality of the server power supply and the server connection; adjusting the server to a load less than or equal to the target load when the target fault is that the current operating load of the server is greater than a preset target operating load; and controlling the server to shut down when the target fault is a power supply failure of the server.

[0013] In an exemplary embodiment, after determining the target fault of the server power supply, the method further includes: generating a fault log of the target fault, wherein the fault log records the occurrence time of the target fault, a description of the target fault, the operating temperature of the server power supply, and the connection status between the server power supply and the server.

[0014] According to another embodiment of this application, a device for determining server power supply failure is provided, comprising: a first acquisition module for acquiring the current connection status between the server power supply and the server; a second acquisition module for acquiring the current operating temperature of the server power supply; and a determination module for determining a target failure of the server power supply based on the current connection status and the relationship between the current operating temperature and a preset target operating temperature.

[0015] According to yet another embodiment of this application, a computer-readable storage medium is also provided, wherein a computer program is stored therein, and the computer program is configured to perform the steps in any of the above method embodiments when it is run.

[0016] According to yet another embodiment of this application, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0017] Through the embodiments of this application, since the server power supply fault can be determined in a timely and accurate manner based on whether the connection between the server power supply and the server is normal and whether the operating temperature of the server power supply exceeds the preset operating temperature, the problem of low efficiency in determining server power supply faults can be solved, thereby improving the efficiency of determining server power supply faults. Attached Figure Description

[0018] Figure 1 This is a schematic diagram of a server architecture according to an embodiment of this application;

[0019] Figure 2 This is a schematic diagram of a method for determining server power supply failure according to an embodiment of this application;

[0020] Figure 3 This is a flowchart of a method for determining server power failure according to an embodiment of this application;

[0021] Figure 4 This is a schematic diagram of the connection between a server power supply and a server according to an embodiment of this application. Figure 1 ;

[0022] Figure 5 This is a schematic diagram illustrating the determination of the current connection state according to an embodiment of this application;

[0023] Figure 6 This is a schematic diagram illustrating the determination of a first group of voltage levels according to an embodiment of this application;

[0024] Figure 7This is a schematic diagram illustrating the determination of a second group of voltage levels according to an embodiment of this application;

[0025] Figure 8 This is a schematic diagram of a fault log according to an embodiment of this application;

[0026] Figure 9 This is a schematic diagram of the connection between a server power supply and a server according to an embodiment of this application. Figure 2 ;

[0027] Figure 10 This is a schematic diagram of a power connector deployed on a server according to an embodiment of this application;

[0028] Figure 11 This is a structural block diagram of a server power failure determination device according to an embodiment of this application. Detailed Implementation

[0029] The embodiments of this application will be described in detail below with reference to the accompanying drawings and examples.

[0030] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of the embodiments of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0031] The embodiments of this application can be run in Figure 1 On the network architecture shown, Figure 1 This is a schematic diagram of a server architecture according to an embodiment of this application, such as... Figure 1 As shown, the network architecture includes: server 104, server 106, and server 108. Server 104, server 106, and server 108 may be connected to the same server power supply or different server power supplies, that is, they may be powered by the same server power supply or different server power supplies.

[0032] The method for determining server power failure in this application embodiment can be explained using server 104 as an example, but is not limited to being applicable to this application embodiment. Figure 2 This is a schematic diagram of a method for determining server power supply failure according to an embodiment of this application, as shown below. Figure 2As shown, server power supply 102 is connected to server 104. The positive power input 104-1 and negative power input 104-1 of server 104 are connected to the positive power output 102-1 and negative power output 102-2 of server power supply 102, respectively. This allows, but is not limited to, obtaining the current connection status between server power supply 102 and server 104; obtaining the current operating temperature of server power supply 102; and determining the target fault of server power supply based on the current connection status and the relationship between the current operating temperature and the preset target operating temperature.

[0033] This embodiment provides a method for determining server power failure in each server operating in the above network architecture. Figure 3 This is a flowchart of a method for determining server power failure according to an embodiment of this application, such as... Figure 3 As shown, the process includes the following steps:

[0034] Step S302: Obtain the current connection status between the server power supply and the server;

[0035] Step S304: Obtain the current operating temperature of the server power supply;

[0036] Step S306: Based on the current connection status and the relationship between the current operating temperature and the preset target operating temperature, determine the target fault of the server power supply.

[0037] By following the steps above, the faults in the server power supply can be determined in a timely and accurate manner based on whether the connection between the server power supply and the server is normal and whether the operating temperature of the server power supply exceeds the preset operating temperature. Therefore, the problem of low efficiency in determining server power supply faults can be solved, and the efficiency in determining server power supply faults can be improved.

[0038] The entity performing the above steps can be a server, but is not limited to this.

[0039] The execution order of steps S302 and S304 can be interchanged; that is, step S304 can be executed first, and then step S302 can be executed.

[0040] In the technical solution provided in step S302 above, a server power supply can be connected to, but is not limited to, one or more servers. Figure 4 This is a schematic diagram of the connection between a server power supply and a server according to an embodiment of this application. Figure 1 ,like Figure 4As shown, the explanation can be illustrated using a rack-mount server (i.e., the server mentioned above) as an example. Power connector 1 and power connector 2 are fixed to the back of server 1 and server 2, respectively. Server 1 and server 2 can be connected to the copper busbar (i.e., the server power supply mentioned above) via power connector 1 and power connector 2, respectively. In other words, when power is required for the server, insert the server from the front of the rack and push it into the rack until it reaches the target position to complete the installation. At this point, the power connector fixed to the back of the server is connected to the copper busbar.

[0041] Optionally, in this embodiment, the current connection status between the server power supply and the server may include, but is not limited to, a normal connection or an abnormal connection. If the current connection status between the server power supply and the server is abnormal, it indicates that there may be problems such as misalignment, improper insertion, contact damage, aging of contact materials, loose power connectors, or foreign objects at the connection point. These problems can lead to increased wear between the power connector contacts and the copper busbars, increased impedance, or even open circuits, posing significant risks. This could result in increased server power consumption, reduced lifespan of the power supply unit, and even power outages, overheating and damage to the power connectors and copper busbars, or even a fire.

[0042] Furthermore, issues with the connection between the power connector and the copper busbar are often subtle, especially poor contact, which is difficult to detect during assembly and debugging. Connection problems can lead to intermittent power outages in the server, requiring maintenance personnel to spend considerable time and effort to reproduce, analyze, and locate the issue. The server power failure determination method described in this application allows for real-time acquisition of the connection status between the server power supply and the server, avoiding the need for visual inspection and short-term power-on testing to identify minor contact issues between the copper busbar and the power connector.

[0043] In one exemplary embodiment, the current connection state between the server power supply and the server can be obtained, but is not limited to, by: obtaining a first set of level states of a first set of detection points deployed on the positive power input terminal of the server, and obtaining a second set of level states of a second set of detection points deployed on the negative power input terminal of the server, wherein the positive power input terminal and the negative power input terminal of the server are respectively connected to the positive power output terminal and the negative power output terminal of the server power supply; and determining the current connection state based on the first set of level states and the second set of level states.

[0044] Optionally, in this embodiment, the positive power input of the server may be, but is limited to, the positive power input of the power connector, and the negative power input of the server may be, but is limited to, the negative power input of the power connector. The number of detection points included in the first group of detection points may be, but is not limited to, the same as, or different from, the number of detection points included in the second group of detection points.

[0045] Optionally, in this embodiment, each detection point in the first group of detection points may be deployed on the same side or different sides of the positive power input of the server, and each detection point in the second group of detection points may be deployed on the same side or different sides of the negative power input of the server, etc.

[0046] Optionally, in this embodiment, the method for determining server power failure in this application embodiment may be explained and described using, but is not limited to, the first group of detection points including 2 detection points and the second group of detection points including 3 detection points as an example, and may be applicable to, but is not limited to, this application embodiment. Figure 5 This is a schematic diagram illustrating the determination of the current connection state according to an embodiment of this application, such as... Figure 5 As shown, detection points a and b (i.e., the first set of detection points) are deployed on the positive power input 104-1 of server 104. Detection points c, d, and e (i.e., the second set of detection points) are deployed on the negative power input 104-1 of server 104. The voltage levels of detection points a and b (level state 1 and level state 2, respectively) can be acquired to obtain the first set of voltage levels. The voltage levels of detection points c, d, and e (level state 3, level state 4, and level state 5, respectively) can be acquired to obtain the second set of voltage levels. Based on the first and second sets of voltage levels, the current connection state between the server power supply and the server is determined.

[0047] In one exemplary embodiment, the current connection state is determined based on the first set of level states and the second set of level states, and may include, but is not limited to, one of the following:

[0048] In scenario one, if all levels in the first group of level states are high and all levels in the second group of level states are low, then the current connection status is determined to be normal.

[0049] Optionally, in this embodiment, if all the levels in the first group of level states are high and all the levels in the second group of level states are low, it indicates that the connection between the server power supply and the server is normal. In this case, the power supply contacts are in normal contact with the copper busbar, allowing the server to draw power from the copper busbar to operate.

[0050] Scenario 2: If at least one of the first group of level states is a low level state, and / or at least one of the second group of level states is a high level state, the current connection state is determined to be a connection anomaly.

[0051] Optionally, in this embodiment, during server operation, a minor contact malfunction may cause a server failure. For example, after the server has been running for a period of time, the contact (i.e., the detection point) may overheat and deform, causing it to lose contact with the copper busbar and resulting in a power outage. After the contact cools down, it will automatically return to its original position. For example, at least one level state in the first group of level states may alternate between a low level state and a high level state for a short period of time, and at least one level state in the second group of level states may alternate between a high level state and a low level state for a short period of time.

[0052] In an exemplary embodiment, the level state of the i-th detection point among N detection points can be obtained by performing, but is not limited to, the following steps: The first group of detection points includes the N detection points, where N is a positive integer greater than or equal to 1, and i is a positive integer greater than or equal to 1 and less than or equal to N: obtaining the voltage value of the i-th detection point to obtain the i-th voltage value; if the difference between the i-th voltage value and a preset first voltage value is less than or equal to a preset first difference threshold, determining the level state of the i-th detection point as a high-level state; if the difference between the i-th voltage value and the preset first voltage value is greater than the first difference threshold, determining the level state of the i-th detection point as a low-level state.

[0053] Optionally, in this embodiment, the first voltage value may be, but is not limited to, the rated voltage of the positive power input terminal of the server under normal server operation. Figure 6 This is a schematic diagram illustrating the determination of a first group of voltage levels according to an embodiment of this application, such as... Figure 6 As shown, detection points a and b (i.e., the first set of detection points) are deployed on the positive power input terminal 104-1 of server 104. The voltage values ​​of detection points a and b are obtained to obtain voltage value 1 and voltage value 2. When the difference between voltage value 1 and a preset first voltage value is less than or equal to a preset first difference threshold, the level state of detection point a is determined to be high; when the difference between voltage value 1 and the preset first voltage value is greater than the first difference threshold, the level state of detection point a is determined to be low. When the difference between voltage value 2 and the preset first voltage value is less than or equal to the preset first difference threshold, the level state of detection point b is determined to be high; when the difference between voltage value 2 and the preset first voltage value is greater than the first difference threshold, the level state of detection point b is determined to be low.

[0054] Optionally, in this embodiment, the voltage level of the detection point may change with the server's running time. The voltage level of the i-th detection point among N detection points can be obtained in the following way, but is not limited to: obtaining the voltage value of the i-th detection point at P time points to obtain P voltage values, where P is a positive integer greater than or equal to 1.

[0055] The level state of the i-th detection point at the q-th time point out of P time points can be obtained by performing, but is not limited to, the following steps:

[0056] Obtain the difference between the voltage value at the i-th detection point at the q-th time and the candidate voltage threshold;

[0057] If the difference between the voltage value of the i-th detection point and the first candidate voltage threshold at the q-th time is less than or equal to the third difference threshold, then the voltage level of the i-th detection point at the q-th time is determined to be a high-level state.

[0058] If the difference between the voltage value of the i-th detection point and the first candidate voltage threshold is greater than the third difference threshold at the q-th time, it is determined that the voltage level of the i-th detection point is low at the q-th time.

[0059] In an exemplary embodiment, the level state of the j-th detection point among M detection points can be obtained by performing, but is not limited to, the following steps: M is a positive integer greater than or equal to 1, and j is a positive integer greater than or equal to 1 and less than or equal to M; the voltage value of the j-th detection point is obtained to obtain the j-th voltage value; if the difference between the j-th voltage value and a preset second voltage value is less than or equal to a preset second difference threshold, the level state of the j-th detection point is determined to be a low level state; if the difference between the j-th voltage value and the second voltage value is greater than the second difference threshold, the level state of the j-th detection point is determined to be a high level state.

[0060] Optionally, in this embodiment, the first voltage value may be, but is not limited to, the rated voltage of the positive power input terminal of the server under normal server operation. Figure 7 This is a schematic diagram illustrating the determination of a second group of voltage levels according to an embodiment of this application, such as... Figure 7 As shown, detection points c, d, and e (i.e., the second set of detection points) are deployed on the negative power input terminal 104-2 of server 104. The voltage values ​​of detection points c, d, and e are obtained to obtain voltage values ​​3, 4, and 5.

[0061] If the difference between voltage value 3 and the preset second voltage value is less than or equal to the preset second difference threshold, the level state of detection point c is determined to be low level; if the difference between voltage value 3 and the second voltage value is greater than the second difference threshold, the level state of detection point c is determined to be high level.

[0062] If the difference between voltage value 4 and the preset second voltage value is less than or equal to the preset second difference threshold, the level state of detection point d is determined to be low level; if the difference between voltage value 4 and the second voltage value is greater than the second difference threshold, the level state of detection point d is determined to be high level.

[0063] If the difference between voltage value 5 and the preset second voltage value is less than or equal to the preset second difference threshold, the level state of detection point e is determined to be low level; if the difference between voltage value 5 and the second voltage value is greater than the second difference threshold, the level state of detection point e is determined to be high level.

[0064] Optionally, in this embodiment, the voltage level of the detection point may change with the server's running time. The voltage level of the j-th detection point among the M detection points can be obtained in the following way, but is not limited to: obtaining the voltage value of the j-th detection point at L time points to obtain L voltage values, where L is a positive integer greater than or equal to 1.

[0065] The level state of the j-th detection point at the w-th time point out of L time points can be obtained by performing, but is not limited to, the following steps:

[0066] Obtain the difference between the voltage value at the j-th detection point at the w-th time and the candidate voltage threshold;

[0067] If the difference between the voltage value of the j-th detection point at the w-th time and the second candidate voltage threshold is less than or equal to the fourth difference threshold, then the level state of the j-th detection point at the w-th time is determined to be a low level state.

[0068] If the difference between the voltage value of the j-th detection point and the second candidate voltage threshold is greater than the fourth difference threshold at the w-th time, then the voltage level of the j-th detection point is determined to be high at the w-th time.

[0069] In the technical solution provided in step S304 above, the current operating temperature of the server power supply can be obtained, but is not limited to, through temperature sensors deployed on the negative and positive power input terminals of the server. The number of temperature sensors deployed on the negative and positive power input terminals of the server can be, but is not limited to, the same or different.

[0070] In the technical solution provided in step S306 above, after obtaining the current connection status between the server power supply and the server, and the current operating temperature of the server power supply, it can be determined whether the server power supply has malfunctioned based on the current connection status and current operating temperature. If a malfunction is determined, the target fault of the server power supply can be identified. In this way, accurate and rapid location of server power supply faults is achieved, improving the efficiency of fault identification.

[0071] In one exemplary embodiment, determining the target fault in the server power supply may include, but is not limited to, one of the following:

[0072] Scenario 1: If the current connection status indicates that the server power supply and the server connection are normal, and the current operating temperature is greater than the first operating temperature, the target fault is determined to be that the current operating load is greater than the preset target operating load. The target operating temperature includes the first operating temperature, which is the highest temperature allowed by the server power supply under the target operating load.

[0073] Optionally, in this embodiment, the server may correspond to different preset target operating temperatures under different operating loads. In this way, the relationship between the current operating temperature of the server power supply and the preset target operating temperature can be accurately determined according to the actual load of the server, thereby improving the accuracy of determining the target operating temperature.

[0074] Scenario 2: If the current connection status indicates that the server power supply and the server connection are abnormal, and the current operating temperature is less than or equal to the second operating temperature, the target fault is determined to be that the server power supply and the server connection are abnormal, wherein the target operating temperature includes the second operating temperature, which is the highest temperature allowed for the server power supply to operate.

[0075] Optionally, in this embodiment, if the current connection status indicates an abnormal connection between the server power supply and the server, and the current operating temperature is less than or equal to the second operating temperature, it can indicate an abnormal connection between the server power supply and the server. In other words, there may be connection problems such as incorrect insertion (e.g., misaligned insertion, improper insertion, etc.) or poor contact (e.g., contact damage, aging of contact material, loose connector, foreign objects at the connection point, etc.). These problems not only pose risks during server operation but also increase the difficulty for maintenance personnel to locate the fault.

[0076] Scenario 3: If the current connection status indicates that the server power supply and the server connection are abnormal, and the current operating temperature is greater than the second operating temperature, then the target fault is determined to be a server power supply failure.

[0077] Optionally, in this embodiment, if the current connection status indicates an abnormality in the server power supply and server connection, and the current operating temperature is greater than the second operating temperature, it can indicate that there is an abnormality in the connection between the current server power supply and the server (e.g., misaligned insertion, improper insertion, etc.), and due to the gradual accumulation of heat, the server power supply may suffer from overheating and damage, posing a risk of fire.

[0078] In one exemplary embodiment, after determining the target fault in the server power supply, one of the following processing methods may also be included, but is not limited to:

[0079] Method 1: If the target fault is an abnormality in the server power supply or the server connection, generate an alarm notification.

[0080] Optionally, in this embodiment, if the target fault is abnormal server power supply or server connection, and the server is powered on, an alarm can be generated to remind the server maintenance personnel that the server and server power supply are not properly connected; if the server is not powered on, an alarm can be generated to remind the server maintenance personnel to prevent the server from being powered on.

[0081] Method 2: If the target fault is that the current operating load of the server is greater than the preset target operating load, the server is adjusted to operate at a load less than or equal to the target operating load.

[0082] Optionally, in this embodiment, if the target fault is that the current operating load of the server is greater than the preset target operating load, the operating load of the server can be reduced, but is not limited to, so that the adjusted operating load of the server is less than or equal to the target operating load.

[0083] Method 3: If the target fault is a power supply failure of the server, control the server to shut down.

[0084] Optionally, in this embodiment, if the target fault is a server power supply failure, the server power supply may have overheating or other faults, posing a risk of fire. In such cases, the server can be shut down, but is not limited to, and the data on the server can be stored and saved in a timely manner to avoid data loss.

[0085] In one exemplary embodiment, the target fault may be recorded by, but is not limited to, generating a fault log of the target fault, wherein the fault log records the occurrence time of the target fault, a description of the target fault, the operating temperature of the server power supply, and the connection status between the server power supply and the server.

[0086] Optionally, in this embodiment, by generating and recording a fault log of the target fault, maintenance personnel can refer to the fault log to troubleshoot and repair the fault, thereby improving the efficiency of fault repair.

[0087] Optionally, in this embodiment, the description information of the target fault may include, but is not limited to, the identifier or name of the target fault. Figure 8 This is a schematic diagram of a fault log according to an embodiment of this application, such as... Figure 8 As shown, server power supply 102 is connected to server 104. The positive power input 104-1 and negative power input 104-1 of server 104 are connected to the positive power output 102-1 and negative power output 102-2 of server power supply 102, respectively. This allows, but is not limited to, obtaining the current connection status between server power supply 102 and server 104; obtaining the current operating temperature of server power supply 102; and determining the target fault of the server power supply based on the current connection status and the relationship between the current operating temperature and the preset target operating temperature. After determining the target fault, a fault log for the target fault is generated. The fault log may include, but is not limited to, the time of occurrence of the fault (t1, t2, ..., t...). N Fault description information (connection failure, server power failure, ..., excessive operating load), server power supply at the time of the fault occurrence (t1, t2, ..., t...). N The operating temperature (T1, T2, ..., TN) and the time of failure occurrence (t1, t2, ..., t) N Server power supply and connection status between the server (abnormal, abnormal, ..., normal).

[0088] To better understand the method for determining server power failure in the embodiments of this application, the method for determining server power failure in the embodiments of this application will be explained and described below in conjunction with optional embodiments, which may be applied to the embodiments of this application, but are not limited to.

[0089] Figure 9 This is a schematic diagram of the connection between a server power supply and a server according to an embodiment of this application. Figure 2 ,like Figure 9 As shown, the server connects to the copper busbar (i.e., the server power supply) via a power connector to obtain electrical energy. The front of the power connector plugs into the power supply copper busbar (i.e., the server power supply), with the positive terminal (i.e., the positive output terminal of the server power supply) and the negative terminal (i.e., the negative output terminal of the server power supply) in close contact with the connector contacts to conduct power. The cables at the rear of the power connector connect to the server's internal components, including power cables, over-temperature signal cables, connection status cables, and data communication cables. The power cables provide electrical power to the server; the other signal cables connect to the server management chip (BMC) to collect data from the power connector.

[0090] This explanation and illustration can be based on, but is not limited to, deploying two detection points on the positive terminal of the connector (i.e., the positive power input terminal of the server) and two detection points on the negative terminal of the connector (i.e., the negative power input terminal of the server).

[0091] (1) Connecting status detection

[0092] The system monitors the voltage levels of four detection contacts in real time. When the voltage levels of the two detection contacts corresponding to the positive terminal (i.e., the server's power input positive terminal) are both high, and the voltage levels of the two detection contacts corresponding to the negative terminal (i.e., the server's power input negative terminal) are both low, it is determined that the power connector is properly connected to the copper busbar, indicating a normal connection between the server power supply and the server. In this case, the MCU (Microcontroller Unit) in the power connector outputs a high-level connection signal, signifying that the power supply contacts are making normal contact with the copper busbar, allowing the server to draw power. When any other voltage level is detected at the four detection contacts, it is determined that the power connector is not properly connected to the copper busbar, and the connection signal is output low. The BMC (Baseboard Management Controller) monitors the connection status signal in real time, which can also be obtained through the communication unit. Typically, the server should not be powered on after a connection failure (power-on uses system power, which has higher power consumption; the BMC uses standby power, which has lower power consumption).

[0093] (2) Contact temperature detection

[0094] The computing unit collects the temperature of the power supply contacts on the power connector in real time. When the temperature is normal, it controls the over-temperature signal to output a low level. If the current operating temperature exceeds the set value, it is determined to be an over-temperature condition, and the over-temperature signal is controlled to output a high level.

[0095] The BMC monitors the over-temperature signal status in real time and can also obtain the actual temperature value through the communication unit. Typically, when contact over-temperature occurs, the server should execute low-power mode or shut down.

[0096] (3) Fault alarm prompts

[0097] To facilitate fault identification, a red-green dual-color LED is placed on top of the power connector. When the power connector is functioning normally, the green light remains constantly on. When the server power supply is detected to be overheating, the red alarm light remains constantly on; when a misalignment is detected, the red light flashes.

[0098] (4) Record the running log

[0099] To facilitate operation, maintenance, and repair, an operation log recording function has been added. The MCU has a built-in storage area that records a fault log when any temperature or connection failure is detected. A log entry is also recorded whenever any state changes. The operation log can be read by an external server BMC via the communication unit.

[0100] (5) Communication Unit

[0101] The communication unit is an internal function of the MCU and can be a commonly used low-speed communication interface such as I2C (Inter-Integrated Circuit, two-wire serial bus), CAN (Controller Area Network), or USB (Universal Serial Bus). The MCU and BMC exchange data such as contact temperature, connection status, alarm information, and operation logs according to a customized communication specification.

[0102] Figure 10 This is a schematic diagram of a power connector deployed on a server according to an embodiment of this application, as shown below. Figure 10 As shown, the MCU in the power connector may include, but is not limited to, a power supply unit, a connection detection unit, a computing unit, a storage unit, a communication unit, a temperature detection unit, and an alarm indication unit.

[0103] (1) Power supply unit

[0104] The positive terminal (i.e., the server's power input positive terminal) and the negative terminal (i.e., the server's power input negative terminal) are each designed with a set of metal contacts that make contact with the copper busbar (i.e., the server's power supply). After drawing power from the copper busbar, it supplies power to the server through the power cable at the end of the connector. At the same time, it also supplies power to electronic components such as the MCU inside the power connector.

[0105] (2) Connecting detection unit

[0106] Four detection points are deployed behind the power supply contacts of the power connector. Two detection points are placed in the same vertical direction as the server's positive power input, and two detection points are placed in the same vertical direction as the server's negative power input. When the power connector is properly inserted into the copper busbar, all four detection points will make contact with the copper busbar. If any detection point fails to make contact with the copper busbar, it indicates that the connector is not properly inserted, which may indicate faults such as misalignment, insufficient travel, or poor contact of the copper busbar.

[0107] (3) Calculation unit

[0108] It has a built-in MCU computing unit that connects to various sensors and inspection units, controls alarm status, records operation logs, and exchanges IO (Input Output) data with external devices.

[0109] (4) Storage unit

[0110] The data storage area is used to store operational logs. It can be built into the MCU or a separate Flash chip.

[0111] (5) Communication Unit

[0112] The built-in MCU has an interface for exchanging data with external devices, which can be common low-speed communication interfaces such as I2C, CAN, and USB. The MCU and BMC exchange data such as contact temperature, connection status, alarm information, and operation logs according to a customized communication specification.

[0113] (6) Temperature detection unit

[0114] Holes are drilled on both sidewalls of the power connector to mount temperature sensors, and data cables are connected to the MCU computing unit. The connector's operating temperature is monitored in real time.

[0115] (7) Alarm Indication Unit

[0116] When the power connector is in normal condition, the green light remains on. When the temperature exceeds the limit during testing, the red alarm light remains on; when the connection is not properly inserted, the red light flashes at 4Hz.

[0117] The server power supply failure determination method in this application embodiment identifies connection faults before the server is powered on, eliminating potential fault hazards and improving server reliability. Furthermore, by adding temperature detection circuits and connection detection circuits, and monitoring the operating status in real time, an alarm signal can be quickly issued when an abnormality is detected between the copper busbar and the power connector. This facilitates timely fault detection and handling, reduces the scope of fault impact, and improves server reliability. In addition, fault logs are recorded to assist maintenance personnel in troubleshooting and repair, greatly improving the efficiency of locating server power supply failures.

[0118] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solutions of the embodiments of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0119] This embodiment also provides a device for determining server power failure, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0120] Figure 11 This is a structural block diagram of a server power failure determination device according to an embodiment of this application, such as... Figure 11 As shown, the device includes:

[0121] The first acquisition module 1102 is used to acquire the server power supply and the current connection status between the server;

[0122] The second acquisition module 1104 is used to acquire the current operating temperature of the server power supply;

[0123] The determination module 1106 is used to determine the target fault of the server power supply based on the current connection status and the relationship between the current operating temperature and the preset target operating temperature.

[0124] Through the embodiments of this application, since the server power supply fault can be determined in a timely and accurate manner based on whether the connection between the server power supply and the server is normal and whether the operating temperature of the server power supply exceeds the preset operating temperature, the problem of low efficiency in determining server power supply faults can be solved, thereby improving the efficiency of determining server power supply faults.

[0125] In one exemplary embodiment, the determining module includes one of the following:

[0126] The first determining unit is configured to determine, when the current connection state indicates that the server power supply and the server connection are normal, and the current operating temperature is greater than a first operating temperature, that the target fault is that the current operating load is greater than a preset target operating load, wherein the target operating temperature includes the first operating temperature, and the first operating temperature is the highest temperature that the server power supply is allowed to operate under the target operating load;

[0127] The second determining unit is configured to determine the target fault as server power supply and server connection abnormality when the current connection state indicates that the server power supply and server connection are abnormal, and the current operating temperature is less than or equal to the second operating temperature, wherein the target operating temperature includes the second operating temperature, which is the highest temperature allowed for the server power supply to operate.

[0128] The third determining unit is configured to determine the target fault as a server power supply failure when the current connection status indicates that the server power supply and the server connection are abnormal, and the current operating temperature is greater than the second operating temperature.

[0129] In one exemplary embodiment, the first acquisition module includes:

[0130] The acquisition unit is used to acquire the first set of level states of the first set of detection points deployed on the positive power input terminal of the server, and to acquire the second set of level states of the second set of detection points deployed on the negative power input terminal of the server, wherein the positive power input terminal and the negative power input terminal of the server are respectively connected to the positive power output terminal and the negative power output terminal of the server power supply.

[0131] The fourth determining unit is used to determine the current connection state based on the first group of level states and the second group of level states.

[0132] In one exemplary embodiment, the fourth determining unit is used for one of the following:

[0133] If all levels in the first group of level states are high and all levels in the second group of level states are low, then the current connection status is determined to be normal.

[0134] If at least one level state in the first group of level states is a low level state, and / or at least one level state in the second group of level states is a high level state, the current connection state is determined to be a connection anomaly.

[0135] In an exemplary embodiment, the acquisition unit is configured to acquire the level state of the i-th detection point among N detection points by performing the following steps, wherein the first group of detection points includes the N detection points, N is a positive integer greater than or equal to 1, and i is a positive integer greater than or equal to 1 and less than or equal to N:

[0136] Obtain the voltage value at the i-th detection point to get the i-th voltage value;

[0137] If the difference between the i-th voltage value and the preset first voltage value is less than or equal to the preset first difference threshold, the level state of the i-th detection point is determined to be a high level state.

[0138] If the difference between the i-th voltage value and the preset first voltage value is greater than the first difference threshold, the level state of the i-th detection point is determined to be a low level state.

[0139] In an exemplary embodiment, the acquisition unit is further configured to acquire the level state of the j-th detection point among M detection points by performing the following steps, wherein the second group of detection points includes the M detection points, M is a positive integer greater than or equal to 1, and j is a positive integer greater than or equal to 1 and less than or equal to M:

[0140] Obtain the voltage value at the j-th detection point to get the j-th voltage value;

[0141] If the difference between the j-th voltage value and the preset second voltage value is less than or equal to the preset second difference threshold, the level state of the j-th detection point is determined to be a low level state.

[0142] If the difference between the j-th voltage value and the second voltage value is greater than the second difference threshold, the level state of the j-th detection point is determined to be a high level state.

[0143] In one exemplary embodiment, the device further includes one of the following:

[0144] The first generation module is used to generate an alarm prompt after the target fault of the server power supply is determined to be an abnormality of the server power supply and the server connection.

[0145] The adjustment module is used to adjust the server to operate at a load less than or equal to the target operating load when the target fault is that the current operating load of the server is greater than the preset target operating load;

[0146] The control module is used to control the server to shut down when the target fault is a power supply failure of the server.

[0147] In one exemplary embodiment, the device further includes:

[0148] The second generation module is used to generate a fault log of the target fault after the target fault of the server power supply is determined. The fault log records the occurrence time of the target fault, the description information of the target fault, the operating temperature of the server power supply, and the connection status between the server power supply and the server.

[0149] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.

[0150] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when run.

[0151] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.

[0152] Embodiments of this application also provide an electronic device including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0153] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.

[0154] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.

[0155] Obviously, those skilled in the art should understand that the modules or steps of the embodiments of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the embodiments of this application are not limited to any particular combination of hardware and software.

[0156] The above description is merely a preferred embodiment of this application and is not intended to limit the embodiments of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the principles of the embodiments of this application should be included within the protection scope of the embodiments of this application.

Claims

1. A method for determining server power supply failure, characterized in that, include: Get the server power and the current connection status between the server; Obtain the current operating temperature of the server power supply; Based on the current connection status and the relationship between the current operating temperature and the preset target operating temperature, the target fault of the server power supply is determined; The step of obtaining the current connection status between the server power supply and the server includes: obtaining a first set of voltage level states of a first set of detection points deployed on the positive power input terminal of the server, and obtaining a second set of voltage level states of a second set of detection points deployed on the negative power input terminal of the server, wherein the positive power input terminal and the negative power input terminal of the server are respectively connected to the positive power output terminal and the negative power output terminal of the server power supply; and determining the current connection status based on the first set of voltage level states and the second set of voltage level states. The step of obtaining the first set of voltage levels of the first set of detection points deployed on the positive power input terminal of the server includes: obtaining the voltage level of the i-th detection point among N detection points by performing the following steps, wherein the first set of detection points includes the N detection points, N is a positive integer greater than or equal to 1, and i is a positive integer greater than or equal to 1 and less than or equal to N; obtaining the voltage value of the i-th detection point at P time points respectively, resulting in P voltage values, where P is a positive integer greater than or equal to 1; and obtaining the voltage level of the i-th detection point at the q-th time point among the P time points by performing the following steps, wherein... q is a positive integer greater than or equal to 1 and less than or equal to P: The difference between the voltage value of the i-th detection point at the q-th time and the first candidate voltage threshold is obtained; if the difference between the voltage value of the i-th detection point at the q-th time and the first candidate voltage threshold is less than or equal to the third difference threshold, the voltage level of the i-th detection point at the q-th time is determined to be high; if the difference between the voltage value of the i-th detection point at the q-th time and the first candidate voltage threshold is greater than the third difference threshold, the voltage level of the i-th detection point at the q-th time is determined to be low. The step of determining the target fault of the server power supply based on the current connection status and the relationship between the current operating temperature and the preset target operating temperature includes: when the current connection status indicates that the server power supply and the server are connected normally, and the current operating temperature is greater than a first operating temperature, determining the target fault as the current operating load being greater than a preset target operating load, wherein the target operating temperature includes the first operating temperature, which is the highest temperature allowed by the server power supply under the target operating load; when the current connection status indicates that the server power supply and the server are connected abnormally, and the current operating temperature is less than or equal to a second operating temperature, determining the target fault as the server power supply and the server are connected abnormally, wherein the target operating temperature includes the second operating temperature, which is the highest temperature allowed by the server power supply; and when the current connection status indicates that the server power supply and the server are connected abnormally, and the current operating temperature is greater than the second operating temperature, determining the target fault as a server power supply failure. After determining the target fault of the server power supply, the method further includes: generating an alarm prompt when the target fault is an abnormality in the server power supply and the server connection; adjusting the server to a load less than or equal to the target load when the target fault is that the current operating load of the server is greater than a preset target operating load; and controlling the server to shut down when the target fault is a power supply failure of the server.

2. The method according to claim 1, characterized in that, Determining the current connection state based on the first set of voltage levels and the second set of voltage levels includes one of the following: If all levels in the first group of level states are high and all levels in the second group of level states are low, then the current connection status is determined to be normal. If at least one level state in the first group of level states is a low level state, and / or at least one level state in the second group of level states is a high level state, the current connection state is determined to be a connection anomaly.

3. The method according to claim 2, characterized in that, The step of acquiring the second set of voltage levels at the second set of detection points deployed on the negative power input terminal of the server includes: The following steps are performed to obtain the level state of the j-th detection point among M detection points, wherein the second group of detection points includes the M detection points, M is a positive integer greater than or equal to 1, and j is a positive integer greater than or equal to 1 and less than or equal to M: Obtain the voltage value at the j-th detection point to get the j-th voltage value; If the difference between the j-th voltage value and the preset second voltage value is less than or equal to the preset second difference threshold, the level state of the j-th detection point is determined to be a low level state. If the difference between the j-th voltage value and the second voltage value is greater than the second difference threshold, the level state of the j-th detection point is determined to be a high level state.

4. The method according to any one of claims 1 to 3, characterized in that, After determining the target fault in the server power supply, the method further includes: A fault log for the target fault is generated, wherein the fault log records the occurrence time of the target fault, the description information of the target fault, the operating temperature of the server power supply, and the connection status between the server power supply and the server.

5. A device for determining server power supply failure, characterized in that, include: The first acquisition module is used to acquire the server power supply and the current connection status between the server; The second acquisition module is used to acquire the current operating temperature of the server power supply; The determination module is used to determine the target fault of the server power supply based on the current connection status and the relationship between the current operating temperature and the preset target operating temperature; The determining module includes: a first determining unit, configured to determine, when the current connection state indicates that the server power supply and the server connection are normal, and the current operating temperature is greater than a first operating temperature, that the target fault is that the current operating load is greater than a preset target operating load, wherein the target operating temperature includes the first operating temperature, which is the highest temperature allowed by the server power supply under the target operating load; a second determining unit, configured to determine, when the current connection state indicates that the server power supply and the server connection are abnormal, and the current operating temperature is less than or equal to a second operating temperature, that the target fault is that the server power supply and the server connection are abnormal, wherein the target operating temperature includes the second operating temperature, which is the highest temperature allowed by the server power supply; and a third determining unit, configured to determine, when the current connection state indicates that the server power supply and the server connection are abnormal, and the current operating temperature is greater than the second operating temperature, that the target fault is a server power supply failure. The first acquisition module includes: an acquisition unit, configured to acquire a first set of voltage levels of a first set of detection points deployed on the positive power input terminal of the server, and acquire a second set of voltage levels of a second set of detection points deployed on the negative power input terminal of the server, wherein the positive power input terminal and the negative power input terminal of the server are respectively connected to the positive power output terminal and the negative power output terminal of the server power supply; and a fourth determination unit, configured to determine the current connection state based on the first set of voltage levels and the second set of voltage levels. The acquisition unit is further configured to: acquire the voltage level of the i-th detection point among N detection points by performing the following steps, wherein the first group of detection points includes the N detection points, N is a positive integer greater than or equal to 1, and i is a positive integer greater than or equal to 1 and less than or equal to N; acquire the voltage value of the i-th detection point at P time points respectively, to obtain P voltage values, where P is a positive integer greater than or equal to 1; and acquire the voltage level of the i-th detection point at the q-th time point among the P time points by performing the following steps, wherein q is a positive integer greater than or equal to 1 and less than or equal to N. A positive integer equal to P: Obtain the difference between the voltage value of the i-th detection point at the q-th time and the first candidate voltage threshold; if the difference between the voltage value of the i-th detection point at the q-th time and the first candidate voltage threshold is less than or equal to the third difference threshold, determine that the voltage level of the i-th detection point at the q-th time is high; if the difference between the voltage value of the i-th detection point at the q-th time and the first candidate voltage threshold is greater than the third difference threshold, determine that the voltage level of the i-th detection point at the q-th time is low. The determining device further includes: a first generating module, used to generate an alarm prompt when the target fault is an abnormality in the server power supply and the server connection; an adjusting module, used to adjust the server to a running load less than or equal to the target running load when the target fault is that the current running load of the server is greater than a preset target running load; and a control module, used to control the server to shut down when the target fault is a power supply failure of the server.

6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the method described in any one of claims 1 to 4.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Server monitoring system based on server framework

    CN106708707A

  • Server failure diagnosis method and system, equipment and storage medium

    CN108388489A