CN106685753B - Automatic testing method and device for simulating server cluster starting - Google Patents
Automatic testing method and device for simulating server cluster starting Download PDFInfo
- Publication number
- CN106685753B CN106685753B CN201611100351.5A CN201611100351A CN106685753B CN 106685753 B CN106685753 B CN 106685753B CN 201611100351 A CN201611100351 A CN 201611100351A CN 106685753 B CN106685753 B CN 106685753B
- Authority
- CN
- China
- Prior art keywords
- test
- tested
- server
- turns
- servers
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/12—Arrangements for remote connection or disconnection of substations or of equipment thereof
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Power Sources (AREA)
Abstract
The invention discloses an automatic test method and a device for simulating the starting of a server cluster, wherein the method comprises DC and AC tests; the DC test comprises the following steps: setting Linux as character interface start, no password login and tested server login; if the number of test turns of the tested server reaches the preset number of test turns, ending the test, otherwise, detecting the tested server, and adding 1 to the number of test turns; setting the next starting time; restarting the tested server, and continuously judging whether the number of testing turns reaches the preset number of testing turns; the AC test includes: connecting the central control unit with the switch and the PDU, connecting the PDU with a preset number of tested servers, and connecting the tested servers with the switch; and carrying out preset times of power failure and power supply recovery operation on the PDU through a control network by using the central control machine, and detecting the tested server by using the central control machine after power supply is recovered. The invention greatly saves the material cost and the labor cost and simultaneously improves the safety of the test process.
Description
Technical Field
The invention relates to the field of automatic testing, in particular to an automatic testing method and device for simulating the starting of a server cluster.
Background
In the using process of the server, a user often restarts the server according to the needs of the user, and when the number of the servers reaches a certain scale, the situation that the servers of a certain number cannot be started often occurs. In addition, with the large-scale construction of the data center, the situation of unexpected power failure of the data center also happens occasionally, and whether the server can be normally started after power is recovered is the key for ensuring service business under the situation of unexpected power failure.
In order to avoid the above two situations, in the process of developing a server, simulation of the above two situations needs to be considered, and since the number of machines is very limited, generally 3-5 machines, in the process of developing a server, simulation tests of the above two situations need to be performed by a method of simulating the server.
In the prior art, most server manufacturers often do not perform the test due to lack of an effective simulation method, and even if some manufacturers perform the test, a manual power-off method is often adopted. By connecting the Power supply of the batch server to a PDU (Power Distribution Unit, also called a Power Distribution socket for a cabinet), the operation of "Power off-restoration" is performed using a unified switch of the PDU.
In summary, the prior art has the following disadvantages:
(1) the material cost is higher: the batch server is adopted for simulation, so that the cost is high;
(2) the manpower cost is higher: manual power off requires a tester to operate continuously;
(3) the personnel risk is high: the PDU is required to be operated when the power is manually cut off, and under the condition of long-term test, if the PDU breaks down in the test process, physical damage is caused to a tester.
An effective solution to the problems in the related art has not been proposed yet.
Disclosure of Invention
The invention aims to solve the technical problems that the existing test method of the simulation server has higher material cost, higher labor cost and higher personnel risk.
In order to solve the technical problems, the technical scheme adopted by the invention is to provide an automatic test method for simulating the starting of a server cluster, which comprises a DC test and an AC test;
the DC test specifically comprises the following steps:
sequentially setting a Linux operating system as a character interface for starting, password-free login and tested server login;
judging whether the number of test turns of the tested server reaches the preset number of test turns, and if so, ending the test; otherwise, detecting the tested server, and increasing the number of test turns by 1;
setting the next starting time of the tested server and shutting down the server;
the tested server is restarted according to the set starting time, and whether the current test turn number reaches the preset test turn number is continuously judged;
the AC test specifically comprises the following steps:
the central control machine is connected with the switch and the PDU through a data network and a control network respectively, the PDU is connected with a preset number of tested servers through a plurality of power lines respectively, and the preset number of tested servers are connected to the switch through the data network respectively;
and carrying out preset times of power failure and power supply restoration operations on the PDU by using the central control machine, and detecting preset numbers of tested servers by using the central control machine through the switch after the power supply is restored.
In the technical scheme, in the DC test process, the starting time of the tested server is set through a Linux timer.
In the technical scheme, the preset number of the servers to be tested is 1-5.
The invention also provides an automatic testing device for simulating the starting of the server cluster, which comprises a DC testing module and an AC testing module;
the DC test module includes:
the Linux operating system setting unit is used for sequentially setting the Linux operating system as character interface starting, password-free login and tested server login;
the judging unit is used for judging whether the number of test turns of the tested server reaches the preset number of test turns or not;
the execution unit is used for finishing the test if the number of test turns of the tested server reaches the preset number of test turns according to the result of the judgment unit; otherwise, detecting the tested server, and increasing the number of test turns by 1;
the starting time setting unit is used for setting the next starting time of the tested server according to the execution unit;
the restarting unit is used for restarting the tested server according to the starting time set by the starting time setting unit;
the AC test module comprises a central control machine, a switch, a PDU (protocol data unit) and a preset number of tested servers, wherein the central control machine is respectively connected with the switch and the PDU through a data network and a control network, the PDU is respectively connected with the preset number of tested servers through a plurality of power lines, and the preset number of tested servers are respectively connected to the switch through the data network;
and the central control machine performs preset times of power failure and power supply restoration operations on the PDU, and detects preset numbers of tested servers through the switch after power supply is restored.
In the above technical solution, the DC test module further includes a Linux timer setting unit configured to set a start time of the server under test.
In the technical scheme, the preset number of the servers to be tested is 1-5.
The invention completes the simulation of large-scale cluster power-off test through the preset number (one or a few) of tested servers, greatly saves material cost, does not need any manual operation in the test process, can easily complete DC test and AC test by the tester, greatly saves labor cost, and simultaneously, because the PDU is connected into the network, the tester does not need to contact a power switch, ensures the safety of the tester and improves the safety of the test process.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a flow chart of a DC test of an automated testing method for simulating server cluster startup according to the present invention;
FIG. 2 is a flow chart of an AC test of an automated testing method for simulating server cluster start according to the present invention;
FIG. 3 is a schematic diagram of a DC test of an automated test equipment for simulating server cluster start according to the present invention;
fig. 4 is a schematic diagram of an AC test of an automatic test apparatus for simulating server cluster start according to the present invention.
Detailed Description
The invention is described in detail below with reference to the drawings and the detailed description.
The embodiment of the invention provides an automatic test method for simulating the starting of a server cluster, which comprises a DC test and an AC test.
As shown in fig. 1, the DC test specifically includes the following steps:
and S10, sequentially setting the Linux operating system as a character interface for starting, password-free login and tested server login.
S11, judging whether the number of test turns of the tested server reaches the preset number of test turns, if so, turning to S12; otherwise, go to S13.
And S12, ending the test.
And S13, detecting the tested server and increasing the number of test turns by 1.
And S14, setting the next starting time of the tested server and shutting down the server.
And in the DC test process, setting the starting time of the tested server through a Linux timer.
And S15, restarting the tested server according to the set starting time, and turning to S11.
As shown in fig. 2, the AC test specifically includes the following steps:
and S20, connecting the central control unit with the switch and the PDU through a data network and a control network respectively, connecting the PDU with the tested servers with preset number through a plurality of power lines respectively, and connecting the tested servers with preset number to the switch through the data network respectively.
And S21, performing preset times of power failure and power supply restoration operations on the PDU by using the central control machine, and detecting the preset number of tested servers by using the central control machine through the switch after the power supply is restored.
The preset number of the tested servers is 1-5.
The embodiment of the invention also provides an automatic testing device for simulating the starting of the server cluster, which comprises a DC testing module and an AC testing module;
as shown in fig. 3, the DC test module includes:
the Linux operating system setting unit 10 is used for sequentially setting the Linux operating system as character interface starting, password-free login and tested server login;
the judging unit 11 is used for judging whether the number of test turns of the tested server reaches the preset number of test turns or not;
the execution unit 12, according to the result of the judgment unit 11, if the number of test turns of the tested server has reached the preset number of test turns, the test is ended; otherwise, detecting the tested server, and increasing the number of test turns by 1;
a starting time setting unit 13 for setting the next starting time of the tested server according to the execution unit 12;
a restarting unit 14 for restarting the tested server according to the starting time set by the starting time setting unit 13;
as shown in fig. 4, the AC test module includes a central controller 20, a switch 21, a PDU22, and a preset number of servers under test 23, where the central controller 20 is connected to the switch 21 and the PDU22 through a data network and a control network, respectively, the PDU22 is connected to the preset number of servers under test 23 through a plurality of power lines, and the preset number of servers under test 23 are connected to the switch 21 through a data network, respectively;
the central control machine 20 performs preset times of power failure and power restoration operations on the PDU22, and after power restoration, detects a preset number of servers 23 to be tested through the switch 21.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (6)
1. An automatic test method for simulating the starting of a server cluster is characterized by comprising a DC test and an AC test;
the DC test specifically comprises the following steps:
sequentially setting a Linux operating system as a character interface for starting, password-free login and tested server login;
judging whether the number of test turns of the tested server reaches the preset number of test turns, and if so, ending the test; otherwise, detecting the tested server, and increasing the number of test turns by 1;
setting the next starting time of the tested server and shutting down the server;
the tested server is restarted according to the set starting time, and whether the current test turn number reaches the preset test turn number is continuously judged;
the AC test specifically comprises the following steps:
the central control machine is connected with the switch and the PDU through a data network and a control network respectively, the PDU is connected with a preset number of tested servers through a plurality of power lines respectively, and the preset number of tested servers are connected to the switch through the data network respectively;
and carrying out preset times of power failure and power supply restoration operations on the PDU by using the central control machine, and detecting preset numbers of tested servers by using the central control machine through the switch after the power supply is restored.
2. The method for automated testing simulating server cluster startup of claim 1, wherein during the DC test, the startup time of the server under test is set by a Linux timer.
3. The method for simulating the automatic test of the startup of the server cluster as claimed in claim 1, wherein the preset number of the servers to be tested is 1-5.
4. An automatic testing device for simulating the starting of a server cluster is characterized by comprising a DC testing module and an AC testing module;
the DC test module includes:
the Linux operating system setting unit is used for sequentially setting the Linux operating system as character interface starting, password-free login and tested server login;
the judging unit is used for judging whether the number of test turns of the tested server reaches the preset number of test turns or not;
the execution unit is used for finishing the test if the number of test turns of the tested server reaches the preset number of test turns according to the result of the judgment unit; otherwise, detecting the tested server, and increasing the number of test turns by 1;
the starting time setting unit is used for setting the next starting time of the tested server according to the execution unit;
the restarting unit is used for restarting the tested server according to the starting time set by the starting time setting unit;
the AC test module comprises a central control machine, a switch, a PDU (protocol data unit) and a preset number of tested servers, wherein the central control machine is respectively connected with the switch and the PDU through a data network and a control network, the PDU is respectively connected with the preset number of tested servers through a plurality of power lines, and the preset number of tested servers are respectively connected to the switch through the data network;
and the central control machine performs preset times of power failure and power supply restoration operations on the PDU, and detects preset numbers of tested servers through the switch after power supply is restored.
5. The automated test equipment simulating server cluster startup of claim 4, wherein the DC test module further comprises a Linux timer setting unit for setting the startup time of the server under test.
6. An automated test equipment for simulating server cluster start-up according to claim 4, wherein the predetermined number of the servers under test is 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611100351.5A CN106685753B (en) | 2016-12-02 | 2016-12-02 | Automatic testing method and device for simulating server cluster starting |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611100351.5A CN106685753B (en) | 2016-12-02 | 2016-12-02 | Automatic testing method and device for simulating server cluster starting |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106685753A CN106685753A (en) | 2017-05-17 |
CN106685753B true CN106685753B (en) | 2020-08-11 |
Family
ID=58866194
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611100351.5A Active CN106685753B (en) | 2016-12-02 | 2016-12-02 | Automatic testing method and device for simulating server cluster starting |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106685753B (en) |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7428655B2 (en) * | 2004-09-08 | 2008-09-23 | Hewlett-Packard Development Company, L.P. | Smart card for high-availability clustering |
CN101196842A (en) * | 2006-12-08 | 2008-06-11 | 鸿富锦精密工业(深圳)有限公司 | Electric power loop test method |
US9413630B2 (en) * | 2010-10-04 | 2016-08-09 | Avocent Huntsville Corp. | Remote access appliance having MSS functionality |
US9064216B2 (en) * | 2012-06-06 | 2015-06-23 | Juniper Networks, Inc. | Identifying likely faulty components in a distributed system |
CN105868076A (en) * | 2016-04-01 | 2016-08-17 | 浪潮电子信息产业股份有限公司 | Cluster power consumption control method based on intelligent PDU |
-
2016
- 2016-12-02 CN CN201611100351.5A patent/CN106685753B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN106685753A (en) | 2017-05-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109802867B (en) | Method and system for testing connection stability of network card NCSI | |
US20180077230A1 (en) | Method and apparatus for switching between servers in server cluster | |
CN106909479B (en) | Startup and shutdown test fixture | |
EP3627323A1 (en) | Automatic diagnostic mode | |
CN106201799A (en) | Test method for DC restart of server based on ipmi service | |
CN105068900A (en) | Testing method for remote control server cold reboot | |
CN101539877A (en) | Embedded device testing system and testing method thereof | |
CN105807155A (en) | Testing device and method for power cut and starting of electric devices | |
CN110767259A (en) | Power failure pressure test method for flash memory device | |
CN111897697A (en) | Server hardware fault repairing method and device | |
CN111626445A (en) | Electric appliance maintenance method and device, electronic equipment and storage medium | |
CN105515916A (en) | Aging test monitoring method and device | |
CN113590401B (en) | CPE equipment multifunctional test method, CPE equipment multifunctional test device, computer equipment and storage medium | |
CN104898070B (en) | Power supply test method and device | |
CN106685753B (en) | Automatic testing method and device for simulating server cluster starting | |
CN111176893A (en) | Computer remote control method, device, system and storage medium | |
CN106776182B (en) | Method for automatically identifying work station and executing corresponding script | |
CN105915686A (en) | Device detection method and device of mobile terminal | |
CN101989936A (en) | Test method and system of single plate fault | |
CN105426304A (en) | Control method and device of restart test | |
CN110134558B (en) | Method and device for detecting server | |
CN113742276A (en) | Memory device and connection device and method of BBU (base band Unit) of memory device | |
CN112463471A (en) | Method and device for testing abnormal power-on and power-off BMC stability of server | |
CN112104497A (en) | Terminal management method, device, system, server, terminal and storage medium | |
CN106648947A (en) | Method and device for testing storage device with multiple controllers |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220729 Address after: 100089 building 36, courtyard 8, Dongbeiwang West Road, Haidian District, Beijing Patentee after: Dawning Information Industry (Beijing) Co.,Ltd. Patentee after: DAWNING INFORMATION INDUSTRY Co.,Ltd. Address before: 100193 No. 36 Building, No. 8 Hospital, Wangxi Road, Haidian District, Beijing Patentee before: Dawning Information Industry (Beijing) Co.,Ltd. |
|
TR01 | Transfer of patent right |