Automatic testing method, device and system for redundant power supply
By automatically controlling the switch of the redundant power supply and judging whether the power supply meets the requirements according to the working status of the server, the problem of low efficiency and poor accuracy of redundant power supply testing in the existing technology is solved, and efficient and accurate power supply testing is achieved.
Patent Information
- Application Number
- CN202010646029.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-07
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-07-07
AI Technical Summary
Testing of redundant power supplies in the prior art requires manual switching of power supplies, which is inefficient and error-prone. Especially when the number of redundant power supplies is large, it is time-consuming and inaccurate.
By sending control signals to multiple switches to automatically control their on or off, based on the server's power supply and working performance parameters in different working states, it can determine whether the power supply meets the requirements and improve test efficiency and accuracy.
It realizes automatic testing of redundant power supplies, improves test efficiency and accuracy, reduces manual errors, and can quickly determine whether the power supply meets the working needs of the server.
Smart Images

Figure CN113917355B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power supply for Internet devices, and in particular to an automatic testing method, device and system for redundant power supplies. Background Art
[0002] In the Internet field, some devices, such as servers, are powered by redundant power supplies to ensure reliable operation of the devices. Before the devices are put into practical use, the effectiveness of the redundant power supplies needs to be tested.
[0003] In the related art, the redundant power supply is turned on and off manually. Summary of the invention
[0004] The inventors have noticed that when there are a large number of redundant power supplies, it is necessary to manually turn the power on and off repeatedly, and then manually observe the operating status of the device to determine whether the redundant power supplies meet the requirements. This method is time-consuming, has low testing efficiency, and is prone to errors.
[0005] In order to solve the above problems, the embodiments of the present disclosure propose the following solutions.
[0006] According to one aspect of an embodiment of the present disclosure, there is provided a method for automatically testing a redundant power supply, wherein the redundant power supply comprises a plurality of power supplies, and the plurality of power supplies are connected to a server via a plurality of switches corresponding to each other. The method for automatically testing comprises: sending a control signal to the plurality of switches to control the plurality of switches to be turned on; when the plurality of switches are turned on, controlling the server to be in a first working state; controlling some of the plurality of switches to be turned off and the remaining switches to be turned on in a preset redundant manner, so that the server is in a second working state; and determining whether the power supply among the plurality of power supplies connected to the remaining switches meets the requirements according to at least one of the power supply power of the redundant power supply and a working performance parameter reflecting the working performance of the server when the server is respectively in the first working state and the second working state.
[0007] In some embodiments, controlling the server to be in the first working state includes: controlling the load pressure applied to the server so that the working performance parameter of the server reaches a maximum preset parameter, thereby controlling the server to be in the first working state.
[0008] In some embodiments, controlling the application of load pressure to the server includes: controlling the execution of a test program set on the server.
[0009] In some embodiments, the preset redundancy mode includes at least one redundancy mode, and each redundancy mode includes multiple combinations; controlling some of the multiple switches to be disconnected and the remaining switches to be turned on according to the preset redundancy mode so that the server is in the second working state includes: according to each combination of each redundancy mode, controlling some of the switches to be disconnected and the remaining switches to be turned on, respectively, wherein at least one switch of the some switches in different combinations is different.
[0010] In some embodiments, controlling the partial switches to be disconnected and the remaining switches to be turned on according to each combination of each redundant mode includes: after controlling the partial switches to be disconnected and the remaining switches to be turned on according to each combination, controlling the partial switches in this combination to be turned on.
[0011] In some embodiments, determining whether the power supply connected to the remaining switches among the multiple power supplies meets the requirements based on at least one of the power supply power of the redundant power supply and the working performance parameters reflecting the working performance of the server when the server is respectively in the first working state and the second working state includes: judging whether the working performance of the server when it is in the second working state is lower than a preset performance based on the power supply power of the redundant power supply and the working performance parameters when the server is respectively in the first working state and the second working state, so as to obtain a first judgment result; judging whether the power supply power of the redundant power supply when the server is in the second working state is less than the rated power of the server, so as to obtain a second judgment result; judging whether the server is shut down when the server is in the second working state, so as to obtain a third judgment result; and determining whether the power supply connected to the remaining switches among the multiple power supplies meets the requirements based on at least one of the first judgment result, the second judgment result, and the third judgment result.
[0012] In some embodiments, determining whether the power supply connected to the remaining switches among the multiple power supplies meets the requirements based on at least one of the first judgment result, the second judgment result, and the third judgment result includes: when the first judgment result, the second judgment result, and the third judgment result are all no, the power supply connected to the remaining switches meets the requirements; when at least one of the first judgment result, the second judgment result, and the third judgment result is yes, the power supply connected to the remaining switches does not meet the requirements.
[0013] In some embodiments, if a first difference between the power supply of the redundant power supply when the server is in the first working state and the power supply of the redundant power supply when the server is in the second working state is greater than a first preset value, the first judgment result is yes, and the first preset value is greater than 0; if a second difference between the working performance parameters when the server is in the first working state and the working performance parameters when the server is in the second working state is greater than a second preset value, the first judgment result is yes, and the second preset value is greater than 0; if the first difference is not greater than the first preset value and the second difference is not greater than the second preset value, the first judgment result is no.
[0014] According to another aspect of an embodiment of the present disclosure, there is provided an automatic testing device for a redundant power supply, wherein the redundant power supply comprises a plurality of power supplies, and the plurality of power supplies are connected to a server via a plurality of switches corresponding to each other, and the automatic testing device comprises: a sending module, configured to send control signals to the plurality of switches to control the plurality of switches to be turned on; a control module, configured to control the server to be in a first working state when the plurality of switches are turned on; and to control some of the plurality of switches to be disconnected and the remaining switches to be turned on in a preset redundant manner so that the server is in a second working state; and a determination module, configured to determine whether the power supply among the plurality of power supplies connected to the remaining switches meets the requirements according to at least one of the power supply power of the redundant power supply and the working performance parameter reflecting the working performance of the server when the server is respectively in the first working state and the second working state.
[0015] According to another aspect of an embodiment of the present disclosure, there is provided an automatic testing device for a redundant power supply, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute the automatic testing method described in any one of the above embodiments based on instructions stored in the memory.
[0016] According to another aspect of the embodiments of the present disclosure, there is provided an automatic testing system for a redundant power supply, comprising: an automatic testing device for a redundant power supply as described in any one of the above embodiments; and a plurality of switches corresponding one-to-one to the plurality of power supplies, the plurality of power supplies being connected to a server via the plurality of switches.
[0017] In some embodiments, the automatic testing system further includes: a pressure applying device, which is disposed on the server and is configured to apply load pressure to the server in response to a control instruction of the automatic testing device.
[0018] In some embodiments, the pressure applying device is configured to execute the program under test in response to the control instruction to apply load pressure to the server.
[0019] In the disclosed embodiment, the on or off of the multiple switches can be automatically controlled by sending control signals to the multiple switches, thereby controlling the server to be in different working states. Furthermore, according to at least one of the power supply power and working performance parameters of the redundant power supply in different working states of the server, it can be automatically determined whether the power supply connected to the remaining switches among the multiple power supplies meets the requirements. This method can improve the test efficiency and accuracy of the redundant power supply.
[0020] The technical solution of the present disclosure is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0022] Figure 1 is a schematic diagram of the structure of an automatic testing system for redundant power supplies according to some embodiments of the present disclosure;
[0023] Figure 2 is a flowchart of an automatic testing method for a redundant power supply according to some embodiments of the present disclosure;
[0024] Figure 3 is a flowchart of an automatic testing method for a redundant power supply according to other embodiments of the present disclosure;
[0025] Figure 4 is a structural schematic diagram of an automatic testing device for a redundant power supply according to some embodiments of the present disclosure;
[0026] Figure 5 is a schematic structural diagram of an automatic testing device for a redundant power supply according to other embodiments of the present disclosure;
[0027] Figure 6 It is a structural schematic diagram of an automatic testing system for redundant power supplies according to other embodiments of the present disclosure. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present disclosure.
[0029] Unless specifically stated otherwise, the relative arrangement of components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure.
[0030] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0031] Technologies, methods, and apparatus known to ordinary technicians in the relevant field may not be discussed in detail, but where appropriate, such technologies, methods, and apparatus should be considered part of the authorization specification.
[0032] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0033] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0034] Figure 1 is a schematic diagram of the structure of an automatic testing system for a redundant power supply according to some embodiments of the present disclosure.
[0035] like Figure 1 As shown, the automatic test system of redundant power supply includes an automatic test device 101 of redundant power supply and multiple switches 102. The automatic test device 101 is connected to the multiple switches 102 and connected to the server. The redundant power supply includes multiple power supplies, and the multiple power supplies are connected to the server via multiple switches 102 corresponding to each other.
[0036] Figure 2 FIG. 1 is a flow chart of an automatic test method for a redundant power supply according to some embodiments of the present disclosure. In some embodiments, the automatic test method for a redundant power supply may be performed by Figure 1 The automatic test device 101 of the redundant power supply is shown to perform the test.
[0037] In step 202, a control signal is sent to a plurality of switches to control the plurality of switches to be turned on.
[0038] Here, when multiple switches are turned on, each power supply in the redundant power supply is connected to the server through the corresponding switch.
[0039] For example, in response to a user's test request (eg, the user touches a test start button), step 202 and subsequent steps 204 to 208 are automatically executed.
[0040] In step 204, when the multiple switches are turned on, the control server is in the first working state.
[0041] In some embodiments, the load pressure applied to the server can be controlled so that the working performance parameter of the server reaches the maximum preset parameter, thereby controlling the server to be in the first working state. In this case, when the server is in the first working state, the load pressure of the server is large, and the server consumes a lot of power at this time. For example, the working performance parameter may include operations per second (OPS). OPS can reflect the performance of the central processing unit (CPU) of the server. When OPS reaches the maximum preset OPS, the resource occupancy of the CPU of the server is very large. It should be understood that the working performance parameter may also include other parameters that can reflect the working performance of the server.
[0042] There are many ways to apply load pressure to the server. For example, you can control the execution of a test program set on the server. When the test program is executed, it will consume various resources of the server, such as CPU resources, bandwidth resources, etc., thereby increasing the power consumption of the server. For another example, you can control the read and write operations on the server's memory to consume the server's memory resources and input / output (I / O) resources, thereby increasing the power consumption of the server.
[0043] In step 206, some of the switches are controlled to be disconnected and the remaining switches are controlled to be turned on in a preset redundancy manner, so that the server is in a second working state.
[0044] Here, the preset redundancy mode may include, for example, 1+1, N+1, N+N, etc. For example, the multiple switches include 4 switches and the redundancy mode is 2+2, any 2 switches of the 4 switches may be controlled to be disconnected and the remaining 2 switches may be turned on, so that the server is in the second working state.
[0045] In some embodiments, the preset redundancy mode includes at least one redundancy mode, and each redundancy mode includes multiple combinations. In this case, according to each combination in each redundancy mode, some switches can be controlled to be disconnected and the remaining switches can be controlled to be turned on, so that the server is in the second working state. Here, at least one switch of some switches in different combinations is different.
[0046] For example, the multiple switches 102 include switch 1, switch 2, switch 3, and switch 4. When the redundancy mode is 2+2, the combination of the redundancy mode includes the following 6 combinations: switch 1+switch 2, switch 1+switch 3, switch 1+switch 4, switch 2+switch 3, switch 2+switch 4, switch 3+switch 4. For example, according to the first combination mode, some switches 1 and switch 2 are disconnected, and switches 3 and switch 4 are turned on; according to the second combination mode, some switches 1 and switch 3 are disconnected, and switches 3 and switch 4 are turned on; and so on.
[0047] In some embodiments, after controlling some switches to be turned off and other switches to be turned on in each combination, some switches in the combination are controlled to be turned on, that is, all switches are controlled to be turned on. Then, some switches are controlled to be turned off and other switches are controlled to be turned on in another combination. This process is repeated.
[0048] In step 208, it is determined whether the power supplies connected to the remaining switches among the multiple power supplies meet the requirements based on at least one of the power supply power of the redundant power supply and the working performance parameter reflecting the working performance of the server when the server is in the first working state and the second working state respectively.
[0049] In the above embodiment, the on or off of the multiple switches can be automatically controlled by sending control signals to the multiple switches, thereby controlling the server to be in different working states. Furthermore, according to at least one of the power supply power and working performance parameters of the redundant power supply in different working states of the server, it can be automatically determined whether the power supply connected to the remaining switches among the multiple power supplies meets the requirements. This method can improve the test efficiency and accuracy of the redundant power supply.
[0050] Some specific implementations of step 208 are introduced below.
[0051] In some embodiments, whether the power supply connected to the remaining switches among the multiple power supplies meets the requirements can be determined based on at least one of the first judgment result, the second judgment result, and the third judgment result described below.
[0052] The first judgment result can be determined as follows.
[0053] Based on at least one of the power supply power and working performance parameters of the redundant power supply when the server is in the first working state and the second working state respectively, it is determined whether the working performance of the server in the second working state is lower than the preset performance to obtain a first judgment result.
[0054] In some implementations, the first judgment result may be determined as follows.
[0055] If a first difference between the power supply of the redundant power supply when the server is in the first working state and the power supply of the redundant power supply when the server is in the second working state is greater than a first preset value (greater than 0), the first judgment result is yes, that is, the working performance of the server in the second working state is lower than the preset performance.
[0056] If a second difference between the working performance parameter when the server is in the first working state and the working performance parameter when the server is in the second working state is greater than a second preset value (greater than 0), the first judgment result is yes.
[0057] If the first difference is not greater than the first preset value, and the second difference is not greater than the second preset value, the first judgment result is no, that is, the working performance of the server in the second working state is not lower than the preset performance.
[0058] In the above implementation, only when the first difference is not greater than the first preset value and the second difference is not greater than the second preset value, the first judgment result is considered to be negative. This approach can improve the accuracy of the final determination of whether the power supply meets the requirements.
[0059] It should be understood that the first preset value and the second preset value mentioned above can be set according to actual conditions.
[0060] The second judgment result can be determined in the following manner.
[0061] It is determined whether the power supply of the redundant power supply when the server is in the second working state is less than the rated power of the server to obtain a second determination result. If the power supply of the redundant power supply when the server is in the second working state is less than the rated power of the server, it means that the power supply connected to the remaining switches cannot meet the working requirements of the server.
[0062] The third judgment result can be determined as follows.
[0063] When the server is in the second working state, it is determined whether the server is shut down to obtain a third determination result. If the server is shut down, it means that the power supply connected to the remaining switches cannot meet the working requirements of the server.
[0064] In some embodiments, when the first judgment result, the second judgment result, and the third judgment result are all negative, the power supply connected to the remaining switches meets the requirements; when at least one of the first judgment result, the second judgment result, and the third judgment result is positive, the power supply connected to the remaining switches does not meet the requirements. This approach can ensure that the power supply that meets the requirements is finally determined to be able to meet the working requirements of the server.
[0065] Figure 3It is a flowchart of an automatic testing method for a redundant power supply according to other embodiments of the present disclosure. Figure 3 A certain redundancy mode is used as an example for explanation. It is understandable that when the preset redundancy mode includes multiple redundancy modes, other redundancy modes can be used according to Figure 3 Test according to the process shown.
[0066] In step 302, a control signal is sent to a plurality of switches to control the plurality of switches to be turned on.
[0067] In step 304, when the multiple switches are turned on, the control server is in the first working state.
[0068] In step 306, according to the first combination mode, some switches are controlled to be disconnected and the remaining switches are controlled to be turned on, so that the server is in the second working state.
[0069] Here, any one of a plurality of combinations can be used as the first combination. For example, according to the first combination, some switches 1 and 2 are controlled to be disconnected, and the remaining switches 3 and 4 are controlled to be turned on.
[0070] In step 308, the switches in the first combination mode are controlled to be turned on, that is, switch 1 and switch 2 are controlled to be turned on.
[0071] In step 310, it is determined whether all the combinations have been followed to control some switches to be disconnected and the remaining switches to be connected, so that the server is in the second working state. If yes, step 312 is executed; if not, another combination is used as the first combination in step 306, and steps 306 to 310 are repeated.
[0072] In step 312, it is determined whether the power supplies connected to the remaining switches among the multiple power supplies meet the requirements based on at least one of the power supply power of the redundant power supply and the working performance parameter reflecting the working performance of the server when the server is in the first working state and the second working state respectively.
[0073] The specific implementation of step 312 can refer to the above description and will not be repeated here.
[0074] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the automatic test device embodiment, since it basically corresponds to the automatic test method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0075] Figure 4The structure diagram of the automatic testing device of the redundant power supply according to some embodiments of the present disclosure is shown in FIG. The redundant power supply includes multiple power supplies, and the multiple power supplies are connected to the server via multiple switches corresponding to each other.
[0076] like Figure 4 As shown, the automatic testing device includes a sending module 401 , a control module 402 and a determination module 403 .
[0077] The sending module 401 is configured to send control signals to the multiple switches to control the multiple switches to be turned on. The control module 402 is configured to control the server to be in the first working state when the multiple switches are turned on; and to control some of the multiple switches to be turned off and the remaining switches to be turned on in a preset redundancy mode so that the server is in the second working state. The determination module 403 is configured to determine whether the power supply connected to the remaining switches among the multiple power supplies meets the requirements according to at least one of the power supply power of the redundant power supply and the working performance parameter reflecting the working performance of the server when the server is in the first working state and the second working state respectively.
[0078] In the above embodiment, the on or off of the multiple switches can be automatically controlled by sending control signals to the multiple switches, thereby controlling the server to be in different working states. Furthermore, according to at least one of the power supply power and working performance parameters of the redundant power supply in different working states of the server, it can be automatically determined whether the power supply connected to the remaining switches among the multiple power supplies meets the requirements. This method can improve the test efficiency and accuracy of the redundant power supply.
[0079] Figure 5 It is a structural schematic diagram of an automatic testing device for a redundant power supply according to some other embodiments of the present disclosure.
[0080] like Figure 5 As shown, the automatic testing device 500 includes a memory 501 and a processor 502 coupled to the memory 501 . The processor 502 is configured to execute the method of any one of the aforementioned embodiments based on instructions stored in the memory 501 .
[0081] The memory 501 may include, for example, a system memory, a fixed non-volatile storage medium, etc. The system memory may store, for example, an operating system, an application program, a boot loader, and other programs.
[0082] The automatic test device 500 may also include an input / output interface 503, a network interface 504, a storage interface 505, etc. These interfaces 503, 504, 505, and the memory 501 and the processor 502 may be connected, for example, via a bus 506. The input / output interface 503 provides a connection interface for input / output devices such as a display, a mouse, a keyboard, and a touch screen. The network interface 504 provides a connection interface for various networked devices. The storage interface 505 provides a connection interface for external storage devices such as SD cards and USB flash drives.
[0083] Figure 6 It is a structural schematic diagram of an automatic testing system for redundant power supplies according to other embodiments of the present disclosure.
[0084] like Figure 6 As shown, the redundant power supply automatic test system includes the redundant power supply automatic test device 601 of any one of the above embodiments and a plurality of switches 602 corresponding to the plurality of power supplies one by one. The plurality of power supplies are connected to the server via the plurality of switches 602.
[0085] In some embodiments, the automatic testing system further includes: a pressure applying device 603, which is disposed on the server and is configured to apply load pressure to the server in response to a control instruction sent by the automatic testing device 601. For example, the pressure applying device 603 is configured to execute the tested program in response to a control instruction sent by the automatic testing device 601 to apply load pressure to the server.
[0086] In other embodiments, the pressure applying device 603 is further configured to perform read and write operations on the memory of the server in response to a control instruction sent by the automatic testing device 601 to apply load pressure to the server.
[0087] For example, the pressure applying device 603 may include a memory and a processor coupled to the memory, and the processor is configured to execute corresponding steps based on instructions stored in the memory, for example, in response to control instructions sent by the automatic testing device 601, execute the program under test or perform read and write operations on the memory of the server.
[0088] The embodiments of the present disclosure further provide a computer-readable storage medium on which computer program instructions are stored. When the instructions are executed by a processor, the method of any one of the above embodiments is implemented.
[0089] So far, various embodiments of the present disclosure have been described in detail. In order to avoid obscuring the concept of the present disclosure, some details known in the art are not described. Based on the above description, those skilled in the art can fully understand how to implement the technical solution disclosed here.
[0090] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable non-transient storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0091] The present disclosure is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present disclosure. It should be understood that the functions specified in one or more processes in the flowchart and / or one or more blocks in the block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the functions specified in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0092] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0093] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0094] Although some specific embodiments of the present disclosure have been described in detail by way of examples, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that the above embodiments may be modified or some technical features may be replaced by equivalents without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.
Claims
1. A method for automatically testing a redundant power supply, wherein the redundant power supply comprises a plurality of power supplies, wherein the plurality of power supplies are connected to a server via a plurality of switches corresponding to each other. include: Sending control signals to the multiple switches to control the multiple switches to be turned on; When the multiple switches are turned on, controlling the load pressure to be applied to the server so that the working performance parameter of the server reaches the maximum preset parameter, thereby controlling the server to be in the first working state; Controlling some of the multiple switches to be disconnected and the remaining switches to be turned on in a preset redundancy manner, so that the server is in a second working state; According to the power supply of the redundant power supply and the working performance parameter reflecting the working performance of the server when the server is in the first working state and the second working state respectively, determining whether the working performance of the server when it is in the second working state is lower than a preset performance, so as to obtain a first determination result; Determine whether the power supply of the redundant power supply when the server is in the second working state is less than the rated power of the server, so as to obtain a second determination result; determining whether the server is shut down when the server is in the second working state, so as to obtain a third determination result; When the first judgment result, the second judgment result and the third judgment result are all negative, determining that the power supply connected to the remaining switches among the multiple power supplies meets the requirements; When at least one of the first judgment result, the second judgment result and the third judgment result is yes, determining that the power supply connected to the remaining switches does not meet the requirements; If a first difference between the power supply power of the redundant power supply when the server is in the first working state and the power supply power of the redundant power supply when the server is in the second working state is greater than a first preset value, the first judgment result is yes, and the first preset value is greater than 0; If a second difference between the working performance parameter when the server is in the first working state and the working performance parameter when the server is in the second working state is greater than a second preset value, the first judgment result is yes, and the second preset value is greater than 0; If the first difference is not greater than the first preset value, and the second difference is not greater than the second preset value, the first judgment result is no.
2. The automatic testing method according to claim 1, in, Controlling the load pressure applied to the server includes: The test program set on the control server is executed.
3. The automatic testing method according to claim 1, in, The preset redundancy mode includes at least one redundancy mode, and each redundancy mode includes multiple combinations; The controlling of disconnecting some of the multiple switches and connecting the other switches in a preset redundancy manner so that the server is in the second working state includes: According to each combination mode in each redundancy mode, some of the switches are controlled to be disconnected and the remaining switches are controlled to be turned on, wherein at least one switch of the some of the switches in different combinations is different.
4. The automatic testing method according to claim 3, in, According to each combination of each redundancy mode, respectively controlling some of the switches to be disconnected and the remaining switches to be turned on includes: After controlling some of the switches to be turned off and the remaining switches to be turned on in each combination, controlling some of the switches in the combination to be turned on.
5. An automatic testing device for a redundant power supply, the redundant power supply comprising a plurality of power supplies, the plurality of power supplies being connected to a server via a plurality of switches corresponding to each other. include: A sending module, configured to send control signals to the multiple switches to control the multiple switches to be turned on; a control module configured to control the application of load pressure to the server when the multiple switches are turned on, so that the working performance parameter of the server reaches a maximum preset parameter, thereby controlling the server to be in a first working state; and controlling some of the multiple switches to be disconnected and the remaining switches to be turned on in a preset redundancy manner, so that the server is in a second working state; a determination module configured to determine whether the working performance of the server in the second working state is lower than a preset performance according to the power supply of the redundant power supply and the working performance parameter reflecting the working performance of the server when the server is in the first working state and the second working state respectively, so as to obtain a first determination result; Determine whether the power supply of the redundant power supply when the server is in the second working state is less than the rated power of the server, so as to obtain a second determination result; determining whether the server is shut down when the server is in the second working state to obtain a third judgment result; determining that the power supply connected to the remaining switches among the multiple power supplies meets the requirements when the first judgment result, the second judgment result and the third judgment result are all negative; determining that the power supply connected to the remaining switches does not meet the requirements when at least one of the first judgment result, the second judgment result and the third judgment result is positive; If a first difference between the power supply power of the redundant power supply when the server is in the first working state and the power supply power of the redundant power supply when the server is in the second working state is greater than a first preset value, the first judgment result is yes, and the first preset value is greater than 0; If a second difference between the working performance parameter when the server is in the first working state and the working performance parameter when the server is in the second working state is greater than a second preset value, the first judgment result is yes, and the second preset value is greater than 0; If the first difference is not greater than the first preset value, and the second difference is not greater than the second preset value, the first judgment result is no.
6. An automatic test device for redundant power supply, include: Memory; and A processor coupled to the memory, wherein the processor is configured to execute the automatic testing method according to any one of claims 1 to 4 based on instructions stored in the memory.
7. An automatic test system for redundant power supply, include: The automatic testing device for redundant power supply according to any one of claims 5-6; and A plurality of switches corresponding to the plurality of power supplies one by one, the plurality of power supplies being connected to the server via the plurality of switches.
8. The automatic testing system according to claim 7, further comprising: include: The pressure applying device is arranged on the server and is configured to apply load pressure to the server in response to the control instruction of the automatic testing device.
9. The automatic testing system according to claim 8, in, The pressure applying device is configured to execute the tested program in response to the control instruction to apply load pressure to the server.
10. A computer-readable storage medium having computer program instructions stored thereon, in, When the instruction is executed by the processor, the automatic testing method described in any one of claims 1 to 4 is implemented.
