CN111026649A - Method and device for testing pressure and reliability of cloud product - Google Patents
Method and device for testing pressure and reliability of cloud product Download PDFInfo
- Publication number
- CN111026649A CN111026649A CN201911155777.4A CN201911155777A CN111026649A CN 111026649 A CN111026649 A CN 111026649A CN 201911155777 A CN201911155777 A CN 201911155777A CN 111026649 A CN111026649 A CN 111026649A
- Authority
- CN
- China
- Prior art keywords
- module
- information
- instance
- data
- instances
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3696—Methods or tools to render software testable
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- General Factory Administration (AREA)
Abstract
The invention provides a method and a device for testing pressure and reliability of a cloud product, which comprises the following steps: a user edits a calling interface for creating and destroying the instances on a Web interface, and creates the concurrency number, the reserved value and the deviation of the instances; after the controller module receives the instruction, the producer module is scheduled to perform instance creation operation, and after the instance reaches a reserved value, the controller module is scheduled to perform instance destruction operation on the consumer module; in the process of creating the instance by the producer module, sending instance information and success and failure information which are created successfully to a data collection module; the data collection module collects and arranges the information sent by the producer module, and sends all the collected information to the data module. The invention has the beneficial effects that: by utilizing the task scheduling function of the controller module, different pressure testing scenes can be flexibly constructed, and the total number of instances can be stabilized to perform pressure testing under a certain scene.
Description
Technical Field
The invention relates to the field of cloud computing, in particular to a method and a device for testing pressure and reliability of a cloud product.
Background
Generally, a public cloud computer room is provided with hundreds of thousands of devices, a large number of examples are required to be created in the process of pressure or reliability testing, and the testing environment cannot reach a corresponding magnitude, so that a certain example must be destroyed to release resources after the created examples reach a certain magnitude, and two testing modes exist at present, wherein one mode is to destroy the created examples immediately after the created examples are in the process of pressure testing; the other method is that the cloud product is destroyed in batch after being created in batch, so that the process and the form of the cloud product pressure and reliability test are too rigid, the test scenes cannot be flexibly switched, the test of another scene must be manually switched after the test of one scene is finished, the test effect can be checked only after the test is finished, and different scheme designs are required to be carried out on different products and different scenes.
At present, mainstream pressure testing software/systems also make a series of actions and adopt multiple threads to execute the actions simultaneously, and the software/systems are more suitable for testing Web ends and interfaces and are not flexible enough for pressure testing of production and destruction of cloud products. In addition, the creating and destroying rates of cloud product examples are often unequal, creating and destroying are performed in series in actions formulated by existing pressure testing software/systems, and the generated test results are difficult to analyze.
Disclosure of Invention
In view of this, the present invention is directed to a method and an apparatus for testing pressure and reliability of a cloud product, which are more flexible in testing manner, capable of dynamically monitoring a test result, and performing scene switching at any time according to the test result.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
a method for cloud product pressure and reliability testing comprises the following steps:
s1, editing a call interface for creating and destroying an example on a Web interface by a user, creating the concurrency number, the preset value and the deviation of the example, and sending the edited data to a controller module;
s2, after the controller module receives the instruction data, scheduling the producer module to perform instance creation operation, and after the instance reaches a reserved value, starting scheduling the consumer module to perform instance destruction operation by the controller module;
s3, in the process of creating the instance by the producer module, sending instance information and success failure information which are created successfully to a data collection module;
s4, the data collection module collects and collates the information sent by the producer module and sends all the collected information to the data module;
s5, the data module stores the instance information into a Redis cache, analyzes the success and failure rate of creation of the instance in real time and reports a Web interface to the data module for real-time display;
s6, the controller module monitors the total number of the instances in real time, and dynamically takes out the instances after the total number of the instances reaches the instance reservation value;
and S7, the consumer module carries out destruction operation according to the instance information sent by the controller module, and reports success and failure conditions to the controller module.
Further, if the producer module does not send instance information to the data collection module, but only sends success and failure information, the instance acquisition interface is edited on the Web interface, so that the data collection module can automatically and regularly collect the instance information.
The invention also provides a device based on the method for testing the pressure and reliability of the cloud product, which comprises the following modules:
the producer module is used for carrying out pressure test on the server under the concurrency condition according to the concurrency instruction sent by the controller module and creating examples in batches;
the consumer module is used for executing a destroying action on the example which is sent by the controller module and needs to be destroyed;
the controller module controls the concurrency number of the producer module and dynamically regulates and controls the speed of destroying the instances according to the number of the existing instances;
the data collection module is used for collecting error reporting information, creation information and created example information and sending the information to the data module;
the data module is used for storing the data collected by the data collection module into a cache, analyzing the speed of creating the examples in real time, analyzing the speed of destroying the examples, recording error reporting conditions of creation and destruction, and reporting the data obtained by analysis to the instruction and real-time report display module;
and the instruction and real-time report display module sends the concurrent data instruction to the controller module through a Web interface and performs real-time display according to the analysis data sent by the data module.
Compared with the prior art, the method and the device for testing the pressure and the reliability of the cloud product have the following advantages that:
according to the method and the device for testing the pressure and the reliability of the cloud product, different pressure testing scenes can be flexibly constructed by utilizing the task scheduling function of the controller module, the total number of the examples can be stabilized under the load conditions of 25%, 50%, 75%, 100% and the like, the pressure testing can be carried out, the scenes with the wave-shaped number of the examples can also be constructed, and the method enables the pressure testing to be switched between different scenes without stopping the pressure testing in a mode of separating a producer from a consumer.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate an embodiment of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic diagram of a method and an apparatus for cloud product pressure and reliability testing according to an embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
As shown in fig. 1, a method and an apparatus for cloud product pressure and reliability testing include the following steps:
s1, editing a call interface for creating and destroying an example on a Web interface by a user, creating the concurrency number, the preset value and the deviation of the example, and sending the edited data to a controller module;
s2, after the controller module receives the instruction data, scheduling the producer module to perform instance creation operation, and after the instance reaches a reserved value, starting scheduling the consumer module to perform instance destruction operation by the controller module;
s3, in the process of creating the instance by the producer module, sending instance information and success failure information which are created successfully to a data collection module;
s4, the data collection module collects and collates the information sent by the producer module and sends all the collected information to the data module;
s5, the data module stores the instance information into a Redis cache, analyzes the success and failure rate of creation of the instance in real time and reports a Web interface to the data module for real-time display;
s6, the controller module monitors the total number of the instances in real time, dynamically takes out part of the instances and sends the instances to the consumer module after the total number of the instances reaches the reserved value of the instances, and the total number of the instances is stabilized near the reserved value;
and S7, the consumer module carries out destruction operation according to the instance information sent by the controller module, and reports success and failure conditions to the controller module.
And if the producer module does not send the instance information to the data collection module and only sends the success and failure information, editing an instance acquisition interface on the Web interface to enable the data collection module to automatically acquire the instance information at regular time.
The invention also provides a device based on the method for testing the pressure and reliability of the cloud product, which comprises the following modules:
the producer module is used for carrying out pressure test on the server under the concurrency condition according to the concurrency instruction sent by the controller module and creating examples in batches;
the consumer module is used for executing a destroying action on the example which is sent by the controller module and needs to be destroyed;
the controller module controls the concurrency number of the producer module and dynamically regulates and controls the speed of destroying the instances according to the number of the existing instances;
the data collection module is used for collecting error reporting information, creation information and created example information and sending the information to the data module;
the data module is used for storing the data collected by the data collection module into a cache, analyzing the speed of creating the examples in real time, analyzing the speed of destroying the examples, recording error reporting conditions of creation and destruction, and reporting the data obtained by analysis to the instruction and real-time report display module;
and the instruction and real-time report display module sends the concurrent data instruction to the controller module through a Web interface and performs real-time display according to the analysis data sent by the data module.
The controller module respectively controls the producer module and the consumer module to enable the instance to be created and destroyed and separated, so that the test scene can be changed under the condition that the pressure test is not stopped, the manual intervention is reduced, and the 24h pressure test can be carried out, for example: carrying out 25% load pressure measurement within 0-4h, 50% load pressure measurement within 4-8h, full load pressure measurement within 8-12 h, and batch construction and batch deletion pressure measurement within 12-16 h; after setting the reserved value, there is no fear that the instance creation exceeds the reserved value too much.
The method is suitable for pressure test of non-real-time returned example data of creating and destroying cloud product examples.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (3)
1. A method for testing pressure and reliability of cloud products is characterized by comprising the following steps:
s1, editing a call interface for creating and destroying an example on a Web interface by a user, creating the concurrency number, the preset value and the deviation of the example, and sending edited data to a controller module;
s2, after the controller module receives the instruction data, scheduling the producer module to perform instance creation operation, and after the instance reaches a preset value, starting scheduling the consumer module to perform instance destruction operation by the controller module;
s3, in the process of creating the instance by the producer module, sending instance information and success failure information which are created successfully to a data collection module;
s4, the data collection module collects and collates the information sent by the producer module and sends all the collected information to the data module;
s5, the data module stores the instance information into a Redis cache, analyzes the success and failure rate of creation of the instance in real time and reports a Web interface to the data module for real-time display;
s6, the controller module monitors the total number of the instances in real time, dynamically takes out the instances and sends the instances to the consumer module after the total number of the instances reaches the reserved value of the instances, and the total number of the instances is stabilized in the deviation range of the reserved value;
and S7, the consumer module carries out destruction operation according to the instance information sent by the controller module, and reports success and failure conditions to the controller module.
2. The method for cloud product stress and reliability testing according to claim 2, wherein: and if the producer module does not send the instance information to the data collection module and only sends the success and failure information, editing an instance acquisition interface on the Web interface to enable the data collection module to automatically acquire the instance information at regular time.
3. An apparatus based on a method for cloud product stress and reliability testing is characterized by comprising the following modules:
the producer module is used for carrying out pressure test on the server under the concurrency condition according to the concurrency instruction sent by the controller module and creating examples in batches;
the consumer module is used for executing a destroying action on the example which is sent by the controller module and needs to be destroyed;
the controller module controls the concurrency number of the producer module and dynamically regulates and controls the speed of destroying the instances according to the number of the existing instances;
a data collection module: collecting error reporting information, creating information and created example information, and sending the error reporting information, creating information and created example information to a data module;
the data module is used for storing the data collected by the data collection module into a cache, analyzing the speed of creating the examples in real time, analyzing the speed of destroying the examples, recording error reporting conditions of creation and destruction, and reporting the data obtained by analysis to the instruction and real-time report display module;
the instruction and real-time report display module: and sending the concurrency instruction to the controller module through a Web interface, and displaying the concurrency instruction in real time according to the analysis data sent by the data module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911155777.4A CN111026649A (en) | 2019-11-22 | 2019-11-22 | Method and device for testing pressure and reliability of cloud product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911155777.4A CN111026649A (en) | 2019-11-22 | 2019-11-22 | Method and device for testing pressure and reliability of cloud product |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111026649A true CN111026649A (en) | 2020-04-17 |
Family
ID=70206874
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911155777.4A Pending CN111026649A (en) | 2019-11-22 | 2019-11-22 | Method and device for testing pressure and reliability of cloud product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111026649A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106445817A (en) * | 2016-09-09 | 2017-02-22 | 网易(杭州)网络有限公司 | Test data processing method, apparatus and system |
CN106850330A (en) * | 2016-12-09 | 2017-06-13 | 中电科华云信息技术有限公司 | Intelligentized cloud desktop Performance Test System and method |
US20170168914A1 (en) * | 2015-12-09 | 2017-06-15 | University College Dublin | Rule-based adaptive monitoring of application performance |
CN109739708A (en) * | 2019-01-02 | 2019-05-10 | 网易(杭州)网络有限公司 | Test the methods, devices and systems of pressure |
CN110162471A (en) * | 2019-04-28 | 2019-08-23 | 中国工商银行股份有限公司 | A kind of method for testing pressure and system based on container cloud |
-
2019
- 2019-11-22 CN CN201911155777.4A patent/CN111026649A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170168914A1 (en) * | 2015-12-09 | 2017-06-15 | University College Dublin | Rule-based adaptive monitoring of application performance |
CN106445817A (en) * | 2016-09-09 | 2017-02-22 | 网易(杭州)网络有限公司 | Test data processing method, apparatus and system |
CN106850330A (en) * | 2016-12-09 | 2017-06-13 | 中电科华云信息技术有限公司 | Intelligentized cloud desktop Performance Test System and method |
CN109739708A (en) * | 2019-01-02 | 2019-05-10 | 网易(杭州)网络有限公司 | Test the methods, devices and systems of pressure |
CN110162471A (en) * | 2019-04-28 | 2019-08-23 | 中国工商银行股份有限公司 | A kind of method for testing pressure and system based on container cloud |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110162471B (en) | Pressure testing method and system based on container cloud | |
CN111049705B (en) | Method and device for monitoring distributed storage system | |
CN104407964B (en) | A kind of centralized monitoring system and method based on data center | |
JP4458493B2 (en) | Log notification condition definition support apparatus, log monitoring system, program, and log notification condition definition support method | |
US20140097952A1 (en) | Systems and methods for comprehensive alarm management | |
CN103473151B (en) | The backup method of database table and device | |
KR20090046543A (en) | System for operating and collecting a monitering data in power system and method therefor | |
CN110837448A (en) | Method and computing device for remote monitoring of tests performed in a test device | |
CN102722431B (en) | process monitoring method and device | |
CN111147322A (en) | Test system and method for micro service architecture of 5G core network | |
CN115063118B (en) | Intelligent workshop equipment management method and system based on industrial Internet | |
CN112804093B (en) | Centralized scheduling support method and system based on fault capability center | |
JP2018084894A (en) | Control system and control apparatus | |
CN110471857A (en) | The automatic test approach and device of artificial intelligence model performance capability | |
CN115269438A (en) | Automatic testing method and device for image processing algorithm | |
CN111026649A (en) | Method and device for testing pressure and reliability of cloud product | |
CN114387123B (en) | Data acquisition management method | |
CN107273390A (en) | Management method based on SQL script flow media databases | |
CN114661582A (en) | Video platform testing system and method | |
Nagy et al. | Using process mining in real-time to reduce the number of faulty products | |
CN104113738A (en) | Method based on video equipment diagnosis and monitoring system based on video equipment diagnosis | |
CN112306862A (en) | Front-end automatic test system and method, storage medium and computing equipment | |
CN111159004A (en) | Hadoop cluster simulation test method and device and storage medium | |
CN106991038A (en) | Service monitoring method and device based on java collectors | |
CN102509247A (en) | One-key intelligent examination method of EMS |
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 |