A server stability testing method, device, equipment and medium

通过获取服务器的标准信息和冗余电源模块信息,利用BMC切换供电模式,解决了现有技术中只能测试单一供电模式的问题,实现了对多种供电模式下的稳定性测试,提供了更 Comprehensive test results and power management strategies.

CN116089179BActive Publication Date: 2024-12-03NETTRIX INFORMATION IND CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211389107.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-08
Publication Date
2024-12-03
Estimated Expiration
2042-11-08

AI Technical Summary

Technical Problem

The existing server stability testing solution can only test the stability in a single power supply mode, cannot cover multiple optional power supply mode switching scenarios, and cannot fully evaluate the stability of the server in multiple power supply mode switching.

Method used

By obtaining the standard software and hardware information of the server under test and the redundant power module information, combining the power consumption under the preset load, determine the appropriate number of redundant power supplies, and use the substrate management controller (BMC) to switch the server to different power supply modes , obtain power supply power data in various power supply modes and conduct stability tests.

Benefits of technology

It realizes the stability of the test server in multiple power supply mode switching scenarios while ensuring power consumption requirements, and provides more comprehensive test results to help users understand and optimize the server's power management strategy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116089179B_ABST
    Figure CN116089179B_ABST
Patent Text Reader

Abstract

The present invention discloses a server stability test method, device, equipment and medium. The method includes: obtaining test information of the server under test; the test information includes: standard software and hardware information of the server under test, redundant power supply module information and power consumption under a preset load; determining the number of redundant power supplies corresponding to the server under test according to the redundant power supply module information and the power consumption under a preset load; switching the server under test to different power supply modes according to the number of redundant power supplies and standard software and hardware information through the baseboard management controller BMC of the server under test, and performing stability testing on the server under test. The embodiment of the present invention can switch the server under test to different power supply modes while ensuring the power consumption requirements of the server under test, obtain power supply power data after the server under test is switched to multiple different power supply modes, and test the stability of the server under test in multiple power supply mode switching scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a server stability testing method, device, equipment and medium. Background Art

[0002] The power supply is an essential key component of the server. The reliability of the power supply plays a vital role in the stable operation of the server. Currently, servers mainly use redundant power supplies and have a variety of optional power supply modes. The server can switch to different power supply modes. After the power supply mode of the server is changed, the server should maintain stable operation. In the stability test of the server, it is necessary to switch the power supply mode of the server and obtain the power data after the switch.

[0003] In the related art, a commonly used server stability test scheme is: adjust the status of all power modules in the redundant power supply to the standby state; wait for a preset time, adjust the status of all power modules to the working state; wait for a preset time, return to execute the operation of adjusting the status of all power modules in the redundant power supply to the standby state, until the number of executions reaches the preset number of times.

[0004] The server stability test solution of the related technology switches the server to a single power supply mode, and can only test the stability of the server in a single power supply mode switching scenario, but cannot cover multiple optional power supply mode switching scenarios and test the stability of the server in multiple power supply mode switching scenarios. Summary of the invention

[0005] The present invention provides a server stability testing method, device, equipment and medium to solve the problem that the server stability testing scheme in the related art can only test the stability of the server in a single power supply mode switching scenario, and cannot cover multiple optional power supply mode switching scenarios and test the stability of the server in multiple power supply mode switching scenarios.

[0006] According to one aspect of the present invention, a server stability testing method is provided, comprising:

[0007] Acquire test information of the server under test; wherein the test information includes: standard software and hardware information, redundant power module information and power consumption under a preset load of the server under test;

[0008] Determine the number of redundant power supplies corresponding to the tested server according to the redundant power supply module information and the power consumption under the preset load;

[0009] The server under test is switched to different power supply modes through the baseboard management controller BMC of the server under test according to the number of redundant power supplies and the standard software and hardware information, and a stability test is performed on the server under test.

[0010] The technical solution of the embodiment of the present invention can, through the baseboard management controller of the server under test, switch the server under test to different power supply modes according to the number of redundant power supplies and standard software and hardware information while ensuring the power consumption requirements of the server under test, obtain the power power data of the server under test after switching to multiple different power supply modes, and test the stability of the server under test in multiple power supply mode switching scenarios.

[0011] Optionally, the redundant power supply module information includes: the total number of power supplies of the redundant power supply modules of the tested server, identification information and rated power of each power supply in the redundant power supply modules;

[0012] The step of determining the number of redundant power supplies corresponding to the server under test according to the redundant power supply module information and the power consumption under a preset load comprises:

[0013] Obtaining the number of multiple candidate redundant power supplies corresponding to the server under test;

[0014] Determine the total power supply power corresponding to the number of each of the candidate redundant power supplies according to the rated power of each power supply in the redundant power supply module;

[0015] Detecting whether the total power supply corresponding to the number of each of the candidate redundant power supplies is greater than the product of the power consumption under the preset load and a preset proportional coefficient;

[0016] The number of candidate redundant power supplies whose corresponding total power supply power is greater than the product is determined as the number of redundant power supplies corresponding to the tested server.

[0017] The technical solution of the embodiment of the present invention can determine the number of power supplies in the redundant power supply module that need to power the server under test while ensuring the power consumption requirements of the server under test based on the redundant power supply module information and the power consumption under a preset load, so as to facilitate switching the server under test to different power supply modes while ensuring the power consumption requirements of the server under test, obtain the power supply power data of the server under test after switching to multiple different power supply modes, and test the stability of the server under test in multiple power supply mode switching scenarios.

[0018] Optionally, the baseboard management controller BMC of the tested server switches the tested server to different power supply modes according to the number of redundant power supplies and the standard software and hardware information, and performs a stability test on the tested server, including:

[0019] Controlling the server under test to perform a power-on operation through the BMC, randomly selecting power supplies of the redundant power supply quantity from each power supply of the redundant power supply module of the server under test, and setting the selected power supply as a new power supply of the server under test;

[0020] Controlling the server under test to perform a power-off operation through the BMC, and controlling the server under test to perform a power-on operation after a preset interval;

[0021] Acquire current software and hardware information of the tested server, and detect whether the current software and hardware information is the same as the standard software and hardware information;

[0022] If the current software and hardware information is the same as the standard software and hardware information, the server under test is controlled to run under the preset load through the BMC, and during the operation of the server under test, power data of the power supply of the server under test is obtained, and the power data is saved in a preset database;

[0023] By means of the BMC, when the running time of the server under test reaches a preset running time, controlling the server under test to perform a power-off operation;

[0024] Add 1 to the number of tests of the tested server, and detect whether the number of tests of the tested server is equal to the preset number of tests;

[0025] If the test number of the server under test is not equal to the preset test number, the process returns to execute the BMC to control the server under test to perform a power-on operation, randomly selects power supplies of the redundant power supply number from each power supply of the redundant power supply module of the server under test, and sets the selected power supply as a new power supply for the server under test.

[0026] The technical solution of the embodiment of the present invention can, through the baseboard management controller BMC of the server under test, randomly switch the server under test to different power supply modes according to the number of redundant power supplies and standard software and hardware information while ensuring the power consumption requirements of the server under test, obtain the power power data of the server under test after switching to multiple different power supply modes, and test the stability of the server under test in multiple power supply mode switching scenarios.

[0027] Optionally, after detecting whether the current software and hardware information is the same as the standard software and hardware information, the method further includes:

[0028] If the current software and hardware information is different from the standard software and hardware information, a preset abnormal prompt information is provided to the target user.

[0029] The technical solution of the embodiment of the present invention can determine whether the server under test is in a normal working state based on the current software and hardware information and the standard software and hardware information. When it is determined that the server under test is not in a normal working state, the target user is promptly prompted through preset abnormal prompt information.

[0030] Optionally, after detecting whether the number of tests of the tested server is equal to the preset number of tests, the method further includes: if the number of tests of the tested server is equal to the preset number of tests, determining that the test process of the tested server is ended.

[0031] The technical solution of the embodiment of the present invention can, through the baseboard management controller BMC of the server under test, repeatedly execute the operation of randomly switching the server under test to a new power supply mode based on a preset number of tests, and obtain the power power data of the server under test after switching to the new power supply mode, so as to achieve switching the server under test to different power supply modes while ensuring the power consumption requirements of the server under test, obtain the power power data of the server under test after switching to multiple different power supply modes, and test the stability of the server under test in multiple power supply mode switching scenarios.

[0032] Optionally, also include:

[0033] generating a visualization chart corresponding to the power data;

[0034] The visualization chart is provided to a target user.

[0035] The technical solution of the embodiment of the present invention can intuitively provide the power data of the power supply of the tested server to the user through a visual chart.

[0036] Optionally, obtaining test information of the server under test includes:

[0037] Get the test information of the server under test uploaded by the target user.

[0038] The technical solution of the embodiment of the present invention can obtain test information associated with the stability test of the server under test, so as to facilitate the subsequent switching of the server under test to different power supply modes based on the test information, obtain the power data of the server under test after switching to a variety of different power supply modes, and test the stability of the server under test in a variety of power supply mode switching scenarios.

[0039] According to another aspect of the present invention, there is provided a server stability testing device, comprising:

[0040] An information acquisition module, used to acquire test information of the tested server; wherein the test information includes: standard software and hardware information of the tested server, redundant power supply module information, and power consumption under a preset load;

[0041] A quantity determination module, used to determine the quantity of redundant power supplies corresponding to the tested server according to the redundant power supply module information and the power consumption under a preset load;

[0042] The server test module is used to switch the server under test to different power supply modes through the baseboard management controller BMC of the server under test according to the number of redundant power supplies and the standard software and hardware information, and perform stability test on the server under test.

[0043] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:

[0044] at least one processor;

[0045] and a memory communicatively coupled to the at least one processor;

[0046] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the server stability testing method described in any embodiment of the present invention.

[0047] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the server stability testing method described in any embodiment of the present invention when executed.

[0048] The technical solution of the embodiment of the present invention obtains test information of the server under test, and the test information includes: standard software and hardware information of the server under test, redundant power supply module information and power consumption under a preset load; then, according to the redundant power supply module information and the power consumption under the preset load, the number of redundant power supplies corresponding to the server under test is determined; finally, through the baseboard management controller BMC of the server under test, according to the number of redundant power supplies and the standard software and hardware information, the server under test is switched to different power supply modes, and the stability test is performed on the server under test, which solves the problem that the server stability test solution in the related art can only test the stability of the server in a single power supply mode switching scenario, and cannot cover a variety of optional power supply mode switching scenarios, and test the stability of the server in multiple power supply mode switching scenarios, and obtains the beneficial effect of switching the server under test to different power supply modes under the baseboard management controller of the server under test according to the number of redundant power supplies and standard software and hardware information, while ensuring the power consumption requirement of the server under test, obtaining the power supply power data after the server under test is switched to a variety of different power supply modes, and testing the stability of the server under test in multiple power supply mode switching scenarios.

[0049] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0051] Figure 1 A flowchart of a server stability testing method provided in Example 1 of the present invention.

[0052] Figure 2 A flow chart of a server stability testing method provided in Embodiment 2 of the present invention.

[0053] Figure 3 This is a flow chart of a server stability testing method provided in Embodiment 3 of the present invention.

[0054] Figure 4 A schematic diagram of the structure of a server stability testing device provided in Embodiment 4 of the present invention.

[0055] Figure 5 A schematic diagram of the structure of a server for implementing the server stability testing method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0056] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0057] It should be noted that the terms "target", "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "comprise", "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0058] Embodiment 1

[0059] Figure 1 This is a flow chart of a server stability testing method provided in the first embodiment of the present invention. This embodiment is applicable to the case of performing stability testing on a server. The method can be executed by a server stability testing device. The server stability testing device can be implemented in the form of hardware and / or software. The server stability testing device can be configured in an electronic device. Figure 1 As shown, the method includes:

[0060] Step 101: Obtain test information of the server under test.

[0061] The test information includes: standard software and hardware information of the tested server, redundant power supply module information, and power consumption under a preset load.

[0062] Optionally, the server under test is a server that needs to be tested for stability. The test information of the server under test is information associated with the stability test of the server under test. The test information of the server under test includes: standard software and hardware information of the server under test, redundant power module information, and power consumption under a preset load.

[0063] Optionally, the standard software and hardware information of the server under test is the software information and hardware information of the server under test in a normal working state. Software information is the configuration information of each software installed in the server under test. The software configuration information includes but is not limited to the name and version number of the software. Hardware information is the configuration information of the hardware such as the central processing unit (CPU), memory, and hard disk in the server under test. The hardware configuration information includes but is not limited to the name and model of the hardware.

[0064] Optionally, the redundant power supply module information of the server under test includes the total number of power supplies of the redundant power supply module of the server under test, identification information and rated power of each power supply in the redundant power supply module. The redundant power supply module of the server under test is composed of a plurality of identical power supplies, which are used to supply power to the server under test. The total number of power supplies of the redundant power supply module is the total number of power supplies contained in the redundant power supply module. The identification information of the power supply is information used to uniquely identify the power supply. The identification information may be a digital number. The identification information of each power supply in the redundant power supply module is different. The rated power of a power supply refers to the maximum power of the power supply for long-term stable operation. The rated power of each power supply in the redundant power supply module is the same.

[0065] Optionally, the power consumption of the server under test under a preset load is the power consumption of the server under test when the load of the server under test is equal to the preset load. The preset load may be a preset proportion of the full load of the server under test. The full load of the server under test is the maximum load that the server under test can handle. The preset proportion may be set according to business requirements. Exemplarily, the preset proportion is 30%, 50%, 80% or 100%.

[0066] Optionally, obtaining the test information of the server under test includes: obtaining the test information of the server under test uploaded by the target user. The target user may be a technician who load manages the server under test. The target user uploads the test information of the server under test to the electronic device through the terminal device. The electronic device obtains the test information of the server under test uploaded by the target user.

[0067] In this way, test information associated with the stability test of the server under test is obtained, which facilitates the subsequent switching of the server under test to different power supply modes based on the test information, obtains the power data of the server under test after switching to multiple different power supply modes, and tests the stability of the server under test in multiple power supply mode switching scenarios.

[0068] Step 102: Determine the number of redundant power supplies corresponding to the server under test according to the redundant power supply module information and the power consumption under a preset load.

[0069] Optionally, the number of redundant power supplies corresponding to the server under test is the number of power supplies in the redundant power supply module that needs to supply power to the server under test while ensuring the power consumption requirement of the server under test.

[0070] Optionally, the redundant power supply module information includes: the total number of power supplies of the redundant power supply modules of the server under test, identification information and rated power of each power supply in the redundant power supply modules; determining the number of redundant power supplies corresponding to the server under test based on the redundant power supply module information and the power consumption under a preset load, including: obtaining a plurality of alternative redundant power supply quantities corresponding to the server under test; determining the total power supply corresponding to each number of the alternative redundant power supplies based on the rated power of each power supply in the redundant power supply module; detecting whether the total power supply corresponding to each number of the alternative redundant power supplies is greater than the product of the power consumption under the preset load and a preset proportional coefficient; and determining the number of alternative redundant power supplies whose corresponding total power supply is greater than the product as the number of redundant power supplies corresponding to the server under test.

[0071] Therefore, based on the redundant power supply module information and the power consumption under the preset load, the number of power supplies in the redundant power supply module that need to power the server under test while ensuring the power consumption requirement of the server under test can be determined. This facilitates switching the server under test to different power supply modes while ensuring the power consumption requirement of the server under test, obtains power supply data after the server under test is switched to multiple different power supply modes, and tests the stability of the server under test in multiple power supply mode switching scenarios.

[0072] Optionally, the number of multiple alternative redundant power supplies corresponding to the server under test is the number of power supplies in multiple optional redundant power supply modules that supply power to the server under test. The number of alternative redundant power supplies is less than the total number of power supplies of the redundant power supply modules. The preset storage location of the electronic device stores the number of multiple alternative redundant power supplies corresponding to the server under test. The electronic device can obtain the number of multiple alternative redundant power supplies corresponding to the server under test from the preset storage location. Exemplarily, the total number of power supplies of the redundant power supply module of the server under test is 7, and the number of multiple alternative redundant power supplies corresponding to the server under test includes: 2, 4, and 6.

[0073] Optionally, the total power supply corresponding to the number of alternative redundant power supplies is the maximum power that the power supplies of the number of alternative redundant power supplies can provide for the server under test. According to the rated power of each power supply in the redundant power supply module, the total power supply corresponding to each number of the alternative redundant power supplies is determined, including: performing the following operations for each number of alternative redundant power supplies: calculating the product between the rated power of the power supply in the redundant power supply module and the number of alternative redundant power supplies; and determining the product as the total power supply corresponding to the number of the alternative redundant power supplies.

[0074] Optionally, the preset proportional coefficient is greater than 1. Exemplarily, the preset proportional coefficient is 1.2. For each number of alternative redundant power supplies, detect whether the total power supply power corresponding to the number of alternative redundant power supplies is greater than the product of the power consumption under the preset load and the preset proportional coefficient. If it is detected that the total power supply power corresponding to the number of alternative redundant power supplies is greater than the product of the power consumption under the preset load and the preset proportional coefficient, it indicates that when the power supplies of the alternative redundant power supplies are used to power the server under test, the power consumption requirements of the server under test can be guaranteed. If it is detected that the total power supply power corresponding to the number of alternative redundant power supplies is less than or equal to the product of the power consumption under the preset load and the preset proportional coefficient, it indicates that when the power supplies of the alternative redundant power supplies are used to power the server under test, the power consumption requirements of the server under test cannot be guaranteed.

[0075] Optionally, if it is detected that the total power supply power corresponding to the number of alternative redundant power supplies is greater than the product of the power consumption under the preset load and the preset proportional coefficient, indicating that the power supply of the alternative redundant power supplies can guarantee the power consumption requirement of the tested server when supplying power to the tested server, then the number of alternative redundant power supplies is determined as the number of redundant power supplies corresponding to the tested server. The number of redundant power supplies corresponding to the tested server includes one or more numbers of alternative redundant power supplies.

[0076] Step 103 : By means of the baseboard management controller BMC of the server under test, according to the number of redundant power supplies and the standard software and hardware information, the server under test is switched to different power supply modes, and a stability test is performed on the server under test.

[0077] Optionally, the electronic device establishes a communication connection with a baseboard management controller (BMC) of the server under test, and information can be exchanged based on the communication connection. The BMC of the server under test is a management controller of the server under test, which can control the server under test to perform various operations and set the power supply of the server under test.

[0078] Optionally, the server under test is switched to a different power supply mode through the baseboard management controller BMC of the server under test according to the number of redundant power supplies and the standard software and hardware information, and a stability test is performed on the server under test, including: controlling the server under test to perform a power-on operation through the BMC, randomly selecting a power supply with the number of redundant power supplies from each power supply of the redundant power supply module of the server under test, and setting the selected power supply as a new power supply for the server under test; controlling the server under test to perform a power-off operation through the BMC, and controlling the server under test to perform a power-on operation after a preset interval; obtaining current software and hardware information of the server under test, and detecting whether the current software and hardware information is the same as the standard software and hardware information; if the current software and hardware information is the same as the standard software and hardware information The same, then through the BMC, control the server under test to run under the preset load, and during the operation of the server under test, obtain the power data of the power supply of the server under test, and save the power data to a preset database; through the BMC, when the running time of the server under test reaches the preset running time, control the server under test to perform a power-off operation; add 1 to the number of tests of the server under test, and detect whether the number of tests of the server under test is equal to the preset number of tests; if the number of tests of the server under test is not equal to the preset number of tests, return to execute the operation of controlling the server under test to perform a power-on operation through the BMC, randomly select the power supply of the redundant power supply number from each power supply of the redundant power supply module of the server under test, and set the selected power supply as the new power supply of the server under test.

[0079] Therefore, through the baseboard management controller BMC of the server under test, according to the number of redundant power supplies and standard software and hardware information, while ensuring the power consumption requirements of the server under test, the server under test can be randomly switched to different power supply modes, and the power power data of the server under test after switching to multiple different power supply modes can be obtained, so as to test the stability of the server under test in multiple power supply mode switching scenarios.

[0080] Optionally, the BMC is used to control the server under test to perform a power-on operation, randomly select a power supply of the redundant power supply number from each power supply of the redundant power supply module of the server under test, and set the selected power supply as a new power supply for the server under test, including: sending a power-on instruction to the BMC; wherein the power-on instruction is used to instruct the BMC to control the server under test to perform a power-on operation, randomly select a power supply of the redundant power supply number from each power supply of the redundant power supply module of the server under test, and set the selected power supply as a new power supply for the server under test.

[0081] Optionally, randomly selecting power supplies of the redundant power supplies from each power supply of the redundant power supply module of the server under test includes: if the number of redundant power supplies includes an alternative redundant power supply number, randomly selecting power supplies of the redundant power supply number from each power supply of the redundant power supply module of the server under test; if the number of redundant power supplies includes multiple alternative redundant power supply numbers, randomly obtaining one alternative redundant power supply number from the multiple alternative redundant power supply numbers included in the redundant power supply number as the redundant power supply number, and randomly selecting power supplies of the redundant power supply number from each power supply of the redundant power supply module of the server under test.

[0082] Optionally, after setting the selected power supply as the new power supply of the server under test, the BMC feeds back completion prompt information corresponding to the power-on instruction to the electronic device. The completion prompt information corresponding to the power-on instruction is used to prompt the BMC that the operation indicated by the power-on instruction has been completed.

[0083] Optionally, the BMC is used to control the server under test to perform a power-off operation, and after a preset interval, the server under test is controlled to perform a power-on operation, including: after receiving the completion prompt information corresponding to the power-on instruction fed back by the BMC, sending a re-power-on instruction to the BMC; wherein the re-power-on instruction is used to instruct the BMC to control the server under test to perform a power-off operation, and after a preset interval, control the server under test to perform a power-on operation. The preset interval time can be set according to business needs. Exemplarily, the preset interval time is 10 minutes.

[0084] Therefore, after the selected power supply is set as the new power supply of the server under test, the server under test is controlled to be powered on again, so that the server under test is powered by the new power supply and the server under test is switched to the new power supply mode.

[0085] Optionally, the BMC controls the tested server to perform a power-on operation after a preset interval, and then feeds back completion prompt information corresponding to the power-on instruction to the electronic device. The completion prompt information corresponding to the power-on instruction is used to prompt the BMC that the operation indicated by the power-on instruction has been completed.

[0086] Optionally, obtaining current software and hardware information of the server under test, and detecting whether the current software and hardware information is the same as the standard software and hardware information, includes: after receiving completion prompt information corresponding to the power-on again instruction fed back by the BMC, sending an information acquisition instruction to the BMC; wherein the information acquisition instruction is used to instruct the BMC to obtain the current software and hardware information of the server under test from the server under test, and to feed back the current software and hardware information of the server under test; obtaining the current software and hardware information of the server under test fed back by the BMC, and detecting whether the current software and hardware information is the same as the standard software and hardware information.

[0087] Optionally, the BMC collects software information and hardware information of the server under test at the current moment through the information collection process in the server under test, determines the collected information as the current software and hardware information of the server under test, and then sends the current software and hardware information of the server under test to the electronic device. The information collection process is a process set in the server under test for collecting software information and hardware information of the server under test.

[0088] Optionally, after detecting whether the current hardware and software information is the same as the standard hardware and software information, the method further includes: if the current hardware and software information is not the same as the standard hardware and software information, providing a preset abnormal prompt information to the target user. The preset abnormal prompt information is used to prompt that the server under test is not in a normal working state.

[0089] Therefore, it is possible to determine whether the server under test is in normal working condition based on the current software and hardware information and the standard software and hardware information. When it is determined that the server under test is not in normal working condition, the target user is promptly prompted through preset abnormal prompt information.

[0090] Optionally, if the current software and hardware information is the same as the standard software and hardware information, indicating that the server under test is in normal working condition, the BMC is continued to control the server under test to operate under the preset load, and during the operation of the server under test, the power data of the power supply of the server under test is obtained. If the current software and hardware information is different from the standard software and hardware information, indicating that the server under test is not in normal working condition, preset abnormal prompt information is provided to the target user. The electronic device no longer performs subsequent operations and waits for the user to handle the abnormal situation. Providing the preset abnormal prompt information to the target user includes: sending the preset abnormal prompt information to the terminal device of the target user.

[0091] Optionally, through the BMC, controlling the server under test to operate under the preset load, and obtaining the power data of the power supply of the server under test during the operation of the server under test, and saving the power data to a preset database, includes: sending a data acquisition instruction to the BMC; wherein the data acquisition instruction is used to instruct the BMC to control the server under test to operate under the preset load, and obtaining the power data of the power supply of the server under test during the operation of the server under test, and sending the power data of the power supply of the server under test to an electronic device; and saving the power data to a preset database. The power data of the power supply is the output power of the power supply. The preset database is a database for storing the power data of the power supply.

[0092] Therefore, after the server under test is powered by the new power supply and the server under test is switched to the new power supply mode, power data of the server under test after the server under test is switched to the new power supply mode is obtained.

[0093] Optionally, during the operation of the server under test, the BMC periodically obtains power data of the power supply of the server under test, and sends the obtained power data of the power supply of the server under test to the electronic device. Exemplarily, the BMC obtains power data of the power supply of the server under test every 1 minute, and sends the obtained power data of the power supply of the server under test to the electronic device.

[0094] Optionally, through the BMC, when the running time of the server under test reaches a preset running time, the server under test is controlled to perform a power-off operation, including: sending the preset running time to the BMC, so that when the running time of the server under test reaches the preset running time, the BMC controls the server under test to perform a power-off operation. The preset running time is the time that the server under test needs to run under the preset load. The preset running time can be set according to business needs. Exemplarily, the preset running time is 20 minutes.

[0095] Optionally, the number of tests of the server under test is the number of power supply mode switches of the server under test during this test. In an initial state, the number of tests of the server under test is 0. The preset number of tests can be set according to business requirements. Exemplarily, the preset number of tests is 10.

[0096] Optionally, after detecting whether the number of tests of the tested server is equal to the preset number of tests, the method further includes: if the number of tests of the tested server is equal to the preset number of tests, determining that the test process of the tested server is ended.

[0097] Therefore, the baseboard management controller BMC of the server under test can repeatedly execute the operation of randomly switching the server under test to a new power supply mode based on a preset number of tests, and obtaining the power power data of the server under test after switching to the new power supply mode. This can achieve the situation of switching the server under test to different power supply modes while ensuring the power consumption requirements of the server under test, obtaining the power power data of the server under test after switching to multiple different power supply modes, and testing the stability of the server under test in multiple power supply mode switching scenarios.

[0098] Optionally, it also includes: generating a visualization chart corresponding to the power data; and providing the visualization chart to a target user. The visualization chart corresponding to the power data is a visualization chart for displaying the power data. Visualization charts include, but are not limited to, tables, line charts, and curve charts. Providing the visualization chart to a target user includes: sending the visualization chart to a terminal device of the target user. Thus, the power data of the power supply of the server under test can be intuitively provided to the user through the visualization chart.

[0099] The technical solution of the embodiment of the present invention obtains test information of the server under test, and the test information includes: standard software and hardware information of the server under test, redundant power supply module information and power consumption under a preset load; then, according to the redundant power supply module information and the power consumption under the preset load, the number of redundant power supplies corresponding to the server under test is determined; finally, through the baseboard management controller BMC of the server under test, according to the number of redundant power supplies and the standard software and hardware information, the server under test is switched to different power supply modes, and the stability test is performed on the server under test, which solves the problem that the server stability test solution in the related art can only test the stability of the server in a single power supply mode switching scenario, and cannot cover a variety of optional power supply mode switching scenarios, and test the stability of the server in multiple power supply mode switching scenarios, and obtains the beneficial effect of switching the server under test to different power supply modes under the baseboard management controller of the server under test according to the number of redundant power supplies and standard software and hardware information, while ensuring the power consumption requirement of the server under test, obtaining the power supply power data after the server under test is switched to a variety of different power supply modes, and testing the stability of the server under test in multiple power supply mode switching scenarios.

[0100] Embodiment 2

[0101] Figure 2 The flowchart of a server stability testing method provided in the second embodiment of the present invention. The embodiment of the present invention can be combined with each optional solution in one or more of the above embodiments. Figure 2 As shown, the method includes:

[0102] Step 201: Obtain test information of the server under test.

[0103] Among them, the test information includes: standard software and hardware information of the server under test, redundant power supply module information and power consumption under a preset load; the redundant power supply module information includes: the total number of power supplies of the redundant power supply module of the server under test, the identification information and rated power of each power supply in the redundant power supply module.

[0104] Step 202: Obtain the number of multiple candidate redundant power supplies corresponding to the server under test.

[0105] Optionally, the number of multiple alternative redundant power supplies corresponding to the server under test is the number of power supplies in multiple optional redundant power supply modules that supply power to the server under test. The number of alternative redundant power supplies is less than the total number of power supplies in the redundant power supply modules. The preset storage location of the electronic device stores the number of multiple alternative redundant power supplies corresponding to the server under test. The electronic device can obtain the number of multiple alternative redundant power supplies corresponding to the server under test from the preset storage location.

[0106] Step 203: Determine the total power supply power corresponding to the number of the candidate redundant power supplies according to the rated power of each power supply in the redundant power supply module.

[0107] Optionally, the total power supply corresponding to the number of optional redundant power supplies is the maximum power that the power supplies with the optional redundant power supplies can provide to the server under test.

[0108] Optionally, based on the rated power of each power supply in the redundant power supply module, the total power supply power corresponding to the number of each alternative redundant power supply is determined, including: performing the following operations for each number of alternative redundant power supplies: calculating the product between the rated power of the power supply in the redundant power supply module and the number of alternative redundant power supplies; and determining the product as the total power supply power corresponding to the number of alternative redundant power supplies.

[0109] Step 204: Detect whether the total power supply corresponding to the number of the candidate redundant power supplies is greater than the product of the power consumption under the preset load and the preset proportional coefficient.

[0110] Optionally, the preset proportionality coefficient is greater than 1. Exemplarily, the preset proportionality coefficient is 1.2.

[0111] Optionally, for each number of alternative redundant power supplies, detect whether the total power supply power corresponding to the number of alternative redundant power supplies is greater than the product of the power consumption under the preset load and the preset proportional coefficient. If the total power supply power corresponding to the number of alternative redundant power supplies is greater than the product of the power consumption under the preset load and the preset proportional coefficient, it indicates that when the power supplies of the alternative redundant power supplies are used to power the server under test, the power consumption requirements of the server under test can be guaranteed. If the total power supply power corresponding to the number of alternative redundant power supplies is less than or equal to the product of the power consumption under the preset load and the preset proportional coefficient, it indicates that when the power supplies of the alternative redundant power supplies are used to power the server under test, the power consumption requirements of the server under test cannot be guaranteed.

[0112] Step 205: Determine the number of candidate redundant power supplies whose corresponding total power supply power is greater than the product as the number of redundant power supplies corresponding to the server under test.

[0113] Optionally, if it is detected that the total power supply power corresponding to the number of alternative redundant power supplies is greater than the product of the power consumption under the preset load and the preset proportional coefficient, indicating that the power supply of the alternative redundant power supplies can guarantee the power consumption requirement of the tested server when supplying power to the tested server, then the number of alternative redundant power supplies is determined as the number of redundant power supplies corresponding to the tested server. The number of redundant power supplies corresponding to the tested server includes one or more numbers of alternative redundant power supplies.

[0114] Step 206 : Switch the server under test to different power supply modes through the baseboard management controller BMC of the server under test according to the number of redundant power supplies and the standard software and hardware information, and perform a stability test on the server under test.

[0115] The technical solution of the embodiment of the present invention can determine the number of power supplies in the redundant power supply module required to power the server under test while ensuring the power consumption requirement of the server under test according to the redundant power supply module information and the power consumption under a preset load, and can switch the server under test to different power supply modes while ensuring the power consumption requirement of the server under test, obtain the power supply power data of the server under test after switching to multiple different power supply modes, and test the stability of the server under test in multiple power supply mode switching scenarios.

[0116] Embodiment 3

[0117] Figure 3 A flow chart of a server stability testing method provided in Embodiment 3 of the present invention includes the following steps:

[0118] Step 301: Obtain test information of the server under test.

[0119] The test information includes: standard software and hardware information of the tested server, redundant power supply module information, and power consumption under a preset load.

[0120] Step 302: Determine the number of redundant power supplies corresponding to the tested server according to the redundant power supply module information and the power consumption under a preset load.

[0121] Step 303: Control the server under test to perform a power-on operation through the BMC, randomly select power supplies of the redundant power supply quantity from each power supply of the redundant power supply module of the server under test, and set the selected power supply as a new power supply of the server under test.

[0122] Step 304: Control the server under test to perform a power-off operation through the BMC, and control the server under test to perform a power-on operation after a preset interval.

[0123] Step 305 , obtaining the current software and hardware information of the server under test, and detecting whether the current software and hardware information is the same as the standard software and hardware information: if so, executing step 307 ; if not, executing step 306 .

[0124] Step 306: Provide preset abnormal prompt information to the target user.

[0125] Step 307: Control the server under test to run under the preset load through the BMC, and obtain power data of the power supply of the server under test during the operation of the server under test, and save the power data to a preset database.

[0126] Step 308: When the running time of the server under test reaches a preset running time, the server under test is controlled to perform a power-off operation through the BMC.

[0127] Step 309 , adding 1 to the number of tests of the tested server, and detecting whether the number of tests of the tested server is equal to the preset number of tests: if so, executing step 310 ; if not, returning to executing step 303 .

[0128] Step 310: Determine that the test process of the server under test is completed.

[0129] The technical solution of the embodiment of the present invention is to use the baseboard management controller of the server under test to switch the server under test to different power supply modes according to the number of redundant power supplies and standard software and hardware information while ensuring the power consumption requirements of the server under test, obtain the power power data of the server under test after switching to a variety of different power supply modes, and test the stability of the server under test in a variety of power supply mode switching scenarios.

[0130] Embodiment 4

[0131] Figure 4 This is a schematic diagram of the structure of a server stability testing device provided by Embodiment 4 of the present invention. The device can be configured in an electronic device. Figure 4 As shown, the device includes: an information acquisition module 401, a quantity determination module 402 and a server testing module 403.

[0132] Among them, the information acquisition module 401 is used to obtain the test information of the server under test; wherein the test information includes: standard software and hardware information, redundant power supply module information and power consumption under a preset load of the server under test; the quantity determination module 402 is used to determine the number of redundant power supplies corresponding to the server under test according to the redundant power supply module information and the power consumption under a preset load; the server test module 403 is used to switch the server under test to different power supply modes according to the number of redundant power supplies and the standard software and hardware information through the baseboard management controller BMC of the server under test, and perform stability testing on the server under test.

[0133] The technical solution of the embodiment of the present invention obtains test information of the server under test, and the test information includes: standard software and hardware information of the server under test, redundant power supply module information and power consumption under a preset load; then, according to the redundant power supply module information and the power consumption under the preset load, the number of redundant power supplies corresponding to the server under test is determined; finally, through the baseboard management controller BMC of the server under test, according to the number of redundant power supplies and the standard software and hardware information, the server under test is switched to different power supply modes, and the stability test is performed on the server under test, which solves the problem that the server stability test solution in the related art can only test the stability of the server in a single power supply mode switching scenario, and cannot cover a variety of optional power supply mode switching scenarios, and test the stability of the server in multiple power supply mode switching scenarios, and obtains the beneficial effect of switching the server under test to different power supply modes under the baseboard management controller of the server under test according to the number of redundant power supplies and standard software and hardware information, while ensuring the power consumption requirement of the server under test, obtaining the power supply power data after the server under test is switched to a variety of different power supply modes, and testing the stability of the server under test in multiple power supply mode switching scenarios.

[0134] In an optional implementation of an embodiment of the present invention, optionally, the redundant power supply module information includes: the total number of power supplies of the redundant power supply module of the server under test, identification information and rated power of each power supply in the redundant power supply module; the quantity determination module 402 is specifically used to: obtain a plurality of alternative redundant power supply quantities corresponding to the server under test; determine the total power supply power corresponding to each of the alternative redundant power supplies according to the rated power of each power supply in the redundant power supply module; detect whether the total power supply power corresponding to each of the alternative redundant power supplies is greater than the product of the power consumption under a preset load and a preset proportional coefficient; and determine the number of alternative redundant power supplies whose corresponding total power supply power is greater than the product as the number of redundant power supplies corresponding to the server under test.

[0135] In an optional implementation of the embodiment of the present invention, optionally, the server test module 403 is specifically used to: control the server under test to perform a power-on operation through the BMC, randomly select a power supply of the number of redundant power supplies from each power supply of the redundant power supply module of the server under test, and set the selected power supply as a new power supply for the server under test; control the server under test to perform a power-off operation through the BMC, and control the server under test to perform a power-on operation after a preset interval; obtain current software and hardware information of the server under test, and detect whether the current software and hardware information is the same as the standard software and hardware information; if the current software and hardware information is the same as the standard software and hardware information, control the server under test to perform a power-off operation through the BMC at the preset interval. The server under test runs under a certain load, and during the operation of the server under test, obtains the power data of the power supply of the server under test, and saves the power data to a preset database; through the BMC, when the operation time of the server under test reaches the preset operation time, controls the server under test to perform a power-off operation; adds 1 to the number of tests of the server under test, and detects whether the number of tests of the server under test is equal to the preset number of tests; if the number of tests of the server under test is not equal to the preset number of tests, returns to execute through the BMC, controls the server under test to perform a power-on operation, randomly selects a power supply of the number of redundant power supplies from each power supply of the redundant power supply module of the server under test, and sets the selected power supply as the new power supply of the server under test.

[0136] In an optional implementation of the embodiment of the present invention, optionally, the server testing module 403 is further used to: if the current software and hardware information is different from the standard software and hardware information, provide preset abnormal prompt information to the target user.

[0137] In an optional implementation of the embodiment of the present invention, optionally, the server testing module 403 is further used to: if the number of tests of the tested server is equal to a preset number of tests, determine that the testing process of the tested server is finished.

[0138] In an optional implementation of the embodiment of the present invention, optionally, the server test module 403 is further used to: generate a visual chart corresponding to the power data; and provide the visual chart to a target user.

[0139] In an optional implementation of the embodiment of the present invention, optionally, the information acquisition module 401 is specifically used to: acquire the test information of the tested server uploaded by the target user.

[0140] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0141] The above-mentioned server stability testing device can execute the server stability testing method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the server stability testing method.

[0142] Embodiment 5

[0143] Figure 5 The schematic diagram of the structure of the electronic device 10 that can be used to implement the server stability testing method of the embodiment of the present invention is shown. The components shown herein, their connections and relationships, and their functions are only for example, and are not intended to limit the implementation of the present invention described and / or required herein.

[0144] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program built from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0145] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0146] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a server stability testing method.

[0147] In some embodiments, the server stability test method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is built into the RAM 13 and executed by the processor 11, one or more steps of the server stability test method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the server stability test method in any other appropriate manner (e.g., by means of firmware).

[0148] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0149] The computer program for implementing the server stability testing method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0150] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0151] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0152] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0153] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0154] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0155] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A server stability testing method, characterized in that: include: Acquire test information of the server under test; wherein the test information includes: standard software and hardware information, redundant power module information and power consumption under a preset load of the server under test; Determine the number of redundant power supplies corresponding to the tested server according to the redundant power supply module information and the power consumption under the preset load; By means of the baseboard management controller BMC of the tested server, according to the number of redundant power supplies and the standard software and hardware information, the tested server is switched to different power supply modes to perform a stability test on the tested server; The redundant power supply module information includes: the total number of power supplies of the redundant power supply module of the tested server, identification information and rated power of each power supply in the redundant power supply module; The step of determining the number of redundant power supplies corresponding to the server under test according to the redundant power supply module information and the power consumption under a preset load comprises: Obtaining the number of multiple candidate redundant power supplies corresponding to the server under test; Determine the total power supply power corresponding to the number of each of the candidate redundant power supplies according to the rated power of each power supply in the redundant power supply module; Detecting whether the total power supply corresponding to the number of each of the candidate redundant power supplies is greater than the product of the power consumption under the preset load and a preset proportional coefficient; The number of candidate redundant power supplies whose corresponding total power supply power is greater than the product is determined as the number of redundant power supplies corresponding to the server under test.

2. The method according to claim 1, characterized in that The method of switching the server under test to different power supply modes according to the number of redundant power supplies and the standard software and hardware information by using the baseboard management controller BMC of the server under test to perform a stability test on the server under test includes: Controlling the server under test to perform a power-on operation through the BMC, randomly selecting power supplies of the redundant power supply quantity from each power supply of the redundant power supply module of the server under test, and setting the selected power supply as a new power supply of the server under test; Controlling the server under test to perform a power-off operation through the BMC, and controlling the server under test to perform a power-on operation after a preset interval; Acquire current software and hardware information of the tested server, and detect whether the current software and hardware information is the same as the standard software and hardware information; If the current software and hardware information is the same as the standard software and hardware information, the server under test is controlled to run under the preset load through the BMC, and during the operation of the server under test, power data of the power supply of the server under test is obtained, and the power data is saved in a preset database; By means of the BMC, when the running time of the server under test reaches a preset running time, controlling the server under test to perform a power-off operation; Add 1 to the number of tests of the tested server, and detect whether the number of tests of the tested server is equal to the preset number of tests; If the test number of the server under test is not equal to the preset test number, the process returns to execute the BMC to control the server under test to perform a power-on operation, randomly selects power supplies of the redundant power supply number from each power supply of the redundant power supply module of the server under test, and sets the selected power supply as a new power supply for the server under test.

3. The method according to claim 2, characterized in that After detecting whether the current software and hardware information is the same as the standard software and hardware information, the method further includes: If the current software and hardware information is different from the standard software and hardware information, a preset abnormal prompt information is provided to the target user.

4. The method according to claim 2, characterized in that: After detecting whether the number of tests of the tested server is equal to the preset number of tests, the method further includes: If the number of tests of the tested server is equal to the preset number of tests, it is determined that the testing process of the tested server is finished.

5. The method according to claim 2, characterized in that: Also includes: generating a visualization chart corresponding to the power data; The visualization chart is provided to a target user.

6. The method according to claim 1, characterized in that The step of obtaining the test information of the server under test includes: Get the test information of the server under test uploaded by the target user.

7. A server stability testing device, characterized in that: include: An information acquisition module, used to acquire test information of the tested server; wherein the test information includes: standard software and hardware information of the tested server, redundant power supply module information, and power consumption under a preset load; A quantity determination module, used to determine the quantity of redundant power supplies corresponding to the tested server according to the redundant power supply module information and the power consumption under a preset load; A server testing module is used to switch the server under test to different power supply modes according to the number of redundant power supplies and the standard software and hardware information through the baseboard management controller BMC of the server under test, and perform stability testing on the server under test; The redundant power supply module information includes: The total number of power supplies of the redundant power supply module of the tested server, and the identification information and rated power of each power supply in the redundant power supply module; The quantity determination module is specifically used for: Obtaining the number of multiple candidate redundant power supplies corresponding to the server under test; Determine the total power supply power corresponding to the number of each of the candidate redundant power supplies according to the rated power of each power supply in the redundant power supply module; Detecting whether the total power supply corresponding to the number of each of the candidate redundant power supplies is greater than the product of the power consumption under the preset load and a preset proportional coefficient; The number of candidate redundant power supplies whose corresponding total power supply power is greater than the product is determined as the number of redundant power supplies corresponding to the server under test.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the server stability testing method described in any one of claims 1-6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the server stability testing method according to any one of claims 1 to 6 when executed.