CN115840686A - Server performance test method and device, electronic equipment and storage medium - Google Patents

Server performance test method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115840686A
CN115840686A CN202211422526.XA CN202211422526A CN115840686A CN 115840686 A CN115840686 A CN 115840686A CN 202211422526 A CN202211422526 A CN 202211422526A CN 115840686 A CN115840686 A CN 115840686A
Authority
CN
China
Prior art keywords
test
server
performance
function
data
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
Application number
CN202211422526.XA
Other languages
Chinese (zh)
Inventor
赵龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202211422526.XA priority Critical patent/CN115840686A/en
Publication of CN115840686A publication Critical patent/CN115840686A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention provides a server performance test method, a device, electronic equipment and a storage medium, wherein at least two performance tests are carried out on a server to be tested, in the process of carrying out the at least two performance tests, performance data correspondingly generated by the at least two performance tests are acquired in real time through a recording system, a test result corresponding to the server to be tested is determined according to the at least two performance data acquired by the recording system, the recording system records the test result in real time, and a test report is generated based on the test result, so that stability test, pressure test, fault tolerance test and problem elimination test can be respectively carried out on the server.

Description

Server performance test method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a server performance testing method, a server performance testing apparatus, an electronic device, and a storage medium.
Background
A server is one type of computer that runs faster, is more heavily loaded, and is more expensive than a regular computer. The server provides computing or application services for other clients (such as Personal Computer (PC), smart phone, automatic Teller Machine (ATM), and other terminals, even large-scale devices such as train systems, etc.) in the network. The server has high-speed Central Processing Unit (CPU) computing capability, long-time reliable operation, powerful Input/Output (I/O) external data throughput capability, and better expandability. Generally, a server has the capability of responding to a service request, supporting a service, and guaranteeing the service according to the service provided by the server. The server is used as an electronic device, and the internal structure of the server is very complex, but the difference with the internal structure of a common computer is not great, such as: CPU, hard disk, memory, system bus, etc. Server performance is a very important point for data operation, and many service providers will indicate that the server is normally online for time and operating speed, but enterprises are always not relieved of actual testing.
The existing server performance test is basically a single-point test, the test performance is too single, and the test method is too simple, for example, the CPU performance test is to run data by using a CPU performance tool and record logs; running data is tested by using a memory performance testing tool after the memory performance is verified, and a log is recorded; multiple items of content for the performance of the server cannot be tested.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a server performance testing method and a server performance testing apparatus, an electronic device, and a storage medium that overcome or at least partially solve the above problems.
In order to solve the above problems, the embodiment of the present invention discloses a server performance testing method, which is applied to a server to be tested, where the server to be tested includes a testing system and a recording system; the test system comprises: a test scene simulation function, a user simulation function, a state simulation function and a hidden danger verification function; the method comprises the following steps:
performing at least two performance tests on the server to be tested; the performance test comprises a stability test through the test scene simulation function, a pressure test through the user simulation function, a fault tolerance test through the state simulation function and a problem elimination test through the hidden danger verification function;
in the process of carrying out at least two performance tests, acquiring performance data correspondingly generated by the at least two performance tests in real time through a recording system; the performance data comprises stability data generated by the stability test, pressure data generated by the pressure test, fault tolerance data generated by the fault tolerance test and problem elimination data generated by the problem elimination test;
determining a test result corresponding to the server to be tested according to the at least two kinds of performance data acquired by the recording system;
and the recording system records the test result in real time and generates a test report based on the test result.
Optionally, the step of performing the stability test through the test scenario simulation function includes:
and simulating a plurality of test scenes through the test scene simulation function, setting simulation users with preset proportions in the test scenes, operating the server to be tested, and generating the stability data.
Optionally, the step of performing a stress test through the user simulation function pair includes:
and simulating the number of peak users through the user simulation function, operating the server to be tested, and generating the pressure data.
Optionally, the test system further includes a performance detection function, a response time detection function, and a state detection function, where the performance data includes performance index data, transaction response time, and a state of the server to be tested, and the method further includes:
detecting whether the performance index data meets a first preset condition or not through the performance detection function;
detecting whether the transaction response time meets a second preset condition or not through the response time detection function;
and detecting whether the state of the server to be detected is abnormal or not through the state detection function.
Optionally, the step of performing fault tolerance test through the state simulation function includes:
and simulating an abnormal state through the state simulation function, operating the server to be tested, and generating the fault tolerance data.
Optionally, the server to be tested further includes an automatic protection system, the test system further includes a processing mechanism detection function and an automatic protection system detection function, and the method further includes:
detecting whether the server to be detected normally operates or not through the processing mechanism detection function;
and detecting whether the automatic protection system triggers a protection measure or not through the detection function of the automatic protection system.
Optionally, the test system further includes a fault diagnosis function and a hidden danger verification function, and the step of performing the problem elimination test by the hidden danger verification function further includes:
detecting the fault of the server to be detected through the fault diagnosis function, and sending the fault to a recording system to generate a fault set;
and detecting whether the server to be detected has faults in the fault set or not through a hidden danger verification function, and generating problem elimination data.
The embodiment of the invention also discloses a server performance testing device, which is applied to the server to be tested, wherein the server to be tested comprises a testing system and a recording system; the test system comprises: a test scene simulation function, a user simulation function, a state simulation function and a hidden danger verification function; the device comprises:
the performance testing module is used for carrying out at least two performance tests on the server to be tested; the performance test comprises a stability test through the test scene simulation function, a pressure test through the user simulation function, a fault tolerance test through the state simulation function and a problem elimination test through the hidden danger verification function;
the acquisition module is used for acquiring performance data correspondingly generated by at least two performance tests in real time through a recording system in the process of carrying out the at least two performance tests; the performance data comprises stability data generated by the stability test, pressure data generated by the pressure test, fault tolerance data generated by the fault tolerance test and problem elimination data generated by the problem elimination test;
the test result module is used for determining a test result corresponding to the server to be tested according to the at least two kinds of performance data acquired by the recording system;
and the test report module is used for recording the test result in real time by the recording system and generating a test report based on the test result.
The embodiment of the invention also discloses an electronic device, which is characterized by comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory is used for storing a computer program;
the processor, when executing a program stored on the memory, implementing the method of any of claims 1-7.
The embodiment of the present invention further discloses a computer-readable storage medium, which is characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the server performance testing method described above are implemented.
The embodiment of the invention has the following advantages: the performance test comprises stability test through a test scene simulation function, pressure test through a user simulation function, fault tolerance test through a state simulation function, and problem elimination test through a hidden danger verification function, the performance data generated by the at least two performance tests are collected in real time through a recording system in the process of carrying out the at least two performance tests, the performance data comprises stability data generated by the stability test, pressure data generated by the pressure test, fault tolerance data generated by the fault tolerance test and problem elimination data generated by the problem elimination test, the test result corresponding to the server to be tested is determined according to the at least two performance data collected by the recording system, the recording system records the test result in real time, and a test report is generated based on the test result, so that the stability test, the pressure test, the fault tolerance test and the problem elimination test can be respectively carried out on the server, the test items are rich, the performance test of the server is more complete, the test process and the fault reason can be timely recorded after each test is finished, the problem can be timely found, and the method has strong practicability and market application prospect.
Drawings
FIG. 1 is a flow chart of steps of a method for testing server performance according to an embodiment of the present invention;
FIG. 2 is a flow chart of steps in another embodiment of a method for server performance testing in accordance with the present invention;
FIG. 3 is a topology diagram of an embodiment of a method for server performance testing according to the present invention;
FIG. 4 is a block diagram of an embodiment of a server performance testing apparatus according to the present invention;
fig. 5 is a block diagram of an electronic device provided in an embodiment of the invention;
fig. 6 is a schematic diagram of a computer-readable medium provided in an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
One of the core concepts of the embodiments of the present invention is that, by performing at least two performance tests on a server to be tested, the performance tests include performing a stability test through a test scene simulation function, performing a pressure test through a user simulation function, performing a fault tolerance test through a state simulation function, and performing a problem elimination test through a hidden danger verification function, during the process of performing at least two performance tests, performance data generated by the at least two performance tests are collected in real time through a recording system, the performance data include stability data generated by the stability test, pressure data generated by the pressure test, fault tolerance data generated by the fault tolerance test, and problem elimination data generated by the problem elimination test, and according to the at least two performance data collected by the recording system, a test result corresponding to the server to be tested is determined, the recording system records the test result in real time, and generates a test report based on the test result, so that the stability test, the pressure test, the fault tolerance test, and the problem elimination test can be performed on the server respectively, the test items are richer, the performance test of the server is more complete, and the server performance test process and the failure cause can be found in time, and the server has stronger practicability and market application prospect.
Referring to fig. 1, a flowchart of steps of an embodiment of a server performance testing method according to the present invention is shown, and is applied to a server to be tested, where the server to be tested includes a testing system and a recording system; the test system comprises: a test scene simulation function, a user simulation function, a state simulation function and a hidden danger verification function; the method specifically comprises the following steps:
101, performing at least two performance tests on the server to be tested; the performance test comprises a stability test through the test scene simulation function, a pressure test through the user simulation function, a fault tolerance test through the state simulation function and a problem elimination test through the hidden danger verification function;
a server is one of computers that runs faster, is more heavily loaded, and is more expensive than a regular computer. The server provides calculation or application services for other clients (such as terminals like PC, smart phone, ATM and the like and even large equipment like train systems and the like) in the network. The server has high-speed CPU computing capability, long-time reliable operation, strong I/O external data throughput capability and better expansibility. The server provided by the embodiment of the invention can be a storage server, a general server, a commercial server and the like.
The server to be tested comprises a test system, and the test system comprises: the system comprises a test scene simulation function, a user simulation function, a state simulation function and a hidden danger verification function, wherein the test scene simulation function is used for carrying out stability test, the user simulation function is used for carrying out pressure test, the state simulation function is used for carrying out fault tolerance test, and the hidden danger verification function is used for carrying out problem elimination test.
When the server to be tested is tested, at least two performances of the server to be tested can be tested simultaneously, in one example, a tester can select a test scene simulation function and a user simulation function to simultaneously perform stability test and pressure test on the server, and can also select the test scene simulation function, the user simulation function, a state simulation function and a hidden danger verification function to simultaneously perform stability test, pressure test, fault tolerance test and problem elimination test on the server to be tested. It will be understood by those skilled in the art that the above selected test performance is merely exemplary, and those skilled in the art can select the required performance to test according to actual needs.
102, acquiring performance data correspondingly generated by at least two performance tests in real time through a recording system in the process of performing the at least two performance tests; the performance data comprises stability data generated by the stability test, pressure data generated by the pressure test, fault tolerance data generated by the fault tolerance test and problem elimination data generated by the problem elimination test;
in the process of carrying out performance test on the server to be tested, each performance test generates corresponding performance data, stability data is generated by carrying out stability test on the server to be tested, pressure data is generated by carrying out pressure test on the server to be tested, fault tolerance data is generated by carrying out fault tolerance test on the server to be tested, and problem elimination data is generated by carrying out problem elimination test on the server to be tested.
In one example, if a tester selects a test scenario simulation function and a user simulation function to perform stability test and pressure test on a server at the same time, the generated performance data includes stability data and pressure data; if the tester selects the test scene simulation function, the user simulation function, the state simulation function and the hidden danger verification function to simultaneously perform stability test, pressure test, fault tolerance test and problem elimination test on the server to be tested, the generated performance data comprises stability data, pressure data, fault tolerance data and problem elimination data. It will be understood by those skilled in the art that the above selected test performance is merely exemplary, and those skilled in the art can select the required performance to test according to actual needs.
The server to be tested also comprises a recording system, the recording system has a function of acquiring data in real time, the recording system can acquire performance data generated by the performance test in real time in the process of performing the performance test on the server to be tested, abnormal conditions such as downtime or application suspension easily occur to the server in the process of testing the server, so that the test data can be lost, and the data in the test process can be recorded in time by acquiring the performance data in real time through the recording system.
103, determining a test result corresponding to the server to be tested according to the at least two kinds of performance data acquired by the recording system;
in an example, if a tester selects a test scenario simulation function and a user simulation function to perform stability test and pressure test on a server at the same time, the generated performance data includes stability data and pressure data, and therefore the performance data collected by the recording system is the stability data and the pressure data; if a tester selects a test scene simulation function, a user simulation function, a state simulation function and a hidden danger verification function and simultaneously performs stability test, pressure test, fault tolerance test and problem elimination test on a server to be tested, the generated performance data comprises stability data, pressure data, fault tolerance data and problem elimination data, and therefore the performance data collected by the recording system is the stability data, the pressure data, the fault tolerance data and the problem elimination data. It will be understood by those skilled in the art that the above performance of the selected test is merely an example, and those skilled in the art can select the required performance to test according to actual needs.
After the recording system collects the performance data, the collected performance data may be analyzed to generate corresponding test results.
And 104, recording the test result in real time by the recording system, and generating a test report based on the test result.
The recording system can also record the test result in real time, and generate a corresponding test report according to the test result so as to analyze the test process and problems possibly occurring in the test process.
In the embodiment of the invention, at least two performance tests are carried out on the server to be tested, the performance tests comprise stability tests carried out through a test scene simulation function, pressure tests are carried out through a user simulation function, fault tolerance tests are carried out through a state simulation function, problem elimination tests are carried out through a hidden danger verification function, in the process of carrying out at least two performance tests, performance data which are correspondingly generated by the at least two performance tests are collected in real time through a recording system, the performance data comprise stability data generated by the stability tests, pressure data generated by the pressure tests, fault tolerance data generated by the fault tolerance tests and problem elimination data generated by the problem elimination tests, test results which correspond to the server to be tested are determined according to the at least two performance data collected by the recording system, the recording system records the test results in real time, and test reports are generated based on the test results, so that the stability tests, the pressure tests, the fault tolerance tests and the problem elimination tests can be respectively carried out on the server, the test items are rich, the performance tests of the server are more complete, the problem can be conveniently found in time, and the server has stronger practicability and market application prospect.
Referring to fig. 2, a flowchart of steps of another embodiment of a method for testing server performance according to the present invention is shown, and is applied to a server to be tested, where the server to be tested includes a testing system and a recording system; the test system comprises: a test scene simulation function, a user simulation function, a state simulation function and a hidden danger verification function; the method specifically comprises the following steps:
step 201, performing at least two performance tests on the server to be tested; the performance test comprises a stability test through the test scene simulation function, a pressure test through the user simulation function, a fault tolerance test through the state simulation function and a problem elimination test through the hidden danger verification function;
the server to be tested comprises a test system, and the test system comprises: the system comprises a test scene simulation function, a user simulation function, a state simulation function and a hidden danger verification function, wherein the stability test is carried out through the test scene simulation function, the pressure test is carried out through the user simulation function, the fault tolerance test is carried out through the state simulation function, and the problem elimination test is carried out through the hidden danger verification function.
When the server to be tested is tested, at least two performances of the server to be tested can be tested simultaneously, in one example, a tester can select a test scene simulation function and a user simulation function to simultaneously perform stability test and pressure test on the server, and can also select the test scene simulation function, the user simulation function, a state simulation function and a hidden danger verification function to simultaneously perform stability test, pressure test, fault tolerance test and problem elimination test on the server to be tested. It will be understood by those skilled in the art that the above selected test performance is merely exemplary, and those skilled in the art can select the required performance to test according to actual needs.
In an optional embodiment of the present invention, the step 201 includes:
and S11, simulating a plurality of test scenes through the test scene simulation function, setting simulation users with preset proportions in the test scenes, operating the server to be tested, and generating the stability data.
When stability test is performed on a server to be tested, a test scenario simulation function simulates a plurality of test scenarios, the test scenarios may include a hybrid network performance scenario, a hybrid storage performance scenario, a complete machine hybrid storage performance scenario, and the like, and then a simulation user with a preset proportion is set in each test scenario, in an example, if the network performance scenario, the hybrid storage performance scenario, and a simulation user proportion set in the complete machine hybrid storage performance scenario is 3. It can be understood by those skilled in the art that the set simulated user ratio and the number of simulated users are only examples, and those skilled in the art can select the simulated user ratio and the number of simulated users for testing according to actual needs.
In an optional embodiment of the present invention, the step 201 further includes:
and a substep S21 of simulating the number of peak users through the user simulation function, operating the server to be tested and generating the pressure data.
When the server to be tested is subjected to pressure testing, the number of users using the server in a peak period can be monitored, the number of users in the peak period is simulated through a user simulation function, the server to be tested is operated, and pressure data are generated.
In an optional embodiment of the present invention, the step 201 further includes:
and a substep S31, simulating an abnormal state through the state simulation function, operating the server to be tested, and generating the fault tolerance data.
When fault tolerance test is carried out on the server to be tested, an abnormal state is simulated through a state simulation function, the abnormal state can comprise abnormal power failure of the server, abnormal network state, insufficient space of a hard disk of the server and other abnormal states, and then the server to be tested is operated in the abnormal state to generate fault tolerance data.
In an optional embodiment of the present invention, the test system further includes a fault diagnosis function and a hidden danger verification function, and the step 201 further includes:
a substep S41, detecting the fault of the server to be detected through the fault diagnosis function, and sending the fault to a recording system to generate a fault set;
when the problem elimination test is performed on the server to be tested, the fault diagnosis function can detect whether a fault occurs in the server to be tested and the type of the fault, and sends the fault to the recording system to generate a fault set.
And a substep S42 of detecting whether the server to be detected has faults in the fault set or not through a hidden danger verification function and generating problem elimination data.
The hidden danger verification module can verify the faults appearing in the fault set according to experience and also verify the faults suspected of having hidden dangers, thereby generating problem elimination data.
Step 202, acquiring performance data correspondingly generated by at least two performance tests in real time through a recording system in the process of performing the at least two performance tests; the performance data comprises stability data generated by the stability test, pressure data generated by the pressure test, fault tolerance data generated by the fault tolerance test and problem elimination data generated by the problem elimination test;
in the process of carrying out performance test on the server to be tested, each performance test generates corresponding performance data, stability data is generated by carrying out stability test on the server to be tested, pressure data is generated by carrying out pressure test on the server to be tested, fault tolerance data is generated by carrying out fault tolerance test on the server to be tested, and problem elimination data is generated by carrying out problem elimination test on the server to be tested.
In one example, if a tester selects a test scene simulation function and a user simulation function to perform stability test and pressure test on a server at the same time, the generated performance data includes stability data and pressure data; if the tester selects the test scene simulation function, the user simulation function, the state simulation function and the hidden danger verification function to simultaneously perform stability test, pressure test, fault tolerance test and problem elimination test on the server to be tested, the generated performance data comprises stability data, pressure data, fault tolerance data and problem elimination data. It will be understood by those skilled in the art that the above selected test performance is merely exemplary, and those skilled in the art can select the required performance to test according to actual needs.
The server to be tested also comprises a recording system, the recording system has a real-time acquisition function, the recording system can acquire performance data generated by the performance test in real time in the process of performing the performance test on the server to be tested, abnormal conditions such as downtime or application suspension easily occur to the server in the process of testing the server, so that the test data can be lost, and the data in the test process can be recorded in time by acquiring the performance data in real time through the recording system.
The test system also comprises a performance detection function, a response time detection function and a state detection function, wherein the performance data comprises performance index data, transaction response time and the state of the server to be tested.
Step 203, detecting whether the performance index data meets a first preset condition through the performance detection function;
when the stability test or the pressure test is performed on the server to be tested, the performance data may include performance index data, where the performance index data may include CPU performance data, memory performance data, network interaction performance data, storage read-write performance data, and the like, the performance index data may be compared with the standard performance data, and when the performance index data exceeds a preset proportion of the standard performance data, it may be determined that the performance index data satisfies a first preset condition. In an example, if the preset ratio is 90%, when the standard performance data of the CPU is 10G and the performance index data is 9G, it is determined that the performance index data satisfies the first preset condition. It will be understood by those skilled in the art that the above data are only examples, and those skilled in the art can select the above data according to actual needs.
Step 204, detecting whether the transaction response time meets a second preset condition through the response time detection function;
when the stability test or the pressure test is performed on the server to be tested, the performance data may include transaction response time, and the transaction response time may be set according to the test requirement, in an example, if it is determined that the transaction response time does not exceed 2 minutes, it is determined that the transaction response time meets a second preset condition. It will be understood by those skilled in the art that the above data are only examples, and those skilled in the art can select the above data according to actual needs.
Step 205, detecting whether the state of the server to be detected is abnormal through the state detection function.
When the server to be tested is subjected to a stability test or a pressure test, the state of the server to be tested may be included in the performance data. And when the abnormal conditions such as downtime, application suspension and the like of the server to be detected are judged, determining that the server to be detected is not abnormal.
The server to be tested further comprises an automatic protection system, and the test system further comprises a processing mechanism detection function and an automatic protection system detection function.
Step 206, detecting whether the server to be detected normally operates through the processing mechanism detection function;
when fault tolerance test is carried out on the server to be tested, an abnormal state is simulated through the state simulation function, the abnormal state can comprise abnormal conditions such as abnormal power failure of the server, abnormal network state, insufficient space of a hard disk of the server and the like, and whether the server to be tested can normally operate or recover to operate is detected through the processing mechanism detection function when the conditions occur. In an example, the automatic disaster recovery system can ensure that the servers to be tested normally operate or recover to operate, the automatic disaster recovery system can establish disaster recovery among the servers, and when one server is down, other servers establishing disaster recovery with the down server can replace the server, so that the normal service scene of a client is not influenced.
And step 207, detecting whether the automatic protection system triggers a protection measure or not through the detection function of the automatic protection system.
The server to be tested also comprises an automatic protection system, the automatic protection system can trigger the protection measures when the server is abnormally damaged and a laboratory is in fire and other abnormal conditions, and whether the automatic protection system triggers the protection measures can be detected through the detection function of the automatic protection system.
And 208, recording the test result in real time by the recording system, and generating a test report based on the test result.
The server to be tested can generate a test result based on the judgment of the performance data, the recording module records the test result in real time, and a corresponding test report is generated according to the test result so as to analyze the test process and problems which may occur in the test process.
In the embodiment of the invention, at least two performance tests are carried out on the server to be tested, the performance tests comprise stability tests through a test scene simulation function, pressure tests are carried out through a user simulation function, fault tolerance tests are carried out through a state simulation function, and problem elimination tests are carried out through a hidden danger verification function, in the process of carrying out at least two performance tests, the performance data correspondingly generated by the at least two performance tests are collected in real time through a recording system, the performance data comprise stability data generated by the stability tests, pressure data generated by the pressure tests, fault tolerance data generated by the fault tolerance tests, and problem elimination data generated by the problem elimination tests, the test results corresponding to the server to be tested are determined according to the at least two performance data collected by the recording system, the recording system records the test results in real time, and test reports are generated based on the test results, so that the stability tests, the pressure tests, the fault tolerance tests and the problem elimination tests can be respectively carried out on the server, the test items are rich, the performance tests of the server are more complete, the performance tests of the server are carried out, the process and the fault causes of the server can be timely recorded after the various tests are completed, the problems can be conveniently found, and the server has strong practicability and market application prospect.
Referring to fig. 3, a topology diagram of an embodiment of a server performance testing method of the present invention is shown; the test server includes a test system 301 and a recording system 302, the test system 301 includes: a test scene simulation function 3011, a user simulation function 3012, a state simulation function 3013, and a hidden danger verification function 3014; the stability test is performed through the test scene simulation function 3011 to generate stability data, the pressure test is performed through the user simulation function 3012 to generate pressure data, the fault tolerance test is performed through the state simulation function 3013 to generate fault tolerance data, and the problem elimination test is performed through the hidden danger verification function 3014 to generate problem elimination data. The test system 301 further includes: the performance detection function 3015, the response time detection function 3016, and the state detection function 3017 detect stability data and pressure data by the performance detection function 3015, the response time detection function 3016, and the state detection function 3017. The test system 301 further includes a processing mechanism detection function 3018 and an automatic protection system detection function 3019, and detects the server to be tested based on the processing mechanism detection function 3018 and the automatic protection system detection function 3019 to generate fault-tolerant data. The test system 301 further includes a fault diagnosis function 30110 and a hidden trouble verification function 30111, and detects a server to be tested based on the fault diagnosis function 30110 and the hidden trouble verification function 30111, and generates problem elimination data. After the test is completed, a test result is generated and sent to the recording system 302.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 4, a block diagram of a server performance testing apparatus according to an embodiment of the present invention is shown, and is applied to a server to be tested, where the server to be tested includes a testing system and a recording system; the test system comprises: a test scene simulation function, a user simulation function, a state simulation function and a hidden danger verification function; the method specifically comprises the following modules:
a performance testing module 401, configured to perform at least two performance tests on the server to be tested; the performance test comprises a stability test through the test scene simulation function, a pressure test through the user simulation function, a fault tolerance test through the state simulation function and a problem elimination test through the hidden danger verification function;
an acquisition module 402, configured to acquire, in real time, performance data generated by at least two performance tests through a recording system in a process of performing the at least two performance tests; the performance data comprises stability data generated by the stability test, pressure data generated by the pressure test, fault tolerance data generated by the fault tolerance test and problem elimination data generated by the problem elimination test;
a test result module 403, configured to determine a test result corresponding to the server to be tested according to the at least two types of performance data acquired by the recording system;
and a test report module 404, configured to record the test result in real time by the recording system, and generate a test report based on the test result.
In an optional embodiment of the present invention, the performance testing module 401 includes:
and the stability test submodule is used for simulating a plurality of test scenes through the test scene simulation function, setting simulation users with preset proportion in the test scenes, operating the server to be tested and generating the stability data.
In an optional embodiment of the present invention, the performance testing module 401 includes:
and the pressure test submodule is used for simulating the number of peak users through the user simulation function, operating the server to be tested and generating the pressure data.
In an optional embodiment of the present invention, the test system further includes a performance detection function, a response time detection function, and a state detection function, where the performance data includes performance index data, transaction response time, and a state of the server to be tested, and the apparatus further includes:
the performance index data module is used for detecting whether the performance index data meets a first preset condition or not through the performance detection function;
the transaction response time module is used for detecting whether the transaction response time meets a second preset condition or not through the response time detection function;
and the state detection module is used for detecting whether the state of the server to be detected is abnormal or not through the state detection function.
In an optional embodiment of the present invention, the performance testing module 401 includes:
and the fault tolerance test submodule is used for simulating an abnormal state through the state simulation function, operating the server to be tested and generating the fault tolerance data.
In an optional embodiment of the present invention, the server to be tested further includes an automatic protection system, the test system further includes a processing mechanism detection function and an automatic protection system detection function, and the apparatus further includes:
the operation detection module is used for detecting whether the server to be detected operates normally or not through the processing mechanism detection function;
and the protection module is used for detecting whether the automatic protection system triggers a protection measure or not through the detection function of the automatic protection system.
In an optional embodiment of the present invention, the test system further includes a fault diagnosis function and a hidden danger verification function, and the performance test module 401 further includes:
the fault set submodule is used for detecting the fault of the server to be detected through the fault diagnosis function and sending the fault to a recording system to generate a fault set;
and the hidden danger verification submodule is used for detecting whether the server to be detected has faults in the fault set or not through a hidden danger verification function and generating problem elimination data.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
In addition, an embodiment of the present invention further provides an electronic device, as shown in fig. 5, which includes a processor 501, a communication interface 502, a memory 503 and a communication bus 504, where the processor 501, the communication interface 502 and the memory 503 complete mutual communication through the communication bus 504,
a memory 503 for storing a computer program;
the processor 501, when executing the program stored in the memory 503, implements the following steps:
performing at least two performance tests on the server to be tested; the performance test comprises a stability test through the test scene simulation function, a pressure test through the user simulation function, a fault tolerance test through the state simulation function and a problem elimination test through the hidden danger verification function;
in the process of carrying out at least two performance tests, acquiring performance data correspondingly generated by the at least two performance tests in real time through a recording system; the performance data comprises stability data generated by the stability test, pressure data generated by the pressure test, fault tolerance data generated by the fault tolerance test and problem elimination data generated by the problem elimination test;
determining a test result corresponding to the server to be tested according to the at least two kinds of performance data acquired by the recording system;
and the recording system records the test result in real time and generates a test report based on the test result.
Optionally, the step of performing the stability test through the test scenario simulation function includes:
and simulating a plurality of test scenes through the test scene simulation function, setting simulation users with preset proportions in the test scenes, operating the server to be tested, and generating the stability data.
Optionally, the step of performing a stress test through the user simulation function pair includes:
and simulating the number of peak users through the user simulation function, and operating the server to be tested to generate the pressure data.
Optionally, the test system further includes a performance detection function, a response time detection function, and a state detection function, where the performance data includes performance index data, transaction response time, and a state of the server to be tested, and the method further includes:
detecting whether the performance index data meets a first preset condition or not through the performance detection function;
detecting whether the transaction response time meets a second preset condition or not by the response time detection function;
and detecting whether the state of the server to be detected is abnormal or not through the state detection function.
Optionally, the step of performing fault tolerance test through the state simulation function includes:
and simulating an abnormal state through the state simulation function, operating the server to be tested, and generating the fault tolerance data.
Optionally, the server to be tested further includes an automatic protection system, the test system further includes a processing mechanism detection function and an automatic protection system detection function, and the method further includes:
detecting whether the server to be detected normally operates or not through the processing mechanism detection function;
and detecting whether the automatic protection system triggers a protection measure or not through the detection function of the automatic protection system.
Optionally, the test system further includes a fault diagnosis function and a hidden danger verification function, and the step of performing the problem elimination test by the hidden danger verification function further includes:
detecting the fault of the server to be detected through the fault diagnosis function, and sending the fault to a recording system to generate a fault set;
and detecting whether the server to be detected has faults in the fault set or not through a hidden danger verification function, and generating problem elimination data.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In another embodiment provided by the present invention, as shown in fig. 6, there is further provided a computer-readable storage medium 601, which stores instructions that, when executed on a computer, cause the computer to execute the server performance testing method described in the above embodiment.
In yet another embodiment provided by the present invention, a computer program product containing instructions is also provided, which when run on a computer, causes the computer to execute the server performance testing method described in the above embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or terminal apparatus that comprises the element.
The server performance testing method and the server performance testing device provided by the invention are introduced in detail, specific examples are applied in the text to explain the principle and the implementation mode of the invention, and the description of the above embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. The server performance testing method is characterized by being applied to a server to be tested, wherein the server to be tested comprises a testing system and a recording system; the test system comprises: a test scene simulation function, a user simulation function, a state simulation function and a hidden danger verification function; the method comprises the following steps:
performing at least two performance tests on the server to be tested; the performance test comprises a stability test through the test scene simulation function, a pressure test through the user simulation function, a fault tolerance test through the state simulation function and a problem elimination test through the hidden danger verification function;
in the process of carrying out at least two performance tests, acquiring performance data correspondingly generated by the at least two performance tests in real time through a recording system; the performance data comprises stability data generated by the stability test, pressure data generated by the pressure test, fault tolerance data generated by the fault tolerance test and problem elimination data generated by the problem elimination test;
determining a test result corresponding to the server to be tested according to at least two kinds of performance data acquired by the recording system;
and the recording system records the test result in real time and generates a test report based on the test result.
2. The method of claim 1, wherein the step of performing the stability test by the test scenario simulation function comprises:
and simulating a plurality of test scenes through the test scene simulation function, setting simulation users with preset proportions in the test scenes, operating the server to be tested, and generating the stability data.
3. The method of claim 1, wherein the step of stress testing by the user simulation function pair comprises:
and simulating the number of peak users through the user simulation function, and operating the server to be tested to generate the pressure data.
4. A method according to claim 2 or 3, wherein the test system further comprises a performance detection function, a response time detection function, a status detection function, the performance data comprising performance indicator data, transaction response time, status of the server under test, the method further comprising:
detecting whether the performance index data meets a first preset condition or not through the performance detection function;
detecting whether the transaction response time meets a second preset condition or not by the response time detection function;
and detecting whether the state of the server to be detected is abnormal or not through the state detection function.
5. The method of claim 1, wherein the step of performing fault tolerance testing via the state simulation function comprises:
and simulating an abnormal state through the state simulation function, operating the server to be tested, and generating the fault tolerance data.
6. The method of claim 5, wherein the server under test further comprises an automatic protection system, wherein the test system further comprises a handling mechanism detection function and an automatic protection system detection function, and wherein the method further comprises:
detecting whether the server to be detected normally operates or not through the processing mechanism detection function;
and detecting whether the automatic protection system triggers a protection measure or not through the detection function of the automatic protection system.
7. The method of claim 1, wherein the test system further comprises a fault diagnosis function and a hidden danger verification function, and the step of performing the problem elimination test by the hidden danger verification function further comprises:
detecting the fault of the server to be detected through the fault diagnosis function, and sending the fault to a recording system to generate a fault set;
and detecting whether the server to be detected has faults in the fault set or not through a hidden danger verification function, and generating problem elimination data.
8. The server performance testing device is applied to a server to be tested, and the server to be tested comprises a testing system and a recording system; the test system comprises: a test scene simulation function, a user simulation function, a state simulation function and a hidden danger verification function; the device comprises:
the performance testing module is used for carrying out at least two performance tests on the server to be tested; the performance test comprises a stability test through the test scene simulation function, a pressure test through the user simulation function, a fault tolerance test through the state simulation function and a problem elimination test through the hidden danger verification function;
the acquisition module is used for acquiring performance data correspondingly generated by at least two performance tests in real time through a recording system in the process of carrying out the at least two performance tests; the performance data comprises stability data generated by the stability test, pressure data generated by the pressure test, fault tolerance data generated by the fault tolerance test and problem elimination data generated by the problem elimination test;
the test result module is used for determining a test result corresponding to the server to be tested according to the at least two kinds of performance data acquired by the recording system;
and the test report module is used for recording the test result in real time by the recording system and generating a test report based on the test result.
9. An electronic device, comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory is used for storing a computer program;
the processor, when executing a program stored on the memory, implementing the method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the server performance testing method according to any one of claims 1 to 7.
CN202211422526.XA 2022-11-14 2022-11-14 Server performance test method and device, electronic equipment and storage medium Pending CN115840686A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211422526.XA CN115840686A (en) 2022-11-14 2022-11-14 Server performance test method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211422526.XA CN115840686A (en) 2022-11-14 2022-11-14 Server performance test method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115840686A true CN115840686A (en) 2023-03-24

Family

ID=85577091

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211422526.XA Pending CN115840686A (en) 2022-11-14 2022-11-14 Server performance test method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115840686A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117271138A (en) * 2023-10-27 2023-12-22 山东三木众合信息科技股份有限公司 Data processing method and system based on data center

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117271138A (en) * 2023-10-27 2023-12-22 山东三木众合信息科技股份有限公司 Data processing method and system based on data center
CN117271138B (en) * 2023-10-27 2024-03-01 山东三木众合信息科技股份有限公司 Data processing method and system based on data center

Similar Documents

Publication Publication Date Title
CN109947641B (en) Automatic testing method and device
US10320828B1 (en) Evaluation of security in a cyber simulator
CN110618924B (en) Link pressure testing method of web application system
CN106341248B (en) Fault processing method and device based on cloud platform
CN110750458A (en) Big data platform testing method and device, readable storage medium and electronic equipment
Nguyen et al. Automated verification of load tests using control charts
CN116405412B (en) Method and system for verifying cluster effectiveness of simulation server based on chaotic engineering faults
CN115840686A (en) Server performance test method and device, electronic equipment and storage medium
CN115271736B (en) Method, device, equipment and storage medium for verifying transaction consistency
CN106878109A (en) Server detection method and server system
CN111143151B (en) Service monitoring method and device and electronic equipment
CN112948262A (en) System test method, device, computer equipment and storage medium
CN105653455A (en) Program vulnerability detection method and detection system
CN112286798A (en) Full link pressure measurement system and method capable of simulating real user scene
CN115225455B (en) Abnormal device detection method and device, electronic device and storage medium
Zong et al. Nowhere to hide methodology: Application of clustering fault diagnosis in the nuclear power industry
CN114090357A (en) Hard disk performance test method and device, electronic equipment and storage medium
CN115795475A (en) Method and device for determining software system risk and electronic equipment
CN113590440A (en) Pressure testing method, device, equipment and medium for bank core system
CN111488284A (en) Simulation operation active detection method for OpenStack cloud platform
CN116467101A (en) Cabin software stability assessment method and device, electronic equipment and storage medium
CN115473788B (en) Storage alarm test method, device, equipment and storage medium
CN111552960B (en) Dynamic measurement method and device for program integrity
CN117354342A (en) Cloud service system health inspection method and device
CN117632718A (en) Bank counter channel system transaction service testing method and device

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