Disclosure of Invention
In view of the above, there is a need to provide an online BBU power testing apparatus, method and server.
According to a first aspect of the present invention, there is provided a BBU power supply online test apparatus, the apparatus comprising:
a PSU power branch and a BBU power branch;
a plurality of consumer groups;
each gating controller corresponds to one electrical equipment group, two input ends of each gating controller are respectively connected to the PSU power branch and the BBU power branch, and the output ends of each gating controller are configured to gate the PSU power branch or the BBU power branch to supply power to the corresponding electrical equipment group;
and the controller is connected with the control end of each gating controller and is configured to respond to the execution of BBU online test and send a command to the control ends of the plurality of gating controllers so as to enable part of the plurality of electrical equipment groups to be powered by the PSU power branch and the rest of the electrical equipment groups to be powered by the BBU power branch.
In some embodiments, the controller is configured to:
sending a first command to enable gating controllers corresponding to the plurality of electrical equipment groups to gate the PSU power branch for power supply;
responding to the received BBU online test command, and sending a second command to enable a gating controller corresponding to a target electrical device group to gate a BBU power branch, wherein the target electrical device group is any one of the electrical device groups;
responding to the time sent by the second command to reach the preset time, sending a third command to enable a gating controller corresponding to the target electrical device group to gate a PSU power branch, and returning to the step of sending the second command to enable the next target electrical device group to perform BBU online test;
and responding to the BBU online test of the plurality of electrical equipment groups, and sending the first command again to enable gating controllers corresponding to the plurality of electrical equipment groups to gate the PSU power supply branch for power supply.
In some embodiments, the plurality of consumer groups include a motherboard controller or a number of IO cards.
In some embodiments, the predetermined time is 0.5 to 1 second.
According to a second aspect of the present invention, there is also provided a BBU power supply online test method using the apparatus as described in any one of the above, the BBU power supply online test method including the steps of:
dividing the electrical equipment into a plurality of electrical equipment groups, and connecting each electrical equipment group with a PSU power branch and a BBU power branch; and
and sequentially testing each electrical device group, and controlling at most one electrical device group to gate the BBU power supply branch circuit to supply power at each moment in the testing process.
In some embodiments, gating the BBU power branch for power at most one powered device group at each time in the control test procedure comprises:
sending a first command to enable gating controllers corresponding to the plurality of electrical equipment groups to gate the PSU power branch for power supply;
responding to the received BBU online test command, and sending a second command to enable a gating controller corresponding to a target electrical device group to gate a BBU power branch, wherein the target electrical device group is any one of the electrical device groups;
responding to the time sent by the second command to reach the preset time, sending a third command to enable a gating controller corresponding to the target electrical device group to gate a PSU power branch, and returning to the step of sending the second command to enable the next target electrical device group to perform BBU online test;
and responding to the BBU online test of the plurality of electrical equipment groups, and sending the first command again to enable gating controllers corresponding to the plurality of electrical equipment groups to gate the PSU power supply branch for power supply.
In some embodiments, said sending the second command to enable the gating controller corresponding to the target electrical device group to gate the BBU power branch includes: and setting the first enabling signal of the gating controller for controlling the PSU power supply low, and setting the second enabling signal of the gating controller for controlling the BBU power supply high.
In some embodiments, said dividing the electrical devices into a plurality of electrical device groups comprises: and dividing the electrical equipment into a plurality of electrical equipment groups according to functions or power consumption.
According to a third aspect of the present invention, there is provided a server including a BBU power supply online test apparatus including:
PSU power branch and BBU power branch
A plurality of consumer groups;
each gating controller corresponds to one electrical equipment group, two input ends of each gating controller are respectively connected to the PSU power branch and the BBU power branch, and the output ends of each gating controller are configured to gate the PSU power branch or the BBU power branch to supply power to the corresponding electrical equipment group;
and the controller is connected with the control end of each gating controller and is configured to respond to the execution of BBU online test and send a command to the control ends of the plurality of gating controllers so as to enable part of the plurality of electrical equipment groups to be powered by the PSU power branch and the rest of the electrical equipment groups to be powered by the BBU power branch.
In some embodiments, the controller is configured to:
sending a first command to enable gating controllers corresponding to the plurality of electrical equipment groups to gate the PSU power branch for power supply;
responding to the received BBU online test command, and sending a second command to enable a gating controller corresponding to a target electrical device group to gate a BBU power branch, wherein the target electrical device group is any one of the electrical device groups;
responding to the time sent by the second command to reach the preset time, sending a third command to enable a gating controller corresponding to the target electrical device group to gate a PSU power branch, and returning to the step of sending the second command to enable the next target electrical device group to perform BBU online test;
and responding to the BBU online test of the plurality of electrical equipment groups, and sending the first command again to enable gating controllers corresponding to the plurality of electrical equipment groups to gate the PSU power supply branch for power supply.
The BBU power supply online test device is connected with the control end of each gating controller through the controller and configured to send commands to the control ends of the gating controllers in response to the execution of BBU online test so that part of the plurality of electrical device groups use the PSU power branch for power supply and the rest use the BBU power branch for power supply, thereby solving the problem that the power consumption of the electrical device groups is gradually increased while BBU power supply online test needs to provide BBUs with the same PSU current output capacity, reducing the difficulty in BBU type selection, and simultaneously reducing the test cost because the larger the discharge current and the higher the BBU price of the larger capacity.
In addition, the invention also provides an online BBU power supply testing method and a server, which can also realize the technical effects and are not described again.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In one embodiment, referring to fig. 1, the present invention provides an in-line BBU power supply testing apparatus, comprising:
PSU power branch 1 and BBU power branch 2;
a plurality of consumer groups 3;
a plurality of gating controllers 4, each gating controller 4 corresponding to one electrical device group 3, two input ends of each gating controller 4 being respectively connected to the PSU power branch 1 and the BBU power branch 2, and an output end thereof being configured to gate the PSU power branch 1 or the BBU power branch 2 to supply power to the corresponding electrical device group 3;
and the controller 5 is connected with the control end of each gating controller 4, and is configured to send a command to the control ends of the plurality of gating controllers 4 in response to the execution of the BBU online test, so that part of the plurality of electrical device groups 3 use the PSU power branch 1 to supply power, and the remaining electrical device groups 3 use the BBU power branch 2 to supply power.
The BBU power supply online test device is connected with the control end of each gating controller through the controller and configured to send commands to the control ends of the gating controllers in response to the execution of BBU online test so that part of the plurality of electrical device groups use the PSU power branch for power supply and the rest use the BBU power branch for power supply, thereby solving the problem that the power consumption of the electrical device groups is gradually increased while BBU power supply online test needs to provide BBUs with the same PSU current output capacity, reducing the difficulty in BBU type selection, and simultaneously reducing the test cost because the larger the discharge current and the higher the BBU price of the larger capacity.
In some embodiments, the controller is configured to:
sending a first command to enable gating controllers corresponding to the plurality of electrical equipment groups to gate the PSU power branch for power supply;
responding to the received BBU online test command, and sending a second command to enable a gating controller corresponding to a target electrical device group to gate a BBU power branch, wherein the target electrical device group is any one of the electrical device groups;
responding to the time sent by the second command to reach the preset time, sending a third command to enable a gating controller corresponding to the target electrical device group to gate a PSU power branch, and returning to the step of sending the second command to enable the next target electrical device group to perform BBU online test;
and responding to the BBU online test of the plurality of electrical equipment groups, and sending the first command again to enable gating controllers corresponding to the plurality of electrical equipment groups to gate the PSU power supply branch for power supply.
In some embodiments, the plurality of consumer groups include a motherboard controller or a number of IO cards.
For example, assuming that for a certain memory device, the first electrical device is a motherboard controller, and the second electrical devices are a plurality of IO cards, the process of performing BBU online test on the memory device is as follows: (1) sending a first command to enable the main board controller and the gating controllers 4 corresponding to the IO cards to gate the PSU power branch 1 for power supply; (2) in response to receiving the BBU online test command, sending a second command to enable the gating controller 4 corresponding to the mainboard controller to close the PSU power branch 1 and open the BBU power branch 2; (3) responding to the time sent by the second command reaching the preset time, sending a third command to enable the gating controller 4 corresponding to the mainboard controller to open the PSU power branch 1 and close the BBU power branch 2, and enable the gating controller 4 corresponding to the IO cards to close the PSU power branch 1 and open the BBU power branch 2; (4) and responding to the time for sending the third command to reach the preset time, and sending the first command again to enable the main board controller and the gating controllers 4 corresponding to the plurality of IO cards to gate the PSU power supply branch circuit 1 for power supply. Preferably, the preset time is 0.5 to 1 second.
In some embodiments, each gating controller 4 is a TPS2456A chip, and as shown in fig. 2 of a specific structure of the TPS2456A chip, a TPS2456A is a two-way 12V protection and blocking ORing controller manufactured by TI corporation, and there are overvoltage, undervoltage, overcurrent protection, and reverse filling prevention for two-way input; an ORing mode is realized between the two outputs (namely, the two outputs supply the output voltage of the two outputs to be high, the output voltage of the two outputs is conducted, and the output voltage of the two outputs is closed).
In some embodiments, the controller 5 is a complex programmable logic device.
In some embodiments, both PSU power branch 1 and the BBU power branch 2 are 12V power supply circuits.
In some embodiments, the number of IO cards is 12-14.
In order to facilitate understanding of the technical solution of the present invention, a storage device is taken as an example below, the storage device includes a motherboard controller (denoted as a component) and a PCIe IO card (denoted as b component) located at a rear end (in this example, one host controller corresponds to 12 PCIe IO cards, for example), when a load that a BBU can bear is equivalent to a PSU, if a test is performed for 1 second, the storage software issues a command to a lower layer controller CPLD, and the CPLD opens a BBU power branch switch of TPS2456A connected to the motherboard controller, and simultaneously opens a BBU power branch switch of TPS2456A connected to the 12 PCIe IO cards. After the state is executed for 1s, the upload storage software sends a command to the lower-layer CPLD to turn on the PSU power branch switch of the TPS2456A connected with the mainboard controller and turn on the PSU power branch switch of the TPS2456A connected with the IO card, so that the test is completed, and the process only needs one second.
It should be noted that each component (i.e., the motherboard controller component and the 12 IO card components) in the memory device has a combination switch TPS2456A for the PSU and BBU. When the test is executed for 1 second, the power supply of the main board controller component and the 12 IO card components is simultaneously switched from the PSU to the BBU, and all circuits related to the BBU combination on the equipment are verified at one time. If the power consumption of the storage device is high and the load born by the BBU is insufficient, the two parts are tested by adopting a time-sharing test strategy, and the specific implementation test process is as follows:
the storage software sends a command A to a lower-layer control device CPLD, and the CPLD switches the PSU power branch switch of the TPS2456A connected to the part a and simultaneously opens the BBU power branch switch of the TPS2456A connected to the part a.
After the execution of the state for 1s (timing by the storage software), the storage software sends a command B to the lower-layer control device CPLD, and the CPLD opens the PSU power branch switch of the TPS2456A connected to the part a and closes the BBU power branch switch of the TPS2456A of the part a.
The storage software sends a command C to a lower-layer control device CPLD, and the CPLD closes the PSU power branch switch of the TPS2456A connected to the component b and simultaneously opens the BBU power branch switch of the TPS2456A connected to the component b.
After the execution of the state for 1s (timing by the storage software), the storage software sends a command D to the lower-layer control device CPLD, and the CPLD opens the PSU power branch switch of the TPS2456A connected to the b component and closes the BBU power branch switch of the TPS2456A connected to the b component.
By adopting the mode, the BBU power supply can be used for testing the component a and the component b in a time sharing mode for 1 second, the BBU power supply only needs to bear the maximum load of the two components, the sum of the two loads does not need to be borne at the same time, the power consumption of the BBU is not required to be increased along with the power consumption of the storage device when the equipment is tested for 1 second in a time sharing mode in batches by the two power utilization components, the BBU with the same PSU current output capacity is not required to be provided for testing for 1 second, the difficulty in BBU model selection is reduced, meanwhile, the BBU with large capacity is avoided being used for testing, and the testing cost is reduced.
The BBU power supply online test device is connected with the control end of each gating controller through the controller and configured to send commands to the control ends of the gating controllers in response to the execution of BBU online test so that part of the plurality of electrical device groups use the PSU power branch for power supply and the rest use the BBU power branch for power supply, thereby solving the problem that the power consumption of the electrical device groups is gradually increased while BBU power supply online test needs to provide BBUs with the same PSU current output capacity, reducing the difficulty in BBU type selection, and simultaneously reducing the test cost because the larger the discharge current and the higher the BBU price of the larger capacity.
According to a second aspect of the present invention, there is provided a BBU power supply online test method, characterized by using the apparatus as described in any one of the above. The BBU power supply online test method comprises the following steps: dividing the electrical equipment into a plurality of electrical equipment groups, and connecting each electrical equipment group with a PSU power branch and a BBU power branch; and sequentially testing each electrical device group, and controlling at most one electrical device group to gate the BBU power supply branch circuit to supply power at each moment in the testing process.
In some embodiments, gating the BBU power branch for power at most one powered device group at each time in the control test procedure comprises: sending a first command to enable gating controllers corresponding to the plurality of electrical equipment groups to gate the PSU power branch for power supply; responding to the received BBU online test command, and sending a second command to enable a gating controller corresponding to a target electrical device group to gate a BBU power branch, wherein the target electrical device group is any one of the electrical device groups; responding to the time sent by the second command to reach the preset time, sending a third command to enable a gating controller corresponding to the target electrical device group to gate a PSU power branch, and returning to the step of sending the second command to enable the next target electrical device group to perform BBU online test; and responding to the BBU online test of the plurality of electrical equipment groups, and sending the first command again to enable gating controllers corresponding to the plurality of electrical equipment groups to gate the PSU power supply branch for power supply.
In some embodiments, said sending the second command to enable the gating controller corresponding to the target electrical device group to gate the BBU power branch includes: and setting the first enabling signal of the gating controller for controlling the PSU power supply low, and setting the second enabling signal of the gating controller for controlling the BBU power supply high.
FIG. 3 is an architectural diagram of an in-line test for BBU power supplies according to an embodiment of the present invention. As shown in FIG. 3, TPS2456A combines chip including a first enable signal ENA and a second enable signal ENB, ENA controlling the high and low of the level of switch A, ENB controlling the high and low of the level of switch B, switch A for controlling the PSU power supply, switch B for controlling the BBU power supply.
The TPS2456A itself logic is: when ENA is turned on, namely high level, the level of a switch A is set high, so that an external MOS tube is conducted; when ENB is closed, i.e. low, its switch B level is set low, resulting in the external MOS transistor being closed. The principle of BBU power supply online test is explained by taking two electric appliance sets as an example: the CPLD opens a first enable signal ENA of the TPS2456A combiner chip, and the first electrical equipment group is powered by the PSU power supply. When the test is carried out for 1 second, in order to ensure the normal operation of the storage IO (input/output) service, the storage software sends a command A to a lower-layer control device CPLD, the CPLD sets a first enabling signal ENA of a PSU power supply branch of the TPS2456A low, and the logic of a TPS2456A chip turns off a switch A, so that the PSU power supply cannot reach a load. The CPLD simultaneously sets a second enable signal ENB of the BBU power branch of the TPS2456A high, and the logic of the TPS2456A chip turns on a switch B, so that the BBU power is delivered to a load, the equipment normally operates, and the change of power supply cannot be sensed. After the 1s time is executed in this state, the timing of the 1s is completed by the upper storage software, the upper storage software sends a command B, and the lower CPLD executes the reverse operation. (opening the PSU power branch switch of TPS2456A while closing the BBU power branch switch of TPS 2456A. complete the 1 second test, revert to default.)
In some embodiments, said dividing the electrical devices into a plurality of electrical device groups comprises: and dividing the electrical equipment into a plurality of electrical equipment groups according to functions or power consumption. The first type is divided into a type A card, a mainboard, a type B, IO card (and an HBA card), a type C card, a management card and a type D card according to functions. The second type is distinguished according to power consumption, wherein a large-power-consumption devices, such as a type of board card with a CPU and a Memory, B, a type of board card with an RDMA (Remote Direct Memory Access) type chip of an intelligent network card, and C, a type of board card with a fan (because the power consumption of the fan in the server is very large, the power consumption can reach 144W under the condition that one fan is 12V/2A and one controller has 6 fans). The power consumption may be classified in order from high to low.
It should be particularly noted that, the steps in the embodiments of the BBU power supply online test method described above can be mutually intersected, replaced, added, and deleted, so that these reasonable permutation and combination changes should also belong to the scope of protection of the present invention, and should not limit the scope of protection of the present invention to the embodiments.
According to a third aspect of the present invention, there is provided a server including a BBU power supply online test apparatus including: a PSU power branch and a BBU power branch; a plurality of consumer groups; each gating controller corresponds to one electrical equipment group, two input ends of each gating controller are respectively connected to the PSU power branch and the BBU power branch, and the output ends of each gating controller are configured to gate the PSU power branch or the BBU power branch to supply power to the corresponding electrical equipment group; and the controller is connected with the control end of each gating controller and is configured to respond to the execution of BBU online test and send a command to the control ends of the plurality of gating controllers so as to enable part of the plurality of electrical equipment groups to be powered by the PSU power branch and the rest of the electrical equipment groups to be powered by the BBU power branch.
In some embodiments, the plurality of consumer group sets includes a first consumer group set and a second consumer group set, the controller is configured to: sending a first command to enable gating controllers corresponding to the plurality of electrical equipment groups to gate the PSU power branch for power supply; responding to the received BBU online test command, and sending a second command to enable a gating controller corresponding to a target electrical device group to gate a BBU power branch, wherein the target electrical device group is any one of the electrical device groups; responding to the time sent by the second command to reach the preset time, sending a third command to enable a gating controller corresponding to the target electrical device group to gate a PSU power branch, and returning to the step of sending the second command to enable the next target electrical device group to perform BBU online test; and responding to the BBU online test of the plurality of electrical equipment groups, and sending the first command again to enable gating controllers corresponding to the plurality of electrical equipment groups to gate the PSU power supply branch for power supply.
In some embodiments, the plurality of consumer groups include a motherboard controller or a number of IO cards.
In some embodiments, the predetermined time is 0.5 to 1 second.
The server is connected with the control end of each gating controller through the controller and is configured to respond to the BBU online test and send commands to the control ends of the gating controllers so that part of the plurality of electric appliance sets use the PSU power branch for power supply and the rest of the electric appliance sets use the BBU power branch for power supply, therefore, the problem that the power consumption of the electric appliance sets is gradually increased and the BBU power online test needs to provide the BBU with the same PSU current output capacity is solved, the BBU type selection difficulty is reduced, and the BBU price is higher as the discharge current is larger and the capacity is larger, and the test cost is reduced by the device.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.