Power supply and consumption control method and server

By obtaining the load information of the server node and the power information of the energy storage module, and dynamically controlling the working status of the energy storage module, the problems of high power supply and inadequate power utilization of the server are solved, and energy-saving and low-carbon power supply and stable operation of the server are achieved.

CN120276575APending Publication Date: 2025-07-08XFUSION DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510128025.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-27
Publication Date
2025-07-08

AI Technical Summary

Technical Problem

In the prior art, the power supply and consumption method of the server consumes high power, the power supply and consumption cost is high, and the power utilization is insufficient. Especially when the power supply in the power grid is tight or power outage, the stable operation of the server faces challenges.

Method used

By obtaining the load information of the server node and the power information of the energy storage module, the working status of the energy storage module is controlled, including supplying power to the power grid, storing power to the server, charging, etc., to realize dynamic adjustment of load information and power information, and optimize the power supply and consumption process.

Benefits of technology

It improves the power utilization rate of energy storage modules, reduces the power supply and use costs, and ensures the normal operation of the server when the power grid is powered off, achieving energy-saving and low-carbon power supply and use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120276575A_ABST
    Figure CN120276575A_ABST
Patent Text Reader

Abstract

The invention provides a power supply and consumption control method and a server. The method comprises the steps of determining whether a target instruction is received or not; under the condition that the target instruction is received, determining the type of the target instruction; under the condition of determining that the type of the target instruction is a power supply instruction, obtaining load information of a server node included in a server and electric quantity information of an energy storage module included in the server; and controlling the working state of the energy storage module based on the load information and the electric quantity information. Therefore, energy-saving and low-carbon power supply can be realized while normal operation of the server is guaranteed, the utilization rate of electric energy is improved, and the power supply cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and particularly to a power supply and consumption control method and a server. Background Art

[0002] With the rapid development of computer and network technologies, data centers are becoming more and more widespread. A data center usually includes multiple computing devices or switching devices. Taking a server as an example, usually, the power grid directly supplies power to the server through the mains power supply module of the server. Since a server usually has characteristics such as including multiple high-performance hardware, running for a long time, and performing multitasking, its power consumption is usually high. Therefore, this power supply method may have problems such as high power supply and consumption costs and insufficient utilization of electric energy. Summary of the Invention

[0003] An embodiment of this application provides a power supply and consumption control method and a server, which can achieve energy-saving and low-carbon power supply and consumption while ensuring the normal operation of the server, improve the power utilization rate, and reduce the power supply and consumption costs.

[0004] To solve the above technical problems, an embodiment of this application discloses a power supply and consumption control method, which includes: determining whether a target instruction is received; in the case of receiving a target instruction, determining the type of the target instruction; in the case of determining that the type of the target instruction is a power supply instruction, obtaining the load information of the server nodes included in the server and the power quantity information of the energy storage module included in the server; and controlling the working state of the energy storage module based on the load information and the power quantity information.

[0005] By adopting the above technical solution, in the case of receiving a power supply instruction, the load information of the server nodes included in the server and the power quantity information of the energy storage module included in the server are obtained; and the working state of the energy storage module is controlled based on the load information and the power quantity information. Since the load information of the server nodes and the power quantity of the energy storage module are considered when controlling the working state of the energy storage module, better power supply and consumption control can be performed. While ensuring the normal operation of the server, for example, the power utilization rate of the energy storage module can be improved, energy-saving and low-carbon power supply and consumption can be achieved, and the power supply and consumption costs can be reduced.

[0006] According to another specific embodiment of this application, for the power supply and consumption control method disclosed in the embodiment of this application, controlling the working state of the energy storage module based on the load information and the power quantity information includes: based on the load information and the power quantity information, in the case of determining that the load condition of the server meets the first load condition and the power quantity condition of the energy storage module meets the first power supply demand, or in the case of determining that the load condition of the server meets the second load condition and the power quantity condition of the energy storage module meets the second power supply demand, controlling the energy storage module to supply power to the power grid.

[0007] With the above technical solution, the energy storage module is controlled to supply power to the power grid only when the load condition of the server meets the load condition and the power condition of the energy storage module meets the power supply demand, which can ensure that the server can operate normally based on the power of the energy storage module and improve the power utilization rate of the energy storage module.

[0008] According to another specific embodiment of the present application, for the power supply and consumption control method disclosed in the embodiment of the present application, controlling the energy storage module to supply power to the power grid includes: controlling at least one energy storage battery module included in the energy storage module to supply power to the power grid.

[0009] According to another specific embodiment of the present application, for the power supply and consumption control method disclosed in the embodiment of the present application, based on the load information and the power information, controlling the working state of the energy storage module includes: based on the load information and the power information, when it is determined that the load condition of the server meets the first load condition and the power condition of the energy storage module does not meet the first power supply demand, controlling the energy storage module that supplies power to the power grid to stop supplying power to the power grid.

[0010] According to another specific embodiment of the present application, for the power supply and consumption control method disclosed in the embodiment of the present application, based on the load information and the power information, controlling the working state of the energy storage module includes: based on the load information and the power information, when it is determined that the load condition of the server meets the second load condition and the power condition of the energy storage module does not meet the second power supply demand, controlling the energy storage module that supplies power to the power grid to stop supplying power to the power grid.

[0011] According to another specific embodiment of the present application, for the power supply and consumption control method disclosed in the embodiment of the present application, based on the load information and the power information, determining that the load condition of the server meets the first load condition and the power condition of the energy storage module meets the first power supply demand includes: if it is determined according to the load information that the load rate of all server nodes included in the server is less than the first threshold, it is determined that the load condition of the server meets the first load condition; if it is determined according to the power information that the current power of the energy storage module is greater than the power consumption of the server during the target time period, it is determined that the power condition of the energy storage module meets the first power supply demand.

[0012] According to another specific embodiment of the present application, for the power supply and consumption control method disclosed in the embodiment of the present application, based on the load information and the power information, determining that the load condition of the server meets the second load condition and the power condition of the energy storage module meets the second power supply demand includes: if it is determined according to the load information that the load rate of at least one server node included in the server is greater than or equal to the first threshold, it is determined that the load condition of the server meets the second load condition; if it is determined according to the power information that the quotient of the current power of the energy storage module and the power consumption of the server during the target time period is greater than or equal to the second threshold, it is determined that the power condition of the energy storage module meets the second power supply demand.

[0013] According to another specific embodiment of the present application, for the power supply and consumption control method disclosed in the embodiments of the present application, when the load of the server meets the second load condition, the method further includes: controlling the offline tasks of the server nodes included in the server with a load rate greater than or equal to the first threshold to gradually stop until the load rate of the server nodes is less than the first threshold; and, the method further includes: when the load rate of the server is less than the third threshold, controlling the stopped offline tasks to be restored in sequence until the stopped offline tasks are restored or the load rate of the server nodes is equal to the third threshold.

[0014] According to another specific embodiment of the present application, for the power supply and consumption control method disclosed in the embodiments of the present application, based on the load information and power quantity information, controlling the working state of the energy storage module, further includes: when it is determined according to the power quantity information that the power quantity situation of the energy storage module meets the first power quantity condition, controlling the energy storage module to supply power to the server. And, it is also possible to control the green power equipment to supply power to the server. When it is determined according to the power quantity information that the power quantity situation of the energy storage module does not meet the first power quantity condition, controlling the energy storage module to stop supplying power to the server. And, it is also possible to control the power grid to supply power to the server.

[0015] According to another specific embodiment of the present application, for the power supply and consumption control method disclosed in the embodiments of the present application, further includes: when it is determined according to the power quantity information that the power quantity situation of the energy storage module meets the first power quantity condition, controlling the energy storage module and the power grid to supply power to the server; when it is determined according to the power quantity information that the power quantity situation of the energy storage module does not meet the first power quantity condition, controlling the energy storage module to stop supplying power to the server and controlling the power grid to supply power to the server.

[0016] According to another specific embodiment of the present application, for the power supply and consumption control method disclosed in the embodiments of the present application, determining that the power quantity situation of the energy storage module meets the first power quantity condition according to the power quantity information includes: if it is determined according to the power quantity situation of the energy storage module that the current power percentage of at least one energy storage battery module of the energy storage module is greater than or equal to the first power quantity threshold, it is determined that the power quantity situation of the energy storage module meets the first power quantity condition; determining that the power quantity situation of the energy storage module does not meet the first power quantity condition according to the power quantity information includes: if it is determined according to the power quantity situation of the energy storage module that the current power percentage of all energy storage battery modules of the energy storage module is less than the first power quantity threshold, it is determined that the power quantity situation of the energy storage module does not meet the first power quantity condition.

[0017] According to another specific embodiment of the present application, for the power supply and consumption control method disclosed in the embodiments of the present application, the method further includes: when it is determined that the type of the target instruction is a power supply instruction, controlling the green power equipment to supply power to the power grid.

[0018] By adopting the above technical solution, it is possible to supply power to the power grid through green power equipment under the condition of tight power in the power grid, so as to achieve energy-saving, low-carbon power supply and consumption.

[0019] According to another specific embodiment of the present application, the power supply and consumption control method disclosed in the embodiment of the present application further includes: when it is determined that the type of the target instruction is an energy storage instruction, if the energy storage module supplies power to the server and / or the power grid, controlling the energy storage module to stop supplying power to the server and / or the power grid, and controlling the power grid to supply power to the server; and obtaining the power information of the energy storage module included in the server; if it is determined based on the power information that the power condition of the energy storage module meets the second power condition, controlling the green power equipment to supply power to the power grid; if it is determined based on the power information that the power condition of the energy storage module does not meet the second power condition, controlling the green power equipment and the power grid to charge the energy storage module.

[0020] By adopting the above technical solution, when the power supply of the power grid is very rich and the power grid does not have enough energy storage equipment to store the excess power, an energy storage command will be issued, that is, the energy storage module will store electricity. In order to ensure the normal operation of the server while the energy storage module stores electricity, while stopping the external power supply of the energy storage module, the power grid needs to supply power to the server. And if the energy storage module is not fully charged, the green power equipment and the power grid will charge the energy storage module; if the energy storage module is fully charged and cannot be charged, the green power equipment can supply power to the power grid, which can achieve energy-saving, low-carbon power supply and consumption.

[0021] According to another specific embodiment of the present application, the power supply and consumption control method disclosed in the embodiment of the present application further includes: when no target instruction is received, obtaining the load information of the server nodes included in the server; when it is determined according to the load information that the load condition of the server meets the second load condition, controlling the energy storage module and the power grid to supply power to the server; when it is determined according to the load information that the load condition of the server does not meet the second load condition and the duration is greater than the time threshold, controlling the energy storage module to stop supplying power to the server, and controlling the power grid to supply power to the server.

[0022] By adopting the above technical solution, when no target instruction is received, the energy storage module and the power grid jointly supply power to the server to reduce the impact on the power grid caused by the power fluctuation of the server due to the excessive load of the server. After that, if the load of the server is not large and stable for a certain period of time and will no longer cause an impact on the power grid, only the power grid supplies power to the server and the energy storage module stops supplying power to the server, which can ensure the power stored in the energy storage module to the greatest extent, so as to ensure that in the case of a power outage of the power grid, it can continue to supply power to the server to achieve the normal operation of the server.

[0023] According to another specific embodiment of the present application, for the power supply and consumption control method disclosed in the embodiments of the present application, when the load of the server meets the second load condition, the method further includes: controlling the offline tasks of the server nodes included in the server with a load rate greater than or equal to the first threshold to gradually stop until the load rate of the server node is less than the first threshold; and, the method further includes: when the load rate of the server is less than the third threshold, controlling the stopped offline tasks to be restored in sequence until the stopped offline tasks are restored or the load rate of the server node is equal to the third threshold.

[0024] Adopting the above technical solution, stopping the offline tasks of the server nodes included in the server with a load rate greater than or equal to the first threshold can reduce the load rate of the server nodes, thereby reducing the power consumption of the server.

[0025] According to another specific embodiment of the present application, for the power supply and consumption control method disclosed in the embodiments of the present application, the method further includes: in the case of a power grid power outage, controlling the energy storage module to supply power to the server and controlling the green power source to charge the energy storage module.

[0026] Adopting the above technical solution can ensure that the server operates normally in the case of a power grid power outage and reduce the risk of the server stopping operation.

[0027] An embodiment of the present application also discloses a power supply and consumption control device, including a processing module, which is used to determine whether a target instruction is received; in the case of receiving a target instruction, determine the type of the target instruction; in the case of determining that the type of the target instruction is a power supply instruction, obtain the load information of the server nodes included in the server and the power quantity information of the energy storage module included in the server; and based on the load information and the power quantity information, control the working state of the energy storage module.

[0028] According to another specific embodiment of the present application, for the power supply and consumption control method disclosed in the embodiments of the present application, the processing module is further used to execute other related steps in the above power supply and consumption control method.

[0029] An embodiment of the present application also discloses a server, including: server nodes, a controller, and an energy storage module, where the controller is electrically connected to the energy storage module and the server nodes; the energy storage module is used to store electric energy; and the controller is used for the above power supply and consumption control method.

[0030] According to another specific embodiment of the present application, for the server disclosed in the embodiments of the present application, the server is a cabinet server.

[0031] An embodiment of the present application also discloses a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, it is used to implement the above power supply and consumption control method.

[0032] Embodiments of the present application also disclose a computer program product, including a computer program, which is used to implement the above power supply and consumption control method when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is a structural block diagram of a server provided by an embodiment of the present application;

[0034] Figure 2 It is a schematic structural diagram of a cabinet server provided by an embodiment of the present application;

[0035] Figure 3 It is a schematic flowchart of a power supply and consumption control method provided by an embodiment of the present application;

[0036] Figure 4 It is a schematic diagram of the principle of a power supply and consumption control method provided by an embodiment of the present application;

[0037] Figure 5 It is another schematic flowchart of a power supply and consumption control method provided by an embodiment of the present application;

[0038] Figure 6 It is another schematic flowchart of a power supply and consumption control method provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0039] To make the objectives, technical solutions, and advantages of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.

[0040] With the rapid development of computer and network technologies, data centers are becoming more and more widespread. A data center usually includes multiple computing devices or switching devices. The computing devices or switching devices include devices such as servers and network communication devices. Taking servers as an example, specifically taking rack-mounted servers as an example, generally including multiple server nodes, the server nodes can be artificial intelligence (AI) servers. When performing operations such as AI server training and AI services, the AI servers require uninterrupted operation, and the rack-mounted servers loaded with AI servers generally have a relatively high power, with the power reaching more than 30KW, and even more than 100KW. Running for such a long time usually results in a relatively high power consumption.

[0041] Moreover, servers generally include a power supply module and a battery module. Currently, for the power supply and consumption control methods of such servers, usually when the power grid is normally powered, the power grid supplies power based on the power supply module, and when the power grid is powered off, the battery module supplies power. Therefore, such power supply and consumption methods may have problems such as high power supply and consumption costs and insufficient utilization of electric energy.

[0042] To solve the above technical problems, the present application provides a server, as Figure 1 shown, including: a plurality of server nodes, a controller 100, and an energy storage module 200. Among them, the controller 100 is electrically connected to the energy storage module 200 and the plurality of server nodes respectively. The energy storage module 200 includes a plurality of energy storage battery modules for storing electric energy, and the electric energy stored in the energy storage module 200 is the sum of the electric energy stored in each energy storage battery module; the controller 100 is used to execute the power supply and consumption control method provided by the present application.

[0043] It should be noted that in this embodiment, the types of target instructions include power supply instructions and energy storage instructions. The power supply instruction refers to an instruction to supply power to the power grid, and the energy storage instruction refers to an instruction to charge the energy storage module 200. The external system can be the control system of the power grid. The information of the server includes the load information of the server nodes, the offline task information of the server nodes, and the power information of the energy storage module 200. Among them, the load information of the server nodes can be determined according to the utilization rate of the processors and main components in the server, the power of the server nodes, etc. According to the load information of the server nodes, the (current) load of the server nodes can be determined. According to the quotient of the load of the server nodes and the full-load load of the server nodes, the load rate of the server nodes can be determined. The power information of the energy storage module 200 includes the capacity and the current power percentage of each energy storage battery module. According to the capacity and the current power percentage of each energy storage battery module, the current power of the energy storage module 200 can be determined.

[0044] The working states of the energy storage module 200 include working states such as supplying power to the power grid, stopping supplying power to the power grid, supplying power to the server, stopping supplying power to the server, and charging. The working states of the power grid include working states such as supplying power to the server, supplying power to the energy storage module 200, stopping supplying power to the energy storage module 200, and stopping supplying power to the server. The working states of the green power equipment include working states such as supplying power to the energy storage module 200, stopping supplying power to the energy storage module 200, and supplying power to the power grid.

[0045] Specifically, the controller 100 may include a processing module and an acquisition module. The acquisition module may specifically be an information receiving and processing module for acquiring information, such as the load information of the server node and the power information of the energy storage module 200 included in the server. The processing module may specifically be a source-network-load-storage coordination module for receiving a target instruction and determining whether a target instruction is received; in the case of receiving a target instruction, determining the type of the target instruction; in the case of determining that the type of the target instruction is a power supply instruction, directly acquiring information from the acquisition module (the information includes the load information of the server node and the power information of the energy storage module 200 of the server), and controlling the working state of the energy storage module 200 based on the load information and the power information. Since the load information of the server node and the power of the energy storage module 200 are considered when controlling the working state of the energy storage module 200, power supply and consumption control can be better performed. While ensuring the normal operation of the server, for example, the power utilization rate of the energy storage module 200 can be improved, energy-saving and low-carbon power supply and consumption can be realized, and the power supply and consumption cost can be reduced.

[0046] In a specific embodiment, the server further includes a power supply device 300. The controller 100 and the power grid are respectively connected to the power supply device 300. The controller 100 can control the power grid to supply power to the energy storage module 200 and the server through the power supply device 300. The power supply device integrates a mains power supply device and a green power supply device (green power device). The power grid is connected to the controller 100 through the mains power supply device. The controller 100 can specifically control the power grid to supply power to the energy storage module 200 and the server through the mains power supply device. The network-load-storage coordination module of the controller 100 can control the green power device to supply power to the power grid or control the green power device to supply power to the energy storage module 200. It should be noted that in this embodiment, the green power device refers to new energy power generation devices such as optoelectronic devices and wind power devices. Generally, the power supply voltage of the green power device is unstable. In order to ensure the stable operation of the server, the green power device is generally not directly controlled to supply power to the server device 400.

[0047] In a specific embodiment, the server further includes a switch device 500. Supplying power to the server means supplying power to each server node (server device 400) and the switch device 500.

[0048] It should be noted that the rack server is a specific example of the server, such as Figure 2As shown in the figure, the cabinet server includes a controller (control device) 100, an energy storage module 200, a power supply device 300, server devices (multiple server nodes) 400, a switch device 500, and a cabinet body 600. The controller (control device) 100, the energy storage module 200, the mains power supply device 300, the server devices (multiple server nodes) 400, and the switch device 500 are all arranged in the accommodation cavity of the cabinet body 600. The cabinet body 600 includes a cabinet door 610, and the cabinet door can specifically be a liquid-cooled door. The power supply device 300 is connected to the power grid, and the controller 100 is respectively connected to the energy storage module 200, the power supply device 300, the server device 400, and the switch device 500. The energy storage module 200 and the power supply device 300 are respectively connected to the server device 400 for supplying power to the server device 400, and the energy storage module 200 and the power supply device 300 are respectively connected to the switch device 500 for supplying power to the switch device 500. The energy storage module 200 is connected to the power supply device 300 and can be powered by the power supply device.

[0049] Taking a specific cabinet server as an example, its power is 8KW. Assume the minimum height of the cabinet server is U (unit: mm), the height of the cabinet body is 47U, the depth is 1200mm, and the thickness is 5cm. The power supply device has an 8KW power supply capacity and includes optoelectronic devices, wind power devices, and mains power supply devices, with a height of 3U; the energy storage battery device is a modular energy storage battery (such as a lithium battery), with a total capacity of 8KW for 8 hours and a height of 18U; the switch device is a switch for a standard data center rack, with a height of 2 - 6U; the control device has a height of 2U; the server device, that is, multiple server nodes, includes 2 servers with a height of 2U0.

[0050] After the cabinet control device (controller) of this cabinet server executes the power supply and consumption control method provided in this application, the comparison of the operation electricity costs, the comparison of the business interruption risk costs, and the comparison of the saved costs with a traditional cabinet server with a power of 8KW are shown in Table 1 as follows:

[0051] First, assume that the optoelectronic devices and wind power devices can provide 4 hours of 8KW power every day; the energy storage battery device supports storing 8 hours of 8KW power. 10:00 to 12:00 and 14:00 to 16:00 are peak electricity consumption periods (a total of 4 hours), the low valley period is 0:00 - 8:00, and the rest of the periods are flat periods. The peak-valley-flat electricity price is 1.7:1:0.38, that is, the peak electricity price is 1.7 yuan per degree, the flat electricity price is 1 yuan per degree, and the low valley electricity price is 0.38 yuan per degree.

[0052] Table 1

[0053]

[0054]

[0055] Finally, as described in Table 1, the cabinet server in this embodiment reduces the annual operating electricity cost by 22,659.2 yuan compared with the traditional cabinet server, increases the power supply income by 15,417.6 yuan, and the total operating cost is reduced by 38,076.8 yuan, which is 40% of the operating cost of the traditional cabinet server.

[0056] Therefore, after applying the power supply management method disclosed in this application to a target device such as a cabinet server, the power consumption cost is effectively reduced and the power supply income is increased, achieving the effect of reducing the operating cost.

[0057] As Figure 3 and Figure 4 shown, this application also provides a power supply and consumption control method, which is applied to the server in the above embodiment. The method includes:

[0058] S100, the controller determines whether it has received a target instruction.

[0059] The target instruction is also an external command that can be sent through an external system, and the external system can be a control system of the power grid.

[0060] S200, when the controller receives the target instruction, it determines the type of the target instruction.

[0061] The types of target instructions include a power supply instruction and a power storage instruction. The power supply instruction refers to an instruction to supply power to the power grid, and the power storage instruction refers to an instruction to charge the energy storage module of the server. The controller may also not receive any target instructions.

[0062] S300, when the controller determines that the type of the target instruction is a power supply instruction, it obtains the load information of the server nodes included in the server and the power amount information of the energy storage module included in the server.

[0063] It should be noted that generally when the power supply of the power grid is tight, in order to reduce the power supply of the power grid, the controller of the server will receive a power supply instruction. The load information of the server node is a kind of information of the server as Figure 4 shown. According to the load information of the server node, the (current) load of the server node can be determined. According to the load of the server node and the full-load load of the server node, the load rate of the server node can be determined. The power amount information of the energy storage module is a kind of status information as Figure 4 shown, including the capacity of each energy storage battery module and the current power percentage. According to the capacity of each energy storage battery module and the current power percentage, the current power amount of the energy storage module can be determined.

[0064] S400, the controller controls the working state of the energy storage module based on the load information and the power amount information.

[0065] In a specific embodiment, based on the load information and the power information, controlling the working state of the energy storage module includes: when it is determined that the load condition of the server meets the first load condition and the power condition of the energy storage module meets the first power supply requirement, controlling the energy storage module to supply power to the power grid.

[0066] It should be noted that the first load condition, for example, represents a limiting condition for the load rate of the server. And based on the load rate of the server, the power consumption of the server can be determined. The greater the load rate of the server, the higher the power consumption and the power consumption of the server. Therefore, the first load condition is actually also a limiting condition for the power consumption and power consumption of the server. The first power supply requirement refers to the power consumption requirement of the server.

[0067] Specifically, based on the load information and the power information, determining that the load condition of the server meets the first load condition and the power condition of the energy storage module meets the first power supply requirement includes: if it is determined according to the load information that the load rate of all server nodes included in the server is less than the first threshold, it is determined that the load condition of the server meets the first load condition; if it is determined according to the power information that the current power of the energy storage module is greater than the power consumption of the server during the target time period, it is determined that the power condition of the energy storage module meets the first power supply requirement.

[0068] It should be noted that the load rate of the server node can be determined according to the quotient of the load of the server node and the full load (highest) load of the server node. Among them, the load of the server node is determined according to the load information of the server node. The size of the first threshold can be set by itself, and the set range can be 50% - 70%. For example, it can be set to 60%, or it can be set to other values. The power information of the energy storage module includes the capacity and the current power percentage of each energy storage battery module. According to the capacity and the current power percentage of each energy storage battery module, the current power of the energy storage module can be determined. The power consumption of the server during the target time period refers to the sum of the power consumption of each server node running at the maximum power for the target time period. The target time period can be set by itself, and the target time period can be set within the range of 1.5 - 2.5 hours. For example, it can be set to 2 hours, or it can be set to other values.

[0069] Of course, determining whether the load condition of the server meets the first load condition and determining that the power condition of the energy storage module meets the first power supply requirement can also be determined by means other than the above methods, which can be set according to needs.

[0070] It should be further noted that when it is determined that the load condition of the server meets the first load condition and the power condition of the energy storage module meets the first power supply requirement, the power supply amount is the difference between the current power of the energy storage module and the power consumption of the server during the target time period. This can not only improve the power utilization rate of the energy storage module, achieve energy-saving and low-carbon power supply and consumption, but also ensure that the server can continue to operate for a certain period of time through the power supply of the energy storage module in the event of a power grid outage.

[0071] In a specific implementation manner, when it is determined that the load condition of the server meets the first load condition and the power condition of the energy storage module does not meet the first power supply requirement, the energy storage module that supplies power to the power grid is controlled to stop supplying power to the power grid. Among them, if it is determined according to the power information that the current power of the energy storage module is less than the power consumption of the server during the target time period, it is determined that the power condition of the energy storage module does not meet the first power supply requirement. That is, once the power of the energy storage module does not meet the first power supply requirement, even if the load condition of the server meets the first load condition, the energy storage module is no longer controlled to supply power to the power grid, which can ensure that the server can continue to operate for a certain period of time through the power supply of the energy storage module in the event of a power grid outage.

[0072] In a specific implementation manner, based on the load information and the power information, the working state of the energy storage module is controlled, including: based on the load information and the power information, when it is determined that the load condition of the server meets the second load condition and the power condition of the energy storage module meets the second power supply requirement, the energy storage module is controlled to supply power to the power grid.

[0073] It should be noted that the second load condition also represents the limiting condition of the load rate of the server, and actually is also the limiting condition of the power consumption and power consumption of the server. The second power supply requirement also refers to the power consumption requirement of the server.

[0074] Specifically, based on the load information and the power information, determining that the load condition of the server meets the second load condition and the power condition of the energy storage module meets the second power supply requirement includes: if it is determined according to the load information that the load rate of at least one server node included in the server is greater than or equal to the first threshold, it is determined that the load condition of the server meets the second load condition; if it is determined according to the power information that the quotient of the current power of the energy storage module and the power consumption of the server during the target time period is greater than or equal to the second threshold, it is determined that the power condition of the energy storage module meets the second power supply requirement.

[0075] It should be noted that when it is determined that the load condition of the server meets the second load condition and the power condition of the energy storage module meets the second power supply requirement, the power supplied by the energy storage module to the power grid is the difference between the current power of the energy storage module and the power consumption of the server during the target time period. This can not only improve the power utilization rate of the energy storage module, achieve energy-saving and low-carbon power supply and consumption, but also ensure that the server can continue to operate for a certain period of time through the power supply of the energy storage module in the event of a power grid power outage.

[0076] It should be further noted that the determination methods of the load rate of the server node, the current power of the energy storage module, and the power consumption of the server during the target time period are the same as those in the above embodiments, so they will not be elaborated here. The size of the second threshold can be set by itself, and the second threshold can be set within the range of 1.1 to 1.5. For example, it can be set to 1.2, or it can be set to other values.

[0077] Of course, determining whether the load condition of the server meets the second load condition and determining that the power condition of the energy storage module meets the second power supply requirement can also be determined by means other than the above methods, which can be set according to needs.

[0078] In a specific embodiment, based on the load information and the power information, controlling the working state of the energy storage module includes: based on the load information and the power information, when it is determined that the load condition of the server meets the second load condition and the power condition of the energy storage module does not meet the second power supply requirement, controlling the energy storage module that supplies power to the power grid to stop supplying power to the power grid.

[0079] Among them, if it is determined according to the power information that the quotient of the current power of the energy storage module and the power consumption of the server during the target time period is less than the second threshold, it is determined that the power condition of the energy storage module does not meet the second power supply requirement. That is, once the power of the energy storage module does not meet the second power supply requirement, even if the load condition of the server meets the second load condition, the energy storage module is no longer controlled to supply power to the power grid, which can ensure that the server can continue to operate for a certain period of time through the power supply of the energy storage module in the event of a power grid power outage.

[0080] In a specific embodiment, based on the load information and the power information, controlling the working state of the energy storage module further includes: when it is determined according to the power information that the power condition of the energy storage module meets the first power condition, controlling the energy storage module to supply power to the server; when it is determined according to the power information that the power condition of the energy storage module does not meet the first power condition, controlling the energy storage module to stop supplying power to the server.

[0081] It should be noted that the power condition of the energy storage module refers to the current power percentage of each energy storage battery module in the energy storage module, and the first power condition represents the limiting condition of the current power percentage of the energy storage battery module in the energy storage module. If it is determined according to the power condition of the energy storage module that the current power percentage of at least one energy storage battery module in the energy storage module is greater than or equal to the first power threshold, it is determined that the power condition of the energy storage module meets the first power condition. On the contrary, if it is determined according to the power condition of the energy storage module that the current power percentages of all energy storage battery modules in the energy storage module are less than the first power threshold, it is determined that the power condition of the energy storage module does not meet the first power condition. The first power threshold represents the minimum power percentage of the energy storage battery module, and its value can be set by itself. The setting range can be 10% - 20%. For example, it can be set to 10% or other values.

[0082] It should be further noted that in the case where it is determined according to the power information that the power condition of the energy storage module meets the first power condition, the energy storage module can be controlled to supply power to the server alone, or the energy storage module and the power grid can be controlled to supply power to the server together. In this way, when a power supply instruction is received and the current power of the energy storage module is relatively sufficient, in order to relieve the power shortage of the power grid, controlling the energy storage module to supply power to the server can maximize the power supply to the server through the energy storage module, thereby reducing the power supply from the power grid to the server and reducing the power supply pressure on the power grid. In the case where the energy storage module and the power grid supply power to the server together, the energy storage module supplies power preferentially. The power supply amount of the energy storage module is the difference between the sum of the current powers of the energy storage battery modules (referred to as the first energy storage battery modules) whose current power percentages are greater than or equal to the first power threshold and the sum of the powers when the power percentage of the first energy storage battery modules is equal to the first power threshold. The power supply amount of the power grid to the server is the difference between the required power supply amount of the server and the power supply amount of the energy storage module.

[0083] Furthermore, in the case where it is determined according to the power information that the power condition of the energy storage module does not meet the first power condition, while controlling the energy storage module to stop supplying power to the server, the power grid is also controlled to supply power to the server to ensure the normal operation of the server.

[0084] In addition, whether the power condition of the energy storage module meets the first power condition can also be determined by other methods other than the above methods, which can be set according to needs.

[0085] In a specific implementation manner, the method further includes:

[0086] In the case where it is determined that the type of the target instruction is a power supply instruction, the green power equipment is controlled to supply power to the power grid until a cancellation power supply instruction is received or no power supply instruction is received anymore. In this way, in the case of power shortage of the power grid, the green power equipment can be used to supply power to the power grid to achieve energy-saving and low-carbon power supply and consumption.

[0087] It should be noted that as long as it is determined that the type of the target instruction is a power supply instruction, if the conditions for the energy storage module to supply power to the power grid, the energy storage module to supply power to the server, and the green power equipment to supply power to the power grid are simultaneously met, the energy storage module can be controlled to supply power to the power grid and the server simultaneously, and the green power equipment to supply power to the power grid.

[0088] In one implementation manner of the present application, as Figure 5 shown, the method includes:

[0089] S10, the controller determines whether a target instruction is received.

[0090] S20, when the controller receives the target instruction, it determines the type of the target instruction.

[0091] S30, when the controller determines that the type of the target instruction is an energy storage instruction, if the energy storage module supplies power to the server and / or the power grid, it controls the energy storage module to stop supplying power to the server and / or the power grid, and controls the power grid to supply power to the server; and obtains the power quantity information of the energy storage module included in the server.

[0092] Specifically, when it is determined that the type of the target instruction is an energy storage instruction, in order to better realize the electricity storage of the energy storage module while ensuring the normal operation of the server, if the energy storage module supplies power to the server and the power grid simultaneously, it controls the energy storage module to stop supplying power to the server and the power grid, and in addition, it also controls the power grid to supply power to the server; if the energy storage module supplies power to the server or the power grid alone, it controls the energy storage module to stop supplying power to the server or the power grid, and at the same time, it also controls the power grid to supply power to the server.

[0093] It should be noted that the energy storage instruction refers to an instruction to charge the energy storage module of the server. Generally, when the power grid power is very rich and the power grid does not have enough energy storage devices to store the excess power, the distributed power grid (the server is equivalent to a distributed power grid) will receive the energy storage command to let its energy storage module store the electric energy. In addition, during the low electricity consumption period, such as at night, the electricity price is very cheap, and the server will also receive the energy storage command to let its energy storage module store the cheap electricity for use during the high electricity consumption period to reduce the electricity consumption cost of the server. The power quantity information of the energy storage module includes the capacity and the current power percentage of each energy storage battery module. When it is determined that the type of the target instruction is an energy storage instruction, if the energy storage module does not supply power to the server and / or the power grid, it can continue to remain not supplying power to the server and / or the power grid.

[0094] S40, if the controller determines based on the power quantity information that the power quantity situation of the energy storage module meets the second power quantity condition, it controls the green power equipment to supply power to the power grid; if it determines based on the power quantity information that the power quantity situation of the energy storage module does not meet the second power quantity condition, it controls the green power equipment and the power grid to charge the energy storage module.

[0095] It should be noted that the second power condition also represents a limiting condition for the current power percentage of the energy storage battery module of the energy storage module, specifically representing the limiting condition that the current power percentage of the energy storage battery module of the energy storage module reaches 100%. If it is determined according to the power situation of the energy storage module that the current power percentages of all the energy storage battery modules of the energy storage module are equal to the second power threshold, it is determined that the power situation of the energy storage module meets the second power condition. On the contrary, if it is determined according to the power situation of the energy storage module that the current power percentage of at least one energy storage battery module of the energy storage module is less than the second power threshold, it is determined that the power situation of the energy storage module does not meet the second power condition. The second power threshold is set to 100%.

[0096] Specifically, when the controller receives an energy storage instruction, in order to better achieve electricity storage, it determines the working state of the energy storage module. If the energy storage module is in the state of supplying power to the outside (server and power grid), it controls the energy storage module to stop supplying power to the server and the power grid; if the current power percentages of all the energy storage battery modules of the energy storage module reach 100%, there is no need to charge the energy storage module. To achieve energy-saving and low-carbon power supply and consumption, it controls the green power equipment to supply power to the power grid. If there are energy storage battery modules in the energy storage module whose current power percentages do not reach 100%, it can control the green power equipment and the power grid to charge the energy storage module together, or it can control either the green power equipment or the power grid to charge the energy storage module.

[0097] It should be noted that as long as it is determined that the type of the target instruction is a power supply instruction, if the conditions for charging the energy storage module, the power grid supplying power to the server, and the green power equipment supplying power to the power grid are met simultaneously, it can control either the green power equipment or the power grid or both to charge the energy storage module, the power grid to supply power to the server, and the green power equipment to supply power to the power grid simultaneously.

[0098] In addition, to determine whether the power situation of the energy storage module meets the second power condition, it can also be determined by other methods other than the above methods, which can be set according to needs.

[0099] In one implementation manner of the present application, as Figure 6 shown, the method further includes:

[0100] S1: The controller determines whether it has received a target instruction.

[0101] S2: When the controller has not received a target instruction, it obtains the load information of the server nodes included in the server;

[0102] S3: When the controller determines that the load condition of the server meets the second load condition according to the load information, it controls the energy storage module and the power grid to supply power to the server; when it determines that the load condition of the server does not meet the second load condition and the duration is greater than the time threshold according to the load information, it controls the energy storage module to stop supplying power to the server and controls the power grid to supply power to the server.

[0103] It should be noted that the second load condition also represents the limiting condition of the server's load rate, and actually is also the limiting condition of the server's power consumption and power consumption. If it is determined according to the load information that the load rate of at least one server node included in the server is greater than or equal to the first threshold, it is determined that the load condition of the server meets the second load condition. On the contrary, if it is determined according to the load information that the load rates of all server nodes included in the server are less than the first threshold, it is determined that the load condition of the server does not meet the second load condition. Among them, the method for determining the load rate of the server node is the same as that in the above embodiment and will not be elaborated here. The size of the time threshold can be set by itself, and the set range can be 20 - 40 seconds. For example, it can be set to 30 seconds, or it can be other values.

[0104] It should be further noted that generally, when the load condition of the server meets the second load condition (for example, the load rate of the server node is greater than or equal to the first threshold (which can be set to 60% for example)), the power consumption of the server is relatively high and the power consumption is also large. At this time, the power consumption fluctuation of the server is likely to cause an impact on the power grid. When the load rate of at least one server node is greater than or equal to the first threshold, in order to reduce the impact on the power grid caused by the power consumption fluctuation of the server due to the excessive load of the server, the initial control of only the power grid to supply power to the server is adjusted to control the energy storage module and the power grid to supply power to the server together. At this time, the power supply amount of the energy storage module is the sum of the required power consumption of all server nodes with a load rate greater than or equal to the first threshold (referred to as the first server nodes) and the sum of the power consumption of all first server nodes when their load rate is equal to the first threshold. Generally, when the load rates of all server nodes are less than the first threshold (do not meet the second load condition) and the duration is greater than the time threshold, that is, the load of the server is not large and stable for a certain period of time and will no longer cause an impact on the power grid, it is only necessary to control the energy storage module to stop supplying power to the server and control the power grid to supply power to the server.

[0105] In one implementation of the present application, when the load condition of the server meets the second load condition, for example, when the load rate of at least one server node included in the aforementioned server is greater than or equal to the first threshold, the method further includes: controlling the offline tasks of the server nodes with a load rate greater than or equal to the first threshold among the server nodes included in the server to gradually stop until the load rate of the server nodes is less than the first threshold. And, the method further includes: when the load rate of the server is less than the third threshold, controlling the stopped offline tasks to be restored in sequence until the stopped offline tasks are completely restored or the load rate of the server nodes is equal to the third threshold.

[0106] It should be noted that if the load rate of at least one server node included in the server is greater than or equal to the first threshold, it is determined that the load condition of the server meets the second load condition. The offline tasks of the server nodes belong to a type of information of the server as shown in Figure 4 . When the load rate of the server nodes is greater than or equal to the first threshold, the power consumption fluctuation of the server is likely to cause an impact on the power grid. Stopping the offline tasks of the server nodes can reduce the load rate of the server nodes, thereby reducing the power consumption of the server and being able to reduce the impact on the power grid caused by the power consumption fluctuation of the server. When the load rate of the server is less than or equal to the third threshold (a relatively small value), the power consumption of the server is not high. Therefore, the stopped offline tasks can be controlled to be restored in sequence, and the load rate of the server nodes after the tasks are restored can at most only be equal to the third threshold. The third threshold can be set by oneself, and the setting range can be 20% - 30%. For example, it can be set to 20%, or it can be set to other values.

[0107] It should be further noted that when stopping the offline tasks of the server nodes with a load rate greater than or equal to the first threshold among the server nodes included in the server, they can be stopped one by one in sequence, or stopped simultaneously. If choosing to stop one by one in sequence, the order in which the offline tasks are stopped in sequence can be sorted from largest to smallest according to the power consumption of the offline tasks and stopped one by one, or sorted from lowest to highest according to the importance priority of the offline tasks and stopped one by one. In addition, the offline tasks can be stopped to reduce the power consumption of the server when receiving a power supply instruction; or the offline tasks can be stopped to avoid the server having too high a load when not receiving a target instruction. And the order in which the offline tasks are restored in sequence can be sorted from smallest to largest according to the power consumption of the offline tasks and restored one by one, or sorted from highest to lowest according to the importance priority of the offline tasks and restored one by one. The fourth threshold refers to a relatively small load. When the load of the server nodes is less than the fourth threshold, generally, the power consumption of the server is not high, and the offline tasks can be restored.

[0108] Further, in the case where the target instruction is not received, the method may further include: determining the power of all energy storage battery modules; if the current power percentage of any energy storage battery module is less than 100%, controlling green power devices such as wind power equipment and photovoltaic equipment to charge all energy storage battery modules until the power percentage of all energy storage battery modules reaches 100%. If the current power percentage of all energy storage battery modules is 100%, controlling green power devices such as wind power equipment and photovoltaic equipment to supply all the electric energy of wind power and photovoltaic power to the power grid through the power grid mains power output terminal.

[0109] To ensure the normal operation of the server, the method further includes: in the case of a power grid power outage, controlling the energy storage module to supply power to the server, and controlling the aforementioned green power source to charge the energy storage module.

[0110] The power supply and consumption control method provided by this application realizes efficient interaction among the energy storage module, server nodes, green power devices, and the power grid, and while ensuring the stable operation of the server as much as possible, achieves energy-saving and low-carbon power supply, improves the utilization rate of electric energy, and reduces the power consumption cost, thus achieving a better power supply and consumption control effect.

[0111] This application also provides a power supply and consumption control device, including a processing module. The processing module is used to determine whether a target instruction is received; in the case of receiving a target instruction, determine the type of the target instruction; in the case where the type of the target instruction is determined to be a power supply instruction, obtain the load information of the server nodes included in the server and the power information of the energy storage module included in the server; and based on the load information and power information, control the working state of the energy storage module.

[0112] In one specific implementation, the power supply and consumption control device further includes an acquisition module. The acquisition module is used to acquire the target instruction (external command) sent by an external system and reply with the information of the server. The information of the server includes the load information of the server nodes and the power information of the energy storage module included in the server. The processing module is used to acquire the information acquired by the acquisition module and control the working state of the energy storage module.

[0113] In one specific implementation, the processing module is further used to execute other related steps in the power supply and consumption control method provided by this application. For example, controlling the working states of the power grid and green power devices, and offline tasks of server nodes.

[0114] This application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, it is used to implement the power supply and consumption control method provided by this application.

[0115] Embodiments of the present application also disclose a computer program product, including a computer program which, when executed by a processor, is used to implement the power supply and consumption control method provided by the present application.

[0116] The above specific embodiments illustrate the embodiments of the present application. Those skilled in the art can easily understand other advantages and effects of the present application from the content disclosed in this specification. Although the description of the present application will be introduced in conjunction with preferred embodiments, this does not mean that the features of this application are limited to this embodiment. On the contrary, the purpose of introducing the application in conjunction with the embodiment is to cover other alternatives or modifications that may extend based on the claims of the present application. In order to provide a deep understanding of the present application, many specific details will be included in the above description. The present application can also be implemented without using these details. In addition, in order to avoid confusion or obscuring the focus of the present application, some specific details will be omitted in the description. It should be noted that, without conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

[0117] It should be noted that in this specification, similar reference numerals and letters indicate similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings.

[0118] In the description of this embodiment, it should be noted that the orientation or positional relationship indicated by terms such as "upper", "lower", "inner", "bottom", etc. is based on the orientation or positional relationship shown in the drawings, or the orientation or positional relationship in which the product of this application is usually placed during use. It is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be construed as a limitation to the present application.

[0119] Terms such as "first", "second", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.

[0120] In the description of this embodiment, it should also be noted that unless otherwise clearly specified and limited, the terms "set", "connected", "connected to" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, and it can be the communication inside two elements. For those of ordinary skill in the art, the specific meanings of the above terms in this embodiment can be understood according to specific situations.

Claims

1. A power supply and consumption control method, characterized in that The method includes: Determine whether a target instruction is received; When the target instruction is received, determine the type of the target instruction; When it is determined that the type of the target instruction is a power supply instruction, obtain the load information of the server nodes included in the server and the power quantity information of the energy storage modules included in the server; Based on the load information and the power quantity information, control the working state of the energy storage module.

2. The power supply and consumption control method according to claim 1, wherein Based on the load information and the power quantity information, controlling the working state of the energy storage module includes: Based on the load information and the power quantity information, when it is determined that the load condition of the server meets the first load condition and the power quantity condition of the energy storage module meets the first power supply requirement, or when it is determined that the load condition of the server meets the second load condition and the power quantity condition of the energy storage module meets the second power supply requirement, control the energy storage module to supply power to the power grid.

3. The power supply and consumption control method according to claim 2, wherein Based on the load information and the power quantity information, determining that the load condition of the server meets the first load condition and the power quantity condition of the energy storage module meets the first power supply requirement includes: If it is determined according to the load information that the load rates of all the server nodes included in the server are less than a first threshold, it is determined that the load condition of the server meets the first load condition; If it is determined according to the power quantity information that the current power quantity of the energy storage module is greater than the power consumption of the server during a target time period, it is determined that the power quantity condition of the energy storage module meets the first power supply requirement.

4. The power supply and consumption control method according to claim 2, wherein Based on the load information and the power quantity information, determining that the load condition of the server meets the second load condition and the power quantity condition of the energy storage module meets the second power supply requirement includes: If it is determined according to the load information that the load rate of at least one of the server nodes included in the server is greater than or equal to the first threshold, it is determined that the load condition of the server meets the second load condition; If it is determined according to the power quantity information that the quotient of the current power quantity of the energy storage module and the power consumption of the server during the target time period is greater than or equal to a second threshold, it is determined that the power quantity condition of the energy storage module meets the second power supply requirement.

5. The power supply and consumption control method according to claim 4, characterized in that, When it is determined that the load condition of the server meets the second load condition, the method further includes: Control the offline tasks of the server nodes with a load rate greater than or equal to the first threshold among the server nodes included in the server to gradually stop until the load rate of the server nodes is less than the first threshold; And, the method further includes: When the load rate of the server is less than a third threshold, control the stopped offline tasks to be restored in sequence until the stopped offline tasks are restored or the load rate of the server nodes is equal to the third threshold.

6. The power supply and consumption control method according to any one of claims 1-5, characterized in that, Based on the load information and the power quantity information, controlling the working state of the energy storage module further includes: When it is determined according to the power quantity information that the power quantity condition of the energy storage module meets the first power quantity condition, control the energy storage module to supply power to the server; When it is determined that the power condition of the energy storage module does not meet the first power condition according to the power information, control the energy storage module to stop supplying power to the server.

7. The power supply and consumption control method according to any one of claims 1-6, characterized in that The method further includes: When it is determined that the type of the target instruction is a power supply instruction, control the green power device to supply power to the power grid.

8. The power supply and consumption control method according to any one of claims 1-7, characterized in that, The method further includes: When it is determined that the type of the target instruction is an energy storage instruction, if the energy storage module supplies power to the server and / or the power grid, control the energy storage module to stop supplying power to the server and / or the power grid, and control the power grid to supply power to the server; and obtain the power information of the energy storage module included in the server. If it is determined based on the power information that the power condition of the energy storage module meets the second power condition, control the green power device to supply power to the power grid. If it is determined based on the power information that the power condition of the energy storage module does not meet the second power condition, control the green power device and the power grid to charge the energy storage module.

9. The power supply and consumption control method according to any one of claims 1-8, characterized in that The method further includes: When the target instruction is not received, obtain the load information of the server nodes included in the server. When it is determined according to the load information that the load condition of the server meets the second load condition, control the energy storage module and the power grid to supply power to the server. When it is determined according to the load information that the load condition of the server does not meet the second load condition and the duration is greater than the time threshold, control the energy storage module to stop supplying power to the server, and control the power grid to supply power to the server.

10. A server, characterized in that, Including: Server nodes, a controller, and an energy storage module, the controller is electrically connected to the energy storage module and the server nodes; The energy storage module is used for storing electric energy; The controller is used to execute the power supply and consumption control method according to any one of claims 1-9.