CN110489201B - Container performance testing device and method - Google Patents

Container performance testing device and method Download PDF

Info

Publication number
CN110489201B
CN110489201B CN201810462201.1A CN201810462201A CN110489201B CN 110489201 B CN110489201 B CN 110489201B CN 201810462201 A CN201810462201 A CN 201810462201A CN 110489201 B CN110489201 B CN 110489201B
Authority
CN
China
Prior art keywords
test
container
application
module
performance
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
Application number
CN201810462201.1A
Other languages
Chinese (zh)
Other versions
CN110489201A (en
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.)
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang 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 China Mobile Communications Group Co Ltd, China Mobile Group Zhejiang Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201810462201.1A priority Critical patent/CN110489201B/en
Publication of CN110489201A publication Critical patent/CN110489201A/en
Application granted granted Critical
Publication of CN110489201B publication Critical patent/CN110489201B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45591Monitoring or debugging support

Abstract

The invention provides a container performance testing device and a method, wherein the device comprises: the system comprises an application library module, a test engine module and a resource evaluation module; the application library module is used for storing a plurality of applications which are used for performing performance test on the container to be tested; the test engine module is used for deploying application, executing the application and collecting a test result generated after the application is executed; and the resource evaluation module is used for analyzing the test result and generating a test report. According to the container performance testing device and method provided by the invention, the performance of the container is tested by presetting a plurality of applications irrelevant to the service in the application library module, the resource consumption condition of the container can be accurately obtained, the complexity of a testing system is reduced, the testing time is shortened, and the accuracy of the testing result is further improved by carrying out noise reduction treatment on the testing result.

Description

Container performance testing device and method
Technical Field
The invention relates to the technical field of computers, in particular to a container performance testing device and method.
Background
With the continuous development of the Docker container technology, Docker containers are increasingly applied to various large systems, but how to quickly perform performance tests on Docker containers is an important problem faced by various large systems.
The method in the prior art mainly comprises the steps of setting up a set of test system, simulating various service scenes to carry out performance test on a Docker container, and evaluating actual performance according to test results.
The main drawback of the prior art is that the performance test of the Docker container depends on the actual traffic. In the aspect of deployment, the building of a basic environment is very complex, time is consumed for building the basic environment, test contents are related to actual services, the content of performance monitoring in the test process is the total consumption of a Docker container and the services, and the performance of the container is difficult to obtain. Moreover, under large concurrency, not only the load of the Docker container rises, but also other JVM indexes rise, the complexity of testing and monitoring is greatly increased, and great difficulty is brought to test time control, test cost control and result analysis accuracy.
Disclosure of Invention
The invention aims to provide a container performance testing device and a container performance testing method, which solve the technical problems of high container performance testing cost, long time consumption and inaccurate testing result in the prior art.
In order to solve the above technical problem, in one aspect, the present invention provides a container performance testing apparatus, including: the system comprises an application library module, a test engine module and a resource evaluation module;
the test engine module is respectively connected with the application library module and the resource evaluation module, and is connected with a container to be tested;
the application library module is used for storing a plurality of applications, and the applications are used for performing performance test on the container to be tested;
the test engine module is used for calling the application stored in the application library module as a target application, deploying the target application into the container to be tested, sending an execution command to the target application to start the target application to test the performance of the container to be tested, collecting a test result generated by the target application, and sending the test result to the resource evaluation module;
and the resource evaluation module is used for analyzing the test result and generating a test report.
In another aspect, the present invention provides a method for testing container performance, comprising:
deploying a preset target application into a container to be tested;
sending an execution command to the target application to start the target application to test the performance of the container to be tested;
collecting a test result generated by the target application;
and generating a test report according to the test result.
In yet another aspect, the present invention provides an electronic device for container performance testing, comprising:
the processor and the memory are communicated with each other through a bus; the memory stores program instructions executable by the processor, which when called by the processor are capable of performing the methods described above.
In a further aspect, the invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method described above.
According to the container performance testing device and method provided by the invention, the performance of the container is tested by presetting a plurality of applications irrelevant to the service in the application library module, the resource consumption condition of the container can be accurately obtained, the complexity of a testing system is reduced, the testing time is shortened, and the accuracy of the testing result is further improved by carrying out noise reduction treatment on the testing result.
Drawings
FIG. 1 is a schematic diagram of a container performance testing apparatus according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an application library module according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a test engine module according to an embodiment of the present invention;
FIG. 4 is a flow diagram of an application deployment process according to an embodiment of the invention;
FIG. 5 is a flowchart illustrating a test result collection process according to an embodiment of the invention;
FIG. 6 is a flow diagram illustrating a process for generating a test report according to an embodiment of the invention;
FIG. 7 is a diagram illustrating a test result storage directory structure according to an embodiment of the present invention;
FIG. 8 is a diagram illustrating a variation trend of benchmark values of performance tests of resources under different testing pressures according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of a container performance testing method in accordance with an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an electronic device for container performance testing according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic view of a container performance testing apparatus according to an embodiment of the present invention, and as shown in fig. 1, an embodiment of the present invention provides a container performance testing apparatus, including: the system comprises an application library module, a test engine module and a resource evaluation module;
the test engine module is respectively connected with the application library module and the resource evaluation module, and is connected with a container to be tested;
the application library module is used for storing a plurality of applications, and the applications are used for performing performance test on the container to be tested;
the test engine module is used for calling the application stored in the application library module as a target application, deploying the target application into the container to be tested, sending an execution command to the target application to start the target application to test the performance of the container to be tested, collecting a test result generated by the target application, and sending the test result to the resource evaluation module;
and the resource evaluation module is used for analyzing the test result and generating a test report.
Specifically, the container performance testing device provided by the embodiment of the invention comprises an application library module, a testing engine module and a resource evaluation module, wherein the testing engine module is respectively connected with the application library module and the resource evaluation module, and the testing engine module is connected with a container to be tested.
The application library module stores a plurality of applications irrelevant to the service, and the applications are used for performing performance test on the container to be tested.
When the container to be tested needs to be tested, the test engine module calls the application preset in the application library module, and the called application serves as a target application tested engine module and is deployed in the container to be tested.
Then, the test engine module sends an execution command to the target application to start the target application to test the performance of the container to be tested.
The test engine module monitors the execution state of the target application, and when the execution of the target application is monitored to be completed, the test engine module collects a test result generated by the target application and sends the test result to the resource evaluation module.
And after receiving the test result, the resource evaluation module integrates and analyzes the test result and generates a test report.
The container performance testing device provided by the invention can be used for testing the performance of the container by presetting a plurality of applications irrelevant to the service in the application library module, so that the resource consumption condition of the container can be accurately obtained, the complexity of a testing system is reduced, the testing time is shortened, and the accuracy of the testing result is further improved by carrying out noise reduction treatment on the testing result.
On the basis of the above embodiment, further, each application stored in the application library module includes an application configuration and an application system;
the application configuration is used for configuring test parameters of the application system;
the application system is used for carrying out performance test on the container to be tested.
Specifically, fig. 2 is a schematic diagram of an application library module according to an embodiment of the present invention, as shown in fig. 2, the application library module stores a plurality of applications, and the applications are used for performing performance tests on containers to be tested, and only one application is given as an example in fig. 2. Each application stored in the application library module contains an application configuration and an application system.
In order to uniformly manage the application configuration of each performance testing tool in the application system, the parameter configuration of the performance testing tools in the application system is combined into one configuration file, and the configuration file is stored in the application configuration. The configuration file can be arranged into a plurality of copies according to the actual performance test requirement and the pressure order so as to be called by the test tool in the application system.
Therefore, performance tests under different pressure values can be completed only by pre-adjusting the application configuration in the application library module, the deployment and execution of each application system and the collection of test results are automated, the period of the performance tests can be effectively shortened, and the labor input is reduced.
The container performance testing device provided by the invention can be used for testing the performance of the container by presetting a plurality of applications irrelevant to the service in the application library module, so that the resource consumption condition of the container can be accurately obtained, the complexity of a testing system is reduced, the testing time is shortened, and the accuracy of the testing result is further improved by carrying out noise reduction treatment on the testing result.
On the basis of the above embodiments, further, the application system includes a network performance testing tool, a system performance testing tool, and a listening service agent;
the system performance testing tool is used for testing at least one of the CPU utilization rate of the container, the memory consumption rate of the container and the I/O interface utilization rate of the container;
the network performance testing tool is used for testing at least one of the network bandwidth of the container, the network delay of the container and the bandwidth-delay product of the container;
the monitoring service agent is used for receiving the execution command sent by the test engine module, starting the network performance test tool and/or the system performance test tool, monitoring the execution state of the network performance test tool and/or the system performance test tool, and sending the execution state to the test engine module.
Specifically, as shown in fig. 2, the application system includes a network performance testing tool, a system performance testing tool, and a listening service agent.
The system performance testing tool is mainly used for testing at least one of the CPU utilization rate, the memory utilization rate, and the I/O interface utilization rate of the container, and generally, parameters of the system performance testing tool are predefined in a configuration file in an application configuration, and execution parameters of the system performance testing tool may also be dynamically adjusted.
The network performance testing tool is mainly used for testing at least one of the network bandwidth of the container, the network delay of the container and the bandwidth delay product of the container, generally, parameters of the network performance testing tool are predefined in a configuration file in application configuration, execution parameters of the network performance testing tool can also be dynamically adjusted, different network testing modes are selected, and flexible testing of network performance is achieved.
The monitoring service Agent, i.e. the Agent in fig. 2, is configured to receive an execution command sent by the test engine module, start the network performance test tool and/or the system performance test tool, monitor an execution state of the network performance test tool and/or the system performance test tool, and send the execution state to the test engine module.
The container performance testing device provided by the invention can be used for testing the performance of the container by presetting a plurality of applications irrelevant to the service in the application library module, so that the resource consumption condition of the container can be accurately obtained, the complexity of a testing system is reduced, the testing time is shortened, and the accuracy of the testing result is further improved by carrying out noise reduction treatment on the testing result.
On the basis of the above embodiments, further, the network performance testing tool includes four operation modes, namely TCP _ STREAM, TCP _ RR, UDP _ STREAM, and UDP _ RR.
Specifically, the network performance test tool has four working modes, including TCP _ STREAM, TCP _ RR, UDP _ STREAM, and UDP _ RR, and can implement testing for both TCP and UDP modes. The working mode of the network performance testing tool is predefined in the configuration file in the application configuration, and the working mode of the network performance testing tool can also be dynamically adjusted, so that the flexible testing of the network performance is realized.
The container performance testing device provided by the invention can be used for testing the performance of the container by presetting a plurality of applications irrelevant to the service in the application library module, so that the resource consumption condition of the container can be accurately obtained, the complexity of a testing system is reduced, the testing time is shortened, and the accuracy of the testing result is further improved by carrying out noise reduction treatment on the testing result.
On the basis of the above embodiments, further, the test engine module includes an application deployment sub-module, an application execution sub-module, and a result collection sub-module;
the application deployment sub-module is used for calling the target application stored in the application library module and deploying the target application into the container to be tested;
the application execution sub-module is used for sending an execution command to the target application so as to start the target application to test the performance of the container to be tested;
the result collection submodule is used for collecting the test result generated by the target application and sending the test result to the resource evaluation module.
Specifically, fig. 3 is a schematic diagram of a test engine module according to an embodiment of the present invention, and as shown in fig. 3, the test engine module includes an application deployment sub-module, an application execution sub-module, and a result collection sub-module.
During testing, the application deployment sub-module calls the target application stored in the application library module and deploys the target application to a container to be tested. If the configuration file is dynamically adjusted, the configuration file can be separately deployed.
Fig. 4 is a schematic flowchart of an application deployment process according to an embodiment of the present invention, and as shown in fig. 4, the application deployment sub-module mainly deploys a network performance test tool, a system performance test tool, a unified configuration file, and an Agent into each Docker container, and if an application system or a configuration file is adjusted, the deployment can be performed dynamically.
The method comprises the following specific steps:
1. and finishing the construction of the execution directory and the configuration file directory of each module, and debugging the execution directory and the configuration file directory.
2. Json files are set, and the name, version and the like of the Docker mirror image are configured.
3. The test tool image is configured by configuring the Dockerfile.
4. The construction is carried out, and the Docker build-t mirror image is executed.
5. Prior to distribution, each container is registered onto a distribution instrument script, which is then executed.
Then, the application execution sub-module sends an execution command to a monitoring service agent in the target application, after receiving the execution command, the monitoring service agent starts a network performance testing tool and/or a system performance testing tool in the target application to test the performance of the container to be tested according to predefined configuration, the monitoring service agent simultaneously monitors the execution state of the network performance testing tool and/or the system performance testing tool, and when the applications of all the testing tools are executed, the executed information is sent to a result collection sub-module in the testing engine module.
Fig. 5 is a schematic flowchart of a test result collection process according to an embodiment of the present invention, where as shown in fig. 5, after receiving information that all applications of the test tool are executed, the result collection sub-module collects test results generated by the network performance test tool and/or the system performance test tool in the target application, and sends the test results to the resource evaluation module, and preferably, the result collection sub-module collects the test results from each container in an ftp manner and uploads the test results to the resource evaluation module for integration and analysis.
The container performance testing device provided by the invention can be used for testing the performance of the container by presetting a plurality of applications irrelevant to the service in the application library module, so that the resource consumption condition of the container can be accurately obtained, the complexity of a testing system is reduced, the testing time is shortened, and the accuracy of the testing result is further improved by carrying out noise reduction treatment on the testing result.
On the basis of the foregoing embodiments, further, the resource evaluation module is specifically configured to:
obtaining a plurality of test results generated by the target application containing the same test parameter value;
carrying out noise reduction processing on each test result to obtain a reference value of each test result;
and generating a test report based on the reference values of all the test results.
Specifically, in order to further obtain a more accurate test result, a distance algorithm is introduced to perform noise reduction processing on the performance test result sample.
Fig. 6 is a schematic flowchart of a test report generation process according to an embodiment of the present invention, and as shown in fig. 6, after receiving a test result, a resource evaluation module is started, a test result directory uploaded by a result collection module in a test engine is scanned, and a resource evaluation report is generated after performing noise reduction processing on multiple rounds of test samples.
Fig. 7 is a schematic diagram of a test result storage directory structure according to an embodiment of the present invention, and as shown in fig. 7, a resource evaluation module performs noise reduction analysis on multiple performance test data (some abnormal data may occur during a test) under the same configuration parameter value by using a mathematical statistics method to obtain a performance test reference value.
The calculation mode of sample noise reduction is as follows:
1. measuring and calculating the distance of a sample point: and calculating the distance between each sample point and the object at the concentration point. The calculation expression is as follows:
Figure BDA0001661177190000081
wherein x is (x)1,…,xn),y=(y1,…,yn) Is a point object.
2. Sample classification: and (5) performing distance delineation on each sample point and classifying. The algorithm pseudo-code is as follows:
Figure BDA0001661177190000082
Figure BDA0001661177190000091
through the algorithm, multiple rounds of tests are carried out under the same configuration to obtain test samples, and performance test configuration parameters are gradually increased to obtain the variation trend of resource utilization (CPU, MEM and I/O, NET) of the Docker container under different pressures.
Fig. 8 is a schematic diagram illustrating a variation trend of the performance test reference value of each resource under different test pressures according to the embodiment of the present invention, where as shown in fig. 8, a curve a represents a variation of the test reference value of the CPU usage rate with the test pressure, a curve B represents a variation of the test reference value of the memory consumption rate with the test pressure, a curve C represents a variation of the test reference value of the I/O interface usage rate with the test pressure, and a curve D represents a variation of the test reference value of the network performance with the test pressure.
The container performance testing device provided by the invention can be used for testing the performance of the container by presetting a plurality of applications irrelevant to the service in the application library module, so that the resource consumption condition of the container can be accurately obtained, the complexity of a testing system is reduced, the testing time is shortened, and the accuracy of the testing result is further improved by carrying out noise reduction treatment on the testing result.
Fig. 9 is a schematic diagram of a container performance testing method according to an embodiment of the present invention, as shown in fig. 9,
the embodiment of the invention provides a container performance testing method, which comprises the following steps:
step S901, deploying a preset target application in a container to be tested;
step S902, sending an execution command to the target application to start the target application to test the performance of the container to be tested;
step S903, collecting a test result generated by the target application;
and step S904, generating a test report according to the test result.
Specifically, when the container to be tested needs to be tested, the test engine module calls an application preset in the application library module, and the called application serves as a target application tested engine module and is deployed in the container to be tested.
Then, the test engine module sends an execution command to the target application to start the target application to test the performance of the container to be tested.
The test engine module monitors the execution state of the target application, and when the execution of the target application is monitored to be completed, the test engine module collects a test result generated by the target application and sends the test result to the resource evaluation module.
And after receiving the test result, the resource evaluation module integrates and analyzes the test result and generates a test report.
According to the container performance testing method provided by the invention, the performance of the container is tested by presetting a plurality of applications irrelevant to the service in the application library module, so that the resource consumption condition of the container can be accurately obtained, the complexity of a testing system is reduced, the testing time is shortened, and the accuracy of the testing result is further improved by carrying out noise reduction treatment on the testing result.
On the basis of the above embodiment, further, the generating a test report according to the test result specifically includes:
obtaining a plurality of test results generated by the target application containing the same test parameter value;
carrying out noise reduction processing on each test result to obtain a reference value of each test result;
and generating a test report based on the reference values of all the test results.
According to the container performance testing method provided by the invention, the performance of the container is tested by presetting a plurality of applications irrelevant to the service in the application library module, so that the resource consumption condition of the container can be accurately obtained, the complexity of a testing system is reduced, the testing time is shortened, and the accuracy of the testing result is further improved by carrying out noise reduction treatment on the testing result.
Fig. 10 is a schematic structural diagram of an electronic device for container performance testing according to an embodiment of the present invention, and as shown in fig. 10, the electronic device includes: a processor 1001, a memory 1002, and a bus 1003;
wherein, the processor 1001 and the memory 1002 complete the communication with each other through the bus 1003;
the processor 1001 is configured to call program instructions in the memory 1002 to perform the methods provided by the above-described method embodiments, including, for example:
deploying a preset target application into a container to be tested;
sending an execution command to the target application to start the target application to test the performance of the container to be tested;
collecting a test result generated by the target application;
and generating a test report according to the test result.
An embodiment of the present invention discloses a computer program product, which includes a computer program stored on a non-transitory computer readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, the computer can execute the methods provided by the above method embodiments, for example, the method includes:
deploying a preset target application into a container to be tested;
sending an execution command to the target application to start the target application to test the performance of the container to be tested;
collecting a test result generated by the target application;
and generating a test report according to the test result.
Embodiments of the present invention provide a non-transitory computer-readable storage medium, which stores computer instructions, where the computer instructions cause the computer to perform the methods provided by the above method embodiments, for example, the methods include:
deploying a preset target application into a container to be tested;
sending an execution command to the target application to start the target application to test the performance of the container to be tested;
collecting a test result generated by the target application;
and generating a test report according to the test result.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the apparatuses and devices are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A container performance testing apparatus, comprising: the system comprises an application library module, a test engine module and a resource evaluation module;
the test engine module is respectively connected with the application library module and the resource evaluation module, and is connected with a container to be tested;
the application library module is used for storing a plurality of applications, and the applications are used for performing performance test on the container to be tested;
the test engine module is used for calling the application stored in the application library module as a target application, deploying the target application into the container to be tested, sending an execution command to the target application to start the target application to test the performance of the container to be tested, collecting a test result generated by the target application, and sending the test result to the resource evaluation module;
and the resource evaluation module is used for analyzing the test result and generating a test report.
2. The apparatus of claim 1, wherein each application stored in the application library module comprises an application configuration and an application system;
the application configuration is used for configuring test parameters of the application system;
the application system is used for carrying out performance test on the container to be tested.
3. The apparatus of claim 2, wherein the application system comprises a network performance testing tool, a system performance testing tool, and a listening service agent;
the system performance testing tool is used for testing at least one of the CPU utilization rate of the container, the memory consumption rate of the container and the I/O interface utilization rate of the container;
the network performance testing tool is used for testing at least one of the network bandwidth of the container, the network delay of the container and the bandwidth-delay product of the container;
the monitoring service agent is used for receiving the execution command sent by the test engine module, starting the network performance test tool and/or the system performance test tool, monitoring the execution state of the network performance test tool and/or the system performance test tool, and sending the execution state to the test engine module.
4. The apparatus of claim 3, wherein the resource assessment module is specifically configured to:
obtaining a plurality of test results generated by the target application containing the same test parameter value;
carrying out noise reduction processing on each test result to obtain a reference value of each test result;
and generating a test report based on the reference values of all the test results.
5. The apparatus of claim 3, wherein the network performance testing tool comprises four operation modes of TCP _ STREAM, TCP _ RR, UDP _ STREAM and UDP _ RR.
6. The apparatus of claim 1, wherein the test engine module comprises an application deployment sub-module, an application execution sub-module, and a result collection sub-module;
the application deployment sub-module is used for calling the target application stored in the application library module and deploying the target application into the container to be tested;
the application execution sub-module is used for sending an execution command to the target application so as to start the target application to test the performance of the container to be tested;
the result collection submodule is used for collecting the test result generated by the target application and sending the test result to the resource evaluation module.
7. A method of testing the performance of a container, comprising:
deploying a preset target application into a container to be tested;
sending an execution command to the target application to start the target application to test the performance of the container to be tested;
collecting a test result generated by the target application;
and generating a test report according to the test result.
8. The method according to claim 7, wherein generating a test report according to the test result specifically comprises:
obtaining a plurality of test results generated by the target application containing the same test parameter value;
carrying out noise reduction processing on each test result to obtain a reference value of each test result;
and generating a test report based on the reference values of all the test results.
9. An electronic device for performance testing of a container, comprising:
the processor and the memory are communicated with each other through a bus; the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 7 to 8.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 7 to 8.
CN201810462201.1A 2018-05-15 2018-05-15 Container performance testing device and method Active CN110489201B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810462201.1A CN110489201B (en) 2018-05-15 2018-05-15 Container performance testing device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810462201.1A CN110489201B (en) 2018-05-15 2018-05-15 Container performance testing device and method

Publications (2)

Publication Number Publication Date
CN110489201A CN110489201A (en) 2019-11-22
CN110489201B true CN110489201B (en) 2021-11-30

Family

ID=68545274

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810462201.1A Active CN110489201B (en) 2018-05-15 2018-05-15 Container performance testing device and method

Country Status (1)

Country Link
CN (1) CN110489201B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115484187B (en) * 2022-11-02 2023-03-24 江苏博云科技股份有限公司 Method, equipment and storage medium for testing container network interface in container environment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101334742A (en) * 2008-08-05 2008-12-31 中国科学院软件研究所 Java EE applications server parallel processing method
CN105302717A (en) * 2015-09-30 2016-02-03 浪潮集团有限公司 Detection method and apparatus for big data platform
CN106502905A (en) * 2016-10-26 2017-03-15 腾讯科技(深圳)有限公司 A kind of method of testing of application program, apparatus and system
CN107678836A (en) * 2017-10-12 2018-02-09 新华三大数据技术有限公司 The test data acquisition methods and device of cluster
CN107908568A (en) * 2017-11-29 2018-04-13 中标软件有限公司 Operating system performance automated testing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10055339B2 (en) * 2016-09-28 2018-08-21 Wipro Limited Methods and systems for testing mobile applications

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101334742A (en) * 2008-08-05 2008-12-31 中国科学院软件研究所 Java EE applications server parallel processing method
CN105302717A (en) * 2015-09-30 2016-02-03 浪潮集团有限公司 Detection method and apparatus for big data platform
CN106502905A (en) * 2016-10-26 2017-03-15 腾讯科技(深圳)有限公司 A kind of method of testing of application program, apparatus and system
CN107678836A (en) * 2017-10-12 2018-02-09 新华三大数据技术有限公司 The test data acquisition methods and device of cluster
CN107908568A (en) * 2017-11-29 2018-04-13 中标软件有限公司 Operating system performance automated testing method and device

Also Published As

Publication number Publication date
CN110489201A (en) 2019-11-22

Similar Documents

Publication Publication Date Title
CN110175110B (en) Pressure testing method, device, system, equipment and computer readable storage medium
CN106294120B (en) Method, apparatus and computer program product for testing code
CN109302522B (en) Test method, test device, computer system, and computer medium
CN108521353B (en) Processing method and device for positioning performance bottleneck and readable storage medium
CN107045475B (en) Test method and device
CN111258847B (en) File handle monitoring and analyzing method, device, medium and equipment
CN109062807B (en) Method and device for testing application program, storage medium and electronic device
CN107168844B (en) Performance monitoring method and device
CN114564374A (en) Operator performance evaluation method and device, electronic equipment and storage medium
CN111625469A (en) Pressure testing method, device, equipment and computer readable storage medium
CN111045879B (en) Method, device and storage medium for generating pressure test report
CN110489201B (en) Container performance testing device and method
CN111966597B (en) Test data generation method and device
CN106484601B (en) User data analysis method and system for client
CN116450483A (en) Method, device, server and medium for determining load of software distribution
CN112631577B (en) Model scheduling method, model scheduler and model safety test platform
CN115391204A (en) Test method and device for automatic driving service, electronic equipment and storage medium
CN107231268B (en) Method and device for testing website performance
CN113849484A (en) Big data component upgrading method and device, electronic equipment and storage medium
CN110515834B (en) Interface testing method and device, mobile terminal and storage medium
CN116257422A (en) Self-test case generation method and device and electronic equipment
CN114297042A (en) Interface pressure performance testing method, device, equipment and storage medium
CN112346994A (en) Test information correlation method and device, computer equipment and storage medium
CN109995607B (en) Method for testing flow overhead, terminal, server and computer storage medium
CN106354626A (en) Application test and method, system and device realizing application test in multiple terminals

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