A pressure testing method, apparatus, device, and readable storage medium

By using the collaborative scheduling of multiple idle worker nodes and distributed control nodes in the load testing system, concurrency performance is improved, testing costs are reduced, and performance bottlenecks and flow control issues in traditional load testing solutions are resolved.

CN114218055BActive Publication Date: 2025-12-02CHINA CITIC BANK CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111483257.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-07
Publication Date
2025-12-02
Estimated Expiration
2041-12-07

AI Technical Summary

Technical Problem

Traditional single-machine stress testing models and distributed stress testing solutions have problems with concurrency performance and performance bottlenecks, making it difficult to fully utilize hardware capabilities and achieve instantaneous flow control.

Method used

Multiple idle working nodes are used as pressure generating nodes. The pressure generating engine is scheduled by the distributed control node to generate pressure to the device under test and collect pressure test data. Idle nodes actively pull tasks to reduce the burden on the distributed control node.

Benefits of technology

It improves concurrency performance, reduces testing costs, and provides the same testing capabilities with less memory and CPU resources, thus solving the problem of distributed control nodes becoming a performance bottleneck.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114218055B_ABST
    Figure CN114218055B_ABST
Patent Text Reader

Abstract

This invention provides a stress testing method, apparatus, device, and readable storage medium. The method includes: obtaining the number of worker nodes required to perform the stress test and stress transmission parameters; utilizing the required number of idle worker nodes as stress transmission worker nodes, wherein the stress transmission worker nodes schedule a stress transmission engine to transmit stress to the device under test according to the stress transmission parameters; collecting the stress test data returned by the device under test to obtain the stress test result. This invention allows multiple idle worker nodes to simultaneously transmit stress, improving concurrency performance and thus providing the same testing capabilities with less memory and CPU, reducing testing costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and more specifically, to a stress testing method, apparatus, device, and readable storage medium. Background Technology

[0002] Traditional single-machine stress testing models use synchronous stress testing, with one user using one thread. Once there are too many concurrent threads, performance drops rapidly, making it difficult to fully utilize the hardware's capabilities. In traditional distributed stress testing solutions, the control node actively distributes tasks and collects test data, causing performance degradation. The stress testing tool itself becomes a performance bottleneck, and traditional stress testing tools cannot achieve instantaneous flow control. Summary of the Invention

[0003] The purpose of this invention is to provide a pressure testing method, apparatus, device, and readable storage medium to improve the above-mentioned problems.

[0004] To achieve the above objectives, the embodiments of this application provide the following technical solutions:

[0005] On one hand, embodiments of this application provide a stress testing method, the method comprising:

[0006] Obtain the number of working nodes and the pressure output parameters required to perform the pressure test;

[0007] Based on the number of working nodes required to perform the stress test, the number of idle working nodes are used as pressure-generating working nodes, and the pressure-generating working nodes schedule the pressure-generating engine to generate pressure to the device under test according to the pressure-generating parameters.

[0008] Collect the stress test data returned by the device under test to obtain the stress test results.

[0009] Optionally, the step of using the number of idle working nodes required for the stress test as the pressure-generating working nodes, and the pressure-generating working nodes scheduling the pressure-generating engine to generate pressure to the device under test according to the pressure-generating parameters, includes:

[0010] The number of working nodes required for the stress test and the stress parameters are stored in the distributed control node;

[0011] Based on the number of worker nodes required to perform the load test, the idle worker nodes sequentially pull load testing tasks from the distributed control node. The idle worker node after pulling a load testing task is defined as the load testing worker node. When the number of worker nodes required to perform the load test is the same as the number of load testing worker nodes, the idle worker node no longer pulls load testing tasks from the distributed control node. The load testing worker node after pulling a load testing task schedules the load testing engine to perform load testing on the device under test.

[0012] Optionally, the step of using the number of idle working nodes as the pressure-generating working nodes according to the number of working nodes required for the stress test, and when the pressure-generating working nodes schedule the pressure-generating engine to generate pressure to the device under test according to the pressure-generating parameters, further includes:

[0013] Obtain the resource usage of the device under test and the theoretical maximum value of the resource usage of the device under test;

[0014] Based on the theoretical maximum resource usage of the device under test, it is determined whether the resource usage of the device under test has reached a threshold. If the threshold is reached, the distributed control node is controlled to issue an instruction, which includes an instruction to stop the pressure-generating work node from generating pressure.

[0015] Optionally, after collecting the stress test data returned by the device under test and obtaining the stress test results, the method further includes:

[0016] A first object is displayed in the first area of ​​the display interface. The first object includes a directory of the stress test results. The stress test results include at least one sub-result. The directory includes at least one sub-directory. The sub-directory includes the title of the sub-result.

[0017] Obtain a first selection operation, which includes a selection operation for the subdirectory;

[0018] In response to the first selection operation, a second object is displayed in a second area of ​​the display interface, the second object including the data contained in the subdirectory selected by the first selection operation.

[0019] Optionally, in response to the first selection operation, after displaying a second object in a second area of ​​the display interface, wherein the second object includes the data contained in the subdirectory selected by the first selection operation, the method further includes:

[0020] Obtain a second selection operation, the second selection operation including a selection operation of a third object displayed in a third area of ​​the display interface, the third object including a data analysis tool;

[0021] In response to the second selection operation, the data analysis tool is used to analyze the data contained in the subdirectory to obtain data analysis results, and the data analysis results are displayed in the second area of ​​the display interface.

[0022] Optionally, after collecting the stress test data returned by the device under test and obtaining the stress test results, the method further includes:

[0023] The pressure test results are analyzed to obtain the analysis results of the pressure test data;

[0024] The analysis results of the pressure test data are compared with the historical analysis results of the pressure test data to obtain the comparison results;

[0025] The comparison results are sent to the stress testers to trigger them to take appropriate action based on the comparison results.

[0026] Secondly, embodiments of this application provide a stress testing device, which includes a first acquisition module, a scheduling module, and a collection module.

[0027] The first acquisition module is used to acquire the number of working nodes and the pressure output parameters required to perform the pressure test.

[0028] The scheduling module is used to use the number of idle working nodes as pressure-generating working nodes according to the number of working nodes required for the stress test. The pressure-generating working nodes schedule the pressure-generating engine to generate pressure to the device under test according to the pressure-generating parameters.

[0029] The data collection module is used to collect the stress test data returned by the device under test and obtain the stress test results.

[0030] Optionally, the scheduling module includes:

[0031] A storage unit is used to store the number of working nodes required for the stress test and the stress parameters in the distributed control node;

[0032] The scheduling unit is used to, based on the number of worker nodes required for the stress test, have idle worker nodes sequentially pull stress delivery tasks from the distributed control node. Idle worker nodes that have pulled stress delivery tasks are defined as stress delivery worker nodes. When the number of worker nodes required for the stress test is the same as the number of stress delivery worker nodes, the idle worker nodes no longer pull stress delivery tasks from the distributed control node. The stress delivery worker nodes that have pulled stress delivery tasks then schedule the stress delivery engine to deliver stress to the device under test.

[0033] Optionally, the device further includes:

[0034] The second acquisition module is used to acquire the resource usage of the device under test and the theoretical maximum value of the resource usage of the device under test;

[0035] The judgment module is used to determine whether the resource usage of the device under test has reached a threshold based on the theoretical maximum value of the resource usage of the device under test. If the threshold is reached, the module controls the distributed control node to issue an instruction, which includes an instruction to make the pressure-generating work node stop generating pressure.

[0036] Optionally, the device further includes:

[0037] The display module is used to display a first object in a first area of ​​the display interface. The first object includes a directory of the stress test results. The stress test results include at least one sub-result. The directory includes at least one sub-directory. The sub-directory includes the title of the sub-result.

[0038] The third acquisition module is used to acquire the first selection operation, which includes the selection operation of the subdirectory.

[0039] A first response module is configured to respond to the first selection operation by displaying a second object in a second area of ​​the display interface, the second object including data contained in the subdirectory selected by the first selection operation.

[0040] Optionally, the device further includes:

[0041] The fourth acquisition module is used to acquire a second selection operation, the second selection operation including a selection operation of a third object displayed in the third area of ​​the display interface, the third object including a data analysis tool;

[0042] The second response module is used to respond to the second selection operation by using the data analysis tool to analyze the data contained in the subdirectory, obtain the data analysis results, and display the data analysis results in the second area of ​​the display interface.

[0043] Optionally, the device further includes:

[0044] The analysis module is used to analyze the stress test results and obtain the analysis results of the stress test data;

[0045] The comparison module is used to compare the analysis results of the pressure test data with the historical analysis results of the pressure test data to obtain the comparison results;

[0046] The sending module is used to send the comparison results to the stress testers, which triggers the stress testers to perform corresponding processing based on the comparison results.

[0047] Thirdly, embodiments of this application provide a stress testing device, which includes a memory and a processor. The memory stores a computer program; the processor executes the computer program to implement the steps of the stress testing method described above.

[0048] Fourthly, embodiments of this application provide a readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the above-described stress testing method.

[0049] The beneficial effects of this invention are as follows:

[0050] 1. This invention allows multiple idle worker nodes to simultaneously generate pressure as the generating worker nodes, which can improve concurrency performance and thus provide the same testing capabilities with less memory and CPU, reducing testing costs.

[0051] 2. In this invention, idle worker nodes actively register for services with the distributed control node and actively pull tasks. The distributed control node does not need to poll the status of worker nodes and allocate tasks. Idle worker nodes actively pull test tasks, and the distributed control node is only responsible for tracking the task status. The distributed control node has low pressure and solves the problem that the distributed control node itself becomes a performance bottleneck in traditional distributed load testing systems.

[0052] Other features and advantages of the invention will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing embodiments of the invention. The objects and other advantages of the invention may be realized and obtained by means of the structures particularly pointed out in the written description, claims, and drawings. Attached Figure Description

[0053] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0054] Figure 1 This is a schematic diagram of a pressure testing method described in an embodiment of the present invention;

[0055] Figure 2 This is a schematic diagram of a pressure testing device according to an embodiment of the present invention;

[0056] Figure 3 This is a schematic diagram of a pressure testing device as described in an embodiment of the present invention. Detailed Implementation

[0057] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.

[0058] It should be noted that similar reference numerals or letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this invention, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0059] Example 1

[0060] like Figure 1 As shown, this embodiment provides a pressure testing method, which includes steps S1, S2 and S3.

[0061] Step S1: Obtain the number of working nodes and pressure parameters required to perform the pressure test;

[0062] Step S2: Based on the number of working nodes required for the stress test, use the number of idle working nodes as the pressure-generating working nodes. The pressure-generating working nodes schedule the pressure-generating engine to generate pressure to the device under test according to the pressure-generating parameters.

[0063] Step S3: Collect the pressure test data returned by the device under test and obtain the pressure test results.

[0064] In this embodiment, multiple idle worker nodes can be used as pressure generating worker nodes to generate pressure simultaneously, which can improve concurrency performance and thus provide the same testing capabilities with less memory and CPU, reducing testing costs.

[0065] In one specific embodiment of this disclosure, step S2 may further include steps S21 and S22.

[0066] Step S21: Store the number of working nodes required for the stress test and the stress parameters in the distributed control node;

[0067] Step S22: Based on the number of working nodes required for the stress test, the idle working nodes sequentially pull stress delivery tasks from the distributed control node. The idle working node after pulling the stress delivery task is defined as the stress delivery working node. When the number of working nodes required for the stress test is the same as the number of stress delivery working nodes, the idle working node no longer pulls stress delivery tasks from the distributed control node. The stress delivery working node after pulling the stress delivery task schedules the stress delivery engine to deliver stress to the device under test.

[0068] In this embodiment, idle worker nodes actively register services with the distributed control node and actively pull tasks. The distributed control node does not need to poll the status of worker nodes and allocate tasks. Idle worker nodes actively pull test tasks, and the distributed control node is only responsible for tracking the task status. The distributed control node has low pressure, which solves the problem that the distributed control node itself becomes a performance bottleneck in traditional distributed load testing systems.

[0069] In one specific embodiment of this disclosure, the method may further include steps S4 and S5.

[0070] Step S4: Obtain the resource usage of the device under test and the theoretical maximum value of the resource usage of the device under test;

[0071] Step S5: Based on the theoretical maximum value of the resource usage of the device under test, determine whether the resource usage of the device under test has reached the threshold. If the threshold is reached, control the distributed control node to issue an instruction, which includes an instruction to make the pressure-generating work node stop generating pressure.

[0072] In this embodiment, if the resource usage of the device under test reaches 80% of the theoretical maximum value of the resource usage of the device under test, it is considered that the resource usage of the device under test has reached the threshold. After reaching the threshold, the distributed control node will issue an instruction, and the pressure-generating work node will suspend pressure generation according to the instruction.

[0073] In one specific embodiment of this disclosure, the method may further include steps S6, S7, and S8.

[0074] Step S6: Display a first object in the first area of ​​the display interface. The first object includes a directory of the stress test results. The stress test results include at least one sub-result. The directory includes at least one sub-directory. The sub-directory includes the title of the sub-result.

[0075] Step S7: Obtain a first selection operation, which includes a selection operation on the subdirectory;

[0076] Step S8: In response to the first selection operation, a second object is displayed in a second area of ​​the display interface, the second object including the data contained in the subdirectory selected by the first selection operation.

[0077] In this embodiment, the received load test results are displayed on the interface for relevant personnel to view, reducing communication costs. When the load test results include multiple types of results, the title of each type of result is displayed on the left side of the interface. Clicking on each title name will display the relevant data for that type of result on the right side of the interface.

[0078] In one specific embodiment of this disclosure, the method may further include steps S9 and S10.

[0079] Step S9: Obtain a second selection operation, the second selection operation including a selection operation of a third object displayed in the third area of ​​the display interface, the third object including a data analysis tool;

[0080] Step S10: In response to the second selection operation, the data analysis tool is used to analyze the data contained in the subdirectory to obtain the data analysis results, and the data analysis results are displayed in the second area of ​​the display interface.

[0081] In this embodiment, data analysis tools are also displayed on the display interface. By selecting the relevant data analysis tools, the data can be analyzed and processed, and the analysis results can also be displayed on the display interface for the convenience of relevant staff. Furthermore, the corresponding analysis tools can be selected according to actual needs to improve the applicability of this method.

[0082] In one specific embodiment of this disclosure, the method may further include steps S11, S12 and S13.

[0083] Step S11: Analyze the pressure test results to obtain the analysis results of the pressure test data;

[0084] Step S12: Compare the analysis results of the pressure test data with the historical analysis results of the pressure test data to obtain the comparison results;

[0085] Step S13: Send the comparison results to the stress testers to trigger them to perform corresponding processing based on the comparison results.

[0086] In this embodiment, the comparison results can be sent directly to the stress testers via email, allowing them to promptly access the stress test data and facilitate appropriate processing. Furthermore, the stress testers can choose to send either the analysis results or the comparison results of the stress test data, depending on their needs.

[0087] Example 2

[0088] like Figure 2 As shown, this embodiment provides a stress testing device, which includes a first acquisition module 701, a scheduling module 702, and a collection module 703.

[0089] The first acquisition module 701 is used to acquire the number of working nodes and the pressure output parameters required to perform the pressure test;

[0090] The scheduling module 702 is used to use the number of idle working nodes as pressure-generating working nodes according to the number of working nodes required to perform the stress test. The pressure-generating working nodes schedule the pressure-generating engine to generate pressure to the device under test according to the pressure-generating parameters.

[0091] The collection module 703 is used to collect the pressure test data returned by the device under test and obtain the pressure test results.

[0092] In this embodiment, multiple idle worker nodes can be used as pressure generating worker nodes to generate pressure simultaneously, which can improve concurrency performance and thus provide the same testing capabilities with less memory and CPU, reducing testing costs.

[0093] In one specific embodiment of this disclosure, the scheduling module 702 includes a storage unit 7021 and a scheduling unit 7022.

[0094] The storage unit 7021 is used to store the number of working nodes required for the stress test and the stress parameters in the distributed control node;

[0095] The scheduling unit 7022 is used to, according to the number of working nodes required for the stress test, have the idle working nodes sequentially pull stress delivery tasks from the distributed control node, and the idle working nodes after pulling the stress delivery tasks are defined as the stress delivery working nodes. When the number of working nodes required for the stress test is the same as the number of stress delivery working nodes, the idle working nodes no longer pull stress delivery tasks from the distributed control node, and the stress delivery working nodes after pulling the stress delivery tasks schedule the stress delivery engine to deliver stress to the device under test.

[0096] In one specific embodiment of this disclosure, the device further includes a second acquisition module 704 and a judgment module 705.

[0097] The second acquisition module 704 is used to acquire the resource usage of the device under test and the theoretical maximum value of the resource usage of the device under test;

[0098] The judgment module 705 is used to determine whether the resource usage of the device under test has reached a threshold based on the theoretical maximum value of the resource usage of the device under test. If the threshold is reached, the distributed control node is controlled to issue an instruction, which includes an instruction to make the pressure-generating work node stop generating pressure.

[0099] In one specific embodiment of this disclosure, the device further includes a display module 706, a third acquisition module 707, and a first response module 708.

[0100] The display module 706 is used to display a first object in a first area of ​​the display interface. The first object includes a directory of the stress test results. The stress test results include at least one sub-result. The directory includes at least one sub-directory. The sub-directory includes a title of the sub-result.

[0101] The third acquisition module 707 is used to acquire a first selection operation, the first selection operation including a selection operation on the subdirectory;

[0102] The first response module 708 is configured to display a second object in a second area of ​​the display interface in response to the first selection operation, the second object including data contained in the subdirectory selected by the first selection operation.

[0103] In one specific embodiment of this disclosure, the device further includes a fourth acquisition module 709 and a second response module 710.

[0104] The fourth acquisition module 709 is used to acquire a second selection operation, the second selection operation including a selection operation of a third object displayed in the third area of ​​the display interface, the third object including a data analysis tool;

[0105] The second response module 710 is used to respond to the second selection operation by using the data analysis tool to analyze the data contained in the subdirectory, obtain the data analysis results, and display the data analysis results in the second area of ​​the display interface.

[0106] In one specific embodiment of this disclosure, the device further includes an analysis module 711, a comparison module 712, and a sending module 713.

[0107] The analysis module 711 is used to analyze the pressure test results and obtain the analysis results of the pressure test data;

[0108] The comparison module 712 is used to compare the analysis results of the pressure test data with the historical analysis results of the pressure test data to obtain the comparison results;

[0109] The sending module 713 is used to send the comparison result to the stress tester, and to trigger the stress tester to perform corresponding processing based on the comparison result.

[0110] It should be noted that the specific manner in which each module performs its operation in the apparatus described in the above embodiments has been described in detail in the embodiments of the method, and will not be elaborated here.

[0111] Example 3

[0112] Corresponding to the above method embodiments, this disclosure also provides a pressure testing device. The pressure testing device described below and the pressure testing method described above can be referred to each other.

[0113] Figure 3 This is a block diagram illustrating a pressure testing device 800 according to an exemplary embodiment. For example... Figure 3 As shown, the stress testing device 800 may include a processor 801 and a memory 802. The stress testing device 800 may also include one or more of a multimedia component 803, an input / output (I / O) interface 804, and a communication component 805.

[0114] The processor 801 controls the overall operation of the pressure testing device 800 to complete all or part of the steps in the aforementioned pressure testing method. The memory 802 stores various types of data to support the operation of the pressure testing device 800. This data may include, for example, instructions for any application or method operating on the pressure testing device 800, and application-related data such as contact data, sent and received messages, images, audio, video, etc. The memory 802 can be implemented using any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. Multimedia component 803 may include a screen and an audio component. The screen may be, for example, a touchscreen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signals may be further stored in memory 802 or transmitted via communication component 805. The audio component also includes at least one speaker for outputting audio signals. I / O interface 804 provides an interface between processor 801 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual or physical buttons. Communication component 805 is used for wired or wireless communication between the pressure testing device 800 and other devices. Wireless communication may include Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of these. Therefore, the corresponding communication component 805 may include a Wi-Fi module, a Bluetooth module, or an NFC module.

[0115] In an exemplary embodiment, the stress testing device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the stress testing method described above.

[0116] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, which, when executed by a processor, implement the steps of the stress testing method described above. For example, the computer-readable storage medium may be the memory 802 including program instructions, which may be executed by the processor 801 of the stress testing device 800 to complete the stress testing method described above.

[0117] Example 4

[0118] Corresponding to the above method embodiments, this disclosure also provides a readable storage medium. The readable storage medium described below can be referred to in conjunction with the stress testing method described above.

[0119] A readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the stress testing method described in the above method embodiments.

[0120] Specifically, the readable storage medium can be a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, or any other readable storage medium capable of storing program code.

[0121] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A pressure testing method, characterized in that, include: Obtain the number of working nodes and the pressure output parameters required to perform the pressure test; Based on the number of working nodes required to perform the stress test, the number of idle working nodes are used as pressure-generating working nodes, and the pressure-generating working nodes schedule the pressure-generating engine to generate pressure to the device under test according to the pressure-generating parameters. Collect the pressure test data returned by the device under test to obtain the pressure test results; The step of using the number of idle working nodes as pressure-generating working nodes according to the required number of working nodes for the stress test, and scheduling the pressure-generating engine to generate pressure on the device under test according to the pressure-generating parameters, includes: The number of working nodes required for the stress test and the stress parameters are stored in the distributed control node; Based on the number of worker nodes required to perform the load test, the idle worker nodes sequentially pull load testing tasks from the distributed control node. The idle worker node after pulling a load testing task is defined as the load testing worker node. When the number of worker nodes required to perform the load test is the same as the number of load testing worker nodes, the idle worker node no longer pulls load testing tasks from the distributed control node. The load testing worker node after pulling a load testing task schedules the load testing engine to perform load testing on the device under test.

2. The pressure testing method according to claim 1, characterized in that, The step of using the number of idle working nodes as pressure-generating working nodes according to the number of working nodes required for the stress test, and when the pressure-generating working nodes schedule the pressure-generating engine to generate pressure to the device under test according to the pressure-generating parameters, further includes: Obtain the resource usage of the device under test and the theoretical maximum value of the resource usage of the device under test; Based on the theoretical maximum resource usage of the device under test, it is determined whether the resource usage of the device under test has reached a threshold. If the threshold is reached, the distributed control node is controlled to issue an instruction, which includes an instruction to stop the pressure-generating work node from generating pressure.

3. The pressure testing method according to claim 1, characterized in that, After collecting the pressure test data returned by the device under test and obtaining the pressure test results, the process further includes: A first object is displayed in the first area of ​​the display interface. The first object includes a directory of the stress test results. The stress test results include at least one sub-result. The directory includes at least one sub-directory. The sub-directory includes the title of the sub-result. Obtain a first selection operation, which includes a selection operation for the subdirectory; In response to the first selection operation, a second object is displayed in a second area of ​​the display interface, the second object including the data contained in the subdirectory selected by the first selection operation.

4. The pressure testing method according to claim 3, characterized in that, In response to the first selection operation, after displaying a second object in a second area of ​​the display interface, wherein the second object includes the data contained in the subdirectory selected by the first selection operation, the method further includes: Obtain a second selection operation, the second selection operation including a selection operation of a third object displayed in a third area of ​​the display interface, the third object including a data analysis tool; In response to the second selection operation, the data analysis tool is used to analyze the data contained in the subdirectory to obtain data analysis results, and the data analysis results are displayed in the second area of ​​the display interface.

5. The pressure testing method according to claim 1, characterized in that, After collecting the pressure test data returned by the device under test and obtaining the pressure test results, the process further includes: The pressure test results are analyzed to obtain the analysis results of the pressure test data; The analysis results of the pressure test data are compared with the historical analysis results of the pressure test data to obtain the comparison results; The comparison results are sent to the stress testers to trigger them to take appropriate action based on the comparison results.

6. A pressure testing device, characterized in that, include: The first acquisition module is used to acquire the number of working nodes and the pressure output parameters required to perform the pressure test. The scheduling module is used to use the number of idle working nodes as pressure-generating working nodes according to the number of working nodes required for the stress test. The pressure-generating working nodes schedule the pressure-generating engine to generate pressure to the device under test according to the pressure-generating parameters. The data collection module is used to collect the load test data returned by the device under test and obtain the load test results; The scheduling module includes: A storage unit is used to store the number of working nodes required for the stress test and the stress parameters in the distributed control node; The scheduling unit is used to, based on the number of worker nodes required for the stress test, have idle worker nodes sequentially pull stress delivery tasks from the distributed control node. Idle worker nodes that have pulled stress delivery tasks are defined as stress delivery worker nodes. When the number of worker nodes required for the stress test is the same as the number of stress delivery worker nodes, the idle worker nodes no longer pull stress delivery tasks from the distributed control node. The stress delivery worker nodes that have pulled stress delivery tasks then schedule the stress delivery engine to deliver stress to the device under test.

7. The pressure testing device according to claim 6, characterized in that, The device further includes: The second acquisition module is used to acquire the resource usage of the device under test and the theoretical maximum value of the resource usage of the device under test; The judgment module is used to determine whether the resource usage of the device under test has reached a threshold based on the theoretical maximum value of the resource usage of the device under test. If the threshold is reached, the module controls the distributed control node to issue an instruction, which includes an instruction to make the pressure-generating work node stop generating pressure.

8. The pressure testing device according to claim 6, characterized in that, The device further includes: The display module is used to display a first object in a first area of ​​the display interface. The first object includes a directory of the stress test results. The stress test results include at least one sub-result. The directory includes at least one sub-directory. The sub-directory includes the title of the sub-result. The third acquisition module is used to acquire the first selection operation, which includes the selection operation of the subdirectory. A first response module is configured to respond to the first selection operation by displaying a second object in a second area of ​​the display interface, the second object including data contained in the subdirectory selected by the first selection operation.

9. The pressure testing device according to claim 8, characterized in that, The device further includes: The fourth acquisition module is used to acquire a second selection operation, the second selection operation including a selection operation of a third object displayed in the third area of ​​the display interface, the third object including a data analysis tool; The second response module is used to respond to the second selection operation by using the data analysis tool to analyze the data contained in the subdirectory, obtain the data analysis results, and display the data analysis results in the second area of ​​the display interface.

10. The pressure testing device according to claim 6, characterized in that, The device further includes: The analysis module is used to analyze the stress test results and obtain the analysis results of the stress test data; The comparison module is used to compare the analysis results of the pressure test data with the historical analysis results of the pressure test data to obtain the comparison results; The sending module is used to send the comparison results to the stress testers, which triggers the stress testers to perform corresponding processing based on the comparison results.

11. A pressure testing device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the steps of the stress testing method as described in any one of claims 1 to 5.

12. A readable storage medium, characterized in that: The readable storage medium stores a computer program that, when executed by a processor, implements the steps of the stress testing method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Pressure testing method and device based on cloud service

    CN113037594A