CN-122019279-A - Test method and related equipment
Abstract
The application relates to a testing method and related equipment, wherein the testing method is applied to testing management equipment in a testing system, the testing system further comprises power control equipment which is respectively connected with the testing management equipment and a plurality of power modules in a tested server, the method comprises the steps of obtaining first quantity of all the power modules in the tested server, determining a target redundancy strategy corresponding to the tested server based on the first quantity, wherein the target redundancy strategy is used for indicating the relation between the power modules in a working state and the power modules in a standby state in the tested server, generating a testing instruction sequence corresponding to the tested server based on the target redundancy strategy, and controlling on-off of each power module in the tested server through the power control equipment based on the testing instruction sequence so as to complete redundancy testing of the power modules in the tested server. The application improves the testing efficiency and accuracy and provides powerful guarantee for the power supply stability of the subsequent server.
Inventors
- LIU JIANCHANG
- CHEN YING
- QIN XIAONING
Assignees
- 智锐达科技(杭州)有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20251212
Claims (10)
- 1. A test method, applied to a test management apparatus in a test system, the test system further comprising a power control apparatus connected to the test management apparatus and a plurality of power modules in a server under test, respectively, the method comprising: acquiring a first number of all the power modules in the tested server; determining a target redundancy strategy corresponding to the tested server based on the first quantity, wherein the target redundancy strategy is used for indicating the relation between the power supply module in a working state and the power supply module in a standby state in the tested server; Generating a test instruction sequence corresponding to the tested server based on the target redundancy strategy; And controlling the on-off of each power module in the tested server through the power control equipment based on the test instruction sequence so as to complete the redundancy test of the power modules in the tested server.
- 2. The method of claim 1, wherein determining, based on the first number, a target redundancy policy for the server under test comprises: Inquiring a first association relation based on the first quantity to obtain a preset redundancy strategy corresponding to the first quantity, wherein the first association relation stores a plurality of groups of corresponding relations between the preset quantity and the preset redundancy strategy; The preset redundancy strategy corresponding to the first quantity is determined to be the target redundancy strategy corresponding to the tested server, or, Obtaining target power consumption corresponding to the tested server and rated power corresponding to each power module in the tested server, wherein the target power consumption is used for indicating the maximum power consumption of the allowable tested server; and determining a target redundancy strategy corresponding to the tested server based on the first quantity, the target power consumption and the rated power.
- 3. The method of claim 2, wherein the determining a target redundancy policy for the server under test based on the first number, the target power consumption, and the respective power ratings comprises: Determining a second number corresponding to the tested server based on the first number, wherein the second number is used for indicating the maximum number of simultaneous faults of the power supply modules in the tested server in the working state; Determining a plurality of power module groups meeting a first preset condition based on the second number, the target power consumption, the rated power and the power modules, wherein the power module groups comprise a first power module set in a working state and a second power module set in a standby state; Determining a target redundancy strategy corresponding to the tested server based on a plurality of power module groups; When the number of simultaneous faults of the power supply modules in the first power supply module set does not exceed the second number, enabling the corresponding number of the power supply modules from the second power supply module set, and then obtaining the sum of the rated powers corresponding to all the power supply modules in the first power supply module set again to be larger than or equal to the target power consumption.
- 4. The method of claim 3, wherein determining, based on the plurality of power module groups, a target redundancy policy corresponding to the server under test, comprises: determining a third number corresponding to the tested server based on the first number, wherein the third number is used for indicating the minimum number for allowing the power modules in the tested server in the working state to work simultaneously; Determining, for each of the power module groups, a fourth number of the power modules in the first set of power modules included in the power module group; Determining the first power module set meeting a second preset condition from the first power module sets included in the plurality of power module groups, wherein the second preset condition includes that the fourth number corresponding to the first power module set is greater than or equal to the third number; and determining a target redundancy strategy corresponding to the tested server based on the power module group to which the first power module set meeting the second preset condition belongs.
- 5. A method according to claim 3, wherein the target redundancy strategy is further for indicating the second number; The generating a test instruction sequence corresponding to the tested server based on the target redundancy strategy comprises the following steps: Determining a redundancy test template corresponding to the tested server based on the second quantity and the first quantity indicated by the target redundancy strategy; Instantiating the redundancy test template based on the relation between the power module in the working state and the power module in the standby state in the tested server indicated by the target redundancy strategy to generate a redundancy state matrix, wherein the redundancy state matrix is used for indicating the on-off state of each power module in the tested server under each redundancy fault scene; And generating a test instruction sequence corresponding to the tested server based on the redundant state matrix.
- 6. The method of claim 1, wherein the sequence of test instructions comprises test instructions corresponding in a plurality of redundant fault scenarios; the controlling, by the power control device, on-off of each power module in the tested server based on the test instruction sequence to complete redundancy test of the power modules in the tested server includes: For each redundant fault scene in the test instruction sequence, issuing a test instruction corresponding to the redundant fault scene to the power control equipment so that the power control equipment controls the on-off of each power module in the tested server; Under the condition that the on-off of each power module in the tested server is completed, determining the power supply efficiency and the load balance degree corresponding to a plurality of power modules in the tested server; Determining fault scene energy efficiency corresponding to the redundant fault scene based on the power supply efficiency and the load balance degree; And generating a test result based on the fault scene energy efficiency corresponding to all the redundant fault scenes included in the test instruction sequence so as to complete the redundancy test of the power supply module.
- 7. The method of claim 6, wherein the determining a failure scenario energy efficiency corresponding to the redundant failure scenario based on the power supply efficiency and the load balancing comprises: Determining a target power supply efficiency interval to which the power supply efficiency belongs from a plurality of preset power supply efficiency intervals, so as to determine an efficiency grade corresponding to the power supply efficiency based on the target power supply efficiency interval; Determining a target load balancing degree interval to which the load balancing degree belongs from a plurality of preset load balancing degree intervals, and determining a balancing degree grade corresponding to the load balancing degree based on the target load balancing degree interval; and determining the fault scene energy efficiency corresponding to the redundant fault scene based on the efficiency level and the balance level.
- 8. A test apparatus for use with a test management device in a test system, the test system further comprising a power control device coupled to the test management device and to a plurality of power modules in a server under test, respectively, the apparatus comprising: The acquisition module is used for acquiring the first number of all the power supply modules in the tested server; The determining module is used for determining a target redundancy strategy corresponding to the tested server based on the first quantity, wherein the target redundancy strategy comprises a relation between the power supply module in a working state and the power supply module in a standby state in the tested server; the generation module is used for generating a test instruction sequence corresponding to the tested server based on the target redundancy strategy; And the test module is used for controlling the on-off of each power supply module in the tested server through the power supply control equipment based on the test instruction sequence so as to complete the redundancy test of the power supply module.
- 9. A test management apparatus comprising a processor and a memory, wherein the processor is configured to execute a test program stored in the memory to implement the test method according to any one of claims 1 to 7.
- 10. The test system is characterized by comprising test management equipment and power supply control equipment which is respectively connected with the test management equipment and a plurality of power supply modules in a tested server; The test management apparatus is configured to execute the test method according to any one of claims 1 to 7 to control the power supply control apparatus based on the generated test instruction sequence; the power supply control device is used for controlling the on-off of each power supply module in the tested server based on the control of the test management device so as to complete the redundancy test of the power supply modules in the tested server.
Description
Test method and related equipment Technical Field The present application relates to the field of computer technologies, and in particular, to a testing method and related devices. Background In order to ensure that the server can switch to the standby power module to continue to supply power to the server in the event of a power failure, the server typically employs a multiple power redundancy design. In order to ensure the reliability of the multi-power redundancy design, the multi-power redundancy design needs to be tested. Currently, when testing a multi-power redundancy design, a technician mainly relies on manual testing, i.e., manually plugging in and out a power module in a server and observing the response of the server. However, the test of the multi-power redundancy design is performed manually, so that the test efficiency is low, the test accuracy is affected, and the reliable operation of the subsequent server is affected. Disclosure of Invention In order to solve the above problems, the present application provides a testing method and related equipment. In a first aspect, the present application provides a test method applied to a test management device in a test system, the test system further including a power control device connected to the test management device and a plurality of power modules in a server under test, respectively, the method including: acquiring a first number of all the power modules in the tested server; determining a target redundancy strategy corresponding to the tested server based on the first quantity, wherein the target redundancy strategy is used for indicating the relation between the power supply module in a working state and the power supply module in a standby state in the tested server; Generating a test instruction sequence corresponding to the tested server based on the target redundancy strategy; And controlling the on-off of each power module in the tested server through the power control equipment based on the test instruction sequence so as to complete the redundancy test of the power modules in the tested server. In an optional embodiment, the determining, based on the first number, a target redundancy policy corresponding to the tested server includes: Inquiring a first association relation based on the first quantity to obtain a preset redundancy strategy corresponding to the first quantity, wherein the first association relation stores a plurality of groups of corresponding relations between the preset quantity and the preset redundancy strategy; The preset redundancy strategy corresponding to the first quantity is determined to be the target redundancy strategy corresponding to the tested server, or, Obtaining target power consumption corresponding to the tested server and rated power corresponding to each power module in the tested server, wherein the target power consumption is used for indicating the maximum power consumption of the allowable tested server; and determining a target redundancy strategy corresponding to the tested server based on the first quantity, the target power consumption and the rated power. In an optional embodiment, the determining, based on the first number, the target power consumption, and the rated power, a target redundancy policy corresponding to the tested server includes: Determining a second number corresponding to the tested server based on the first number, wherein the second number is used for indicating the maximum number of simultaneous faults of the power supply modules in the tested server in the working state; Determining a plurality of power module groups meeting a first preset condition based on the second number, the target power consumption, the rated power and the power modules, wherein the power module groups comprise a first power module set in a working state and a second power module set in a standby state; Determining a target redundancy strategy corresponding to the tested server based on a plurality of power module groups; When the number of simultaneous faults of the power supply modules in the first power supply module set does not exceed the second number, enabling the corresponding number of the power supply modules from the second power supply module set, and then obtaining the sum of the rated powers corresponding to all the power supply modules in the first power supply module set again to be larger than or equal to the target power consumption. In an optional embodiment, the determining, based on the plurality of power module groups, a target redundancy policy corresponding to the tested server includes: determining a third number corresponding to the tested server based on the first number, wherein the third number is used for indicating the minimum number for allowing the power modules in the tested server in the working state to work simultaneously; Determining, for each of the power module groups, a fourth number of the power modules in the first set of power modules included in