CN109783288A - It is a kind of to automate the method and system for restarting reset test server stability - Google Patents
It is a kind of to automate the method and system for restarting reset test server stability Download PDFInfo
- Publication number
- CN109783288A CN109783288A CN201910002229.1A CN201910002229A CN109783288A CN 109783288 A CN109783288 A CN 109783288A CN 201910002229 A CN201910002229 A CN 201910002229A CN 109783288 A CN109783288 A CN 109783288A
- Authority
- CN
- China
- Prior art keywords
- server
- test
- measured
- unit
- restarted
- 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.)
- Pending
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The present invention provides a kind of method and system for automating and restarting reset test server stability, includes the following steps: to restart server and automated log on server system to be measured;Server essential information is obtained to be stored;Meanwhile execute server pressure test and test result test log being shown.This method further include: be compared test result with the server essential information of acquisition;It checks whether hardware is lost in pressure test sequence, judges whether stability test passes through.The present invention can realize server stability test based on script is surveyed by operation automation pressure after restarting automated log under linux environment.Testing efficiency is improved, the testing time is saved, reduces the generation of problem in server operational process, work quality and efficiency is improved, improves server later period normal service life.
Description
Technical field
The present invention relates to server stability test technical fields, and in particular to reset test service is restarted in a kind of automation
The method and system of device stability.
Background technique
With the rise of big data and Internet application, server will be used wider and wider model.Server with when
Each area has been covered in the development in generation.Therefore also higher and higher to server service requirement, because server is in long-term
In operation process, to the stability that server is used for a long time, there are certain disadvantages for common pressure test.
Summary of the invention
The present invention provides a kind of method and system for automating and restarting reset test server stability, and specific technical solution is:
A method of reset test server stability is restarted in automation, is included the following steps:
Restart server and automated log on server system to be measured;
Server essential information is obtained to be stored;Meanwhile
Execute server pressure test simultaneously shows test result test log.
Further, this method further includes:
Test result is compared with the server essential information of acquisition;
It checks whether hardware is lost in pressure test sequence, judges whether stability test passes through.
Further, step restarts server and automated log on server system to be measured, includes: before
Pressure test module is arranged in server settings position to be measured;
System log is deleted.
Further, step restarts server and automated log on server system to be measured, before further include:
Number is restarted according to the setting of the coefficient of pressure test.
Further, this method further includes:
Setting restarts after number reaches setting number and restarts server to be measured again and do not execute pressure test.
Technical solution of the present invention also provides a kind of system for automating and restarting reset test server stability, including to be measured
Server, storage server and control server;Server to be measured is communicatively coupled with storage server;
Control server is communicatively coupled with server to be measured and storage server respectively;
Storage server, for storing test file;
Test file is transferred to server to be measured by storage server, the instruction for being also used to receive control server transmission;
Control server is tested for sending test instruction to server triggers test file to be measured;
The test file includes restarting module and pressure test module;
Module is restarted, for restarting server to be measured and automated log on server system to be measured;
Pressure test module is shown for carrying out server stress test to be measured and exporting test result.
Further, described to restart module including restarting unit, automated log on unit, information acquisition unit and trigger unit;
Unit is restarted, for carrying out Server Restart to be measured;
Automated log on unit, for automated log on server system to be measured after Server Restart to be measured;
Information acquisition unit, for obtaining the essential information of Server Restart procedures system to be measured;
Trigger unit carries out pressure test for triggering pressure test module after Server Restart to be measured.
Further, restarting module further includes restarting number setting unit;
It is described to restart number setting unit, number is restarted for being arranged, and restarts the pressure of number and the setting of pressure test module
The number of power test is identical.
Further, restarting module further includes system log clearing cell, the system log clearing cell, for holding
Row restarts the removing of progress system log before pressure test.
Further, pressure test module includes pressure test unit, comparing unit and output unit;
Pressure test unit, for carrying out the pressure test of server to be measured;
Comparing unit, for being compared pressure testing results with the server essential information of acquisition;
Output unit, for exporting the result of comparing unit.
As can be seen from the above technical solutions, the invention has the following advantages that the present invention can be based on logical under linux environment
It crosses operation automation pressure after restarting automated log on and surveys script, realize server stability test.Testing efficiency is improved, saves and surveys
The time is tried, the generation of problem in server operational process is reduced, work quality and efficiency is improved, is improving the server later period just
It is often used the service life.
In addition, design principle of the present invention is reliable, structure is simple, has very extensive application prospect.
It can be seen that compared with prior art, the present invention have substantive distinguishing features outstanding and it is significant ground it is progressive, implementation
Beneficial effect be also obvious.
Detailed description of the invention
Fig. 1 is a kind of method flow schematic diagram for automating and restarting reset test server stability.
Specific embodiment
The present invention will be described in detail with reference to the accompanying drawing and by specific embodiment, and following embodiment is to the present invention
Explanation, and the invention is not limited to following implementation.
Embodiment one
As shown in Figure 1, a kind of automate the method for restarting reset test server stability, start to protect first before test
FIO and stress tool has been installed under card system, is included the following steps:
S1: restart server and automated log on server system to be measured;
It is realized under linux system and restarts automated log on, automatic login unit is to guarantee to restart every time to enter and be
Operating pressure test of uniting realizes that order is as follows below by taking redhat7.2 as an example:
systemctl set-default multi-user.target
sed-i's/--noclear/-a root/g'
/etc/systemd/system/getty.target.wants/getty@tty1.service
cp/etc/systemd/system/getty.target.wants/getty@tty1.service
/etc/systemd/system
agetty-a root 3
agetty-n 3
S2: it obtains server essential information and is stored;
System reboot checks server essential information, such as server network interface card, cpu, memory, hdd etc. after logging in automatically, tool
Body is subject to the equipment on server, and the information obtained after restarting every time is recorded, to check that hardware is after the completion of testing
It is no to be lost in pressure test sequence, realize order:
S3: execute server pressure test simultaneously shows test result test log;
It should be noted that there is the mistake before test, system weight for system log after the completion of guarantee stability test
It opens to press to survey and system log is needed all to remove before, such as messages, dmesg and bmc log, while being after guaranteeing to restart
The script that file can be operated normally every time, need script path to be added to/root/.bash_profile in.It realizes
Script storyboard is as follows:
Automatically pressure survey (specific test content can adjust according to demand) is carried out to server memory, cpu, hdd after logging in,
Because being largely related to these three in the common equipment of server, by taking cpu, memory, hdd as an example, it is as follows that pressure surveys script:
Number is restarted in the number setting operation tested according to specific needs, and system reboot is run after the complete pressure of each run is surveyed
Number and server obtain essential information and pressure survey log save, when number of run reaches requirement, test terminates, delete
.bash_profile the content modified in file, it is ensured that not automatically enter pressure after restarting again and survey script, save system log.
Realization the Script section abstract by taking 7.2 systems as an example:
# setting operation test, information is modified and saved to testing time according to specific needs, pressure surveys log and log
S4: test result is compared with the server essential information of acquisition;Check hardware whether in pressure test
It is lost in journey, judges whether stability test passes through.
Embodiment two
Technical solution of the present invention also provides a kind of system for automating and restarting reset test server stability, including to be measured
Server, storage server and control server;Server to be measured is communicatively coupled with storage server;
Control server is communicatively coupled with server to be measured and storage server respectively;
Storage server, for storing test file;
Test file is transferred to server to be measured by storage server, the instruction for being also used to receive control server transmission;
Control server is tested for sending test instruction to server triggers test file to be measured;
The test file includes restarting module and pressure test module;
Module is restarted, for restarting server to be measured and automated log on server system to be measured;
Pressure test module is shown for carrying out server stress test to be measured and exporting test result.
It is described to restart module including restarting unit, automated log on unit, information acquisition unit and trigger unit;
Unit is restarted, for carrying out Server Restart to be measured;
Automated log on unit, for automated log on server system to be measured after Server Restart to be measured;
Information acquisition unit, for obtaining the essential information of Server Restart procedures system to be measured;
Trigger unit carries out pressure test for triggering pressure test module after Server Restart to be measured.
Restarting module further includes restarting number setting unit;
It is described to restart number setting unit, number is restarted for being arranged, and restarts the pressure of number and the setting of pressure test module
The number of power test is identical.
Restarting module further includes system log clearing cell, the system log clearing cell, for restarting pressure in execution
The removing of system log is carried out before power test.
Pressure test module includes pressure test unit, comparing unit and output unit;
Pressure test unit, for carrying out the pressure test of server to be measured;
Comparing unit, for being compared pressure testing results with the server essential information of acquisition;
Output unit, for exporting the result of comparing unit.
Description and claims of this specification and term " first ", " second ", " third " " in above-mentioned attached drawing
The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage
The data that solution uses in this way are interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to
Here the sequence other than those of diagram or description is implemented.In addition, term " includes " and " having " and their any deformation,
It is intended to cover and non-exclusive includes.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.
Claims (10)
1. a kind of automate the method for restarting reset test server stability, it is characterised in that include the following steps:
Restart server and automated log on server system to be measured;
Server essential information is obtained to be stored;Meanwhile
Execute server pressure test simultaneously shows test result test log.
2. the method that reset test server stability is restarted in a kind of automation according to claim 1, it is characterised in that
This method further include:
Test result is compared with the server essential information of acquisition;
It checks whether hardware is lost in pressure test sequence, judges whether stability test passes through.
3. the method that reset test server stability is restarted in a kind of automation according to claim 2, which is characterized in that
Step restarts server and automated log on server system to be measured, includes: before
Pressure test module is arranged in server settings position to be measured;
System log is deleted.
4. the method that reset test server stability is restarted in a kind of automation according to claim 3, which is characterized in that
Step restarts server and automated log on server system to be measured, before further include:
Number is restarted according to the setting of the coefficient of pressure test.
5. the method that reset test server stability is restarted in a kind of automation according to claim 4, which is characterized in that
This method further include:
Setting restarts after number reaches setting number and restarts server to be measured again and do not execute pressure test.
6. a kind of automate the system for restarting reset test server stability, which is characterized in that including server to be measured, storage
Server and control server;Server to be measured is communicatively coupled with storage server;
Control server is communicatively coupled with server to be measured and storage server respectively;
Storage server, for storing test file;
Test file is transferred to server to be measured by storage server, the instruction for being also used to receive control server transmission;
Control server is tested for sending test instruction to server triggers test file to be measured;
The test file includes restarting module and pressure test module;
Module is restarted, for restarting server to be measured and automated log on server system to be measured;
Pressure test module is shown for carrying out server stress test to be measured and exporting test result.
7. the system that reset test server stability is restarted in a kind of automation according to claim 6, which is characterized in that
It is described to restart module including restarting unit, automated log on unit, information acquisition unit and trigger unit;
Unit is restarted, for carrying out Server Restart to be measured;
Automated log on unit, for automated log on server system to be measured after Server Restart to be measured;
Information acquisition unit, for obtaining the essential information of Server Restart procedures system to be measured;
Trigger unit carries out pressure test for triggering pressure test module after Server Restart to be measured.
8. the system that reset test server stability is restarted in a kind of automation according to claim 7, which is characterized in that
Restarting module further includes restarting number setting unit;
It is described to restart number setting unit, number is restarted for being arranged, and the pressure for restarting number and the setting of pressure test module is surveyed
The number of examination is identical.
9. the system that reset test server stability is restarted in a kind of automation according to claim 7, which is characterized in that
Restarting module further includes system log clearing cell, the system log clearing cell, for before pressure test is restarted in execution
Carry out the removing of system log.
10. the system that reset test server stability is restarted in a kind of automation according to claim 6, feature exist
In pressure test module includes pressure test unit, comparing unit and output unit;
Pressure test unit, for carrying out the pressure test of server to be measured;
Comparing unit, for being compared pressure testing results with the server essential information of acquisition;
Output unit, for exporting the result of comparing unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910002229.1A CN109783288A (en) | 2019-01-02 | 2019-01-02 | It is a kind of to automate the method and system for restarting reset test server stability |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910002229.1A CN109783288A (en) | 2019-01-02 | 2019-01-02 | It is a kind of to automate the method and system for restarting reset test server stability |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109783288A true CN109783288A (en) | 2019-05-21 |
Family
ID=66499188
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910002229.1A Pending CN109783288A (en) | 2019-01-02 | 2019-01-02 | It is a kind of to automate the method and system for restarting reset test server stability |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109783288A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110399258A (en) * | 2019-07-25 | 2019-11-01 | 苏州浪潮智能科技有限公司 | A kind of stability test method, system and device of server system |
CN114816961A (en) * | 2022-05-16 | 2022-07-29 | 宝德计算机系统股份有限公司 | Server pressure testing method and device and computer storage medium |
CN115016864A (en) * | 2022-06-29 | 2022-09-06 | 苏州浪潮智能科技有限公司 | Server restart optimization method, system, device and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040122928A1 (en) * | 2002-12-23 | 2004-06-24 | Sun Microsystems, Inc. | Method and system for managing application server lifecycle |
CN104317712A (en) * | 2014-10-23 | 2015-01-28 | 浪潮电子信息产业股份有限公司 | Linux-based storage server fatigue test method |
CN106776256A (en) * | 2016-12-21 | 2017-05-31 | 郑州云海信息技术有限公司 | SAS Switch whole machine cabinet blend pressure automated testing methods |
-
2019
- 2019-01-02 CN CN201910002229.1A patent/CN109783288A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040122928A1 (en) * | 2002-12-23 | 2004-06-24 | Sun Microsystems, Inc. | Method and system for managing application server lifecycle |
CN104317712A (en) * | 2014-10-23 | 2015-01-28 | 浪潮电子信息产业股份有限公司 | Linux-based storage server fatigue test method |
CN106776256A (en) * | 2016-12-21 | 2017-05-31 | 郑州云海信息技术有限公司 | SAS Switch whole machine cabinet blend pressure automated testing methods |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110399258A (en) * | 2019-07-25 | 2019-11-01 | 苏州浪潮智能科技有限公司 | A kind of stability test method, system and device of server system |
CN110399258B (en) * | 2019-07-25 | 2022-08-16 | 苏州浪潮智能科技有限公司 | Stability testing method, system and device for server system |
CN114816961A (en) * | 2022-05-16 | 2022-07-29 | 宝德计算机系统股份有限公司 | Server pressure testing method and device and computer storage medium |
CN115016864A (en) * | 2022-06-29 | 2022-09-06 | 苏州浪潮智能科技有限公司 | Server restart optimization method, system, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103699421B (en) | Embedded device method for upgrading system and its device | |
CN110750396B (en) | Server operating system compatibility testing method and device and storage medium | |
CN112769922B (en) | Device and method for self-starting micro service cluster | |
CN109783288A (en) | It is a kind of to automate the method and system for restarting reset test server stability | |
CN104317693A (en) | Method for automatically testing hard disk performance fluctuation | |
CN104572422A (en) | Memory monitoring achievement method based on startup and shutdown of Linux system | |
CN108920369A (en) | A kind of server stress test method, device, equipment and storage medium | |
CN110704287B (en) | RAID card abnormal log collection method and system under Linux system and storage medium | |
CN109800022A (en) | A kind of method, system, terminal and the storage medium of automation comparison BIOS information difference | |
CN112073263B (en) | Method, system, equipment and medium for testing and monitoring reliability of white box switch | |
CN109684149A (en) | A kind of hardware information monitoring method, device and the equipment of NVMe hard disk | |
CN112216340A (en) | Hard disk test method and device, storage medium and electronic equipment | |
US20100251029A1 (en) | Implementing self-optimizing ipl diagnostic mode | |
CN110806955A (en) | Method and system for testing DC Cycle of server based on python | |
CN107145415A (en) | A kind of method of the batch testing HDD LED under Linux system | |
CN116302738A (en) | Method, system, equipment and storage medium for testing chip | |
CN109815074A (en) | A kind of method and system checking hard disk sequence in disk plug test process | |
CN109522230A (en) | A kind of method and apparatus for automatic test course | |
CN111752782B (en) | Stability testing method, system, device and storage medium | |
CN109783031B (en) | Method, device, terminal and storage medium for checking drive letter and slot number of RAID card | |
CN115454856A (en) | Multi-application security detection method, device, medium and electronic equipment | |
CN108280003A (en) | A kind of method and system of automatic Boot Server batch testing | |
CN108989144B (en) | Method and system for testing NAS cluster reset under Linux | |
CN109669867B (en) | Test apparatus, automated test method, and computer-readable storage medium | |
CN111240990A (en) | ISMCLI command line testing method, system, terminal and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190521 |
|
RJ01 | Rejection of invention patent application after publication |