CN109917894B - Server system, power supply balancing method thereof and power supply - Google Patents
Server system, power supply balancing method thereof and power supply Download PDFInfo
- Publication number
- CN109917894B CN109917894B CN201910168635.5A CN201910168635A CN109917894B CN 109917894 B CN109917894 B CN 109917894B CN 201910168635 A CN201910168635 A CN 201910168635A CN 109917894 B CN109917894 B CN 109917894B
- Authority
- CN
- China
- Prior art keywords
- power
- server system
- power supply
- current
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 56
- 230000008569 process Effects 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 6
- 238000001514 detection method Methods 0.000 claims description 6
- 230000006698 induction Effects 0.000 claims description 3
- 230000009471 action Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000003247 decreasing effect Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000033228 biological regulation Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Landscapes
- Power Sources (AREA)
Abstract
The invention discloses a power supply balancing method of a server system, which is applied to a power supply and comprises the steps of obtaining the current value and the current power consumption set value in the server system; determining the number of power supplies for supplying power at present according to the magnitude of the current value; judging whether the power supply of the server system needs to be stopped or not according to the number of power supplies for supplying power currently in the server system, a power consumption set value and a preset allocation rule, if so, controlling the server system to enter a cold standby state, and if not, controlling the server system to supply power; the preset allocation rule takes the allocation result meeting the power consumption requirement of the server system as a first constraint condition. The invention enables the power supply to adjust whether the power supply is supplied or not according to the current value sensed by the power supply and the power consumption requirement of the server system, thereby realizing the adjustment of the number of the power supplies for supplying power in the server system and improving the power supply balance capability of the server system. The invention also discloses a server system based on the method.
Description
Technical Field
The invention relates to the technical field of server balanced power supply, in particular to a server system and a power supply balancing method thereof. The invention also relates to a power supply.
Background
In today's server designs, more functionality also brings more high peak current demands, and thus there is an increasing need for fault tolerance and redundancy. In such cases, the power system designer may choose to connect two or more power supplies in parallel to implement an 'n + 1' redundant design, where the n +1 architecture refers to adding at least one additional power supply to the system, and when one of the other power supplies fails, the power supply can provide power to the system.
At present, more and more design functions are designed in a server system, more and more Power Supply Units (PSUs) are required, and the Power consumption required by different design functions is different. At present, one method mainly adopted in the aspect of power supply control of a power supply device is to regulate and control the output power consumption of the power supply device and the allocation of the power supply device through a BMC (base management controller) via an I2C (Inter-Integrated Circuit bus; Data-I2C Data transmission; Clock-I2C fundamental frequency level), but the method needs to additionally set a BMC for control; and another common way is to obtain the induced current through the current induction circuit of the power supply itself, so as to control the output power consumption of the power supply. However, this method can only control the output power consumption of the power supply, and cannot allocate the power supply, so that the power supply balancing capability is poor. Wherein,
therefore, how to provide a server system and a power supply balancing method thereof is a problem that needs to be solved by those skilled in the art at present.
Disclosure of Invention
The invention aims to provide a server system and a power supply balancing method thereof, wherein a power supply can directly adjust whether the power supply is supplied or not according to the current value sensed by the power supply and the power consumption requirement of the server system, so that the number of the power supplies for supplying power in the server system can be adjusted, the allocation of the power supplies is completed, and the power supply balancing capability of the server system is improved.
In order to solve the above technical problem, the present invention provides a power supply balancing method for a server system, which is applied to a power supply, and the method includes:
acquiring a current value in a server system sensed in a current sensing circuit of the server system, and acquiring a current power consumption set value of the server system;
determining the number of power supplies currently supplying power in the server system according to the current value;
judging whether the server needs to stop power supply under the current condition according to the number of power supplies for current power supply in the server system, the power consumption set value and a preset allocation rule, if so, controlling the server to enter a cold standby state, and if not, controlling the server to supply power; and the preset allocation rule takes an allocation result meeting the power consumption requirement of the server system as a first constraint condition.
Preferably, the preset allocation rule further uses the number of power supplies for supplying power in the server system, which is the minimum in the allocation result, as the second constraint condition.
Preferably, each power supply is connected with the server through a resistor, and the resistors are arranged in one-to-one correspondence with the power supplies; resistors corresponding to the power supplies connected with the server are connected in parallel to form a resistor parallel circuit; the current sensing circuit senses the current in the parallel circuit of the resistors.
Preferably, the resistance values of the resistors corresponding to the power supplies are the same; the current sensing circuit is used for sensing the current value of a single resistor in the resistor parallel circuit.
Preferably, the process of determining whether to stop power supply at present according to the number of power supplies currently supplying power in the server system, the power consumption setting value, and a preset allocation rule includes:
determining the number of power supplies which need to stop supplying power or increase supplying power at present according to the number of power supplies which supply power at present in the server system, the power consumption set value and the preset allocation rule;
judging whether the power supply state of the self-body needs to be adjusted currently or not according to the preset allocation rule, if the power supply state needs to be adjusted, re-acquiring a current value in the server system sensed in a current sensing circuit of the self-body, determining whether the power supply of the self-body needs to be stopped currently or not according to the re-acquired current value and the preset allocation rule, if so, controlling the self-body to enter a cold standby state, and if not, controlling the self-body to supply power;
and if the power supply state does not need to be adjusted, keeping the current power supply state of the power supply device.
Preferably, the power supply device is preset with a corresponding delay time, and the delay time corresponding to each power supply device is different; after judging that the current self needs to adjust the power supply state according to the preset allocation rule, before reacquiring the current in the server system induced in the self current induction circuit, the method further comprises the following steps:
and waiting according to the delay time set by the current sensing circuit, and re-acquiring the current value sensed in the server system in the current sensing circuit after the waiting is finished.
Preferably, the method further comprises the following steps:
and controlling and adjusting the output power consumption of the current value according to the current value and a preset balance rule.
In order to solve the above technical problem, the present invention further provides a power supply, including:
the current detection unit is used for acquiring a current value in the server system sensed in the current sensing circuit of the current detection unit and acquiring a current power consumption set value of the server system;
the output balancing unit is used for determining the number of the power supplies which supply power currently in the server system according to the current value; judging whether the server needs to stop power supply under the current condition according to the number of power supplies for current power supply in the server system, the power consumption set value and a preset allocation rule, if so, controlling the server to enter a cold standby state, and if not, controlling the server to supply power; the preset allocation rule comprises a first constraint condition that an allocation result meets the power consumption requirement of the server system.
In order to solve the above technical problem, the present invention further provides a server system, which includes a server and a plurality of power supplies, wherein the power supplies include:
the current sensing circuit is used for sensing a current value in the server system;
a memory for storing a computer program;
a processor for implementing the steps of the server system power supply balancing method as claimed in any one of the above when executing the computer program.
Preferably, each power supply is connected with the server through a resistor, and the resistors are arranged in one-to-one correspondence with the power supplies; resistors corresponding to the power supplies connected with the server are connected in parallel to form a resistor parallel circuit; the current sensing circuit senses the current in the parallel circuit of the resistors.
The invention provides a power supply balancing method for a server system, which comprises the steps of obtaining a current value of the server system sensed by a current sensing circuit, obtaining a power consumption set value of the server system, determining the number of power supplies currently powered in the server system according to the current value, and then selectively controlling the server system to enter a cold standby state or supply power according to the number of the power supplies currently powered in the server system, the power consumption set value and a preset allocation rule. Therefore, the power supply can adjust whether the power supply enters a power supply state or not directly according to the current value sensed by the power supply and the power consumption requirement of the server system, so that the number of the power supplies for supplying power in the server system is adjusted, the allocation of the power supplies is completed, and the power supply balance capability of the server system is improved. The invention also provides a server system based on the method.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed in the prior art and the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart of a process of a method for balancing power supply of a server system according to the present invention;
FIG. 2 is a flow chart of another method for balancing power supplied to a server system according to the present invention;
FIG. 3 is a flow chart of another method for balancing power supplied to a server system according to the present invention;
FIG. 4 is a schematic diagram of a parallel resistor circuit in a server system according to the present invention;
FIG. 5 is a schematic diagram of a cold standby power supply in a server system according to the present invention;
fig. 6 is a schematic diagram of a power supply provided by the present invention.
Detailed Description
The core of the invention is to provide a server system and a power supply balancing method thereof, a power supply can directly adjust whether the power supply is supplied or not according to the current value sensed by the power supply and the power consumption requirement of the server system, thereby realizing the adjustment of the number of the power supplies for supplying power in the server system, completing the allocation of the power supplies and improving the power supply balancing capability of the server system.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention provides a power supply balancing method of a server system, which is applied to a power supply, and as shown in figure 1, the method comprises the following steps:
step s 1: acquiring a current value in the server system sensed in the current sensing circuit of the server system and acquiring a current power consumption set value of the server system;
it can be understood that a current sensing circuit is arranged in the power supply, the current sensing circuit can obtain a current value, and the current value in the server system is increased along with the increase of the number of the current sensing circuits for supplying power. Therefore, by acquiring the current value in the server system, the number of the current suppliers currently supplying power can be determined accordingly. And the current power consumption set value of the server system refers to a power consumption initial value set by the system at present, and the initial value can represent the power consumption requirement of the server system. In addition, when the power supply acquires the power consumption setting value of the server system, it is generally adopted to connect the server via the I2C bus to acquire the power consumption setting value, because the I2C bus protocol enables acquisition of the characteristic data, and thus, the power consumption setting value can be read via the I2C bus. Of course, in practical application, other manners may also be adopted to obtain the current power consumption setting value of the server system, which is not limited in the present invention.
Step s 2: determining the number of power supplies currently supplying power in the server system according to the current value;
step s 3: judging whether the power supply of the server system needs to be stopped under the current condition according to the number of power supplies for supplying power currently in the server system, the power consumption set value and a preset allocation rule, if so, controlling the server system to enter a cold standby state, and if not, controlling the server system to supply power; the preset allocation rule takes the allocation result meeting the power consumption requirement of the server system as a first constraint condition.
After the number of the power supplies supplying currently is determined, the number of the power supplies supplying power to be increased or decreased can be selected according to the power consumption requirement (i.e., the power consumption set value) of the server system. And specifically controlling each power supply to control whether to supply power or to control the power supply to enter a cold standby state according to a preset allocation rule. Among them, since the object of the present invention is to adjust the power consumption of the server system by adjusting the number of power supplies that supply power, it may be necessary to increase the number of power supplies that supply power or to decrease the number of power supplies that supply power. Therefore, in order to achieve the above object, in addition to the power supply currently in an operating state being able to perform the above method, the power supply in a cold standby state also needs to be able to perform the above operation so as to select whether to control itself to restore the power supply state.
The invention provides a power supply balancing method for a server system, which comprises the steps of obtaining a current value of the server system sensed by a current sensing circuit, obtaining a power consumption set value of the server system, determining the number of power supplies currently powered in the server system according to the current value, and then selectively controlling the server system to enter a cold standby state or supply power according to the number of the power supplies currently powered in the server system, the power consumption set value and a preset allocation rule. Therefore, the power supply can adjust whether the power supply enters a power supply state or not directly according to the current value sensed by the power supply and the power consumption requirement of the server system, so that the number of the power supplies for supplying power in the server system is adjusted, the allocation of the power supplies is completed, and the power supply balance capability of the server system is improved.
Preferably, the preset deployment rule further uses the number of power supplies for supplying power in the server system, which is the minimum of the deployment result, as the second constraint condition.
It can be understood that, in the case of meeting the power consumption requirement of the server system, the smaller the number of power supplies supplying power, the less the power consumption of the entire server system. Therefore, the preset allocation rule ensures that the number of power supplies supplying power in the server system is minimum as the second constraint condition. The number of power supplies for supplying power is minimized under the condition that the power consumption requirement of the server system is met, and therefore the purpose of energy saving is achieved.
In other embodiments, the output power consumption of each power supply may be different because the power supply may adjust its output power consumption according to the current demand of the server system. In this case, when the power consumption requirement of the server system is met, the number of the power supplies supplying power may not reach the minimum value specified by the original preset allocation rule. For example, suppose that five power supplies are currently supplying power and need to be reduced to three, but because one of the power supplies has larger output power consumption, the power consumption of the server system already meets the requirement after the power supply stops supplying power, in this case, if the second constraint condition is not defined, the power supplies supplying power at this time will be kept at four instead of reaching the minimum value specified according to the preset regulation rule. Of course, whether to set the second constraint condition may be determined according to the requirements of the application, and the application is not limited thereto.
Preferably, each power supply is connected with the server through a resistor, and the resistors are arranged in one-to-one correspondence with the power supplies; the resistors corresponding to the power supplies connected with the server are connected in parallel to form a resistor parallel circuit; the current sensing circuit senses the current in the resistive parallel circuit. See fig. 4 and 5.
It can be understood that, in this embodiment, in order to facilitate the power sensing circuit to obtain the current in the server system and determine the number of power supplies currently supplying power, a corresponding resistor is provided for each power supply, after the connection is established between the power supply and the server, one end of the resistor is connected to the output end of the power supply, the other end of the resistor is connected to the server, and for each power supply connected to the server, the resistors are connected in parallel with each other. For example, assuming that the resistor corresponding to the power supply a is resistor 1 and the resistor corresponding to the power supply B is resistor 2, when the power supplies a and B are connected to the server, the resistors 1 and 2 are connected in parallel to form a resistor parallel circuit. It can be understood that, when the resistors are connected in parallel, the resistance of the whole resistor is lower, and the current input into the resistor parallel circuit by each power supply is larger. Therefore, according to the current condition in the resistance parallel circuit, several resistances can be determined to be connected in parallel, and several power supplies are determined to be connected with the server and supply power to the server. Therefore, the number of the power supplies for supplying power in the current server system can be intuitively determined according to the current value of the resistance parallel circuit.
Furthermore, the resistance values of the resistors corresponding to the power supplies are the same; the current sensing circuit is used for sensing the current value on a single resistor in the resistor parallel circuit.
It can be understood that, when the number of the resistors connected in parallel is larger, the overall resistance of the resistors is smaller, so that the current output by each power supply is larger, and in this case, not only the total current in the resistor parallel circuit is increased. The greater the current on a single resistor within the parallel circuit of resistors. For example, the resistance value of the resistor corresponding to each power supply is R, when the resistor parallel circuit has only one resistor, the current on the resistor is I, when there are two resistors connected in parallel, the currents output by the power supplies corresponding to the two resistors are I1 and I2, respectively, so that the current flowing through each resistor is (I1+ I2)/2, and since I1 and I2 are both greater than I, I1+ I2)/2 is also greater than I, so that the current flowing through each resistor is greater than that flowing through only one resistor. Therefore, the number of power supplies supplying power can be determined by the current on the single resistor of the resistor parallel circuit. The present embodiment defines that the resistance values of the resistors corresponding to the power supplies are the same, so as to calculate the number of the power supplies to be supplied after obtaining the current on the resistor. Of course, in other embodiments, after the current is drawn. The number of power supplies for supplying power may not be determined by formula calculation, but a table may be directly stored in each power supply, and the number of power supplies corresponding to each current value is recorded in the table.
In addition, in other embodiments, when the resistance values corresponding to the power supplies are the same, the current sensing circuit may also obtain the total output current of the parallel resistance circuit, and determine the number of power supplies supplying power accordingly.
Since the above embodiments can only determine the number of currently-supplied power supplies, and there is no way to determine which currently-supplied power supplies are, in order to realize that the number of currently-supplied power supplies can be identified according to the current value, the present invention provides the following embodiments:
in this embodiment, the resistance values of the resistors corresponding to the power supplies are different; the current sensing circuit senses the total output current of the parallel resistance circuit.
Correspondingly, the process of determining the number of the power supplies currently supplying power in the server system according to the magnitude of the current value is as follows: and determining the power supply group corresponding to the current value according to the magnitude of the current value and a preset current group corresponding table to obtain the number and the label of the power supplies which are currently supplied with power.
It will be appreciated that the present invention is directed to meeting the power consumption requirements of a server system by adjusting the number of power supplies that are currently supplying power. The invention is applied to each power supply, so that the situation that the power consumption requirement of a server system cannot be met due to the fact that each power supply selects to change the state of the power supply when the number of the power supplies needing to supply power is adjusted is avoided. The present invention needs to be able to ensure that only a required number of power supplies adjust their own state at a time according to a predictive deployment rule. For example, if there are five power supplies currently supplying power, but only three power supplies are needed to supply power, and therefore two power supplies are needed to enter the cold standby state, in this case, since each power supply can know the above requirement, it is necessary to avoid the situation that more than two power supplies control themselves to enter the standby state.
In a preferred embodiment, the power supplies can know the label of the currently-supplied power supply by pre-storing the priority sequence of each power supply in the power supply and setting different resistance values of different power supplies, so as to achieve the purpose of adjusting the state of the power supplies by only needing a plurality of power supplies each time. In the method, the number and the label of the power supplies which are currently supplied with power are determined according to the current value of the server system, the number of the power supplies which need to be increased or decreased currently is known, the priority of the power supplies which are currently supplied with power is determined according to the label of the power supply which is currently supplied with power, and the priority of the power supply in which the power supplies are located and the priority of the power supply which is not supplied with power are determined. And then judging whether the power supply is required to be stopped or carried out according to the information. For example, if two power supplies are needed to supply power, and the power supply in which the power supply is located is in a cold standby state and has the highest priority level, the power supply is restored. Of course, in this method, a power supply device with a high priority level and requiring power restoration may be present, and power cannot be supplied due to no power line being plugged in, which may result in that the original adjustment requirement cannot be met after the adjustment is completed, and therefore, the adjustment may be continued in the next number adjustment. In addition, in order to avoid the occurrence of the adjustment completion as much as possible. In the case where the number of power supplies supplying power is too large or too small, each power supply may have a different priority.
In another embodiment, for the purpose of adjusting the status of only a required number of power supplies at a time, the following manner can be adopted, as shown in fig. 2, that is, the process of step s3 includes:
step s 31: determining the number of power supplies which need to stop supplying power or increase supplying power at present according to the number of power supplies which supply power at present in the server system, the power consumption set value and a preset allocation rule;
step s 32: judging whether the power supply state needs to be adjusted at present according to a preset allocation rule, and if the power supply state needs to be adjusted, entering a step s 33; and if the power supply state does not need to be adjusted, keeping the current power supply state of the power supply device.
Step s 33: the current value of the server system sensed in the current sensing circuit of the server system is obtained again, whether the current server system needs to stop power supply or not is determined according to the obtained current value and a preset allocation rule, if yes, the server system is controlled to enter a cold standby state, and if not, the server system is controlled to supply power.
It can be understood that each power supply has time error when acquiring the current value, so that each power supply has different time when determining whether to adjust the state. For example, if it is currently necessary to reduce one power supply, in this case, when the power supply a determines that it needs to enter the cold standby state, the power supply B may already enter the cold standby state, and thus the power supply a is no longer required to adjust its state. In order to avoid the situation that the power supply with relatively late time does not know the adjustment conditions of other power supplies, namely the number of the finally obtained power supplies for supplying power is not in accordance with the requirement due to the self state adjustment, when each power supply judges that the power supply state needs to be adjusted, whether the power supply with relatively high speed finishes the adjustment is determined by the current value. So that no adjustment of the state is required by itself. And if the number of the power supplies which need to supply power is judged not to reach the power consumption requirement of the server according to the current value, the power supply state of the server is adjusted at the moment. The method can ensure that the number of the power supplies for supplying power can meet the power consumption requirement of the server after one-time adjustment is completed as far as possible. In addition, when the current value in the server system is obtained again, because the power consumption requirement of the server system is not changed at this time, the power consumption set value of the server system can not be obtained any more at this time, but the judgment can be carried out according to the power consumption set value obtained at the previous time; of course, in other embodiments, the power consumption setting value of the server system may also be obtained, which is not limited in the present invention.
In another preferred embodiment, in order to achieve the above purpose, delay times corresponding to the power supplies themselves may be preset in the power supplies, and the delay times corresponding to the power supplies are different; after determining that the power supply state of the user needs to be adjusted according to the preset allocation rule, referring to fig. 3, before entering step s33, the method further includes:
step s 330: wait according to the delay time set by itself, and after waiting, go to step s 33.
It can be understood that, because the time error between different power supplies may be very small, in this case, when the previous power supply starts to adjust its state but has not yet been adjusted, the subsequent power supply may also determine that it needs to adjust its state, and in this case, because it is determined according to the current in the current server system that it is known that the current does not meet the actual power consumption requirement, the subsequent power supply may also start to adjust its state, so that the number of power supplies in the adjusted state is too large, and the final result does not meet the requirement. Therefore, in order to avoid this situation, compared with a time error with strong randomness, different delay times are set for each power supply, when it is determined that the power supply state of the power supply needs to be adjusted, the current value is detected after the delay time of the power supply reaches, whether the power supply power consumption requirement of the server is met is determined, if the power supply power consumption requirement of the server is met, the power supply state of the power supply does not need to be adjusted, and if the power supply power consumption requirement of the server is not met, the power supply state of the power supply is adjusted. For example, if only one power supply needs to be added currently, and the delay time of the power supply a is 5s, when the power supply a determines that it needs to be adjusted from the cold standby to the power supply state, it first waits for 5s, and then determines that it does not need to adjust the state of the power supply itself, and if the delay time is less than that of the power supply itself, the number of power supplies supplying power in the server system is satisfied, so the power supply a does not need to adjust any more. Therefore, the method of the embodiment basically avoids the situation that the number of the finally adjusted power supplies does not meet the requirement, and ensures that the actual power supply of the server system can meet the self power consumption requirement.
In addition, the situation that the server system cannot work due to the fact that all power supplies for supplying power are in cold standby in the adjusting process under certain special conditions is avoided. In a preferred embodiment, the status of one power supply within the server system may be set to always supply power. That is, in any case, the power supply is always in a power supply state and does not enter a cold standby state. Thereby ensuring that the server system is able to have power supply in any situation as much as possible.
Of course, the above are only a few specific examples. The present invention does not limit the specific contents of the preset adjustment rule.
Preferably, the method further comprises:
and controlling and adjusting the output power consumption of the current value according to the current value and a preset balance rule.
It will be appreciated that the power supplied by the power supply is adjusted according to the actual requirements of the server system, so that power can be saved as much as possible while meeting the power consumption requirements of the server system. In this case, in addition to adjusting the number of power supplies that supply power, the output power consumption of the power supplies can be adjusted, thereby achieving the purpose of balanced output of the power supplies in the server system and saving energy as much as possible from multiple aspects. For example, when the power consumption required by the server system is not high, the power saving purpose can be achieved by reducing the number of power supplies for supplying power, or by reducing the power consumption of each power supply for supplying power. And the power supply capability of each power supply can be adjusted in application, so that the power supplies can distribute output power consumption evenly, and the aim of saving power is fulfilled.
The present invention also provides a power supply, as shown in fig. 6, including:
the current detection unit 1 is used for acquiring a current value in the server system sensed in a current sensing circuit of the current detection unit and acquiring a current power consumption set value of the server system;
the output balancing unit 2 is used for determining the number of the current power supplies in the server system according to the current value; judging whether the power supply of the server system needs to be stopped under the current condition according to the number of power supplies for supplying power currently in the server system, a power consumption set value and a preset allocation rule, if so, controlling the server system to enter a cold standby state, and if not, controlling the server system to supply power; the preset allocation rule comprises a first constraint condition that an allocation result meets the power consumption requirement of the server system.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the units described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The invention also provides a server system, which comprises a server and a plurality of power supplies, wherein the power supplies comprise:
the current sensing circuit is used for sensing a current value in the server system;
a memory for storing a computer program;
a processor for implementing the steps of the server system power supply balancing method as in any one of the above when executing the computer program.
As such. Preferably, each power supply is connected with the server through a resistor, and the resistors are arranged in one-to-one correspondence with the power supplies; the resistors corresponding to the power supplies connected with the server are connected in parallel to form a resistor parallel circuit; the current sensing circuit senses the current in the resistive parallel circuit.
Specifically, the power supply and the server are connected in a plug-in manner, a plurality of slots are formed in the server, a resistor is arranged in each slot, and one end of each resistor, which is positioned in each slot, is communicated; after the power supply is inserted into the slot, the resistor in the slot is communicated with the power supply and the server; and the resistors in each slot are connected in parallel with each other. Of course, the resistor may also be disposed at the output end of the power supply, and a wire connected to other slots is disposed in the slot, so that when the power supply is inserted, the resistors in the slots are connected in parallel. Of course, the present invention is not limited to the way in which the power supply is connected to the server, nor is it limited to the way in which the resistor corresponding to the power supply is provided. Only after the power supply is connected with the server, the resistor connected with the output end of the server can be connected in parallel with the resistors corresponding to other power supplies connected with the server.
The above embodiments are only preferred embodiments of the present invention, and the above embodiments can be combined arbitrarily, and the combined embodiments are also within the scope of the present invention. It should be noted that other modifications and variations that may suggest themselves to persons skilled in the art without departing from the spirit and scope of the invention are intended to be included within the scope of the invention as defined by the appended claims.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Claims (9)
1. A power supply balancing method for a server system is applied to a power supply, and comprises the following steps:
acquiring a current value in a server system sensed in a current sensing circuit of the server system, and acquiring a current power consumption set value of the server system;
determining the number of power supplies currently supplying power in the server system according to the current value;
judging whether the server needs to stop power supply under the current condition according to the number of power supplies for current power supply in the server system, the power consumption set value and a preset allocation rule, if so, controlling the server to enter a cold standby state, and if not, controlling the server to supply power; the preset allocation rule takes an allocation result meeting the power consumption requirement of the server system as a first constraint condition;
the process of judging whether to stop power supply per se under the current condition according to the number of the power supplies which supply power currently in the server system, the power consumption set value and a preset allocation rule comprises the following steps:
determining the number of power supplies which need to stop supplying power or increase supplying power at present according to the number of power supplies which supply power at present in the server system, the power consumption set value and the preset allocation rule;
judging whether the power supply state of the self-body needs to be adjusted currently or not according to the preset allocation rule, if the power supply state needs to be adjusted, re-acquiring a current value in the server system sensed in a current sensing circuit of the self-body, determining whether the power supply of the self-body needs to be stopped currently or not according to the re-acquired current value and the preset allocation rule, if so, controlling the self-body to enter a cold standby state, and if not, controlling the self-body to supply power;
and if the power supply state does not need to be adjusted, keeping the current power supply state of the power supply device.
2. The method according to claim 1, wherein the preset allocation rule further uses the allocation result to minimize the number of power supplies supplying power in the server system as the second constraint condition.
3. The server system power supply balancing method according to claim 1,
each power supply is connected with the server through a resistor, and the resistors are arranged in one-to-one correspondence with the power supplies; resistors corresponding to the power supplies connected with the server are connected in parallel to form a resistor parallel circuit; the current sensing circuit senses the current in the parallel circuit of the resistors.
4. The method according to claim 3, wherein the resistance values of the resistors corresponding to the power supplies are the same; the current sensing circuit is used for sensing the current value of a single resistor in the resistor parallel circuit.
5. The power supply balancing method for the server system according to claim 1, wherein the power supply devices are preset with corresponding delay times, and the delay times corresponding to the power supply devices are different; after judging that the current self needs to adjust the power supply state according to the preset allocation rule, before reacquiring the current in the server system induced in the self current induction circuit, the method further comprises the following steps:
and waiting according to the delay time set by the current sensing circuit, and re-acquiring the current value sensed in the server system in the current sensing circuit after the waiting is finished.
6. The method for power balancing of a server system according to claim 1, further comprising:
and controlling and adjusting the output power consumption of the current value according to the current value and a preset balance rule.
7. A power supply, comprising:
the current detection unit is used for acquiring a current value in the server system sensed in the current sensing circuit of the current detection unit and acquiring a current power consumption set value of the server system;
the output balancing unit is used for determining the number of the power supplies which supply power currently in the server system according to the current value; judging whether the server needs to stop power supply under the current condition according to the number of power supplies for current power supply in the server system, the power consumption set value and a preset allocation rule, if so, controlling the server to enter a cold standby state, and if not, controlling the server to supply power; the preset allocation rule comprises a first constraint condition that an allocation result meets the power consumption requirement of the server system;
the process of judging whether to stop power supply per se under the current condition according to the number of the power supplies which supply power currently in the server system, the power consumption set value and a preset allocation rule comprises the following steps:
determining the number of power supplies which need to stop supplying power or increase supplying power at present according to the number of power supplies which supply power at present in the server system, the power consumption set value and the preset allocation rule;
judging whether the power supply state of the self-body needs to be adjusted currently or not according to the preset allocation rule, if the power supply state needs to be adjusted, re-acquiring a current value in the server system sensed in a current sensing circuit of the self-body, determining whether the power supply of the self-body needs to be stopped currently or not according to the re-acquired current value and the preset allocation rule, if so, controlling the self-body to enter a cold standby state, and if not, controlling the self-body to supply power;
and if the power supply state does not need to be adjusted, keeping the current power supply state of the power supply device.
8. A server system, comprising a server and a plurality of power supplies, wherein the power supplies comprise:
the current sensing circuit is used for sensing a current value in the server system;
a memory for storing a computer program;
a processor for implementing the steps of the server system power supply balancing method according to any one of claims 1 to 6 when executing the computer program.
9. The server system according to claim 8, wherein each of the power supplies is connected to the server through a resistor, and the resistors are arranged in one-to-one correspondence with the power supplies; resistors corresponding to the power supplies connected with the server are connected in parallel to form a resistor parallel circuit; the current sensing circuit senses the current in the parallel circuit of the resistors.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910168635.5A CN109917894B (en) | 2019-03-06 | 2019-03-06 | Server system, power supply balancing method thereof and power supply |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910168635.5A CN109917894B (en) | 2019-03-06 | 2019-03-06 | Server system, power supply balancing method thereof and power supply |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109917894A CN109917894A (en) | 2019-06-21 |
CN109917894B true CN109917894B (en) | 2020-11-10 |
Family
ID=66963612
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910168635.5A Active CN109917894B (en) | 2019-03-06 | 2019-03-06 | Server system, power supply balancing method thereof and power supply |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109917894B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111736683B (en) * | 2020-06-19 | 2022-06-17 | 浪潮电子信息产业股份有限公司 | Server, circuit board and power supply system thereof |
CN116430975B (en) * | 2023-06-13 | 2023-09-08 | 苏州浪潮智能科技有限公司 | Blade server power control system and method and blade server |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103176588A (en) * | 2011-12-26 | 2013-06-26 | 技嘉科技股份有限公司 | Computer system |
CN107979060A (en) * | 2017-12-26 | 2018-05-01 | 四川福润得数码科技有限责任公司 | A kind of charge-discharge circuit and power supply power-supplying circuit and control method |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100452632C (en) * | 2005-07-15 | 2009-01-14 | 崇贸科技股份有限公司 | Power supplier with over-low-voltage protecting system and over-low-voltage protection |
CN102318200A (en) * | 2009-02-17 | 2012-01-11 | 华为技术有限公司 | Method and apparatus for managing power supply and power supply system |
CN102023694A (en) * | 2009-09-15 | 2011-04-20 | 联想(北京)有限公司 | Power supply management apparatus, electronic equipment and power supply management method |
CN102508542B (en) * | 2011-11-18 | 2014-11-05 | 百度在线网络技术(北京)有限公司 | Method, system and device for controlling power supply for supplying power to server in centralized way |
WO2013097241A1 (en) * | 2011-12-31 | 2013-07-04 | 华为技术有限公司 | Method and device for processing when power is supplied by multiple sources |
US9846464B2 (en) * | 2014-07-11 | 2017-12-19 | Lite-On Technology Corporation | Power supply system and control method thereof |
CN104866061A (en) * | 2015-05-12 | 2015-08-26 | 浪潮电子信息产业股份有限公司 | Method for controlling redundant power supply, power supply cabinet, and system |
-
2019
- 2019-03-06 CN CN201910168635.5A patent/CN109917894B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103176588A (en) * | 2011-12-26 | 2013-06-26 | 技嘉科技股份有限公司 | Computer system |
CN107979060A (en) * | 2017-12-26 | 2018-05-01 | 四川福润得数码科技有限责任公司 | A kind of charge-discharge circuit and power supply power-supplying circuit and control method |
Also Published As
Publication number | Publication date |
---|---|
CN109917894A (en) | 2019-06-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2210159B1 (en) | System for controlling an array of point-of-load regulators and auxiliary devices | |
KR100986411B1 (en) | Method and system for controlling and monitoring an array of point-of-load regulators | |
EP1984801B1 (en) | Method and system for controlling an array of point-of-load regulators and auxiliary devices | |
US9436249B2 (en) | Rack and power controlling method thereof | |
US20200012327A1 (en) | Supply margining method and apparatus | |
CN109917894B (en) | Server system, power supply balancing method thereof and power supply | |
US8621252B2 (en) | Power management method and apparatus, and power supply system | |
TW201842752A (en) | Power supplying apparatus, power supplying control apparatus, and power supplying control method | |
CN102916835B (en) | A kind of method and device adjusting equipment power dissipation | |
US9735571B2 (en) | N+1 power supply system upgrade using dual output power supplies | |
US20140132070A1 (en) | Rack and power control method thereof | |
KR102146778B1 (en) | Control method of redundant power supply device | |
CN110989818A (en) | PSU power supply method, system, equipment and computer readable storage medium | |
US10976790B2 (en) | Load balancing in multi-port USB systems | |
US10001824B2 (en) | Power system and power allocation method thereof | |
CN109726059A (en) | A kind of server test system | |
TWI454898B (en) | Apparatus and computer system for vr power mode interface | |
TWI497274B (en) | Rack and power controlling method thereof | |
CN109116959B (en) | Power supply system | |
CN115599188A (en) | Server power supply control method and device, storage medium and electronic device | |
CN111813209B (en) | Power pack management and control method, system, device and computer readable storage medium | |
TWI477032B (en) | Rack and power controlling method thereof | |
WO2017023961A1 (en) | Active power transfer switch control to reduce service impacts due to electrical power interruptions | |
JPH03122437A (en) | Apparatus for centralized control of air conditioners | |
JP2000099174A (en) | Automatic voltage setting system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |