Server exception detection method and device, electronic equipment and storage medium
By detecting the impedance of the power supply unit and the motherboard power supply in the server and the impedance data under different power modes, the problem of abnormal contact between the server power cord cannot be detected is solved, real-time monitoring and failure prevention is achieved, extending the server life and improving performance.
Patent Information
- Application Number
- CN202411045494.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-12-03
Smart Images

Figure CN119065878A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of server detection, and in particular to a method, device, electronic device and storage medium for detecting server anomalies. Background Art
[0002] In the current internal structure of the server, a power cable is added between the power distribution board (PDB) and other internal functional modules to connect the PDB and the functional modules. The two power terminals of the power cable should be connected to the PDB and the functional module (such as the mainboard) to transmit power.
[0003] After the server is assembled, when the performance test is performed, there will be contact impedance due to the connection between the power cord and the motherboard connector, and the current flowing through the power cord is extremely large (over 50A). When the contact is abnormal, it is impossible to effectively detect it, causing the server to face safety accidents. For example: when the impedance of the contact point becomes high, heat is collected at the impedance point. When the heat accumulates to a certain extent, it will cause the cable or connector to burn, causing an operational accident. Summary of the invention
[0004] In view of this, the embodiments of the present disclosure provide a method, device, electronic device and storage medium for detecting server abnormalities to solve the problem that when abnormal contact occurs between the server power cord and the motherboard connector, effective detection cannot be performed, causing the server to face safety accidents.
[0005] In a first aspect, an embodiment of the present disclosure provides a method for detecting server anomalies, the method comprising:
[0006] Detecting a first impedance between a first power supply unit and a first mainboard power supply in a target server, wherein the first power supply unit is a power supply unit that is closest to the first mainboard power supply among multiple power supply units in the target server;
[0007] Detecting an impedance set between the first mainboard power supply and the first power supply unit under different power supply modes;
[0008] The first impedance and the impedance set are analyzed to determine whether the target server currently has an abnormality, and if the target server has an abnormality, an alarm operation is performed.
[0009] The disclosed embodiment can monitor the health status of the server system in real time by detecting the impedance between the power supply unit and the mainboard power supply in the target server, as well as the impedance between the mainboard power supply and the power supply unit in different power supply modes. Abnormal impedance changes may indicate power supply problems, short circuits, overloads, or other fault conditions. Secondly, by detecting impedance and analyzing data, the performance trends of the server can be tracked, potential problem patterns can be discovered, and targeted maintenance and optimization can be performed. This helps to reduce the incidence of server failures, extend the life of the server, and improve its overall performance. In addition, by detecting the impedance between the power supply unit and the mainboard power supply in the server in advance, the risk of server failure can be effectively reduced.
[0010] In a second aspect, an embodiment of the present disclosure provides a device for detecting server abnormalities, the device comprising:
[0011] A first detection module, used for detecting a first impedance between a first power supply unit and a first mainboard power supply in the server, wherein the first power supply unit is a power supply unit closest to the first mainboard power supply among multiple power supply units in the server;
[0012] a second detection module, configured to detect a voltage value of the first mainboard power supply in different power supply modes and an impedance set between the first power supply unit, wherein the voltage value of the server in different power supply modes is read by a baseboard management controller;
[0013] The analysis module is used to analyze the first impedance and the impedance set to determine whether the target server currently has an abnormality, and if the target server has an abnormality, perform an alarm operation.
[0014] In a third aspect, an embodiment of the present disclosure provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, computer instructions being stored in the memory, and the processor executing the method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0015] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method of the first aspect or any corresponding implementation manner thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0017] Figure 1 is a connection relationship diagram of various components in a server according to some embodiments of the present disclosure;
[0018] Figure 2 is a flow chart of a method for detecting server anomalies according to some embodiments of the present disclosure;
[0019] Figure 3 is a flow chart of a method for detecting server anomalies according to some embodiments of the present disclosure;
[0020] Figure 4 is a schematic diagram of a first impedance distribution according to some embodiments of the present disclosure;
[0021] Figure 5 is a schematic diagram of a second impedance distribution according to some embodiments of the present disclosure;
[0022] Figure 6 is a structural block diagram of a device for detecting server abnormality according to an embodiment of the present disclosure;
[0023] Figure 7 It is a schematic diagram of the hardware structure of the computer device of the embodiment of the present disclosure. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0025] According to an embodiment of the present disclosure, a method, device, electronic device and storage medium for detecting server anomalies are provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0026] Figure 1A schematic diagram of the connection relationship between various components in the server provided in the embodiment of the present disclosure, such as Figure 1 As shown, the power supply unit 100 (Power Supply Unit, PSU) is connected to the power distribution unit 200 (Power Distribution Board, PDB), and the power distribution unit 200 is connected to the mainboard power supply 300 on the server mainboard through a cable. Among them, the power supply unit 100 includes: a power supply subunit 1001 and a power supply subunit 1002, the output end of the power supply subunit 1001 is connected to the input end of the power supply subunit 1002, and the output end of the power supply subunit 1002 is connected to the output end of the power distribution unit 200. The PSU is the power source of the entire server, and the PDB is responsible for distributing the power provided by the PSU to various subcomponents or circuits. In this case, the PSU provides power to the PDB, and the PDB distributes it to various parts of the server that need power.
[0027] In the embodiment of the present disclosure, the resistance impedance value of the entire link from the output end of the power supply subunit 1002 to the mainboard power input end of the server is calculated, and the server is analyzed whether there is an abnormality according to the resistance impedance value of the link. If there is an abnormality, an alarm operation is performed.
[0028] It should be specifically noted that for the same model of power supply, when the output power is similar, the effects of using resistance impedance and voltage drop are the same. However, considering the differences in power supply models and output power, the accuracy of using resistance impedance is higher than that of using voltage drop. This is because resistance impedance is not affected by changes in the output voltage of the power supply and can more accurately reflect the output characteristics of the power supply. For example, suppose there are two different models of power supplies A and B, and their output voltages are 12V and 15V respectively. If we use the voltage drop method to monitor the output power of the power supply, then when the output power of power supply A is 12W, the voltage drop is 1V; and when the output power of power supply B is 12W, the voltage drop is 0.8V. It can be seen that for the same output power, different models of power supplies will produce different voltage drops, which will affect the accuracy of monitoring. On the contrary, if we use the resistance impedance method to monitor the output power of the power supply, the output power can be calculated by measuring the output current of the power supply and the value of resistance impedance. Since resistance impedance is not affected by changes in the output voltage of the power supply, it can more accurately reflect the output characteristics of the power supply, thereby improving the accuracy of monitoring.
[0029] In this embodiment, a method for detecting server abnormality is provided, which can be used in the above-mentioned mobile terminal. Figure 2 is a flow chart of a method for detecting server anomalies according to an embodiment of the present disclosure, such as Figure 2 As shown, the process includes the following steps:
[0030] Step S101 , detecting a first impedance between a first power supply unit and a first mainboard power supply in a target server, wherein the first power supply unit is a power supply unit that is closest to the first mainboard power supply among multiple power supply units in the target server.
[0031] In the embodiments of the present disclosure, Figure 1 As shown, since the first power supply unit 1002 is directly connected to the mainboard power supply through the power distribution unit, the power supply sub-unit 1002 is used as the first power supply unit, and then the first impedance between the first power supply unit and the first mainboard power supply in the target server is detected. The first impedance is calculated based on the power and current carried by the cable directly between the power distribution unit and the mainboard power supply.
[0032] Specifically, before detecting the first impedance between the first power supply unit and the first mainboard power supply in the target server, the method includes the following steps a1-a3:
[0033] Step a1, detecting the actual current voltage of the electronic fuse in the first mainboard power supply.
[0034] Specifically, since the electronic fuse of the first mainboard power supply has a higher accuracy than V12 and V12standby on the server mainboard, the actual voltage is read on the electronic fuse. Then the resistance impedance is calculated based on the voltage difference between the electronic fuse and the first power supply unit. Among them. The electronic fuse (E-fuse) is an electronic component used to provide overcurrent protection and voltage monitoring. It has high accuracy and can accurately measure the current and voltage passing through it. In this case, by measuring the voltage on the MainE-fuse, a more accurate actual voltage can be obtained.
[0035] Step a2, detecting the first power carried by the cable between the power distribution unit and the first mainboard power supply.
[0036] Specifically, the first power carried by the cable between the power distribution unit and the first mainboard power supply is detected, including: obtaining the first output power of the first power supply unit, and the second output power of the second power supply unit other than the first power supply unit; obtaining the fan power of the fan in the target server and the hard disk backplane power of the hard disk backplane; and calculating the first power based on the first output power, the second output power, the fan power and the hard disk backplane power.
[0037] The calculation formula of the first power is as follows:
[0038] MB_Power=PSU1Power+PSU2Power-FAN_POWER-HDD_POWER.
[0039] In the formula, MB_Power is the first power, PSU01Power is the first output power of the first power supply unit, PSU2Power is the second output power of the second power supply unit, FAN_POWER is the fan power, and HDD_POWER is the hard disk backplane power.
[0040] Step a3: calculating a first current carried by the cable based on the actual voltage and the first power.
[0041] Specifically, the calculation formula of the first current is as follows:
[0042] MB_I=MB_Power / Main_efuse_Vin. In the formula, MB_I is the first current, MB_Power is the first power, and Main_efuse_Vin is the actual voltage.
[0043] It can be understood that E-fuse is usually used for circuit protection. In the scheme of the present disclosure, the main E-fuse is used to measure the voltage on the power line and calculate the resistance impedance based on the voltage difference. By referring to the voltage read on the E-fuse, the power and current carried on the power line cable can be calculated more accurately. Specifically, by adding the output power of PSU1 and PSU2, and then subtracting the fan power and the power of the hard disk backplane, the power (MB_Power) carried by the power line between PDB and the motherboard is obtained. Then, the voltage of the E-fuse (efuse_Vin) is divided by MB_Power to calculate the current (MB_I) carried on the power line.
[0044] In an embodiment of the present disclosure, detecting a first impedance between a first power supply unit and a first mainboard power supply in a target server includes: obtaining an output voltage corresponding to the first power supply unit; calculating a first voltage difference between the output voltage and an actual voltage; and calculating a first impedance between the first power supply unit and the first mainboard power supply based on the first voltage difference and the first current.
[0045] The calculation formula of the first impedance is as follows:
[0046] R_Main_E-fuse=(PSU1_Vout-Main_E-fuse_Vin) / MB_I-0.615 milliohms.
[0047] Wherein, R_Main_E-fuse is the first impedance, PSU1_Vout is the output voltage corresponding to the first power supply unit, Main_E-fuse_Vin is the actual voltage, MB_I is the first current, and 0.615 milliohms is the impedance between the mainboard and the electronic fuse. PSU1_Vout-Main_E-fuse_Vin=first voltage difference.
[0048] Step S102, detecting an impedance set between the first mainboard power supply and the first power supply unit in different power supply modes.
[0049] In the embodiment of the present disclosure, detecting the impedance set between the first mainboard power supply and the first power supply unit in different power supply modes includes the following steps b1-b5:
[0050] Step b1, detecting a first voltage value of the first motherboard power supply in a first power supply mode, and a second voltage value of the first motherboard power supply in a second power supply mode.
[0051] The first power supply mode is V12 mode and the second power supply mode is V12standby mode for illustration. Detect the voltage measurement value of the power supply actually outputted by the first motherboard power supply in V12 mode, i.e., the first voltage value. V12 mode is a power supply mode, where "V12" represents 12 volts. Detect the voltage measurement value of the power supply actually outputted by the first motherboard power supply in V12standby mode, i.e., the second voltage value: V12standby mode is another power supply mode, usually used in standby or low power consumption state.
[0052] It should be noted that in common web servers and application servers, V12 represents a specific power rail or voltage output, which is used to provide 12 volts of power to a certain part of the server. V12standby refers to the V12 voltage output in standby mode. In servers, there are different power modes, such as normal working mode and standby mode. In standby mode, the server will reduce power consumption or enter a low-power state, but it still needs to maintain power to some key circuits, so a separate standby voltage output is required. In addition, for GPU servers, the corresponding power supply modes are 48V and 48Vstandby.
[0053] Step b2, calculating a second voltage difference between the output voltage and the first voltage value, and calculating a third voltage difference between the output voltage and the second voltage value.
[0054] Specifically, a second voltage difference between the output voltage (PSU1_Vout) of the first power supply unit and the first voltage value (V12in) is calculated, and a third voltage difference between the output voltage (PSU1_Vout) of the first power supply unit and the second voltage value (V12_standbyin) is calculated.
[0055] Step b3, calculating the second impedance between the first power supply unit and the first mainboard power supply based on the second voltage difference and the first current.
[0056] Specifically, the calculation formula of the second impedance is as follows:
[0057] R_V12 = (PSU1_Vout - V12in) / MB_I - 0.615 milliohms.
[0058] Wherein, R_V12 is the second impedance, PSU1_Vout is the output voltage of the first power supply unit, V12in is the first voltage value, 0.615 milliohms is the impedance between the motherboard connector and the electronic fuse, and MB_I is the first current.
[0059] Step b4, calculating a third impedance between the first power supply unit and the first mainboard power supply based on the third voltage difference and the first current.
[0060] Specifically, the calculation of the third impedance is shown as follows:
[0061] R_V12_Standby=(PSU1_Vout-V12_Standbyin) / MB_I-0.615 milliohms.
[0062] Wherein, R_V12_Standby is the second impedance, PSU1_Vout is the output voltage of the first power supply unit, V12_Standbyin is the second voltage value, 0.615 milliohms is the impedance between the motherboard connector and the electronic fuse, and MB_I is the first current.
[0063] Step b5: constructing an impedance set based on the second impedance and the third impedance.
[0064] Specifically, by detecting the impedance set between the first mainboard power supply and the first power supply unit in different power supply modes, the impedance characteristics in different power supply modes can be understood, which can help optimize the power management strategy. By analyzing the impedance set, it can be determined whether there is an impedance mismatch or high energy loss in different modes. Subsequent detection of the impedance set can provide information about the health of the power supply system. Abnormal impedance values may indicate a fault or problem, such as a break, short circuit, poor contact, or component aging. By monitoring changes in impedance, potential faults can be discovered in a timely manner, and appropriate measures can be taken to repair or replace them to ensure the reliability and stability of the system.
[0065] Step S103: Analyze the first impedance and the impedance set to determine whether the target server currently has an abnormality. If the target server has an abnormality, perform an alarm operation.
[0066] Specifically, the first impedance and the impedance set are analyzed to determine whether the target server currently has an abnormality. If the target server has an abnormality, an alarm operation is performed, including: comparing the first impedance with the first threshold and comparing each impedance in the impedance set with the second threshold; if the first impedance is higher than the first threshold, and / or any impedance in the impedance set is higher than the second threshold, it is determined that the target server has an abnormality, and an alarm operation is performed.
[0067] First, compare the first impedance with the first threshold. The first threshold is determined based on the impedance between the mainboard power supply and the power supply unit in multiple different servers. If the first impedance is higher than the first threshold, it means that the impedance between the mainboard power supply and the power supply unit of the target server is abnormal, and there may be a problem. Then, compare each impedance in the impedance set with the second threshold. The second threshold is determined by the impedance between the first mainboard power supply and the power supply unit under different power supply modes. If any impedance in the impedance set is higher than the second threshold, it means that the component corresponding to the impedance is abnormal. If the first impedance is higher than the first threshold, or any impedance in the impedance set is higher than the second threshold, it is determined that the target server is abnormal. Once it is determined that the target server is abnormal, the corresponding alarm operation will be performed to remind the administrator or relevant personnel to handle and repair it.
[0068] It should be noted that after the hardware assembly of the server is completed, the server is subjected to a performance test stage to ensure its stability and reliability in actual operation. At this stage, the impedance between the Maine-fuse (which may be some kind of electronic fuse or protection element) and V12 (which may be a certain voltage node) and V12standby (which may be a standby voltage node) is measured. If the measured impedance is greater than this threshold, the device will be intercepted and repaired. The purpose of this interception and repair is to ensure the quality and performance of the server and prevent potential problems or failures from affecting its normal operation. By conducting such testing and screening during the production process, the reliability of the product can be improved and the risk of failure can be reduced.
[0069] The present disclosure can obtain the impedance change of the server in real time by detecting the impedance between the power supply unit and the mainboard power supply in the target server, as well as the impedance between the mainboard power supply and the power supply unit in different power supply modes. Abnormal impedance changes may indicate power supply problems, short circuits, overloads or other fault conditions. Secondly, by detecting impedance and analyzing data, the performance trend of the server can be tracked, potential problem patterns can be discovered, and targeted maintenance and optimization can be performed. This helps to reduce the incidence of server failures, extend the life of the server, and improve its overall performance. In addition, by detecting the impedance between the power supply unit and the mainboard power supply in the server in advance, the risk of server failure can be effectively reduced.
[0070] In the embodiment of the present disclosure, before comparing the first impedance with the first threshold and comparing each impedance in the impedance set with the second threshold, as Figure 3 As shown, the method also includes:
[0071] Step S201, obtaining a first impedance sample between a third power supply unit and a second mainboard power supply in multiple servers, and a set of impedance samples between the first mainboard power supply and the third power supply unit in different power supply modes, wherein the first power supply unit is the power supply unit closest to the second mainboard power supply among the multiple power supply units in the server.
[0072] Specifically, in each server, find the power supply unit PSU closest to the motherboard power supply, and record the power supply unit as the third power supply unit. It can be determined by physical location or power distribution topology. Then calculate the impedance between the power supply unit PSU and the motherboard power interface, and record the impedance as the first impedance sample.
[0073] Then, impedance sample sets of the mainboard power supplies of different servers in different power supply modes are collected, that is, the impedance between the mainboard power supply and the third power supply unit PSU is measured in different power supply modes (for example, different power supply voltages). An impedance sample set is constructed based on the impedance in different power supply modes.
[0074] Step S202: construct a first impedance distribution using the first impedance samples corresponding to each server, and construct a second impedance distribution using the impedance samples in the impedance sample set.
[0075] Specifically, the first impedance samples corresponding to each server are arranged in a certain order or rule, such as according to the number of servers. Then, a statistical method is used to draw a curve of the arranged first impedance samples. This curve is called the first impedance distribution curve. Figure 4 As shown, the horizontal axis represents the number of servers and the vertical axis represents the impedance value.
[0076] All impedance samples in the impedance sample set are collected. The impedance samples included in this set may be samples from different times, different environments, etc. The impedance samples in the impedance sample set are sorted and analyzed. Using statistical methods, the sorted impedance samples are plotted into a second impedance distribution curve, such as Figure 5 As shown, the horizontal axis represents the number of servers and the vertical axis represents the impedance value.
[0077] Step S203: calculating a first threshold based on the first impedance distribution, and calculating a second threshold based on the second impedance distribution.
[0078] Specifically, determine the threshold calculation method: select an appropriate method to calculate the threshold. Common methods include but are not limited to the following: Statistical methods: For example, calculate the mean, median or standard deviation of the curve, and determine the threshold based on these statistics. Methods based on specific points: select a specific point on the curve as the threshold, such as the maximum value, minimum value or specific quantile.
[0079] The disclosed embodiment establishes a first impedance distribution and a second impedance distribution, and calculates the corresponding threshold value. It can help detect faults and abnormal conditions in the power supply process of the server. For example, an impedance value exceeding the threshold may indicate a potential problem, such as poor contact of the power cord, a power failure, or other abnormal conditions. It helps to promptly discover and solve power-related problems and enhance the reliability and stability of the server. By detecting and analyzing impedance information, technicians can take appropriate measures to fix the problem and reduce the risk of system failure.
[0080] In this embodiment, a device for detecting server anomalies is also provided, which is used to implement the above embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0081] This embodiment provides a device for detecting server abnormality. Figure 6 As shown, including:
[0082] A first detection module 601 is used to detect a first impedance between a first power supply unit and a first mainboard power supply in the server, wherein the first power supply unit is a power supply unit that is closest to the first mainboard power supply among multiple power supply units in the server;
[0083] A second detection module 602 is used to detect the voltage value of the first mainboard power supply in different power supply modes and the impedance set between the first power supply unit, wherein the voltage value of the server in different power supply modes is read by the baseboard management controller;
[0084] The analysis module 603 is used to analyze the first impedance and the impedance set to determine whether the target server currently has an abnormality, and if the target server has an abnormality, perform an alarm operation.
[0085] In the embodiment of the present disclosure, the device further includes: a computing module, including:
[0086] A first detection unit, used to detect the actual current voltage of the electronic fuse in the first mainboard power supply;
[0087] A second detection unit, used to detect a first power carried by a cable between the power distribution unit and the first mainboard power supply;
[0088] The calculation unit is used to calculate a first current carried by the cable based on the actual voltage and the first power.
[0089] In the embodiment of the present disclosure, the second detection unit is used to obtain the first output power of the first power supply unit and the second output power of the second power supply unit other than the first power supply unit; obtain the fan power of the fan in the target server and the hard disk backplane power of the hard disk backplane; calculate the first power based on the first output power, the second output power, the fan power and the hard disk backplane power.
[0090] In the embodiment of the present disclosure, the first detection module 601 is used to obtain the output voltage corresponding to the first power supply unit; calculate the first voltage difference between the output voltage and the actual voltage; and calculate the first impedance between the first power supply unit and the first mainboard power supply based on the first voltage difference and the first current.
[0091] In the embodiment of the present disclosure, the second detection module 602 is used to detect the first voltage value of the first mainboard power supply in the first power supply mode, and the second voltage value of the first mainboard power supply in the second power supply mode; calculate the second voltage difference between the output voltage and the first voltage value, and calculate the third voltage difference between the output voltage and the second voltage value; calculate the second impedance between the first power supply unit and the first mainboard power supply based on the second voltage difference and the first current; calculate the third impedance between the first power supply unit and the first mainboard power supply based on the third voltage difference and the first current; and construct an impedance set based on the second impedance and the third impedance.
[0092] In the embodiment of the present disclosure, the analysis module 603 is used to compare the first impedance with the first threshold and to compare each impedance in the impedance set with the second threshold; if the first impedance is higher than the first threshold, and / or any impedance in the impedance set is higher than the second threshold, it is determined that there is an abnormality in the target server and an alarm operation is performed.
[0093] In an embodiment of the present disclosure, the device also includes: a statistical module, which is used to obtain a first impedance sample between a third power supply unit and a second mainboard power supply in multiple servers, and a set of impedance samples between the first mainboard power supply and the third power supply unit under different power supply modes, wherein the first power supply unit is the power supply unit closest to the second mainboard power supply among the multiple power supply units in the server; construct a first impedance distribution using the first impedance samples corresponding to each server, and construct a second impedance distribution using the impedance samples in the impedance sample set; calculate a first threshold based on the first impedance distribution, and calculate a second threshold based on the second impedance distribution.
[0094] The disclosed embodiment establishes a first impedance distribution and a second impedance distribution, and calculates the corresponding threshold value. It can help detect faults and abnormal conditions in the power supply process of the server. For example, an impedance value exceeding the threshold may indicate a potential problem, such as poor contact of the power cord, a power failure, or other abnormal conditions. It helps to promptly discover and solve power-related problems and enhance the reliability and stability of the server. By detecting and analyzing impedance information, technicians can take appropriate measures to fix the problem and reduce the risk of system failure.
[0095] See also Figure 7 , Figure 7 is a schematic diagram of a computer device provided by an optional embodiment of the present disclosure, such as Figure 7 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system).
[0096] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0097] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0098] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of a computer device based on the presentation of a small program landing page, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0099] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0100] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0101] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0102] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for detecting server anomalies, characterized in that: The method comprises: Detecting a first impedance between a first power supply unit and a first mainboard power supply in a target server, wherein the first power supply unit is a power supply unit that is closest to the first mainboard power supply among multiple power supply units in the target server; Detecting an impedance set between the first mainboard power supply and the first power supply unit under different power supply modes; The first impedance and the impedance set are analyzed to determine whether the target server currently has an abnormality, and if the target server has an abnormality, an alarm operation is performed.
2. The method according to claim 1, characterized in that Before detecting a first impedance between a first power supply unit and a first mainboard power supply in a target server, the method includes: Detecting the actual current voltage of the electronic fuse in the first mainboard power supply; Detecting a first power carried by a cable between a power distribution unit and the first mainboard power supply; A first current carried by the cable is calculated based on the actual voltage and the first power.
3. The method according to claim 2, characterized in that The detecting the first power carried by the cable between the power distribution unit and the first mainboard power supply includes: Acquire a first output power of the first power supply unit and a second output power of a second power supply unit other than the first power supply unit; Obtaining the fan power of the fan in the target server and the hard disk backplane power of the hard disk backplane; The first power is calculated based on the first output power, the second output power, the fan power, and the hard disk backplane power.
4. The method according to claim 2, characterized in that: The detecting a first impedance between a first power supply unit and a first mainboard power supply in a target server includes: Obtaining an output voltage corresponding to the first power supply unit; calculating a first voltage difference between the output voltage and the actual voltage; Based on the first voltage difference and the first current, a first impedance between the first power supply unit and the first mainboard power supply is calculated.
5. The method according to claim 4, characterized in that The detecting of the impedance set between the first mainboard power supply and the first power supply unit in different power supply modes includes: Detecting a first voltage value of the first mainboard power supply in a first power supply mode, and a second voltage value of the first mainboard power supply in a second power supply mode; calculating a second voltage difference between the output voltage and the first voltage value, and calculating a third voltage difference between the output voltage and the second voltage value; Calculating a second impedance between the first power supply unit and the first mainboard power supply based on the second voltage difference and the first current; Calculating a third impedance between the first power supply unit and the first mainboard power supply based on the third voltage difference and the first current; The impedance set is constructed based on the second impedance and the third impedance.
6. The method according to claim 1, characterized in that The analyzing the first impedance and the impedance set to determine whether the target server currently has an abnormality, and if the target server has an abnormality, performing an alarm operation, includes: comparing the first impedance to a first threshold and comparing each impedance in the impedance set to a second threshold; If the first impedance is higher than the first threshold, and / or any impedance in the impedance set is higher than the second threshold, it is determined that an abnormality exists in the target server, and an alarm operation is performed.
7. The method according to claim 6, characterized in that Before comparing the first impedance with a first threshold and comparing each impedance in the impedance set with a second threshold, the method further includes: Obtaining a first impedance sample between a third power supply unit and a second mainboard power supply in a plurality of servers, and a set of impedance samples between the first mainboard power supply and the third power supply unit in different power supply modes, wherein the first power supply unit is the power supply unit closest to the second mainboard power supply among the plurality of power supply units in the server; Constructing a first impedance distribution using the first impedance samples corresponding to each server, and constructing a second impedance distribution using the impedance samples in the impedance sample set; The first threshold is calculated based on the first impedance distribution, and the second threshold is calculated based on the second impedance distribution.
8. A server abnormality detection device, characterized in that: The device comprises: A first detection module, used for detecting a first impedance between a first power supply unit and a first mainboard power supply in a target server, wherein the first power supply unit is a power supply unit that is closest to the first mainboard power supply among multiple power supply units in the target server; a second detection module, configured to detect a voltage value of the first mainboard power supply in different power supply modes and an impedance set between the first power supply unit, wherein the voltage value of the server in different power supply modes is read by a baseboard management controller; The analysis module is used to analyze the first impedance and the impedance set to determine whether the target server currently has an abnormality, and if the target server has an abnormality, perform an alarm operation.
9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 7.
Citation Information
Cited By
Power supply detection assembly, monitoring circuit, method, electronic equipment, product and medium
CN119902115A
