Distributed pressure measurement method and device, equipment and storage medium

By defining the transmission order of identifiers in the distributed stress testing architecture, the problem of stress testing data occupying bandwidth resources is solved, and a more efficient stress testing process is achieved.

CN120723599APending Publication Date: 2025-09-30CHINA UNIONPAY MERCHANT SERVICES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510635383.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-16
Publication Date
2025-09-30

AI Technical Summary

Technical Problem

In the existing technology, the complex structure of stress testing data in the distributed stress testing process occupies a large amount of bandwidth resources, affecting efficiency.

Method used

The identification and transmission order of stress testing data is defined in the target distributed stress testing architecture. The stress testing nodes extract stress testing attribute data and send it to the computing nodes in the identification order. The computing nodes calculate and display the statistical results.

Benefits of technology

It reduces redundant data transmission and improves the efficiency of distributed stress testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120723599A_ABST
    Figure CN120723599A_ABST
Patent Text Reader

Abstract

The invention discloses a distributed pressure measurement method, device and equipment and a storage medium, relates to the technical field of testing, and can enable the same pressure measurement data to only need to transmit pressure measurement attribute data in a node transmission process, reduce the transmission of redundant data in a distributed pressure measurement process, and improve the distributed pressure measurement efficiency. The method comprises the steps that in a target distributed pressure measurement framework, the identification transmission sequence of pressure measurement data is defined, and the target distributed pressure measurement framework comprises a display node used for displaying a pressure measurement result, a calculation node used for calculating the pressure measurement result and a pressure measurement node used for pressure measurement of a target interface; after the pressure measurement node obtains pressure measurement data according to the pressure measurement script, extracting corresponding pressure measurement attribute data from the pressure measurement data; sending the pressure measurement attribute data to a computing node according to the identifier transmission sequence, so that the computing node computes according to the pressure measurement attribute data to obtain a pressure measurement statistical result; and sending the pressure measurement statistical result to a display node, so that the display node displays the result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of testing technology, and in particular to a distributed stress testing method, apparatus, device, and storage medium. Background Art

[0002] In a distributed stress testing scenario, multiple stress testing nodes work together to simulate large-scale user requests or data traffic, enabling stress testing of the target system.

[0003] In related technologies, distributed stress testing can employ a master-slave architecture, with stress testing nodes divided into master and slave nodes. The master node sends the stress testing script to the slave nodes, which then collect stress testing data based on the script and return the data to the master node, allowing the master node to calculate and display the results based on the stress testing data. However, given the complexity of stress testing scenarios, many stress testing data often contain a large number of necessary nested and repeated fields, which consumes significant bandwidth resources, increases the amount of stress testing data transmitted, and affects the efficiency of distributed stress testing. Summary of the Invention

[0004] In view of this, the present application provides a distributed stress testing method, device and equipment, the main purpose of which is to solve the problem in the existing technology that stress testing data with complex structures will occupy a large amount of bandwidth resources, increase the amount of transmitted stress testing data, and affect the efficiency of distributed stress testing.

[0005] According to a first aspect of the present application, a distributed stress testing method is provided, comprising:

[0006] In a target distributed stress testing architecture, an identifier transmission order for stress testing data is defined. The target distributed stress testing architecture includes a display node for displaying stress testing results, a computing node for calculating stress testing results, and a stress testing node for stress testing target interfaces. The stress testing data includes stress testing field identifiers and stress testing attribute data. Each stress testing attribute data corresponds to a stress testing field identifier. The identifier transmission order is the order of the stress testing field identifiers during the transmission of the stress testing attribute data.

[0007] After the stress testing node obtains the stress testing data according to the stress testing script, the stress testing attribute data identified by the stress testing field to be transmitted is extracted from the stress testing data;

[0008] Sending the stress test attribute data to the computing node according to the identification transmission order, so that the computing node calculates the stress test statistical results according to the stress test attribute data;

[0009] The stress test statistical results are sent to the display node so that the display node can display the results.

[0010] Furthermore, before defining the identification transmission order of the stress testing data in the target distributed stress testing architecture, the method further includes:

[0011] In the original distributed stress testing architecture, the control node that integrates display and computing functions is split into display nodes and computing nodes, thereby obtaining the target distributed stress testing architecture. The stress testing nodes in the original distributed stress testing architecture send the acquired stress testing data to the control node.

[0012] The data sending logic of the stress testing node in the original distributed stress testing architecture is modified accordingly so that the stress testing node in the target distributed architecture sends the acquired stress testing data to the computing node.

[0013] Furthermore, in the target distributed stress testing architecture, defining the identification transmission order of stress testing data includes:

[0014] In the target distributed stress testing architecture, a transmission performance analysis is performed on the stress testing data according to a preset reference indicator to obtain system performance of the stress testing data, where the preset reference indicator is at least one transmission performance indicator selected in combination with the target distributed stress testing architecture;

[0015] Define the sequence of transmitting the identification of the stress testing data based on the system performance of the stress testing data.

[0016] Furthermore, in the target distributed stress testing architecture, the transmission performance analysis of the stress testing data is performed according to preset reference indicators to obtain the system performance of the stress testing data, including:

[0017] In the target distributed stress testing framework, construct different identification transmission sequences applicable to the stress testing data according to preset reference indicators;

[0018] Performing a transmission performance analysis on the stress test data according to the different identification transmission sequences to obtain system performance of the stress test data using the different identification transmission sequences;

[0019] Accordingly, the identification transmission order of the stress testing data is defined according to the system performance when the stress testing data is transmitted in different identification transmission orders.

[0020] Furthermore, after defining the identification transmission order of the stress testing data in the target distributed stress testing architecture, the method further includes:

[0021] After the stress testing node obtains stress testing data according to the stress testing script, the stress testing data is cached to obtain stress testing cache data;

[0022] Extracting stress testing attribute data identified by the stress testing field to be transmitted from the stress testing cache data;

[0023] Correspondingly, when the stress test duration reaches the set duration or the stress test ends, the stress test attribute data of the stress test cache data is sent to the computing node according to the identification transmission order, so that the computing node calculates the stress test statistical results based on the stress test attribute data.

[0024] Furthermore, after defining the identification transmission order of the stress testing data in the target distributed stress testing architecture, the method further includes:

[0025] After the stress testing node obtains stress testing data according to the stress testing script, it collects error information that occurs during the stress testing process;

[0026] The error information is fed back to the computing node, so that the computing node performs error analysis on the stress testing process.

[0027] Furthermore, before feeding back the error information to the computing node so that the computing node performs error analysis on the stress testing process, the method further includes:

[0028] Classify the error information according to the classification field recorded in the error information to obtain different stress testing error types;

[0029] Accordingly, when target error information of any stress testing error type occurs for the first time, a request / response pair of the target error information is extracted and fed back to the computing node, so that the computing node performs error analysis on the stress testing process.

[0030] According to a second aspect of the present application, a distributed stress testing device is provided, comprising:

[0031] A definition unit is configured to define, in a target distributed stress testing architecture, an identifier transmission order for stress testing data, wherein the target distributed stress testing architecture includes a display node for displaying stress testing results, a computing node for computing stress testing results, and a stress testing node for stress testing a target interface. The stress testing data includes stress testing field identifiers and stress testing attribute data, each stress testing attribute data corresponding to a stress testing field identifier. The identifier transmission order is the order of the stress testing field identifiers during the transmission of the stress testing attribute data.

[0032] A first extraction unit is configured to extract stress testing attribute data identified by a stress testing field to be transmitted from the stress testing data after the stress testing node obtains the stress testing data according to the stress testing script;

[0033] a first sending unit, configured to send the stress testing attribute data to the computing node according to the identification transmission order, so that the computing node calculates the stress testing statistical result according to the stress testing attribute data;

[0034] The second sending unit is used to send the stress test statistical result to the display node, so that the display node displays the result.

[0035] Furthermore, the device further comprises:

[0036] A splitting unit is configured to split the control node that integrates display and computing functions into display nodes and computing nodes in the original distributed stress testing architecture, thereby obtaining a target distributed stress testing architecture. The stress testing nodes in the original distributed stress testing architecture send the acquired stress testing data to the control node.

[0037] The modification unit is used to modify the data sending logic of the stress testing node in the original distributed stress testing architecture accordingly, so that the stress testing node in the target distributed architecture sends the acquired stress testing data to the computing node.

[0038] Furthermore, the definition unit is specifically used to:

[0039] In the target distributed stress testing architecture, a transmission performance analysis is performed on the stress testing data according to a preset reference indicator to obtain system performance of the stress testing data, where the preset reference indicator is at least one transmission performance indicator selected in combination with the target distributed stress testing architecture;

[0040] Define the sequence of transmitting the identification of the stress testing data based on the system performance of the stress testing data.

[0041] Furthermore, the definition unit is further configured to:

[0042] In the target distributed stress testing framework, construct different identification transmission sequences applicable to the stress testing data according to preset reference indicators;

[0043] Performing a transmission performance analysis on the stress test data according to the different identification transmission sequences to obtain system performance of the stress test data using the different identification transmission sequences;

[0044] Accordingly, the identification transmission order of the stress testing data is defined according to the system performance when the stress testing data is transmitted in different identification transmission orders.

[0045] Furthermore, the device further comprises:

[0046] a cache unit, configured to cache the stress testing data after the stress testing node obtains the stress testing data according to the stress testing script, to obtain stress testing cache data;

[0047] A second extraction unit is configured to extract stress testing attribute data identified by a stress testing field to be transmitted from the stress testing cache data;

[0048] Accordingly, the first sending unit is further configured to:

[0049] When the stress test duration reaches the set duration or the stress test ends, the stress test attribute data of the stress test cache data is sent to the computing node according to the identification transmission order, so that the computing node calculates the stress test statistical results according to the stress test attribute data.

[0050] Furthermore, the device further comprises:

[0051] A collecting unit, configured to collect error information that occurs during the stress testing process after the stress testing node obtains stress testing data according to the stress testing script;

[0052] An analysis unit is configured to feed back the error information to the computing node, so that the computing node performs error analysis on the stress testing process.

[0053] Furthermore, the device further comprises:

[0054] a classification unit, configured to classify the error information according to the classification field recorded in the error information to obtain different stress testing error types before feeding the error information back to the computing node so that the computing node performs error analysis on the stress testing process;

[0055] Accordingly, the analysis unit is further configured to:

[0056] When target error information of any stress testing error type occurs for the first time, a request / response pair of the target error information is extracted and fed back to the computing node, so that the computing node performs error analysis on the stress testing process.

[0057] According to a third aspect of the present application, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the distributed stress testing method described in the first aspect are implemented.

[0058] According to a fourth aspect of the present application, a readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the distributed stress testing method described in the first aspect are implemented.

[0059] By means of the above technical solution, the present application provides a distributed stress testing method, device, equipment and storage medium. Compared with the current existing technology that adopts a master-slave architecture to implement distributed stress testing, the present application defines the identification transmission order of stress testing data in the target distributed stress testing architecture. The target distributed stress testing architecture includes a display node for displaying stress testing results, a computing node for calculating stress testing results and a stress testing node for stress testing target interface. The stress testing data includes stress testing field identification and stress testing attribute data. Each stress testing attribute data corresponds to a stress testing field identification. The identification transmission order is the order of stress testing field identification of stress testing attribute data during transmission. When the stress testing node obtains the stress testing data according to the stress testing script, the corresponding stress testing attribute data is extracted from the stress testing data. The stress testing attribute data is sent to the computing node according to the identification transmission order, so that the computing node calculates the stress testing statistical results based on the stress testing attribute data. The stress testing statistical results are sent to the display node so that the display node displays the results. The entire process defines the identification and transmission order of stress test data in the target distributed stress test architecture. Since the sending and receiving ends use the same stress test field identifier, the same stress test data only needs to transmit stress test attribute data during node transmission, without the need to pass stress test field identifiers. This reduces the transmission of redundant data during distributed stress testing and improves distributed stress testing efficiency.

[0060] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0062] Figure 1 This is a flow chart of a distributed stress testing method provided in one embodiment of the present application;

[0063] Figure 2 This is a flow chart of a distributed stress testing method provided in another embodiment of the present application;

[0064] Figure 3 This is a schematic diagram of a process for performing stress testing based on the original distributed stress testing architecture provided by an embodiment of the present application;

[0065] Figure 4 This is a schematic diagram of a process for performing stress testing based on a target distributed stress testing architecture provided by an embodiment of the present application;

[0066] Figure 5 yes Figure 1 A schematic flow chart of a specific implementation of step 101;

[0067] Figure 6 This is a flow chart of a distributed stress testing method provided in another embodiment of the present application;

[0068] Figure 7 This is a stress testing flow chart based on a target distributed stress testing architecture provided by another embodiment of the present application;

[0069] Figure 8 This is a schematic diagram of a process for performing stress testing based on cached data provided by another embodiment of the present application;

[0070] Figure 9 This is a flow chart of error information transmission during distributed stress testing provided by an embodiment of the present application;

[0071] Figure 10 This is a schematic diagram of the structure of a distributed stress testing device in one embodiment of the present application;

[0072] Figure 11 The figure is a schematic diagram of the device structure of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0073] The present invention will now be discussed with reference to several exemplary embodiments. It should be understood that these embodiments are discussed only to enable those skilled in the art to better understand and implement the present invention, rather than to imply any limitation on the scope of the present invention.

[0074] As used herein, the term "including" and variations thereof are to be interpreted as open-ended terms meaning "including, but not limited to." The term "based on" is to be interpreted as "based, at least in part, on." The terms "one embodiment" and "an embodiment" are to be interpreted as meaning "at least one embodiment." The term "another embodiment" is to be interpreted as meaning "at least one other embodiment."

[0075] In related technologies, the stress testing scenarios of distributed stress testing processes are complex, and many stress testing data often contain a large number of necessary nested and repeated fields, which occupy a large amount of bandwidth resources, increase the amount of transmitted stress testing data, and affect the efficiency of distributed stress testing.

[0076] To solve this problem, this embodiment provides a distributed stress testing method, such as Figure 1 As shown in the figure, this method is applied to the server of the distributed stress testing system and includes the following steps:

[0077] 101. In the target distributed stress testing architecture, define the identification and transmission order of stress testing data.

[0078] Distributed stress testing utilizes a distributed system consisting of multiple computers or nodes, distributing stress testing tasks across the nodes for parallel execution, simulating scenarios where a large number of users are simultaneously accessing the target system. Specifically, large-scale stress testing tasks, which would be difficult for a single machine to complete, are broken down into multiple subtasks, which are then distributed and executed simultaneously across different nodes. These nodes can be physical servers, virtual machines, or containers, interconnected and working collaboratively via a network. Each node is responsible for sending a certain number of requests to the target system, collecting and recording relevant performance data, and then aggregating this data for analysis.

[0079] In this embodiment, the target distributed stress testing architecture includes a display node for displaying stress testing results, a compute node for calculating stress testing results, and a stress testing node for stress testing the target interface. The stress testing nodes are distributed across different locations, simulating a large number of users initiating concurrent access to the target system from different network environments and terminal devices. During the test, the stress testing nodes strictly follow preset rules to send a large number of simulated requests to the target interface, while simultaneously collecting and recording key information for each request in real time, including request initiation time, response reception time, response status code, request data size, response data size, etc. The compute node first cleans the data to remove invalid and erroneous data to ensure data quality and availability. Then, using complex algorithms and statistical models, it calculates and analyzes the valid data to extract a series of key performance indicators. The display node displays the analysis results obtained by the compute node in an intuitive and easy-to-understand manner, specifically supporting a variety of visual presentation formats, including line charts, bar charts, pie charts, heat maps, etc.

[0080] The stress testing data consists of stress testing field identifiers and stress testing attribute data. Each stress testing attribute data is associated with a stress testing field identifier. The order in which the identifiers are transmitted is the order in which the stress testing field identifiers are used during the stress testing attribute data transmission process. The stress testing field identifier serves as the identity of the stress testing data, uniquely identifying the specific object or operation during the stress testing process. For example, when stress testing the order interface of an e-commerce platform, operations such as order creation, order query, and order payment can be distinguished by stress testing field identifiers. These stress testing field identifiers can be custom codes, names, or automatically generated numbers. Their core function is to establish clear classification and indexing for the stress testing data, facilitating subsequent rapid data location and retrieval. The stress testing attribute data here provides a detailed description of the stress testing process and results, recording performance metrics, environmental parameters, and other information generated during the stress testing process. In other words, the stress testing attribute data revolves around the stress testing field identifiers, describing the details of the stress testing process from multiple dimensions.

[0081] Specifically, in the target distributed architecture, the order in which stress test data identifiers are transmitted is the order in which stress test field identifiers are used during the transmission of stress test attribute data. In one implementation scenario, the identifier transmission order can be based on the order of the stress test process, that is, the order in which data is generated during the stress test process. For example, during a stress test, the timestamp of the stress test start is recorded first, followed by the relevant stress test field identifiers and data sent in the request, followed by the stress test field identifiers and data received in the response, and finally some summary stress test field identifiers and data. This ensures that data can be parsed and analyzed in an orderly manner according to the actual stress test process during transmission and processing. In another implementation scenario, the identifier transmission order can be sorted by importance or relevance. That is, based on the importance of stress test field identifiers or their relevance to other stress test field identifiers, key stress test field identifiers are placed first so that the receiving end can prioritize and focus on this important information, while auxiliary stress test field identifiers are placed later.

[0082] Understandably, in the target distributed stress testing architecture, stress testing data may be transmitted simultaneously from multiple stress testing nodes to compute nodes. In this case, it is necessary to consider how to ensure the consistency of the transmission order of stress testing field identifiers in a distributed environment. Specifically, each stress testing node can be assigned a unique identifier, and the identifier of the stress testing node can be included in the stress testing data identifier. This allows the receiving end to sort and consolidate stress testing data according to the corresponding identifier transmission order based on information such as the stress testing node identifier and timestamp, ensuring that stress testing data from different stress testing nodes is processed in the correct order.

[0083] 102. After the stress testing node obtains stress testing data according to the stress testing script, it extracts stress testing attribute data identified by the stress testing field to be transmitted from the stress testing data.

[0084] It's understandable that the extraction methods for stress test attribute data vary depending on the data structure of the stress test data. For example, in JSON data, stress test data is structured as key-value pairs; in log files, stress test data is recorded in a specific format and order.

[0085] Specifically, during the extraction of stress test attribute data, the data structure of the stress test data can be analyzed based on its storage format, and then search and locate the stress test data based on the stress test field identifier to be transmitted. Once the location of the stress test field identifier is found, the location of the stress test attribute data can be determined and extracted based on its data structure.

[0086] 103. Send the stress testing attribute data to the computing node according to the identification transmission order, so that the computing node calculates the stress testing statistical result according to the stress testing attribute data.

[0087] In this embodiment, after the stress testing node completes the extraction of the stress testing attribute data, it will package and process the corresponding stress testing attribute data according to a predefined identification transmission order. The identification transmission order can be based on the timeline of the stress testing process, the importance of the data, or the priority of the system processing. For example, according to the time sequence of the stress testing process, the data recording the stress testing start timestamp is first arranged first, followed by the request to send related data, response reception data, etc.; if sorted by importance, key indicators that directly reflect the system performance, such as response time, throughput and other data, will be prioritized. Then, the stress testing node integrates the stress testing attribute data into data packets in a specific format in sequence.

[0088] Furthermore, the data packet is sent from the stress testing node to the compute node. During transmission, data verification mechanisms, such as adding a checksum or hash value, are implemented to ensure data integrity and accuracy. If stress testing attribute data is lost or corrupted during transmission due to network fluctuations or other reasons, the stress testing node can resend the stress testing attribute data based on the verification results. Furthermore, to improve transmission efficiency, data compression technology may be used to reduce the bandwidth resources consumed by data transmission in the network, ensuring that data reaches the compute node quickly and stably.

[0089] Accordingly, after receiving a data packet, the compute node first performs a data verification to confirm that the data is complete and correct. Next, the data packet is parsed according to the data format specification, and the packaged data is restored into various stress test attribute data according to the transmission order of the identifier. For example, for a data packet in JSON format, the compute node will use the corresponding JSON parsing tool to convert the data into an operable object or array form to facilitate subsequent processing. Then, based on the parsed stress test attribute data, professional algorithms and statistical models are used to perform in-depth calculations. For example, by analyzing a large amount of response time data, the average response time, maximum response time, and minimum response time are calculated; another example is that the system throughput is calculated based on the number of requests and processing time.

[0090] 104. Send the stress test statistical result to the display node, so that the display node displays the result.

[0091] In this embodiment, taking into account the receiving requirements and display characteristics of the display node, the computing node will encapsulate various statistical indicators, such as average response time, throughput, error rate, etc., as well as related metadata, such as stress testing time and test scenario name, in a specific data format. The encapsulated stress testing statistical results are sent from the computing node to the display node through the network communication protocol.

[0092] It is understood that after a series of calculations, the computing nodes integrate the various statistical indicators obtained to generate complete stress testing statistical results. These results can be presented in a structured form on the display nodes, such as tables, charts, or reports in a specific format.

[0093] For example, a line chart can be used to show the response time trend over time, a bar chart can be used to compare throughput in different scenarios, and a pie chart can be used to show the percentage of various errors. These visualized statistical results can directly reflect the performance of the system during the stress testing process, providing strong data support for subsequent system optimization and decision-making.

[0094] Furthermore, to facilitate archiving, sharing, and reporting, the display node also provides interactive functions. Users can zoom in, out, and filter charts by clicking and dragging the mouse, and view detailed stress test results under specific time periods and conditions. They can also generate detailed test reports that integrate charts, data tables, and related analysis instructions.

[0095] The distributed stress testing method provided in the embodiment of the present application is compared with the current prior art method of using a master-slave architecture to implement distributed stress testing. In the present application, in the target distributed stress testing architecture, an identification transmission order of stress testing data is defined. The target distributed stress testing architecture includes a display node for displaying stress testing results, a computing node for calculating stress testing results, and a stress testing node for stress testing target interfaces. The stress testing data includes stress testing field identification and stress testing attribute data. Each stress testing attribute data corresponds to a stress testing field identification. The identification transmission order is the order of stress testing field identifications of the stress testing attribute data during transmission. After the stress testing node obtains the stress testing data according to the stress testing script, the corresponding stress testing attribute data is extracted from the stress testing data. The stress testing attribute data is sent to the computing node according to the identification transmission order, so that the computing node calculates the stress testing statistical results based on the stress testing attribute data. The stress testing statistical results are sent to the display node so that the display node displays the results. The entire process defines the identification and transmission order of stress test data in the target distributed stress test architecture. Since the sending and receiving ends use the same stress test field identifier, the same stress test data only needs to transmit stress test attribute data during node transmission, without the need to pass stress test field identifiers. This reduces the transmission of redundant data during distributed stress testing and improves distributed stress testing efficiency.

[0096] In actual application scenarios, the target distributed stress testing architecture is improved based on the original distributed stress testing architecture. The original distributed stress testing architecture includes control nodes and stress testing nodes that integrate display and computing functions. Since the control nodes are responsible for both computing and display functions, the two will compete for CPU resources, which will affect the presentation performance of stress testing results. Figure 2As shown, before step 101, the method further includes the following steps:

[0097] 201. In the original distributed stress testing architecture, the control node that integrates display and computing functions is split into display nodes and computing nodes to obtain the target distributed stress testing architecture.

[0098] 202. Modify the data sending logic of the stress testing node in the original distributed stress testing architecture accordingly, so that the stress testing node in the target distributed architecture sends the acquired stress testing data to the computing node.

[0099] In this embodiment, the original distributed stress testing architecture adopts a master-slave architecture. The specific stress testing process is as follows: Figure 3 As shown in Figure 1, the control node sends the stress test script to the stress test node. After the stress test node obtains the stress test data according to the stress test script, it feeds the stress test data back to the control node, which then calculates and displays the stress test data. Accordingly, the target distributed stress test architecture splits the control node in the original distributed stress test architecture into display nodes and computing nodes. The specific stress test process is as follows: Figure 4 As shown, after the stress testing node obtains the stress testing data according to the stress testing script, it feeds the stress testing data back to the computing node. After the computing node calculates the stress testing data, it sends the calculation result to the display node for display.

[0100] It should be noted that in the target distributed stress testing architecture, the original control node is split into computing nodes and display nodes. After the stress testing node obtains the stress testing data, the data sending logic in the original distributed architecture is to send the stress testing data to the control node, while the data sending logic in the target distributed stress testing organization is to send the stress testing data to the computing node. Therefore, in the constructed target distributed stress testing architecture, the data sending logic of the stress testing node in the original distributed stress testing architecture needs to be modified accordingly.

[0101] It is understandable that the stress test data is transmitted using different identification transmission orders, and the corresponding system performance is different. In order to select an identification transmission order with the best system transmission performance, specifically, in the above embodiment, Figure 5 As shown, step 101 includes the following steps:

[0102] 301. In a target distributed stress testing architecture, perform a transmission performance analysis on the stress testing data according to preset reference indicators to obtain system performance of the stress testing data.

[0103] 302. Define an identification transmission order of the stress testing data based on the system performance of the stress testing data.

[0104] In this embodiment, the preset reference indicator is at least one transmission performance indicator selected in conjunction with the target distributed stress testing architecture. This transmission performance indicator can be data transmission throughput, which is the amount of stress testing data successfully transmitted between nodes during the stress testing process. This reflects the data transmission capacity of the distributed stress testing system. A higher throughput indicates that the system can transmit more stress testing data per unit time, which helps to conduct stress testing more efficiently. This transmission performance indicator can also be packet loss rate, which is the ratio of the number of data packets lost during the stress testing process to the total number of data packets sent. This is usually expressed as a percentage and reflects the reliability of data transmission. An excessively high packet loss rate may result in incomplete stress testing data, affecting the accuracy of the stress testing results. This transmission performance indicator can also be bandwidth utilization, which is the ratio of the actual network bandwidth used during the stress testing process to the available network bandwidth. This is usually expressed as a percentage and reflects the degree of network resource utilization of the stress testing system. Generally speaking, excessive bandwidth utilization may cause network congestion, affecting the system performance of the stress testing data. It is necessary to reasonably adjust the stress testing scale or optimize the network configuration to ensure the stability of the stress testing process.

[0105] It's understandable that stress test data is typically transmitted in a specific order during network transmission. A reasonable transmission order can help the system allocate resources like CPU and memory more efficiently, improving system performance. For example, sending related data blocks sequentially or dynamically adjusting the transmission order based on network congestion can reduce packet loss and retransmissions, improving network bandwidth utilization. Conversely, an unreasonable transmission order can cause data packets to be scattered across the network, increasing the risk of packet loss and impacting system performance.

[0106] Specifically, in the target distributed stress testing framework, different identification transmission sequences applicable to stress testing data can be constructed based on preset reference indicators; the transmission performance of stress testing data can be analyzed based on different identification transmission sequences to obtain the system performance of stress testing data using different identification transmission sequences; accordingly, the identification transmission sequence of stress testing data can be defined based on the system performance of stress testing data using different identification transmission sequences.

[0107] In the target distributed prediction architecture, establishing a reasonable identifier transmission order is crucial for optimizing test efficiency and accuracy. Specifically, the identifier transmission order for stress test data can be constructed based on the chronological order in which the data was generated. This identifier transmission order is suitable for analyzing system performance changes under continuous load, such as the fluctuation trend of response time over time. The identifier transmission order for stress test data can also be constructed based on correlation grouping. This allows logically related stress test field identifiers to be aggregated for transmission, such as packaging request parameters, response times, and error messages from the same interface, reducing data reorganization overhead and improving compute node processing efficiency. Accordingly, when performing multiple transmission tests on stress test data using different identifier transmission orders, it is necessary to maintain consistency in other variables for each transmission test, changing only the identifier transmission order to ensure comparability of test results. Monitoring tools are deployed on stress test nodes, network links, and compute nodes to record metrics such as throughput, latency, packet loss rate, and bandwidth utilization in real time. The correlation between the transmission order and performance metrics is analyzed to determine system performance under different identifier transmission orders.

[0108] In an implementable application scenario, the stress testing data is in key-value format, where the key is equivalent to the stress testing field identifier and the value is equivalent to the stress testing attribute data. If the identifier transmission order is constructed according to the generation time of the stress testing data, after the stress testing node receives the stress testing data, the stress testing data keys are sorted according to the timestamp corresponding to the stress testing data. Accordingly, during the data transmission process, there is no need to transmit the stress testing field identifier key, and only the stress testing attribute data needs to be transmitted according to the key sequence.

[0109] In actual application scenarios, considering that stress testing scenarios have different requirements for the real-time performance of stress testing data, for stress testing environments with limited resources, real-time transmission of stress testing data will affect the accuracy of stress testing. The stress testing data can be cached before transmission. Figure 6 As shown, after step 101, the method further includes the following steps:

[0110] 401. After the stress testing node obtains stress testing data according to the stress testing script, it caches the stress testing data to obtain stress testing cache data.

[0111] 402. Extract stress testing attribute data identified by the stress testing field to be transmitted from the stress testing cache data.

[0112] Correspondingly, in step 103, when the stress test duration reaches the set duration or the stress test ends, the stress test attribute data of the stress test cache data is sent to the computing node according to the identification transmission order, so that the computing node calculates the stress test statistical results based on the stress test attribute data.

[0113] In this embodiment, when executing stress testing tasks, the stress testing node typically interacts with the system in real time, simulating user requests to obtain relevant stress testing data. When specific conditions are met, such as reaching a preset data volume threshold, completing a test cycle, or receiving a system cache instruction, the stress testing node triggers a caching mechanism to cache the currently acquired stress testing data.

[0114] For specific stress testing process, refer to Figure 7 As shown, after obtaining stress test data according to the stress test script, the stress test node caches the data there. After the test completes or meets the set test duration, the stress test data is fed back to the compute node. The compute node calculates the stress test data and sends the results to the display node for display. This one-time transmission of stress test data solves the problem of bandwidth usage during long-term stress tests.

[0115] In actual application scenarios, considering that different stress testing scenarios and stress testing systems may generate various error messages. In order to accurately parse and classify these complex and diverse error messages. Further, in the above embodiment, Figure 8 As shown, after step 101, the method further includes the following steps:

[0116] 501. After the stress testing node obtains stress testing data according to the stress testing script, it collects error information that occurs during the stress testing process.

[0117] 502. Feedback the error information to the computing node, so that the computing node performs error analysis on the stress testing process.

[0118] In this embodiment, taking into account the test environment problems in the stress testing environment, different types of error messages may appear in the stress testing process. For example, due to limited server hardware resources, when the number of concurrent requests reaches a certain level, the resources will be exhausted, resulting in a slower system response or even errors. For example, incomplete stress testing data or non-compliance with business rules may cause abnormal error messages to appear during the program processing. For example, unstable factors in the stress testing environment may cause error messages such as request loss or excessive delay.

[0119] Furthermore, different types of error information often come from different sources. In order to facilitate technical personnel to quickly locate the error location, the error information can also be classified according to the classification fields recorded in the error information before it is fed back to the computing node to obtain different stress testing error types; accordingly, when the target error information of any stress testing error type occurs for the first time, the request / response pair of the target error information is extracted and fed back to the computing node, so that the computing node can perform error analysis on the stress testing process.

[0120] The transmission process of the above error information can be found in Figure 9 As shown, each time an error occurs during the stress test, the corresponding error information is recorded, including error fields such as the interface name, response code, exception information, and the corresponding request and response content. Based on at least one error field in the error information, a unique error type identifier is determined. The request / response pair of the error information is then associated with this error type identifier and recorded in a categorized record list or data structure. Each error type's classification label is recorded in the table as type, request, and response. When a new error occurs, the error fields in the error information are similarly matched against existing categorized records. If a match is found with an existing error type, it indicates an error of the same type. Since a categorization record was already created for the first error, no additional request / response pair record is created. For example, for a type 2 error, this error information can be ignored. If no match is found with an existing error type, it indicates a new error type and requires additional error information. For example, for a type 3 error, a new categorization record is created for it, and the request / response pair is associated with the new error type identifier and added to the categorized record list. Finally, the error information for each error type is pushed to the compute node upon the first error, and the corresponding request / response pair is displayed on the display node.

[0121] Furthermore, as a specific implementation of the above method, the embodiment of the present application provides a distributed stress testing device, such as Figure 10 As shown, the device includes: a defining unit 61, a first extracting unit 62, a first sending unit 63 and a second sending unit 64.

[0122] A definition unit 61 is configured to define, in a target distributed stress testing architecture, an identifier transmission order for stress testing data. The target distributed stress testing architecture includes a display node for displaying stress testing results, a computing node for computing stress testing results, and a stress testing node for stress testing a target interface. The stress testing data includes stress testing field identifiers and stress testing attribute data. Each stress testing attribute data has a corresponding stress testing field identifier. The identifier transmission order is the order of the stress testing field identifiers during the transmission of the stress testing attribute data.

[0123] A first extraction unit 62 is configured to extract stress testing attribute data identified by a stress testing field to be transmitted from the stress testing data after the stress testing node obtains the stress testing data according to the stress testing script;

[0124] A first sending unit 63 is configured to send the stress test attribute data to the computing node according to the identification transmission order, so that the computing node calculates the stress test statistical result according to the stress test attribute data;

[0125] The second sending unit 64 is configured to send the stress test statistical result to the display node so that the display node displays the result.

[0126] The distributed stress testing device provided by the embodiment of the present invention, compared with the current existing technology that adopts a master-slave architecture to implement distributed stress testing, the present application defines an identification transmission order of stress testing data in the target distributed stress testing architecture. The target distributed stress testing architecture includes a display node for displaying stress testing results, a computing node for calculating stress testing results, and a stress testing node for stress testing target interfaces. The stress testing data includes stress testing field identification and stress testing attribute data. Each stress testing attribute data corresponds to a stress testing field identification. The identification transmission order is the order of the stress testing field identification of the stress testing attribute data during the transmission process. When the stress testing node obtains the stress testing data according to the stress testing script, the corresponding stress testing attribute data is extracted from the stress testing data. The stress testing attribute data is sent to the computing node according to the identification transmission order, so that the computing node calculates the stress testing statistical results based on the stress testing attribute data. The stress testing statistical results are sent to the display node so that the display node displays the results. The entire process defines the identification and transmission order of stress test data in the target distributed stress test architecture. Since the sending and receiving ends use the same stress test field identifier, the same stress test data only needs to transmit stress test attribute data during node transmission, without the need to pass stress test field identifiers. This reduces the transmission of redundant data during distributed stress testing and improves distributed stress testing efficiency.

[0127] In a specific application scenario, the device further includes:

[0128] A splitting unit is configured to split the control node that integrates display and computing functions into display nodes and computing nodes in the original distributed stress testing architecture, thereby obtaining a target distributed stress testing architecture. The stress testing nodes in the original distributed stress testing architecture send the acquired stress testing data to the control node.

[0129] The modification unit is used to modify the data sending logic of the stress testing node in the original distributed stress testing architecture accordingly, so that the stress testing node in the target distributed architecture sends the acquired stress testing data to the computing node.

[0130] In a specific application scenario, the definition unit is specifically used to:

[0131] In the target distributed stress testing architecture, a transmission performance analysis is performed on the stress testing data according to a preset reference indicator to obtain system performance of the stress testing data, where the preset reference indicator is at least one transmission performance indicator selected in combination with the target distributed stress testing architecture;

[0132] Define the sequence of transmitting the identification of the stress testing data based on the system performance of the stress testing data.

[0133] In a specific application scenario, the definition unit is further used to:

[0134] In the target distributed stress testing framework, construct different identification transmission sequences applicable to the stress testing data according to preset reference indicators;

[0135] Performing a transmission performance analysis on the stress test data according to the different identification transmission sequences to obtain system performance of the stress test data using the different identification transmission sequences;

[0136] Accordingly, the identification transmission order of the stress testing data is defined according to the system performance when the stress testing data is transmitted in different identification transmission orders.

[0137] In a specific application scenario, the device further includes:

[0138] a cache unit, configured to cache the stress testing data after the stress testing node obtains the stress testing data according to the stress testing script, to obtain stress testing cache data;

[0139] A second extraction unit is configured to extract stress testing attribute data identified by a stress testing field to be transmitted from the stress testing cache data;

[0140] Accordingly, the first sending unit is further configured to:

[0141] When the stress test duration reaches the set duration or the stress test ends, the stress test attribute data of the stress test cache data is sent to the computing node according to the identification transmission order, so that the computing node calculates the stress test statistical results according to the stress test attribute data.

[0142] In a specific application scenario, the device further includes:

[0143] A collecting unit, configured to collect error information that occurs during the stress testing process after the stress testing node obtains stress testing data according to the stress testing script;

[0144] An analysis unit is configured to feed back the error information to the computing node, so that the computing node performs error analysis on the stress testing process.

[0145] In a specific application scenario, the device further includes:

[0146] a classification unit, configured to classify the error information according to the classification field recorded in the error information to obtain different stress testing error types before feeding the error information back to the computing node so that the computing node performs error analysis on the stress testing process;

[0147] Accordingly, the analysis unit is further configured to:

[0148] When target error information of any stress testing error type occurs for the first time, a request / response pair of the target error information is extracted and fed back to the computing node, so that the computing node performs error analysis on the stress testing process.

[0149] It should be noted that for other corresponding descriptions of the functional units involved in the distributed stress testing device provided in this embodiment, please refer to Figures 1-9 The corresponding description in will not be repeated here.

[0150] Based on the above Figures 1-9 The method shown in FIG. 1 is a method for performing the above-mentioned operation. Accordingly, the embodiment of the present application further provides a storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned operation is performed. Figures 1-9 The distributed stress testing method shown.

[0151] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each implementation scenario of the present application.

[0152] Based on the above Figures 1-9 The method shown, and Figure 10 In order to achieve the above-mentioned purpose, the embodiment of the present application further provides a physical device for distributed stress testing, which can be a computer, a smart phone, a tablet computer, a smart watch, a server, or a network device, etc. The physical device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figures 1-9 The distributed stress testing method shown.

[0153] Optionally, the physical device may further include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a Wi-Fi module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a Wi-Fi interface), etc.

[0154] In an exemplary embodiment, see Figure 11The physical device includes a communication bus, a processor, a memory, and a communication interface. It may also include an input / output interface and a display device. The various functional units can communicate with each other via the bus. The memory stores a computer program, and the processor is configured to execute the program stored in the memory and perform the distributed stress testing method described in the above embodiment.

[0155] Those skilled in the art will understand that the physical device structure of a distributed stress test provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different component arrangements.

[0156] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the physical device used for distributed stress testing, supporting the execution of information processing programs and other software and / or programs. The network communication module is used to enable communication between components within the storage medium and with other hardware and software within the physical information processing device.

[0157] Through the description of the above implementation methods, those skilled in the art can clearly understand that this application can be implemented by means of software plus the necessary general hardware platform, or by hardware. By applying the technical solution of this application, compared with the current existing methods, this application defines the identification transmission order of the stress test data in the target distributed stress test architecture. Since the sending end and the receiving end use the same stress test field identifier, the same stress test data only needs to transmit stress test attribute data during the node transmission process, without the need to transmit the stress test field identifier, thereby reducing the transmission of redundant data in the distributed stress test process and improving the efficiency of distributed stress testing.

[0158] Those skilled in the art will understand that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily required to implement the present application. Those skilled in the art will understand that the modules in the devices in the implementation scenario can be distributed in the devices of the implementation scenario according to the implementation scenario description, or can be changed accordingly and located in one or more devices different from the implementation scenario. The modules of the above-mentioned implementation scenario can be combined into one module, or can be further split into multiple sub-modules.

[0159] The serial numbers of the above application are for descriptive purposes only and do not represent the advantages or disadvantages of the implementation scenarios. The above disclosure only discloses several specific implementation scenarios of the present application, but the present application is not limited thereto. Any changes that can be conceived by those skilled in the art should fall within the scope of protection of the present application.

Claims

1. A distributed stress testing method, characterized in that: include: In a target distributed stress testing architecture, an identifier transmission order for stress testing data is defined. The target distributed stress testing architecture includes a display node for displaying stress testing results, a computing node for calculating stress testing results, and a stress testing node for stress testing target interfaces. The stress testing data includes stress testing field identifiers and stress testing attribute data. Each stress testing attribute data corresponds to a stress testing field identifier. The identifier transmission order is the order of the stress testing field identifiers during the transmission of the stress testing attribute data. After the stress testing node obtains the stress testing data according to the stress testing script, the stress testing attribute data identified by the stress testing field to be transmitted is extracted from the stress testing data; Sending the stress test attribute data to the computing node according to the identification transmission order, so that the computing node calculates the stress test statistical results according to the stress test attribute data; The stress test statistical results are sent to the display node so that the display node can display the results.

2. The method according to claim 1, characterized in that Before defining the identification transmission order of the stress testing data in the target distributed stress testing architecture, the method further includes: In the original distributed stress testing architecture, the control node that integrates display and computing functions is split into display nodes and computing nodes, thereby obtaining the target distributed stress testing architecture. The stress testing nodes in the original distributed stress testing architecture send the acquired stress testing data to the control node. The data sending logic of the stress testing node in the original distributed stress testing architecture is modified accordingly so that the stress testing node in the target distributed architecture sends the acquired stress testing data to the computing node.

3. The method according to claim 1, characterized in that In the target distributed stress testing architecture, defining the identification transmission order of stress testing data includes: In the target distributed stress testing architecture, a transmission performance analysis is performed on the stress testing data according to a preset reference indicator to obtain system performance of the stress testing data, where the preset reference indicator is at least one transmission performance indicator selected in combination with the target distributed stress testing architecture; Define the sequence of transmitting the identification of the stress testing data based on the system performance of the stress testing data.

4. The method according to claim 3, characterized in that In the target distributed stress testing architecture, the transmission performance analysis of the stress testing data is performed according to preset reference indicators to obtain the system performance of the stress testing data, including: In the target distributed stress testing framework, construct different identification transmission sequences applicable to the stress testing data according to preset reference indicators; Performing a transmission performance analysis on the stress test data according to the different identification transmission sequences to obtain system performance of the stress test data using the different identification transmission sequences; Accordingly, the identification transmission order of the stress testing data is defined according to the system performance when the stress testing data is transmitted in different identification transmission orders.

5. The method according to any one of claims 1 to 4, characterized in that After defining the identification transmission order of the stress testing data in the target distributed stress testing architecture, the method further includes: After the stress testing node obtains stress testing data according to the stress testing script, the stress testing data is cached to obtain stress testing cache data; Extracting stress testing attribute data identified by the stress testing field to be transmitted from the stress testing cache data; Correspondingly, when the stress test duration reaches the set duration or the stress test ends, the stress test attribute data of the stress test cache data is sent to the computing node according to the identification transmission order, so that the computing node calculates the stress test statistical results based on the stress test attribute data.

6. The method according to any one of claims 1 to 4, characterized in that After defining the identification transmission order of the stress testing data in the target distributed stress testing architecture, the method further includes: After the stress testing node obtains stress testing data according to the stress testing script, it collects error information that occurs during the stress testing process; The error information is fed back to the computing node, so that the computing node performs error analysis on the stress testing process.

7. The method according to claim 6, characterized in that Before feeding back the error information to the computing node so that the computing node performs error analysis on the stress testing process, the method further includes: Classify the error information according to the classification field recorded in the error information to obtain different stress testing error types; Accordingly, when target error information of any stress testing error type occurs for the first time, a request / response pair of the target error information is extracted and fed back to the computing node, so that the computing node performs error analysis on the stress testing process.

8. A distributed stress testing device, characterized in that: include: A definition unit is configured to define, in a target distributed stress testing architecture, an identifier transmission order for stress testing data, wherein the target distributed stress testing architecture includes a display node for displaying stress testing results, a computing node for computing stress testing results, and a stress testing node for stress testing a target interface. The stress testing data includes stress testing field identifiers and stress testing attribute data, each stress testing attribute data corresponding to a stress testing field identifier. The identifier transmission order is the order of the stress testing field identifiers during the transmission of the stress testing attribute data. A first extraction unit is configured to extract stress testing attribute data identified by a stress testing field to be transmitted from the stress testing data after the stress testing node obtains the stress testing data according to the stress testing script; a first sending unit, configured to send the stress testing attribute data to the computing node according to the identification transmission order, so that the computing node calculates the stress testing statistical result according to the stress testing attribute data; The second sending unit is used to send the stress test statistical result to the display node, so that the display node displays the result.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the distributed stress testing method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the distributed stress testing method according to any one of claims 1 to 7 are implemented.