Power supply protection method, system and equipment for server and storage medium

By setting up a controller, collector and auxiliary power supply device outside the server to judge and supplement the output current of the server power supply, the server power supply instability and grid fluctuations caused by GPU dynamic current is solved, and the server power supply stability and grid stability are achieved.

CN119620841AActive Publication Date: 2025-03-14INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411718424.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-03-14
Estimated Expiration
2044-11-27

AI Technical Summary

Technical Problem

How to effectively deal with the dynamic current characteristics of the GPU, realize the power supply protection of the server, and ensure the stability of the power grid.

Method used

By setting up a controller, collector and auxiliary power supply device outside the server case, the output current of the server power supply is collected to determine whether the server has stable power supply. If the power supply is not stable, the auxiliary power supply device is controlled to be discharged and powered together with the power supply power supply until the server has stable power supply is stopped.

Benefits of technology

Effectively respond to GPU dynamic current, ensure stable power supply of the server, reduce grid current fluctuations, improve grid stability, and not be restricted by the layout space of the server motherboard.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119620841A_ABST
    Figure CN119620841A_ABST
Patent Text Reader

Abstract

The invention discloses a power supply protection method, system and equipment for a server and a storage medium, and is applied to the technical field of servers, a controller is connected with a collector and an auxiliary power supply device, and the controller, the collector and the auxiliary power supply device are all arranged at a first position outside a server shell. The power supply protection method of the server comprises the following steps: receiving an output current of a power supply of the server collected by a collector; based on the output current, judging whether the server obtains stable power supply or not; if not, the auxiliary power supply device is controlled to be in a discharging state, so that the auxiliary power supply device and the power supply jointly supply power to the server, and after it is determined that the server is stably powered, the auxiliary power supply device is controlled to stop supplying power. By applying the scheme of the invention, the current characteristics of the GPU can be effectively handled, the power supply protection of the server is realized, the stability of a power grid is ensured, and the influence of the layout space of a server mainboard is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of servers, and in particular to a power supply protection method, system, device and storage medium for a server. Background Art

[0002] With the continuous development of technologies such as big data and artificial intelligence, customer needs are becoming more and more diverse and complex. GPUs (Graphics Processing Units) have been widely used, and their performance is constantly improving. The power required is getting larger and larger, which makes their dynamic currents larger and larger, affecting the stable power supply of servers and causing current fluctuations in the power grid. Therefore, the requirements for PSUs (Power Supply Units) in servers are becoming more and more stringent, and it is necessary to ensure the stable power supply of servers and the stability of the power grid.

[0003] Regarding the current characteristics of the GPU, currently, the output current of the PSU is usually adjusted in accordance with the current characteristics of the GPU in the early stage of server development in order to cope with the problem of large dynamic loads of the GPU. For example, according to the design of some PSUs, the maximum dynamic current they provide can reach 1.7 to 1.8 times the rated current of the PSU. If 1.7 to 1.8 times still cannot meet the dynamic current requirements of the GPU, a higher-power PSU will be used to meet the requirements, which has high production and design costs.

[0004] Servers usually include multiple PSUs installed on the motherboard. Some solutions also design circuits on the motherboard so that the circuits can absorb the dynamic current of the GPU to a certain extent, ensuring that the GPU is powered stably while running, without affecting the fluctuations of the power grid. However, due to the limited space on the motherboard, such solutions are easily restricted by the motherboard space and are difficult to implement. For example, the circuit design is forced to be simplified, resulting in failure to achieve the desired effect.

[0005] In summary, how to effectively deal with the current characteristics of the GPU, realize power supply protection of the server, and ensure the stability of the power grid is a technical problem that technical personnel in this field urgently need to solve. Summary of the invention

[0006] The purpose of the present invention is to provide a power supply protection method, system, device and storage medium for a server, so as to effectively cope with the current characteristics of a GPU, realize power supply protection for the server, and ensure the stability of a power grid.

[0007] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0008] In a first aspect, the present invention provides a power supply protection method for a server, which is applied to a controller, wherein the controller is connected to a collector and an auxiliary power supply device respectively, and the controller, the collector and the auxiliary power supply device are all arranged at a first position outside a server casing, and the power supply protection method for the server comprises:

[0009] Receiving the output current of the power supply of the server collected by the collector;

[0010] Based on the output current, determining whether the server is stably powered;

[0011] If not, the auxiliary power supply device is controlled to be in a discharging state so that the auxiliary power supply device and the power supply source jointly supply power to the server, and after determining that the server is stably powered, the auxiliary power supply device is controlled to stop supplying power.

[0012] On the other hand, judging whether the server is stably powered based on the output current includes:

[0013] Determining whether the output current exceeds a preset current threshold;

[0014] If not, determining that the server is stably powered;

[0015] If so, it is determined that the server is not stably powered.

[0016] On the other hand, judging whether the server is stably powered based on the output current includes:

[0017] Based on the output current, determining whether at least M determination conditions are met among N determination conditions used to reflect the power supply status of the server;

[0018] If not, determining that the server is stably powered;

[0019] If yes, it is determined that the server is not stably powered;

[0020] Wherein, M is a positive integer, and N is a positive integer not less than 2.

[0021] On the other hand, the power output end of the power supply is connected to the server and the K load devices respectively to power the server and the K load devices; the power supply end of the auxiliary power supply device is connected to the power output end of the power supply; the output current collected by the collector is the output current at the power output end of the power supply;

[0022] The N determination conditions are divided into N 1 The first-class judgment conditions and N2 The second type of judgment conditions; N 1 and N 2 are all positive integers and N 1 +N 2 =N;

[0023] Based on the output current, judging whether at least M of the N determination conditions used to reflect the power supply status of the server are satisfied includes:

[0024] Based on the output current, determine N 1 Whether all the first-class determination conditions are met;

[0025] If N 1 If all the first-category determination conditions are not satisfied, it is determined that the server is stably powered;

[0026] If N 1 If all the first-class judgment conditions are met, then N 2 Whether at least X of the second-type judgment conditions are met; X is a positive integer and X≤N 2 ;

[0027] If N 2 If at least X of the second-type determination conditions are met, it is determined that the server is not stably powered;

[0028] If N 2 If at least X of the second-type determination conditions are not met, it is determined that the server is stably powered;

[0029] Among them, N 1 The first type of determination conditions include: the output current exceeds a preset current threshold; N 2 The second type of determination condition includes: the power state of the graphics processor of the server meets the preset high power state.

[0030] On the other hand, it also includes:

[0031] After the auxiliary power supply device is controlled to be in a discharging state, if the server still does not obtain stable power supply within a first time period, limiting the power consumption of the server;

[0032] After determining that the server is stably powered, the power consumption restriction of the server is released.

[0033] On the other hand, limiting the power consumption of the server includes:

[0034] The operating frequency of a designated central processing unit and / or a designated graphics processing unit in the server is limited.

[0035] On the other hand, the auxiliary power supply device includes an energy storage unit for storing energy, and a conversion unit connected to the energy storage unit for converting direct current into alternating current; the energy storage unit includes a single capacitor or a plurality of capacitors connected in parallel, and the energy storage unit is connected to the uninterruptible power supply device of the server;

[0036] The power supply protection method of the server also includes:

[0037] When it is detected that the terminal voltage of the energy storage unit is lower than a set charging voltage threshold and the energy storage unit is not in a discharging state, the uninterruptible power supply device of the server is controlled to charge the energy storage unit.

[0038] In a second aspect, the present invention provides a power supply protection device for a server, comprising:

[0039] Memory for storing computer programs;

[0040] The processor is used to execute the computer program to implement the steps of the power supply protection method for the server as described above.

[0041] In a third aspect, the present invention provides a power supply protection system for a server, comprising: a collector, an auxiliary power supply device, and the power supply protection device for the server as described above.

[0042] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the power supply protection method for the server as described above are implemented.

[0043] Applying the technical solution provided by the embodiment of the present invention, considering that due to the dynamic current characteristics of the GPU, when the server cannot obtain stable power supply, it will be reflected in the output current of the power supply of the server, that is, causing current fluctuations on the grid side. Therefore, in the scheme of this application, the controller is connected to the collector and the auxiliary power supply device respectively, and the collector will collect the output current of the power supply of the server and send it to the controller. The controller can judge whether the server is stably powered based on the output current. If it is judged that the server is not stably powered, it may be due to the dynamic current characteristics of the GPU, which causes power grid fluctuations. In this regard, this application considers that at this time, the auxiliary power supply device can be controlled to be in a discharge state, so that the auxiliary power supply device and the power supply jointly supply power to the server, that is, through the discharge of the auxiliary power supply device, the overshoot of the output current of the power supply can be supplemented, thereby ensuring the stability of the harmonics, current, and voltage of the power grid, playing a role in peak shaving and valley filling, and thus helping to ensure that the server is stably powered. After determining that the server is stably powered, the auxiliary power supply device can be controlled to stop supplying power.

[0044] Furthermore, in the present application, considering the limited layout space inside the server, the controller, collector and auxiliary power supply device required by the present application are all arranged at a first position outside the server casing, so as not to be affected by the layout space of the server motherboard.

[0045] In summary, the present application solution can effectively cope with the current characteristics of the GPU, realize power supply protection of the server, ensure the stability of the power grid, and will not be affected by the layout space of the server motherboard. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0047] Figure 1 Implementation flow chart of a power supply protection method for a server provided in a specific embodiment of the present invention

[0048] Figure 2 A schematic diagram of the structure of a power supply protection system for a server provided in a specific embodiment of the present invention;

[0049] Figure 3 A schematic diagram of the structure of a power supply protection system for a server provided in another specific embodiment of the present invention;

[0050] Figure 4 A schematic diagram of the structure of a power supply protection device for a server provided in a specific embodiment of the present invention;

[0051] Figure 5 The present invention is a schematic diagram of the structure of a computer-readable storage medium. DETAILED DESCRIPTION

[0052] The core of the present invention is to provide a power supply protection method, system, device and storage medium for a server, which can effectively cope with the current characteristics of a GPU, realize power supply protection for the server, ensure the stability of the power grid, and will not be affected by the layout space of the server motherboard.

[0053] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0054] Please refer to Figure 1 , Figure 1 This is a flowchart of a power supply protection method for a server provided in a specific embodiment of the present invention. The power supply protection method for the server can be applied to the controller 10. Figure 2 , is a structural diagram of a power supply protection system of a server in the present invention, including a collector 20, an auxiliary power supply device 30 and a power supply protection device, and the power supply protection device can be specifically implemented by a controller 10. The controller 10 is connected to the collector 20 and the auxiliary power supply device 30 respectively, and the controller 10, the collector 20 and the auxiliary power supply device 30 are all arranged at a first position outside the server casing. The power supply protection method of the server can include the following steps:

[0055] Step S101: receiving the output current of the power supply of the server collected by the collector.

[0056] The power supply can provide power for the server. The specific structure can be set and adjusted according to actual needs. For example, in actual applications, the power supply can be implemented by PDU (Power Distribution Unit), which can provide multiple sockets to connect multiple loads at the same time and power each connected load. The power supply can be a DC source that provides DC power or an AC source that provides AC power. The AC source that provides AC power is usually used.

[0057] A server usually has multiple PSUs (Power Supply Units) connected in parallel. Different PSUs can output different voltages to meet the power supply requirements of the corresponding loads in the server. For example, Figure 2 FIG. 4 shows PSU-0 to PSU-n in the server.

[0058] In the present application, the collector 20 collects the output current of the server's power supply, that is, the collector 20 collects the working current of the power supply. There can be many specific collection methods, which can be set according to actual needs. For example, the output current of the power supply can be collected by setting a sampling resistor, and the output current of the power supply can be collected by a non-contact sensor, and so on.

[0059] The collector 20 may send the collected output current of the power supply of the server to the controller 10 .

[0060] Step S102: Based on the output current, determine whether the server is stably powered. If not, execute step S103.

[0061] The present application scheme takes into account that whether the server is receiving stable power supply can be reflected to a certain extent in the output current of the power supply. Therefore, the controller 10 needs to judge whether the server is receiving stable power supply based on the output current of the power supply. Of course, the specific judgment rules can be set and adjusted according to actual needs, as long as it can accurately and effectively judge whether the server is receiving stable power supply.

[0062] Step S103: Control the auxiliary power supply device to be in a discharging state so that the auxiliary power supply device and the power supply source jointly supply power to the server, and after determining that the server is stably powered, control the auxiliary power supply device to stop supplying power.

[0063] If it is determined that the server has received a stable power supply, the controller 10 does not need to perform additional operations. Correspondingly, if it is determined that the server has not received a stable power supply, the controller 10 needs to control the auxiliary power supply device 30 to be in a discharge state, so that the auxiliary power supply device 30 and the power supply can jointly supply power to the server. In other words, at this time, the discharge of the auxiliary power supply device 30 is required to supplement the output current overshoot of the power supply, which is conducive to ensuring the stability of the harmonics, current, and voltage of the power grid, and plays a role in peak shaving and valley filling, which is also conducive to ensuring that the server receives a stable power supply.

[0064] Subsequently, based on the output current of the power supply, after determining that the server is stably powered, the auxiliary power supply device 30 can be controlled to stop supplying power.

[0065] The specific structure of the auxiliary power supply device 30 can be set and adjusted as needed so as to achieve the functional requirements of the present application. For example, a battery and a switch can be used as the auxiliary power supply device 30 of the present application. The controller 10 determines whether the battery will assist the power supply in powering the server by controlling the on and off of the switch.

[0066] In addition, it can be understood that the auxiliary power supply device 30 of the present application should be able to assist the power supply to supply power to the server when the server is not stably powered. Therefore, when the server is stably powered and the auxiliary power supply device 30 stops supplying power, if the power in the auxiliary power supply device 30 is low, the auxiliary power supply device 30 can be charged. For example, the auxiliary power supply device 30 can be charged by AC power at this time.

[0067] In a specific embodiment of the present invention, the auxiliary power supply device 30 includes an energy storage unit for storing energy, and a conversion unit connected to the energy storage unit for converting direct current into alternating current; the energy storage unit includes a single capacitor or a plurality of capacitors connected in parallel, and the energy storage unit is connected to an uninterruptible power supply device of the server;

[0068] Correspondingly, the power supply protection method of the server also includes:

[0069] When it is detected that the terminal voltage of the energy storage unit is lower than the set charging voltage threshold and the energy storage unit is not in a discharging state, the uninterruptible power supply device of the control server charges the energy storage unit.

[0070] This implementation takes into account that there may be many specific implementations of the auxiliary power supply device 30, but in actual applications, when the server is not powered stably, the grid-side current, that is, the output current of the power supply sometimes fluctuates rapidly, which makes it very demanding for the timeliness of the power supply of the auxiliary power supply device 30. Therefore, in this implementation, the energy storage unit in the auxiliary power supply device 30 is based on capacitors, that is, the energy storage unit includes a single capacitor or multiple capacitors in parallel, which are usually large capacitors to store sufficient electrical energy.

[0071] The energy storage unit in this embodiment can provide direct current, and considering that the grid side is usually alternating current, a conversion unit connected to the energy storage unit for converting direct current into alternating current, i.e., a DC-AC conversion unit, is also provided in this embodiment, so that the auxiliary power supply device 30 in this embodiment can output alternating current. Figure 3 The design of this implementation mode is adopted in the embodiment. The auxiliary power supply device 30 includes an energy storage unit and a conversion unit. When the auxiliary power supply device 30 needs to assist the power supply to supply power to the server, the controller 10 can control the energy storage unit, for example, by controlling the relevant switches in the energy storage unit to be turned on, so that the auxiliary power supply device 30 can assist the power supply to supply power to the server. Of course, in some other occasions, the controller 10 can also choose to control the corresponding switches in the conversion unit, so that the auxiliary power supply device 30 switches from the non-discharge state to the discharge state.

[0072] In addition, in this embodiment, the controller 10 will also detect the terminal voltage of the energy storage unit. When it is detected that the terminal voltage of the energy storage unit is lower than the set charging voltage threshold, it means that the energy storage unit currently has insufficient remaining power. When the energy storage unit is not in a discharging state, the energy storage unit can be charged to supplement the energy of the energy storage unit. And in this embodiment, the energy storage unit is specifically connected to the UPS (Uninterruptible Power Supply) of the server, and the uninterruptible power supply of the server is controlled to charge the energy storage unit. This is because the server is usually equipped with an uninterruptible power supply device, and charging the energy storage unit through the uninterruptible power supply device will not bring additional hardware costs.

[0073] When setting the charging voltage threshold, a simple setting method is to directly write a fixed value into the program of the controller 10 .

[0074] Furthermore, in a specific embodiment of the present invention, the charging voltage threshold is a charging voltage threshold determined based on the rated power of the server, and the charging voltage threshold is positively correlated with the rated power of the server. This embodiment takes into account that when the energy storage unit is used to assist the power supply to jointly power the server, it is necessary to use the energy storage unit to supplement the working current overshoot of the power supply, and for the energy storage unit implemented based on a large capacitor, the supplementary capacity will be affected by the remaining power of the energy storage unit. In other words, if the power required by the server increases a lot due to reasons such as a sudden increase in GPU power, since the current power of the energy storage unit is low, even if the energy storage unit is used to assist the power supply to jointly power the server, it may not be possible to achieve a good effect, so that the output current of the power supply may still fluctuate to a certain extent. Therefore, in this embodiment, setting the charging voltage threshold according to the rated power of the server can maintain the power of the energy storage unit in a more appropriate state.

[0075] In addition, there is also a setting method that sets the charging voltage threshold to the terminal voltage when the energy storage unit is fully charged or a value close to it. Such a scheme is not likely to cause the above-mentioned low current power of the energy storage unit, because each time the energy storage unit is used to assist the power supply to jointly power the server, when the energy storage unit is switched to an undischarged state, the energy storage unit will be immediately recharged. However, such a setting method will cause charging and discharging to be too frequent, which is not conducive to ensuring the service life of the energy storage unit. The above implementation method of setting the charging voltage threshold according to the rated power of the server can not only keep the power of the energy storage unit in a more appropriate state, but also not easily cause the situation that the current supplement effect cannot be achieved due to the low power of the energy storage unit, and will not cause the charging and discharging to be too frequent and damage the service life of the energy storage unit. In addition, in some cases, the rated power of the server changes due to business changes and other reasons. Since the charging voltage threshold is set according to the rated power of the server, the charging voltage threshold can be adaptively adjusted according to the rated power after the change to make its value suitable for the current situation, which is very flexible.

[0076] In a specific implementation of the present invention, step S102 may specifically include:

[0077] Determining whether the output current exceeds a preset current threshold;

[0078] If no, then determine that the server is receiving stable power supply;

[0079] If yes, it is determined that the server is not receiving stable power supply.

[0080] This implementation takes into account that, based on the output current, when judging whether the server is stably powered, the simplest and most convenient implementation method is to directly judge whether the output current exceeds the preset current threshold. If it does not exceed the preset current threshold, it can be determined that the server is stably powered. Conversely, if it exceeds the preset current threshold, it can be determined that the server is not stably powered, and it is necessary to use the auxiliary power supply device 30 to assist the power supply to jointly power the server to reduce the current fluctuation on the grid side.

[0081] In a specific implementation of the present invention, step S102 may specifically include:

[0082] Based on the output current, determining whether at least M determination conditions are met among N determination conditions used to reflect the power supply status of the server;

[0083] If no, then determine that the server is receiving stable power supply;

[0084] If yes, it is determined that the server is not receiving stable power supply;

[0085] Wherein, M is a positive integer, and N is a positive integer not less than 2.

[0086] This implementation method takes into account that due to noise interference and other reasons, there may be a situation where the output current exceeds the preset current threshold in a very short time and then immediately returns to normal. If it is directly determined that the server is not stably powered, the auxiliary power supply device 30 is used to assist the power supply to jointly power the server to reduce the current fluctuation on the grid side, which will increase the number of charge and discharge times of the auxiliary power supply device 30, which is not conducive to ensuring the service life of the auxiliary power supply device 30. In addition, in some occasions, when the output current of the power supply fluctuates for a short time, since the PSU and other devices in the server have a certain ability to ensure the stability of voltage and current, that is, the short-term current fluctuation on the grid side may not affect the load in the server every time. In this regard, this implementation method takes into account that N judgment conditions can be set to reflect the power supply status of the server, and N is a positive integer not less than 2. If at least M judgment conditions are met among the N judgment conditions, it will be determined that the server is not stably powered, which is conducive to reducing the probability of false triggering and ensuring the service life of the auxiliary power supply device 30. M is a positive integer, which is usually set to a value greater than or equal to 2. Of course, in specific situations, the specific value of M, the specific number and content of the N judgment conditions can be set and adjusted as needed, so as to conveniently and accurately determine whether the server is currently receiving stable power supply.

[0087] In a specific embodiment of the present invention, the power output end of the power supply is connected to the server and the K load devices respectively to power the server and the K load devices; the power supply end of the auxiliary power supply device 30 is connected to the power output end of the power supply; the output current collected by the collector 20 is the output current at the power output end of the power supply;

[0088] N judgment conditions are divided into N 1 The first-class judgment conditions and N 2 The second type of judgment conditions; N 1 and N 2 are all positive integers and N 1 +N 2 =N;

[0089] Based on the output current, it is determined whether at least M determination conditions are met among N determination conditions used to reflect the power supply status of the server, including:

[0090] Based on the output current, determine N 1 Whether all the first-class determination conditions are met;

[0091] If N 1 If all the first-category judgment conditions are not met, it is determined that the server is stably powered;

[0092] If N 1 If all the first-class judgment conditions are met, then N 2 Whether at least X of the second-type judgment conditions are met; X is a positive integer and X≤N 2 ;

[0093] If N 2 If at least X of the second-category judgment conditions are met, it is determined that the server is not receiving stable power supply;

[0094] If N 2 If at least X of the second-type judgment conditions are not met, it is determined that the server is stably powered;

[0095] Among them, N 1 The first type of judgment conditions include: the output current exceeds the preset current threshold; N 2 The second type of determination condition includes: the power state of the graphics processor of the server meets the preset high power state.

[0096] This implementation takes into account that N determination conditions are set to reflect the power supply status of the server. Although different determination conditions can directly or indirectly reflect the power supply status of the server, the importance of different determination conditions may be different. That is, if the server does not receive stable power supply, some determination conditions are likely to be met, then these determination conditions are more important and will be classified as the first type of determination conditions. Correspondingly, if the server does not receive stable power supply, some determination conditions are only sometimes met but the probability of being met is not particularly high, then these determination conditions will be classified as the second type of determination conditions.

[0097] In this implementation, in order to accurately and effectively determine whether the server is currently receiving stable power supply, it is necessary to determine N 1 Are all the first-class judgment conditions met? If N 1 If one or more of the first-type determination conditions are not met, it will be directly determined that the server obtains stable power supply to reduce the probability of false triggering and ensure the service life of the auxiliary power supply device 30.

[0098] Only when N is determined 1 After all the first-class judgment conditions are met, N 2 Whether at least X of the second-class judgment conditions are met. 2 At least X of the second-type judgment conditions are met, then it is determined that the server is not stably powered, otherwise it is determined that the server is stably powered.

[0099] In addition, in this implementation, it is very important to consider that the output current of the power supply exceeds the preset current threshold, especially for the implementation of the power supply for multiple loads at the same time, when the server is not stably powered, the output current of the power supply usually exceeds the preset current threshold. 1 The first type of judgment conditions at least need to include: the output current exceeds the preset current threshold. In other implementations, other more important reference standards can be added to the first type of judgment conditions based on actual experience, such as N 1 The first type of determination condition also needs to include: the duration for which the output current exceeds the preset current threshold is longer than the minimum duration.

[0100] In addition, this implementation method takes into account that the server is not stably powered, which is often caused by the dynamic current of the GPU. 2The second type of determination condition may include: the power state of the server's graphics processor meets the preset high power state. This second type of determination condition is an indirect reflection of whether the server is effectively powered by stable power. In other implementations, other reference standards can be added to the second type of determination condition based on actual experience.

[0101] It should also be noted that this implementation method takes into account that in actual applications, the power supply can not only supply power to a single server, but also supply power to other load devices other than the server. Figure 3 In this implementation, the power output end of the power supply is connected to the server and K load devices respectively, so as to support the power supply to the server and K load devices. Since the auxiliary power supply device 30 needs to be able to assist the power supply, it can be understood that in this implementation, the power supply end of the auxiliary power supply device 30 can be specifically connected to the power output end of the power supply. Similarly, the output current collected by the collector 20 is the output current at the power output end of the power supply. Figure 3 The specific device type of the load device shown in the implementation manner may be a server, or other types of load devices other than a server, which does not affect the implementation of the present invention.

[0102] In a specific embodiment of the present invention, it may also include:

[0103] After the auxiliary power supply device 30 is controlled to be in a discharging state, if the server still does not obtain stable power supply within the duration of the first time period, power consumption of the server is limited;

[0104] After ensuring that the server is powered stably, remove the power consumption restriction on the server.

[0105] This implementation further takes into account that in a few cases, due to a large sudden increase in server power, the controller 10 may cause the server to still be in a state of not receiving stable power supply after controlling the auxiliary power supply device 30 to be in a discharging state, and the output current of the power supply still exceeds the preset current threshold. At this time, this implementation takes into account that if the server does not receive stable power supply during the first duration, the power consumption of the server can be limited to ensure the reliability of the server operation and avoid the occurrence of failures. Accordingly, after determining that the server is stably powered, the power consumption limit of the server can be released.

[0106] When limiting the power consumption of a server, there may be a variety of specific implementation methods. For example, in one scenario, considering that the CPU and GPU are the main power-demanding components, the operating frequency of a specified central processing unit and / or a specified graphics processing unit in the server may be limited to achieve power consumption limitation of the server.

[0107] Applying the technical solution provided by the embodiment of the present invention, considering that due to the dynamic current characteristics of the GPU, when the server cannot obtain stable power supply, it will be reflected in the output current of the power supply of the server, that is, causing current fluctuations on the grid side. Therefore, in the scheme of the present application, the controller 10 is connected to the collector 20 and the auxiliary power supply device 30 respectively, and the collector 20 will collect the output current of the power supply of the server and send it to the controller 10, and the controller 10 can judge whether the server is stably powered based on the output current. If it is judged that the server is not stably powered, it may be due to the dynamic current characteristics of the GPU, which causes power grid fluctuations. In this regard, the present application considers that at this time, the auxiliary power supply device 30 can be controlled to be in a discharge state, so that the auxiliary power supply device 30 and the power supply jointly supply power to the server, that is, through the discharge of the auxiliary power supply device 30, the overshoot of the output current of the power supply can be supplemented, thereby ensuring the stability of the harmonics, current, and voltage of the power grid, playing a role in peak shaving and valley filling, and thus helping to ensure that the server is stably powered. After determining that the server is stably powered, the auxiliary power supply device 30 can be controlled to stop supplying power.

[0108] Furthermore, in the present application, considering the limited layout space inside the server, the controller 10, collector 20 and auxiliary power supply device 30 required by the present application are all arranged at a first position outside the server casing, so as not to be affected by the layout space of the server motherboard.

[0109] In summary, the present application solution can effectively cope with the current characteristics of the GPU, realize power supply protection of the server, ensure the stability of the power grid, and will not be affected by the layout space of the server motherboard.

[0110] Corresponding to the above method embodiment, the embodiment of the present invention also provides a power supply protection device for a server, see Figure 4 As shown, the device may include:

[0111] Memory 401, used for storing computer programs;

[0112] The processor 402 is used to execute a computer program to implement the steps of the power supply protection method for a server in any of the above embodiments.

[0113] The embodiments of the present invention further provide a power supply protection system for a server, a computer-readable storage medium, and a computer program product, which can be referred to in correspondence with the above.

[0114] See also Figure 2The power supply protection system of the server may include: a collector 20, an auxiliary power supply device 30 and the above-mentioned power supply protection equipment of the server, and the power supply protection equipment of the server may be specifically implemented by a controller 10.

[0115] The computer program product includes a computer program / instruction, and when the computer program / instruction is executed by a processor, the steps of the power supply protection method for a server in any of the above embodiments are implemented.

[0116] See also Figure 5 The computer readable storage medium 50 stores a computer program 51, and when the computer program 51 is executed by the processor, the steps of the power supply protection method for the server in any of the above embodiments are implemented. The computer readable storage medium 50 mentioned here includes RAM (Random Access Memory), memory, ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), register, hard disk, removable disk, or any other form of storage medium known in the technical field.

[0117] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0118] Professionals may further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention, and the description of the above embodiments is only used to help understand the technical solution and its core idea of ​​the present invention. It should be pointed out that for ordinary technicians in the technical field, without departing from the principle of the present invention, the present invention can also be improved and modified in a number of ways, and these improvements and modifications also fall within the scope of protection of the present invention.

Claims

1. A power supply protection method for a server, characterized in that: Applied to a controller, the controller is connected to a collector and an auxiliary power supply device respectively, and the controller, the collector and the auxiliary power supply device are arranged at a first position outside a server casing, and the power supply protection method of the server includes: Receiving the output current of the power supply of the server collected by the collector; Based on the output current, determining whether the server is stably powered; If not, the auxiliary power supply device is controlled to be in a discharging state so that the auxiliary power supply device and the power supply source jointly supply power to the server, and after determining that the server is stably powered, the auxiliary power supply device is controlled to stop supplying power.

2. The power supply protection method for a server according to claim 1, characterized in that: Based on the output current, determining whether the server is stably powered includes: Determining whether the output current exceeds a preset current threshold; If not, determining that the server is stably powered; If so, it is determined that the server is not stably powered.

3. The power supply protection method for a server according to claim 1, characterized in that: Based on the output current, determining whether the server is stably powered includes: Based on the output current, determining whether at least M determination conditions are met among N determination conditions used to reflect the power supply status of the server; If not, determining that the server is stably powered; If yes, it is determined that the server is not stably powered; Wherein, M is a positive integer, and N is a positive integer not less than 2.

4. The power supply protection method for a server according to claim 3, characterized in that: The power output end of the power supply is connected to the server and the K load devices respectively to supply power to the server and the K load devices; the power supply end of the auxiliary power supply device is connected to the power output end of the power supply; The output current collected by the collector is the output current at the power output end of the power supply; The N determination conditions are divided into N1 first-category determination conditions and N2 second-category determination conditions; N1 and N2 are both positive integers and N1+N2=N; Based on the output current, judging whether at least M of the N determination conditions used to reflect the power supply status of the server are satisfied includes: Based on the output current, determining whether N1 first-category determination conditions are all met; If N1 first-category determination conditions are not all met, it is determined that the server is stably powered; If all N1 first-category judgment conditions are met, then determine whether at least X of the N2 second-category judgment conditions are met; X is a positive integer and X≤N2; If at least X of the N2 second-category determination conditions are met, it is determined that the server is not stably powered; If at least X of the N2 second-category determination conditions are not met, it is determined that the server is stably powered; Among them, the N1 first-type determination conditions include: the output current exceeds a preset current threshold; the N2 second-type determination conditions include: The power state of the graphics processor of the server complies with a preset high power state.

5. The power supply protection method for a server according to claim 1, characterized in that: Also includes: After the auxiliary power supply device is controlled to be in a discharging state, if the server still does not obtain stable power supply within a first time period, limiting the power consumption of the server; After determining that the server is stably powered, the power consumption restriction of the server is released.

6. The power supply protection method for a server according to claim 5, characterized in that: Limiting the power consumption of the server includes: The operating frequency of a designated central processing unit and / or a designated graphics processing unit in the server is limited.

7. The power supply protection method for a server according to any one of claims 1 to 6, characterized in that: The auxiliary power supply device includes an energy storage unit for storing energy, and a conversion unit connected to the energy storage unit for converting direct current into alternating current; the energy storage unit includes a single capacitor or a plurality of capacitors connected in parallel, and the energy storage unit is connected to the uninterruptible power supply device of the server; The power supply protection method of the server also includes: When it is detected that the terminal voltage of the energy storage unit is lower than a set charging voltage threshold and the energy storage unit is not in a discharging state, the uninterruptible power supply device of the server is controlled to charge the energy storage unit.

8. A power supply protection device for a server, characterized in that: include: Memory for storing computer programs; A processor is used to execute the computer program to implement the steps of the power supply protection method for the server as described in any one of claims 1 to 7.

9. A power supply protection system for a server, characterized in that: include: A collector, an auxiliary power supply device and a power supply protection device for a server as claimed in claim 8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the power supply protection method for a server according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Server power supply system and control method thereof

    CN108594980A

  • Whole cabinet server power supply control method and system, terminal and storage medium

    CN113885689A

  • Power supply switching method, device, equipment and medium

    CN117950477A

  • Electrical energy conversion circuit system and uninterrupted power source

    CN206164191U

  • Positioning device of digital key

    KR1020250079552A