Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Example 1:
fig. 1 illustrates an implementation process of a power supply method applied to a data center according to an embodiment of the present invention, where a process execution main body of the embodiment of the present invention may be a control unit, where the control unit is applied to a power supply system, the power supply system includes at least one uninterruptible power supply UPS, and the power supply system is used to supply power to IT equipment and at least one air conditioner in the data center; the implementation flow of the power supply method applied to the data center is detailed as follows:
in step S101, when the utility power is abnormal, the UPS is controlled to supply power to the air conditioner, and the remaining battery capacity of the UPS is obtained.
Optionally, the power supply system further comprises an air conditioner power supply mode switching unit. The control unit and the air conditioner power supply mode switching unit are respectively connected with each uninterrupted power supply UPS, the air conditioner power supply mode switching unit is respectively connected with the control unit and each air conditioner, and each uninterrupted power supply UPS is connected with the IT equipment.
The air conditioner power supply mode switching units are the same as the number of the air conditioners, one air conditioner power supply mode switching unit is connected with one air conditioner, each Uninterruptible Power Supply (UPS) is connected with the plurality of air conditioner power supply mode switching units respectively, and the control unit is connected with each air conditioner power supply mode switching unit respectively.
Each UPS is respectively connected with the IT equipment and the control unit, and each UPS is connected with the mains supply.
Each air conditioner power supply mode switching unit is connected with the UPS, and each air conditioner power supply mode switching unit is only connected with one UPS.
For example, if the number of the uninterruptible power supplies UPS is 2 and the number of the air-conditioner power supply mode switching units and the number of the air-conditioners are 1, the connection relationship between the UPS and the IT equipment and the control unit is shown in fig. 2.
Optionally, when the mains supply is normal, the mains supply can directly supply the IT equipment, each uninterruptible power supply UPS rectifies and inverts the mains supply to obtain a target alternating current, and transmits the target alternating current to the IT equipment, and meanwhile, the mains supply directly supplies the air conditioner, and when the air conditioner is powered by the mains supply, the air conditioner starts to refrigerate.
Optionally, when the waveform of the commercial power is good, the commercial power can be independently and directly supplied to the IT equipment, or when the waveform of the commercial power is not good, the commercial power is independently supplied to the IT equipment through the uninterruptible power supply.
When the commercial power supply is abnormal, the UPS is controlled to correspondingly supply power to the IT equipment and supply power to the air conditioner by using the battery of the UPS, for example, a power supply instruction is sent to the UPS, the power supply instruction is used for indicating the UPS to correspondingly supply power to the IT equipment and supply power to the air conditioner by using the battery of the UPS, the electric quantity of the batteries in all the UPSs is obtained, and the residual electric quantity of the batteries is obtained.
When the mains supply is abnormal, the control unit controls the UPS to output an electric signal to the air conditioner power supply mode switching unit, correspondingly controls the air conditioner power supply mode switching unit to switch to the UPS power supply mode according to the residual electric quantity of the battery, the air conditioner power supply mode switching unit which is switched to the UPS power supply mode transmits the electric signal to the corresponding air conditioner, and when the air conditioner power supply mode switching unit is not switched to the UPS power supply mode, the electric signal cannot be transmitted to the corresponding air conditioner.
In step S102, if the remaining battery power is greater than the preset power threshold, the maximum number of turned-on air conditioners is determined according to the preset capacity of the UPS, the preset operating power of the IT equipment, and the preset refrigeration power of the air conditioners.
Optionally, if the remaining battery capacity is not greater than the preset capacity threshold, IT indicates that the available capacity of the UPS is low and cannot meet the power consumption requirement of air-conditioning refrigeration, and the control unit does not turn on any air conditioner, so that the UPS only supplies power to the IT equipment, the service time of the remaining battery capacity is prolonged, and the situation that the IT equipment cannot normally work due to insufficient power supply of the UPS is avoided.
In this embodiment, if the remaining battery capacity is greater than the preset capacity threshold, IT indicates that the control unit may further turn on the air conditioner to cool the air conditioner, and the UPS may further supply power to the turned-on air conditioner, that is, the UPS may further have electric power required for cooling the air conditioner, and determines the maximum turning-on number of the air conditioner according to the preset capacity of the UPS, the preset operating power of the IT device, and the preset cooling power of the air conditioner.
The preset capacity of the UPS represents the maximum load power that the UPS can bear.
The maximum opening number of the air conditioners represents the number of the uninterruptible power supplies UPS capable of driving the air conditioners to perform normal refrigeration at most.
Optionally, step S102 includes:
1) and calculating the difference value between the preset capacity and the preset working power, and determining the residual power.
2) And calculating the ratio of the residual power to the preset refrigerating power to determine the maximum opening number of the air conditioners.
In this embodiment, the residual power is obtained by subtracting the preset working power of the IT equipment from the preset capacity of the UPS, that is, the load power that the UPS can also bear. And dividing the residual power by the preset refrigeration power of the air conditioner to obtain the maximum opening number of the air conditioner.
In step S103, the actual number of air conditioners to be turned on is determined according to the preset cooling power and the maximum number of air conditioners to be turned on, and the corresponding number of air conditioners are turned on.
Optionally, step S103 includes:
1) and determining the opening number of the air conditioners according to a preset electric quantity power mapping relation based on the preset refrigeration power and the residual electric quantity of the battery.
2) And if the air conditioner opening number is smaller than the maximum air conditioner opening number, determining the actual air conditioner opening number as the air conditioner opening number.
3) And if the air conditioner opening number is not less than the maximum air conditioner opening number, determining the actual air conditioner opening number as the maximum air conditioner opening number.
In this embodiment, the preset electric quantity-power mapping relationship represents an electric quantity consumed (i.e. consumed power) corresponding to a unit power, and the unit power may be 100W.
In this embodiment, the power consumption of the air conditioner can be obtained according to the mapping relationship between the preset refrigeration power of the air conditioner and the preset electric quantity power, the remaining battery power is divided by the power consumption of the air conditioner to obtain the opening number of the air conditioner, and the efficiency of calculating the opening number of the air conditioner is improved by using the mapping relationship between the preset electric quantity power.
In this embodiment, the number of turned-on air conditioners is compared with the maximum number of turned-on air conditioners, and if the number of turned-on air conditioners is smaller than the maximum number of turned-on air conditioners, the number of turned-on air conditioners is used as the actual number of turned-on air conditioners, and if the number of turned-on air conditioners is not smaller than the maximum number of turned-on air conditioners, the maximum number of turned-on air conditioners is used as the actual number of turned-on air conditioners, so that the situation that the uninterruptible power supply UPS is overloaded or has a.
Alternatively, the power supply time is calculated from the remaining amount of the battery, and the number of turned-on air conditioners is sequentially reduced in time order based on the power supply time.
In this embodiment, after the power supply time is calculated, timing is performed, and the number of the turned-on air conditioners is reduced every preset turning-off time, that is, one air conditioner that is cooling is turned off every preset turning-off time until all the air conditioners that are cooling are turned off, so that the UPS only supplies power to the IT equipment, and the service time of the IT equipment is prolonged.
Taking a specific application scenario as an example, the power supply time is 30 minutes, the preset closing time is 5 minutes, the number of the air conditioners which are refrigerating currently is 3, namely the number of the air conditioners which are started currently is 3, timing is performed, and after 5 minutes, one air conditioner which is refrigerating currently is closed, namely the number of the air conditioners which are started is changed to 2.
Optionally, the preset power supply time of the UPS may also be directly obtained, and the number of turned-on air conditioners is sequentially reduced according to the time sequence.
Optionally, the calculating the power supply time according to the remaining battery capacity includes
1) And calculating the product of the number of the currently started air conditioners and the preset refrigeration power, and determining the load power of the air conditioners.
2) And calculating the sum of the air conditioner load power and the preset working power of the IT equipment, and determining the total load power.
3) And calculating the ratio of the residual battery capacity to the total load power, and determining the power supply time.
In this embodiment, the power supply time represents a time period during which the UPS can also supply power to all currently powered air conditioners and IT equipment.
Optionally, the remaining battery capacity corresponding to the UPS may be obtained at intervals of the preset capacity obtaining time, a new actual number of turned-on air conditioners is continuously calculated according to the remaining battery capacity, the corresponding number of air conditioners are turned on continuously according to the new actual number of turned-on air conditioners, and the number of turned-on air conditioners is accurately controlled.
In this embodiment, when the utility power is abnormal, the control unit controls the number of the air conditioners to be turned on by controlling the number of the air conditioner power supply mode switching units to be switched to the uninterruptible power supply mode, and the number of the air conditioner power supply mode switching units to be switched to the uninterruptible power supply mode is the maximum number of the air conditioners to be turned on.
In this embodiment, when the utility power supply is abnormal, the current battery residual capacity of the UPS is acquired, the battery residual capacity is compared with a preset capacity threshold value, if the battery residual capacity is greater than the preset capacity threshold value, IT indicates that the UPS can also supply power to the air conditioner, IT is determined that the number of the air conditioners which are turned on at most is determined, the actual number of the air conditioners which are turned on is determined according to the preset refrigeration power of the air conditioners and the maximum number of the air conditioners which are turned on at most, and the air conditioners with corresponding numbers are turned on continuously according to the actual number of the air conditioners, so that the air conditioners can still continue to refrigerate when the utility power supply is abnormal, and the situation that the IT equipment is overheated and.
As shown in fig. 3, in an embodiment of the present invention, step S103 in the embodiment corresponding to fig. 1 specifically includes:
in step S301, the power consumption of the IT device within the preset time is calculated according to the preset operating power.
In this embodiment, the product of the preset operating power of the IT device and the preset time is calculated to obtain the power consumption of the IT device within the preset time, and the preset time may be very small, for example, 1 second, so that the power consumption of the IT device within the preset time may be estimated as the current power consumption of the IT device.
Wherein, the power consumption is the power consumption.
In step S302, a difference between the remaining battery capacity and the power consumption of the IT device is calculated to determine the available air conditioner capacity.
In this embodiment, a difference between the remaining capacity of the battery and the current power consumption of the IT device is calculated to obtain the current available capacity of the air conditioner.
In step S303, the power consumption of the air conditioner for a preset time is calculated according to the preset cooling power.
In this embodiment, the product of the preset cooling power of the air conditioner and the preset time is calculated to obtain the power consumption of the air conditioner within the preset time, and the power consumption of the air conditioner within the preset time can be estimated as the cooling power consumption of the air conditioner.
In step S304, a ratio of the air conditioner available power to the air conditioner power consumption is calculated, and the air conditioner on number is determined.
In this embodiment, the ratio of the current air conditioner available power to the air conditioner power consumption is calculated to obtain the number of the air conditioners turned on, that is, the number of the air conditioners capable of supporting the air conditioners for refrigeration.
In step S305, if the number of turned-on air conditioners is less than the maximum number of turned-on air conditioners, it is determined that the actual number of turned-on air conditioners is the number of turned-on air conditioners.
In this embodiment, if the number of the turned-on air conditioners is less than the maximum number of the turned-on air conditioners, it indicates that the current available electric quantity of the air conditioners can support the number of the turned-on air conditioners for refrigeration, and the UPS can drive the number of the turned-on air conditioners to operate.
In step S306, if the number of turned-on air conditioners is not less than the maximum number of turned-on air conditioners, it is determined that the actual number of turned-on air conditioners is the maximum number of turned-on air conditioners.
In this embodiment, if the number of turned-on air conditioners is not less than the maximum number of turned-on air conditioners, it indicates that although the current available electric quantity of the air conditioners can support the number of turned-on air conditioners for cooling, the maximum number of turned-on air conditioners is used as the actual number of turned-on air conditioners to avoid overload of the UPS because the UPS has limited load capacity, i.e., limited capacity, and cannot drive the number of turned-on air conditioners.
In the embodiment, the power consumption of the IT equipment and the air conditioner is calculated, the available power of the air conditioner is calculated according to the residual power of the battery and the power consumption of the IT equipment, the opening number of the air conditioner is obtained according to the available power of the air conditioner and the power consumption of the air conditioner, the opening number of the air conditioner is compared with the actual opening number of the air conditioner, and the actual opening number of the air conditioner is finally determined, so that the overload phenomenon of the UPS is effectively avoided.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Example 2:
fig. 4 shows a control unit 110 provided in an embodiment of the present invention, which is a part of a power supply system applied to a data center, the power supply system further includes at least one uninterruptible power supply UPS, the power supply system is used to supply power to IT equipment and at least one air conditioner in the data center, and the control unit 110 is used to execute the method steps in the embodiment corresponding to fig. 1, and includes:
and the commercial power supply abnormity processing subunit 111 is used for controlling the uninterruptible power supply UPS to supply power to the air conditioner and acquiring the battery residual capacity of the uninterruptible power supply UPS.
A maximum-on-number determining subunit 112, configured to determine, if the remaining battery power is greater than the preset power threshold, a maximum on number of the air conditioners according to a preset capacity of the UPS, a preset operating power of the IT equipment, and a preset refrigeration power of the air conditioners.
And an actual opening number determining subunit 113, configured to determine an actual opening number of the air conditioners according to the preset refrigeration power and the maximum opening number of the air conditioners, and open the air conditioners of a corresponding number.
Alternatively, the actual on number determining subunit 113 includes:
and the first residual power calculation module is used for calculating the difference value between the preset capacity and the preset working power and determining the residual power.
And the first opening number calculation module is used for determining the opening number of the air conditioner according to a preset electric quantity power mapping relation based on preset refrigeration power and residual power.
And the first actual opening number determining module is used for determining the actual opening number of the air conditioners as the opening number of the air conditioners if the opening number of the air conditioners is less than the maximum opening number of the air conditioners.
And the second actual opening number determining module is used for determining the actual opening number of the air conditioners as the maximum opening number of the air conditioners if the opening number of the air conditioners is not less than the maximum opening number of the air conditioners.
Optionally, the maximum on number determining subunit 112 includes:
and the second residual power calculation module is used for calculating the difference value between the preset capacity and the preset working power and determining the residual power.
And the maximum opening number determining module is used for calculating the ratio of the residual power to the preset refrigerating power to determine the maximum opening number of the air conditioner.
Optionally, the control unit 110 further comprises:
and the power supply time calculating subunit is used for calculating the power supply time according to the residual electric quantity of the battery.
And the air conditioner control subunit is used for sequentially reducing the number of the started air conditioners according to the time sequence based on the power supply time.
Optionally, the power supply time calculating subunit includes:
and the air conditioner load power calculation module is used for calculating the product of the number of the currently started air conditioners and the preset refrigeration power and determining the air conditioner load power.
And the total load power calculation module is used for calculating the sum of the air conditioner load power and the preset working power of the IT equipment and determining the total load power.
And the power supply time calculation module is used for calculating the ratio of the residual battery capacity to the total load power and determining the power supply time.
In one embodiment, the air conditioner power supply mode switching unit is further included.
The control unit and the air conditioner power supply mode switching unit are respectively connected with each uninterrupted power supply UPS, the air conditioner power supply mode switching unit is respectively connected with the control unit and each air conditioner, and each uninterrupted power supply UPS is connected with the IT equipment.
As shown in fig. 5, in an embodiment of the present invention, the actual turn-on number determining subunit 113 in the embodiment corresponding to fig. 4 specifically includes:
the first power consumption calculating module 10 is configured to calculate power consumption of the IT device within a preset time according to a preset working power.
And the available power consumption calculating module 20 is used for calculating the difference value between the residual power of the battery and the power consumption of the IT equipment and determining the available power of the air conditioner.
And a second power consumption calculating module 30, configured to calculate power consumption of the air conditioner within a preset time according to the preset refrigeration power.
And the second opening number calculating module 40 is used for calculating the ratio of the available electric quantity of the air conditioner to the electric consumption of the air conditioner and determining the opening number of the air conditioner.
And a third actual turning-on number determining module 50, configured to determine, if the turning-on number of the air conditioners is less than the maximum turning-on number of the air conditioners, that the actual turning-on number of the air conditioners is the turning-on number of the air conditioners.
And a fourth actual turning-on number determining module 60, configured to determine that the actual turning-on number of the air conditioners is the maximum turning-on number of the air conditioners if the turning-on number of the air conditioners is not less than the maximum turning-on number of the air conditioners.
In one embodiment, the control unit 110 further includes other functional modules/units for implementing the steps of the power supply method applied to the data center.
Example 3:
an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps in the embodiments described in embodiment 1, for example, step S101 to step S103 shown in fig. 1. Alternatively, the computer program, when executed by a processor, implements the functions of the respective modules/units in the respective system embodiments as described in embodiment 2, for example, the functions of the modules 110 to 130 shown in fig. 4.
The computer program may be stored in a computer readable storage medium, which when executed by a processor, may implement the steps of the various method embodiments described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
The modules or units in the system of the embodiment of the invention can be combined, divided and deleted according to actual needs.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.