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 present application. It will be apparent, however, to one skilled in the art that the present application 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 application 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.
Fig. 1 is a schematic structural diagram of a two-way power supply system of a data center according to an embodiment of the present invention. Data centers may employ different levels of redundancy depending on the criticality of the load they support. The dual power supply architecture (e.g., two independent power paths) can ensure the availability of the highest level, is suitable for data centers with higher power supply level requirements, and can avoid the need of stopping loads when any system is maintained or fails.
The main power consuming equipment in a data center is the server. Server redundant power supplies are currently the most common and reliable type of server power supply in data centers. Each power supply unit in the redundant power supply system of the server can be subjected to hot plugging, and if a certain power supply unit is damaged, maintenance work can be completed without power outage, and normal work of the system is not affected. The redundant power supply of the server is matched with a two-way power supply framework to be the most reliable power supply solution of the data center.
As shown in fig. 1, the first Power supply line is connected to a PDF-a (Power Distribution Frame a), and n output Power Distribution branches of the PDF-a are connected to n IT cabinets, namely PDF-a1 to PDF-An, for respectively supplying Power to the first Power modules in the IT cabinets. Wherein, each cabinet can be used for placing m IT devices, the IT devices can be servers, and ITi-j in FIG. 1 represents the jth IT device in the cabinet i. The first Power module includes m PSU-a (Power Supply Unit a), and iPSUj-a in fig. 1 represents a Power Unit a corresponding to jth IT equipment in the cabinet i.
The second Power supply line is connected with a PDF-B (Power Distribution Frame B), and the PDF-B outputs n paths of Power Distribution branches to n IT cabinets, namely PDF-B1 to PDF-Bn, and is used for respectively supplying Power to the second Power supply modules in the IT cabinets. The second Power module includes m PSU-B (Power Supply Unit B), and iPSUj-B in fig. 1 represents a Power Unit B corresponding to jth IT equipment in the cabinet i. Each IT device corresponds to one PSU-A and one PSU-B respectively, the PSU-A and the PSU-B corresponding to each IT device supply power to the IT device, the PSU-A and the PSU-B can share the current power respectively according to a preset ratio, and the preset ratio can be set according to actual requirements. For emutemutexample, if the predetermined ratio is 1, then PSU-A and PSU-B share 50% of the current power, respectively, if the predetermined ratio is 7/3, then PSU-A shares 70% of the current power, PSU-B shares 30% of the current power, and so on.
The first Power Supply line and the second Power Supply line may be different input sources, may be different Power Supply modes such as a commercial Power, an oil engine, a UPS (Uninterruptible Power Supply) or a HVDC (High-Voltage Direct Current) Power Supply mode, and may also be a combined Power Supply mode of the above four Power Supply modes.
The A-path output branch voltage and current acquisition module is used for respectively acquiring voltage and current data of n-path branch power distribution output by the PDF-A and transmitting the acquired voltage and current data to the terminal equipment. And the B-path output branch voltage and current acquisition module is used for respectively acquiring voltage and current data of n-path branch power distribution output by the PDF-B and transmitting the acquired voltage and current data to the terminal equipment. And the terminal equipment performs data processing and analysis according to the received voltage and current data to determine whether power failure exists in each cabinet. The collected voltage and current data may be alternating voltage and alternating current, or direct voltage and direct current.
Fig. 2 is a schematic flow chart of an implementation of a power failure monitoring method applied to a data center according to an embodiment of the present invention, and for convenience of description, only a part related to the embodiment of the present invention is shown. The execution main body of the embodiment of the invention can be terminal equipment. As shown in fig. 2, the method may include the steps of:
s201: the method comprises the steps of obtaining first power of a first power supply circuit for supplying power to a first power module of a first cabinet and second power of a second power supply circuit for supplying power to a second power module of the first cabinet, wherein the first cabinet is any one cabinet of a data center.
In the embodiment of the invention, the power of the first power supply circuit and the power of the second power supply circuit for supplying power to each cabinet are obtained. The method specifically comprises the following steps: any cabinet of the data center is selected as a first cabinet, the power of a first power supply circuit for supplying power to a first power module of the first cabinet is obtained, the power is called as first power, and meanwhile, the power of a second power supply circuit for supplying power to a second power module of the first cabinet is obtained, and the power is called as second power.
Illustratively, assuming the first cabinet is cabinet 1, the first power is the total power provided by the PDF-A1 branch of FIG. 1 to the first power module in cabinet 1, and the second power is the total power provided by the PDF-B1 branch of FIG. 1 to the second power module in cabinet 1.
S202: and if the absolute value of the difference value between the ratio of the first power and the second power and the preset ratio is greater than the first preset error value, determining that a power failure exists in the first cabinet, and performing power failure alarm on the first cabinet.
Since the PSU-A and PSU-B supplying power to each IT device are supplied according to a preset ratio, the ratio of the power supplied to the IT device by the PSU-A to the power supplied to the IT device by the PSU-B is a preset ratio.
For example, when IT equipment IT1-1 of cabinet 1 is operating normally, the ratio of the power supplied to IT1-1 by 1PSU1-A and the power supplied to IT1-1 by 1PSU1-B is a preset ratio, wherein 1PSU1-A and 1PSU1-B can supply AC power simultaneously, or DC power simultaneously, or 1 AC power and 1 DC power simultaneously, but the supplied powers are in accordance with the preset ratio. If 1PSU1-A fails, the power required by IT1-1 is provided by 1PSU1-B alone, then all IT equipment IT1-1 to IT1-m extending to the whole cabinet 1 are extended, namely the ratio of the power provided by PDF-A1 to the power provided by PDF-B1 is a preset ratio in normal operation, and if the ratio of the power provided by PDF-A1 to the power provided by PDF-B1 is different from the preset ratio, IT is proved that a PSU failure exists in the cabinet 1, and the ratio of the power provided by PDF-A1 to the power provided by PDF-B1 is different from the preset ratio. However, considering the situations that an error may exist in power calculation or a small difference may exist between the actual power supply of the dual-path power supply system and the planned power supply, and the like, when the power supply normally works, the absolute value of the difference between the ratio of the power supplied by the PDF-A1 and the power supplied by the PDF-B1 and the preset ratio is smaller than or equal to a first preset error; when there is a power failure in the cabinet 1, the absolute value of the difference between the ratio of the power supplied from the PDF-a1 and the power supplied from the PDF-B1 and the preset ratio is greater than the first preset error. Wherein, the first preset error and the preset ratio are set according to actual requirements. The same is true for the other cabinets.
Whether a power failure exists in the first cabinet can be determined by judging whether the absolute value of the ratio of the first power to the second power and the preset ratio is larger than a first preset error. If the absolute value of the ratio of the first power to the second power and the preset ratio is smaller than or equal to a first preset error, it is indicated that no power failure exists in the first cabinet, that is, all PSUs in the first cabinet work normally, and no operation is performed; and if the absolute value of the ratio of the first power to the second power and the preset ratio is larger than the first preset error, determining that a power failure exists in the first cabinet, namely the PSU in the first cabinet is damaged, and executing the operation of power failure alarm of the first cabinet. The alarm can be a voice alarm, an optical alarm, a voice alarm and an optical alarm.
In the embodiment of the present invention, the ratio of the first power to the second power is a ratio obtained by dividing the first power by the second power. There may be a case where the second power is 0, where the power supplied by the second power supply line to the second power module of the first cabinet is 0, that is, all the power units B in the second power module of the first cabinet have a fault, and at this time, the ratio of the first power to the second power may be considered as infinite, or before step S202, the power failure monitoring method applied to the data center further includes: and if the second power is 0, determining that all power supply units included in the second power supply module have faults, and performing fault alarm on the second power supply module of the first cabinet.
As can be seen from the above description, in the embodiment of the present invention, whether a power failure exists in the first cabinet is determined by comparing whether the absolute value of the difference between the ratio of the first power and the second power and the preset ratio is greater than the first preset error value, which can solve the problem that the power supply service condition of the IT device cannot be analyzed, and therefore, whether a power failure exists in the cabinet cannot be determined, and whether a failure exists in a power module in the cabinet of the data center can be monitored and an alarm is given, and an operation and maintenance person can be timely notified to maintain the power failure, thereby preventing the occurrence of a data loss condition caused by the power failure of the IT device in the cabinet.
In an embodiment of the present invention, the step S202 may include the following steps:
if the absolute value of the difference value between the ratio of the first power and the second power and the preset ratio is larger than a first preset error value, and the ratio of the first power and the second power is smaller than the preset ratio, determining that a power failure exists in the first power module, and performing a first power module failure alarm of the first cabinet;
and if the absolute value of the difference value between the ratio of the first power and the second power and the preset ratio is greater than the first preset error value, and the ratio of the first power and the second power is greater than the preset ratio, determining that a power failure exists in the second power module, and performing a second power module failure alarm of the first cabinet.
In the embodiment of the present invention, if one of the PSU-a and PSU-B supplying power to the IT device fails, the other power supply unit is left to supply all the power required by the IT device, so that the total power supplied to the IT device by the power supply module with power failure will be reduced, and the total power supplied to the IT device by the power supply module without power failure will be increased.
On the premise that the absolute value of the difference value between the ratio of the first power and the second power and the preset ratio is larger than the first preset error value, the power supply module with the power supply fault in the first cabinet can be determined by comparing the ratio of the first power and the second power and the preset ratio. If the ratio of the first power to the second power is smaller than the preset ratio, it can be determined that a power failure exists in the first power module, and at the moment, a first power module failure alarm of the first cabinet is executed; if the ratio of the first power to the second power is larger than the preset ratio, it can be determined that a power failure exists in the second power module, and at the moment, a second power module failure alarm of the first cabinet is executed.
As can be seen from the above description, in the embodiment of the present invention, by comparing the ratio of the first power to the second power with the preset ratio, the power module with the power failure in the first cabinet can be located, the troubleshooting range can be reduced, and the operation and maintenance personnel can be notified in time to repair the power module with the power failure and replace the damaged power unit.
Fig. 3 is a schematic flow chart of an implementation of a power failure monitoring method applied to a data center according to another embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown. As shown in fig. 3, the power failure monitoring method applied to the data center may further include the following steps:
s301: the first power is denoted as a first fault power, and the second power is denoted as a second fault power.
In the embodiment of the present invention, for convenience of distinction, the first power when a power failure occurs is referred to as a first failure power, and the second power when a power failure occurs is referred to as a second failure power.
S302: and acquiring the current first power and the current second power.
The method comprises the steps of obtaining first power of a first power supply circuit at the current moment for supplying power to a first power module of a first cabinet, calling the first power as current first power, obtaining second power of a second power supply circuit for supplying power to a second power module of the first cabinet, and calling the second power as current second power.
S303: and determining whether the power failure in the first cabinet is eliminated according to the current first power, the current second power, the first fault power and the second fault power.
In the embodiment of the invention, whether the power failure in the first cabinet is eliminated or not can be determined according to the current first power, the current second power, the first fault power and the second fault power. If the power failure in the first cabinet is not eliminated, the step S302 is returned to obtain the current first power and the current second power again, and the steps S302 and S303 are repeatedly executed until it is determined that the power failure in the first cabinet is eliminated.
S304: and if the power failure in the first cabinet is eliminated, stopping the first cabinet power failure alarm.
If the power failure in the first cabinet is determined to be eliminated, stopping performing power failure alarm of the first cabinet, specifically, if the power failure in the first cabinet is the power failure in the first power module, stopping performing the first power module failure alarm of the first cabinet; and if the power failure in the first cabinet is the power failure in the second power module, stopping performing the second power module failure alarm of the first cabinet.
After step S304 is executed, the process returns to step S201 to continue the execution, and it is determined whether or not there is a power failure in real time.
As can be seen from the above description, in the embodiment of the present invention, whether the power failure in the first enclosure has been eliminated can be determined according to the current first power, the current second power, the first failure power, and the second failure power, and if the failure has been eliminated, the alarm is stopped, so that the operation and maintenance staff can be informed that the failure has been eliminated in time.
Fig. 4 is a schematic flow chart of an implementation of a power failure monitoring method applied to a data center according to another embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown. As shown in fig. 4, the step S303 may include the following steps:
s401: if the absolute value of the difference between the ratio of the current first power and the current second power and the preset ratio is smaller than or equal to a first preset error value, and the power failure in the first cabinet is the power failure in the first power module, a first reduction power value of the current second power, which is reduced compared with the second failure power, and a first increase power value of the current first power, which is increased compared with the first failure power, are calculated.
In the embodiment of the invention, the power failure in the first cabinet is determined to be a power failure in the first power module or a power failure in the second power module by comparing the ratio of the first fault power and the second fault power with the preset ratio. Specifically, if the ratio of the first fault power to the second fault power is smaller than a preset ratio, it is determined that the power failure in the first cabinet is a power failure in the first power module; and if the ratio of the first fault power to the second fault power is greater than the preset ratio, determining that the power failure in the first cabinet is the power failure in the second power module.
If the absolute value of the difference value between the ratio of the current first power and the current second power and the preset ratio is smaller than or equal to a first preset error value, two situations exist, wherein the first situation is that operation and maintenance personnel have repaired the power failure, namely the power failure in the first cabinet is eliminated; the second case is that the power supply unit in another power supply module corresponding to the failed power supply unit also fails. But the power variations for the two cases are not the same.
On the premise that the power failure in the first cabinet is the power failure in the first power module, if the power failure is the first condition, the power value is increased when the current first power is compared with the first failure power, the power value is reduced when the current second power is compared with the second failure power, and the power value increased when the current first power is equal to the power value reduced when the current second power is compared with the second failure power; in the second case, the current first power is equal to the first fault power, and the current second power is reduced in power compared to the second fault power.
For example, assuming that 1PSU1-a supplying IT1-1 has failed, if the absolute value of the difference between the ratio of the current first power and the current second power and the preset ratio is less than or equal to the first preset error value, IT may be that the failure of 1PSU1-a is repaired or that 1PSU1-B has failed, but the power changes corresponding to these two cases are different. If the fault of 1PSU1-A is repaired, the power value of the current first power is increased compared with the first fault power, the power value of the current second power is reduced compared with the second fault power, and the power value of the current first power increased is equal to the power value of the current second power reduced; if 1PSU1-B also failed, then the current first power is equal to the first failed power and the current second power is reduced in power compared to the second failed power.
Therefore, when the absolute value of the difference between the ratio of the current first power to the current second power and the preset ratio is less than or equal to the first preset error value, and the power failure in the first cabinet is a power failure in the first power module, it is determined whether the power failure in the first power module has been eliminated by calculating the first reduction power value and the first increase power value, and comparing whether the absolute value of the difference between the first reduction power value and the first increase power value is within the allowable error (i.e., the second preset error value). If the absolute value of the difference between the first decreasing power value and the first increasing power value is greater than the second preset error value, the power failure in the first power module is not eliminated, and at this time, the power failure also exists in the second power module, and the step S302 is returned to continue to be executed until the absolute value of the difference between the first decreasing power value and the first increasing power value is less than or equal to the second preset error value. The first reduced power value is a power value obtained by reducing the current second power compared with the second fault power, namely a difference value obtained by subtracting the current second power from the second fault power; the first increased power value is a power value of the current first power increased compared with the first fault power, namely a difference value obtained by subtracting the first fault power from the current first power.
S402: and if the absolute value of the difference value of the first reduction power value and the first increase power value is less than or equal to a second preset error value, determining that the power failure in the first power module is eliminated.
In the embodiment of the present invention, when the absolute value of the difference between the ratio of the current first power and the current second power and the preset ratio is less than or equal to the first preset error value, and the power failure in the first cabinet is a power failure in the first power module, if the absolute value of the difference between the first reduced power value and the first increased power value is less than or equal to the second preset error value, it may be determined that the power failure in the first power module is eliminated, and the first power module of the first cabinet may stop performing the failure alarm. The second preset error value can be set according to actual requirements.
S403: and if the absolute value of the difference value between the ratio of the current first power and the current second power and the preset ratio is smaller than or equal to a first preset error value, and the power failure in the first cabinet is the power failure in the second power module, calculating a second reduction power value of the current first power, which is reduced compared with the first failure power, and a second increase power value of the current second power, which is increased compared with the second failure power.
For two situations existing when the absolute value of the difference between the ratio of the current first power and the current second power and the preset ratio is smaller than or equal to a first preset error value, on the premise that the power failure in the first cabinet is the power failure in the second power module, if the first situation is the first situation, the power value of the current first power is reduced compared with the first failure power, the power value of the current second power is increased compared with the second failure power, and the power value of the current first power which is reduced is equal to the power value of the current second power which is increased; in the second case, the current first power is reduced from the first fault power by a power value, and the current second power is equal to the second fault power.
Illustratively, assuming that 1PSU1-B supplying IT1-1 has failed, if the first case, i.e., the failure of 1PSU1-B, is repaired, then the current first power is reduced in power value compared to the first failed power, the current second power is increased in power value compared to the second failed power, and the current first power reduced in power value is equal to the current second power increased in power value; if the second case, 1PSU1-a, also failed, then the current first power is reduced in power value compared to the first failed power, and the current second power is equal to the second failed power.
Therefore, when the absolute value of the difference between the ratio of the current first power to the current second power and the preset ratio is less than or equal to the first preset error value, and the power failure in the first cabinet is a power failure in the second power module, whether the power failure in the second power module is eliminated is determined by calculating the second reduction power value and the second increase power value, and comparing whether the absolute value of the difference between the second reduction power value and the second increase power value is less than or equal to the second preset error value. If the absolute value of the difference between the second decreasing power value and the second increasing power value is greater than the second preset error value, the power failure in the second power module is not eliminated, and at this time, the power failure also exists in the first power module, and the step S302 is returned to continue to be executed until the absolute value of the difference between the second decreasing power value and the second increasing power value is less than or equal to the second preset error value. The second reduced power value is a power value obtained by reducing the current first power compared with the first fault power, namely a difference value obtained by subtracting the current first power from the first fault power; the second increased power value is a power value at which the current second power is increased compared with the second fault power, that is, a difference value obtained by subtracting the second fault power from the current second power.
S404: and if the absolute value of the difference value of the second reduction power value and the second increase power value is less than or equal to a second preset error value, determining that the power failure in the second power module is eliminated.
In the embodiment of the present invention, when the absolute value of the difference between the ratio of the current first power and the current second power and the preset ratio is less than or equal to the first preset error value, and the power failure in the first cabinet is the power failure in the second power module, if the absolute value of the difference between the second reduced power value and the second increased power value is less than or equal to the second preset error value, it is determined that the power failure in the second power module is eliminated, and the second power module of the first cabinet may stop performing the failure alarm.
Optionally, the step S303 may include the following steps:
calculating a difference value between the first fault power and the second fault power, and recording the difference value as a first difference value;
if the absolute value of the difference value between the ratio of the current first power and the current second power and the preset ratio is smaller than or equal to a first preset error value, and the power failure in the first cabinet is the power failure in the first power module, judging whether the absolute value of the difference value between the first power reducing value and the first power increasing value is smaller than or equal to a second preset error value or not;
if the absolute value of the difference between the first decreasing power value and the first increasing power value is less than or equal to a second preset error value, judging whether the absolute value of the difference between the first decreasing power value and half of the first difference value is less than or equal to a third preset error value;
determining that the power failure in the first power module has been eliminated if the absolute value of the difference between the first reduced power value and half of the first difference is less than or equal to a third preset error value;
if the absolute value of the difference value between the ratio of the current first power and the current second power and the preset ratio is smaller than or equal to a first preset error value, and the power failure in the first cabinet is the power failure in the second power module, judging whether the absolute value of the difference value between the second power reducing value and the second power increasing value is smaller than or equal to a second preset error value;
if the absolute value of the difference between the second decreasing power value and the second increasing power value is less than or equal to a second preset error value, judging whether the absolute value of the difference between the second decreasing power value and half of the first difference value is less than or equal to a third preset error value;
and if the absolute value of the difference between the second reduction power value and half of the first difference is less than or equal to a third preset error value, determining that the power failure in the second power module is eliminated.
The specific method for calculating the first difference value is as follows: if the first fault power is larger than the second fault power, subtracting the second fault power from the first fault power to obtain a first difference value; and if the first fault power is smaller than the second fault power, subtracting the first fault power from the second fault power to obtain a first difference value.
If the absolute value of the difference between the ratio of the current first power and the current second power and the preset ratio is smaller than or equal to a first preset error value, and the power failure in the first cabinet is the power failure in the first power module, whether the power failure in the first power module is eliminated is determined by judging whether the first reduction power value and the first increase power value are equal to each other within an error allowable range and whether the first reduction power value is equal to half of the first difference value within the error allowable range. And if the two terms are equal, determining that the power failure in the first power supply module is eliminated.
If the absolute value of the difference between the ratio of the current first power and the current second power and the preset ratio is smaller than or equal to a first preset error value, and the power failure in the first cabinet is the power failure in the second power module, whether the power failure in the second power module is eliminated is determined by judging whether the second reduced power value and the second increased power value are equal to each other within an error allowable range and whether the second reduced power value is equal to half of the first difference within the error allowable range. And if the two terms are equal, determining that the power failure in the second power supply module is eliminated.
In an embodiment of the present invention, the step S201 may include the following steps:
acquiring voltage and current of a first power supply circuit for supplying power to a first power module of a first cabinet and voltage and current of a second power supply circuit for supplying power to a second power module of the first cabinet;
and calculating a first power supplied by the first power supply line to the first power module of the first cabinet according to the voltage and the current supplied by the first power supply line to the first power module of the first cabinet, and calculating a second power supplied by the second power supply line to the second power module of the first cabinet according to the voltage and the current supplied by the second power supply line to the second power module of the first cabinet.
In the embodiment of the present invention, the voltage and the current of the first power module of the first cabinet supplied by the first power supply line and the voltage and the current of the second power module of the first cabinet supplied by the second power supply line may be obtained.
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.
Fig. 5 is a schematic block diagram of a power failure monitoring system applied to a data center according to an embodiment of the present invention, and only a part related to the embodiment of the present invention is shown for convenience of explanation.
In the embodiment of the present invention, the power failure monitoring system 50 applied to the data center is applied to an at least two-way power supply system of the data center, and the power failure monitoring system 50 applied to the data center may include a power obtaining module 501 and a power failure determining module 502.
The power obtaining module 501 is configured to obtain first power, which is provided by a first power supply line for supplying power to a first power module of a first cabinet, and second power, which is provided by a second power supply line for supplying power to a second power module of the first cabinet, where the first cabinet is any one of the cabinets of the data center.
A power failure determining module 502, configured to determine that a power failure exists in the first cabinet and perform a power failure alarm of the first cabinet if an absolute value of a difference between a ratio of the first power and the second power and a preset ratio is greater than a first preset error value.
Alternatively, the power failure determination module 502 may include a first power failure determination unit and a second power failure determination unit.
The first power failure determination unit is configured to determine that a power failure exists in the first power module and perform a first power module failure alarm of the first cabinet if an absolute value of a difference between a ratio of the first power to the second power and a preset ratio is greater than a first preset error value and the ratio of the first power to the second power is smaller than the preset ratio.
And the second power failure determination unit is used for determining that a power failure exists in the second power module and performing a second power module failure alarm of the first cabinet if the absolute value of the difference value between the ratio of the first power to the second power and the preset ratio is greater than the first preset error value and the ratio of the first power to the second power is greater than the preset ratio.
Optionally, the power failure monitoring system 50 applied to the data center may further include a power marking module, a current power obtaining module, a failure elimination determination module, and a stop alarm module.
And the power marking module is used for marking the first power as the first fault power and marking the second power as the second fault power.
And the current power acquisition module is used for acquiring the current first power and the current second power.
And the fault elimination determining module is used for determining whether the power failure in the first cabinet is eliminated according to the current first power, the current second power, the first fault power and the second fault power.
And the stopping alarm module is used for stopping the first cabinet power failure alarm if the power failure in the first cabinet is eliminated.
Optionally, the failure elimination determination module is specifically configured to:
if the absolute value of the difference value between the ratio of the current first power and the current second power and the preset ratio is smaller than or equal to a first preset error value, and the power failure in the first cabinet is the power failure in the first power module, calculating a first reduction power value of the current second power, which is reduced compared with the second failure power, and a first increase power value of the current first power, which is increased compared with the first failure power;
if the absolute value of the difference value between the first reduction power value and the first increase power value is less than or equal to a second preset error value, determining that the power failure in the first power module is eliminated;
if the absolute value of the difference value between the ratio of the current first power and the current second power and the preset ratio is smaller than or equal to a first preset error value, and the power failure in the first cabinet is the power failure in the second power module, calculating a second reduction power value of the current first power, which is reduced compared with the first failure power, and a second increase power value of the current second power, which is increased compared with the second failure power;
and if the absolute value of the difference value of the second reduction power value and the second increase power value is less than or equal to a second preset error value, determining that the power failure in the second power module is eliminated.
Optionally, the power obtaining module 501 is specifically configured to:
acquiring voltage and current of a first power supply circuit for supplying power to a first power module of a first cabinet and voltage and current of a second power supply circuit for supplying power to a second power module of the first cabinet;
and calculating a first power supplied by the first power supply line to the first power module of the first cabinet according to the voltage and the current supplied by the first power supply line to the first power module of the first cabinet, and calculating a second power supplied by the second power supply line to the second power module of the first cabinet according to the voltage and the current supplied by the second power supply line to the second power module of the first cabinet.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing functional units and modules are merely illustrated in terms of division, and in practical applications, the foregoing functional allocation may be performed by different functional units and modules as needed, that is, the internal structure of the power failure monitoring system applied to the data center is divided into different functional units or modules to perform all or part of the above described functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the above-mentioned apparatus may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Fig. 6 is a schematic block diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 6, the terminal device 60 of this embodiment includes: one or more processors 601, a memory 602, and a computer program 603 stored in the memory 602 and executable on the processors 601. The processor 601, when executing the computer program 603, implements the above steps in each embodiment of the power failure monitoring method applied to the data center, such as steps S201 to S202 shown in fig. 2. Alternatively, the processor 601, when executing the computer program 603, implements the functions of the modules/units in the power failure monitoring system embodiment applied to the data center, such as the functions of the modules 501 to 502 shown in fig. 5.
Illustratively, the computer program 603 may be partitioned into one or more modules/units that are stored in the memory 602 and executed by the processor 601 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 603 in the terminal device 60. For example, the computer program 603 may be divided into a success rate obtaining module and a power failure determining module, and the specific functions of each module are as follows:
the power acquisition module is used for acquiring first power which is supplied by a first power supply circuit to a first power module of a first cabinet and second power which is supplied by a second power supply circuit to a second power module of the first cabinet, and the first cabinet is any one cabinet of the data center;
and the power failure determination module is used for determining that a power failure exists in the first cabinet and giving an alarm for the power failure of the first cabinet if the absolute value of the difference value between the ratio of the first power to the second power and the preset ratio is greater than the first preset error value.
Other modules or units can refer to the description of the embodiment shown in fig. 5, and are not described again here.
The terminal device 60 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device 60 includes, but is not limited to, a processor 601 and a memory 602. Those skilled in the art will appreciate that fig. 6 is only one example of a terminal device 60, and does not constitute a limitation of the terminal device 60, and may include more or less components than those shown, or combine certain components, or different components, for example, the terminal device 60 may also include an input device, an output device, a network access device, a bus, etc.
The Processor 601 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 602 may be an internal storage unit of the terminal device 60, such as a hard disk or a memory of the terminal device 60. The memory 602 may also be an external storage device of the terminal device 60, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 60. Further, the memory 602 may also include both an internal storage unit of the terminal device 60 and an external storage device. The memory 602 is used for storing the computer program 603 and other programs and data required by the terminal device 60. The memory 602 may also be used to temporarily store data that has been output or is to be output.
In the above embodiments, the data center of the two-way power supply system is taken as an example, and for the data center of other multi-way power supply systems, only one or more ways of power supply are added on the basis of the two-way power supply system, and the above scheme is also applicable.
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.
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 application.
In the embodiments provided in the present application, it should be understood that the disclosed power failure monitoring system and method applied to a data center may be implemented in other ways. For example, the above-described power failure monitoring system embodiments applied to a data center are merely illustrative, and for example, the division of the modules or units is only one logical function division, and there may be other division ways in actual implementation, 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 units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. 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.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should 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 application and are intended to be included within the scope of the present application.