Business platform pressure test method and device, electronic equipment and storage medium
By simulating business scenarios to generate requests and obtain test indicator values, and dynamically adjusting concurrency, the problem of inaccurate business platform stress test results in the existing technology is solved, and accurate identification of the business platform and generation of test results are achieved.
Patent Information
- Application Number
- CN202510825720.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-19
- Publication Date
- 2025-10-17
AI Technical Summary
Existing business platform stress testing methods are difficult to accurately determine whether they meet industry requirements, especially in terms of concurrency and response speed, resulting in the inability to ensure the accuracy of test results before a new version is launched.
By simulating the concurrency in real business scenarios, business requests are generated, requests are sent to the business platform to be tested, and the test indicator values of each business system are obtained within a time interval to determine whether the platform is in a business saturation state. The concurrency is dynamically adjusted to generate accurate stress test results.
It achieves accurate and stable identification of the business saturation state of the business platform, ensures that request generation stops when the business platform is in a saturated state, generates accurate stress test results, and thus confirms whether the platform meets industry requirements.
Smart Images

Figure CN120803916A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of software testing, in particular to a business platform stress testing method and device, electronic equipment and storage medium. BACKGROUND
[0002] More and more businesses are now being completed online, and various online business platforms have emerged as the times require.
[0003] For example, various investment companies such as securities companies develop their own business platforms, which can be called trading platforms, to better provide services to users. The trading platform can provide various services to users, and these services are generally implemented by different business systems. That is, the trading platform accesses business systems for implementing various different businesses, and these business systems cooperate with each other to provide services to users.
[0004] Due to the requirements of the securities, futures and other industries, the trading platform needs to meet the relevant requirements in terms of concurrency, response speed and other aspects. Therefore, before the online of the new version of the trading platform, stress testing needs to be performed to confirm whether it meets the online requirements based on the test results. SUMMARY
[0005] The purpose of the embodiments of the present application is to provide a business platform stress testing method, device, electronic equipment and storage medium to accurately generate stress test results and confirm whether it meets the online requirements based on the test results. The specific technical solutions are as follows:
[0006] According to an aspect of the embodiments of the present application, a business platform stress testing method is provided, which comprises:
[0007] In response to the start of stress testing, continuously simulate the generation of business requests according to the concurrency of business requests in real business scenarios, and send the generated business requests to the business platform to be tested, so that the business platform responds to the received business requests, wherein the business platform accesses multiple business systems;
[0008] According to the time interval, obtain the index values of each business system for each test index in the process of the business platform responding to the business requests, wherein the test index includes system performance index and business response index;
[0009] Based on the obtained index values, determine whether the business platform is in a business saturation state;
[0010] If it is not in a business saturation state, determine the request adjustment step based on the obtained index values, and increase the concurrency based on the request adjustment step;
[0011] If in the business saturation state, stop generating the business request, and generate the stress test result of the business platform based on the obtained index value.
[0012] In one embodiment of the present application, the step of determining the request adjustment step length based on the obtained index value comprises:
[0013] For each business system, obtain the difference between the index value of each test index of the business system and the system saturation threshold corresponding to each test index, wherein the index value of the test index of the business system is the system saturation threshold corresponding to the test index, which indicates that the business system is in the business saturation state under the test index;
[0014] Based on the obtained difference, determine the space level of increasing the concurrency degree of the business request, wherein the higher the space level, the higher the concurrency degree that can be adjusted;
[0015] Based on the space level, determine the step length adjustment coefficient, wherein the step length adjustment coefficient is positively correlated with the space level;
[0016] Adjust the reference adjustment step length of the request using the step length adjustment coefficient to obtain the request adjustment step length.
[0017] In one embodiment of the present application, the step of adjusting the reference adjustment step length of the request using the step length adjustment coefficient to obtain the request adjustment step length comprises:
[0018] Determine the closeness between the index value corresponding to the minimum difference in the obtained difference and the system saturation threshold;
[0019] Adjust the reference adjustment step length of the request using the step length adjustment coefficient and the closeness to obtain the request adjustment step length.
[0020] In one embodiment of the present application, the step of adjusting the reference adjustment step length of the request using the step length adjustment coefficient and the closeness to obtain the request adjustment step length comprises:
[0021] Adjust the reference adjustment step length of the request according to the following expression to obtain the request adjustment step length:
[0022] Step=Base×e -λ×(1-C) ;
[0023] Wherein, Step is the request adjustment step length, Base is the reference adjustment step length, λ is the step length adjustment coefficient, and C is the closeness.
[0024] In one embodiment of the present application, the step of determining whether the business platform is in the business saturation state based on the obtained index value comprises:
[0025] determine whether the service platform is in a service saturation state based on a result of the determination.
[0026] determine whether there is a system in a service saturation state among the service systems accessed by the service platform based on values of test indexes obtained in the last continuous first number of time intervals;
[0027] determine whether there is a time length mutation in response of the service platform to a service request based on values of service response indexes obtained in the last continuous second number of time intervals;
[0028] determine whether there is a mutation in a success rate of the service platform in successfully responding to a service request based on values of service response indexes obtained in the last continuous second number of time intervals;
[0029] determine whether there is a decrease in an increase rate of a transaction processing amount per second of the service platform based on values of service response indexes obtained in the last continuous second number of time intervals.
[0030] In an embodiment of the present application, the generating of the stress test result of the service platform based on the obtained values includes:
[0031] obtaining system links formed by service systems responding to service requests of different types in response order;
[0032] analyzing, based on the obtained values, service systems with abnormal response time length and / or service systems with abnormal system performance in the system links corresponding to the different types.
[0033] According to another aspect of an embodiment of the present application, a service platform stress test device is provided, and the device includes:
[0034] a stress test starting module configured to continuously simulate generation of service requests according to a concurrency of service requests in a real service scenario in response to starting of a stress test, and send the generated service requests to a service platform to be tested, so that the service platform responds to the received service requests, wherein the service platform accesses a plurality of service systems;
[0035] a value obtaining module configured to obtain values of indexes of each service system for each test index in a process of the service platform responding to service requests according to time intervals, wherein the test indexes include a system performance index and a service response index;
[0036] a saturation state determining module configured to determine whether the service platform is in a service saturation state based on the obtained values;
[0037] a step adjusting module, configured to, if not in the service saturation state, determine a request adjustment step based on the obtained index value, and increase the concurrency degree based on the request adjustment step;
[0038] a test result generating module, configured to, if in the service saturation state, stop generating the service request, and generate a stress test result of the service platform based on the obtained index value.
[0039] In one embodiment of the present application, the step adjusting module is specifically configured to, for each service system, obtain a difference between an index value of each test index of the service system and a system saturation threshold corresponding to the test index, wherein the index value of the test index of the service system is the system saturation threshold, indicating that the service system is in the service saturation state under the test index; determine a space level of increasing the concurrency degree of the service request based on the obtained difference, wherein the higher the space level is, the higher the concurrency degree that can be increased is; determine a step adjustment coefficient based on the space level, wherein the step adjustment coefficient is positively correlated with the space level; and adjust a reference adjustment step of the request using the step adjustment coefficient to obtain the request adjustment step.
[0040] In one embodiment of the present application, the step adjusting module is specifically configured to determine an approximation degree between the index value corresponding to the minimum difference in the obtained difference and the system saturation threshold; and adjust the reference adjustment step of the request using the step adjustment coefficient and the approximation degree to obtain the request adjustment step.
[0041] In one embodiment of the present application, the step adjusting module is specifically configured to adjust the reference adjustment step of the request according to the following expression to obtain the request adjustment step: Step = Base x 3 -λ×(1-C) ; wherein Step is the request adjustment step, Base is the reference adjustment step, λ is the step adjustment coefficient, and C is the approximation degree.
[0042] In an embodiment of the present application, the saturation state judging module is specifically configured to judge whether the following conditions are met, and determine whether the service platform is in a service saturation state based on the judging result: judging whether there is a system in a service saturation state in each service system accessed by the service platform based on the index values of the test indexes obtained in the last continuous first number of time intervals; judging whether there is a time length mutation in the response of the service platform to service requests based on the index values of the service response indexes obtained in the last continuous second number of time intervals; judging whether there is a mutation in the success rate of the service platform in successfully responding to service requests based on the index values of the service response indexes obtained in the last continuous second number of time intervals; and judging whether there is a decrease in the growth rate of the transaction processing amount per second of the service platform based on the index values of the service response indexes obtained in the last continuous second number of time intervals.
[0043] In an embodiment of the present application, the test result generating module is specifically configured to obtain system links formed by service systems responding to each type of service request in response order; and analyze the service systems with abnormal response time length and / or the service systems with abnormal system performance in the system links corresponding to each type based on the obtained index values.
[0044] According to still another aspect of the embodiments of the present application, an electronic device is provided, which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus.
[0045] The memory is used for storing a computer program.
[0046] The processor is used for executing the program stored on the memory, and realizes the service platform stress testing method described above.
[0047] According to still another aspect of the embodiments of the present application, a computer readable storage medium is provided, which stores a computer program, and the computer program is executed by a processor to realize the service platform stress testing method described above.
[0048] The embodiments of the present application further provide a computer program product containing instructions, which, when executed on a computer, cause the computer to perform the service platform stress testing method described above.
[0049] The embodiments of the present application have the following beneficial effects:
[0050] It can be seen from the above that, in the service platform pressure test method provided by the embodiment of the application, the concurrency of the service in the real service scenario is simulated to generate service requests, the generated service requests are sent to the service platform to be tested, the service platform responds to the service requests to perform corresponding data processing, the service platform is tested, in the above pressure test process, the index values of the test indexes of each service system are obtained according to the preset time interval, and whether the service platform is in the service saturation state is judged based on the index values, if the service platform is not in the service saturation state, the request adjustment step is determined, and then the concurrency of the generated service requests is increased based on the request adjustment step, so that the test pressure simulated for the service platform in the above pressure test process can be dynamically adjusted, then the latest index values of the test indexes of each service system are obtained according to the time interval, whether the service platform is in the service saturation state can be judged in real time, accurate and stable service saturation state identification of the service platform is realized, so that the service platform can be accurately stopped from generating service requests when the service platform is in the service saturation state, the pressure test result can be accurately generated, and then whether the service platform meets the industry requirements can be accurately confirmed based on the test result.
[0051] Of course, implementing any product or method of the application does not necessarily require achieving all the advantages described above at the same time. BRIEF DESCRIPTION OF DRAWINGS
[0052] In order to more clearly illustrate the technical solutions in the embodiments of the application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description only show some embodiments of the application, and other embodiments can also be obtained by those skilled in the art based on these drawings.
[0053] Figure 1a A flowchart of a service platform pressure test method provided by the embodiment of the application;
[0054] Figure 1b A structural schematic diagram of a pressure test platform and a service platform provided by the embodiment of the application;
[0055] Figure 2 A flowchart of a request adjustment step determination method provided by the embodiment of the application;
[0056] Figure 3 A structural schematic diagram of a service platform pressure test device provided by the embodiment of the application;
[0057] Figure 4 A structural schematic diagram of an electronic device provided by the embodiment of the application. DETAILED DESCRIPTION
[0058] With reference to the accompanying drawings, the technical solutions in the embodiments of the present application will be described clearly and completely. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art based on the present application are within the scope of protection of the present application.
[0059] The execution subject of the embodiments of the present application is described below.
[0060] The scheme provided by the embodiments of the present application can be applied to electronic devices such as desktop computers, notebook computers, tablet computers and smart phones, and can also be applied to stress test platforms for stress testing of business platforms. For ease of description, the execution subject of the stress test of the business platform provided by the embodiments of the present application is collectively referred to as a stress test platform.
[0061] The application scenario of the embodiments of the present application is described below.
[0062] The business platform to be tested accesses multiple business systems, and the multiple business systems cooperate with each other to provide services. For example, the online business platform is a securities trading platform, and the securities trading platform accesses business systems such as a trading front end, a risk control engine, a trading gateway, a matching core and a clearing system. The above business systems use multiple asynchronous communication or synchronous communication modes for high-frequency communication through a data channel. After the securities trading platform receives a transaction request of a user, each business system in the securities trading platform can sequentially process the transaction request of the user to provide services to the user.
[0063] The business platform stress test method provided by the embodiments of the present application is described in detail below.
[0064] In an embodiment of the present application, with reference to Figure 1a A flowchart of a business platform stress test method provided by the present application is shown in FIG. 1. The method includes the following steps S101-S105.
[0065] Step S101: In response to the start of stress testing, continuously simulate generation of a business request according to the concurrency of the business request in a real business scenario, and send the generated business request to the business platform to be tested, so that the business platform responds to the received business request.
[0066] The business platform accesses multiple business systems. For example, with reference to Figure 1b A structural diagram of a stress test platform and a business platform provided by the present application is shown in FIG. 2. Figure 1bIn the specific implementation, the business platform accesses business system A, business system B, business system C, and business system L. If the stress test platform is used to test the above business platform, the stress test platform simulates generation of a business request in a real business scenario and sends the generated business request to the business platform.
[0067] In an implementation, the stress test platform can simulate generation of the business request according to the concurrency of the business request in the real business scenario according to the preconfigured test parameters.
[0068] The concurrency can be represented by the number of concurrent business requests, and the preconfigured test parameters can include the following parameters: an initial value of the concurrency of the business request, an initial value of a request frequency of the business request, a proportion of each request type in the business request, a maximum concurrency, and a maximum request frequency.
[0069] In response to the stress test starting, the stress test platform can generate each type of business request according to the proportion of each request type in the business request, with the initial value of the concurrency of the business request as the number of concurrent business requests, and with the initial value of the request frequency of the business request as the frequency of generating the business request. The business request can include multiple different request types. For example, for a transaction platform, the business request can include request types such as user login, financial product transaction, transaction order query, and order cancellation. The proportion of each request type in the business request is determined according to the load characteristics of the business platform in the real business scenario. The load characteristics are characteristics representing the load of different request types of the business request in the real business scenario.
[0070] In addition, the stress test platform can also simulate generation of the business request according to the preset business weight, different proportions of each request type in the business request at different time distributions, and the number of business requests that increases or decreases according to the preset burst peak change trend. In this way, the situation of the user sending the business request to the business platform in the actual production environment can be further restored.
[0071] Step S102: Obtain, according to a time interval, an index value of each test index of each business system in the process of the business platform responding to the business request.
[0072] The time interval can be a preset value. The stress test platform can obtain the index value of each test index according to the preset time interval. After obtaining the index value of each test index each time, step S103 can be performed.
[0073] The test indexes include system performance indexes and business response indexes. The business response indexes can include at least one of the following indexes: request response time, success rate of the business platform responding to a business request, failure rate of the business platform responding to a business request, transaction processing amount per second, and error type of a business request response state being error. The system performance indexes can include at least one of the following indexes: CPU utilization rate, memory occupancy rate, disk read / write speed, network upload bandwidth occupancy rate, network download bandwidth occupancy rate, and number of idle threads. In addition, for a case where the business system is deployed on multiple devices, the system performance indexes corresponding to each device of the business system can be obtained as the system performance indexes of the business system.
[0074] The way of obtaining the index values of the test indexes by the step S102 is described below.
[0075] In an implementation manner, the embedded points can be automatically injected in advance for each performance index of each business system, and then the stress test platform can collect the index values of each test index of each business system in the process of responding to a business request by the embedded points set in each business system. For example, for the success rate of a business request, whether the business request is successfully processed can be determined by the response state code set for each business request, and the response state code can also record error types, such as interface timeout, system denial of service, thread pool exhaustion, etc. The stress test platform can obtain the request response time of each business system processing a business request, the duration of the business platform responding to a business request, etc. by recording the time stamp of each business request received by each business system and the time stamp of each business system completing corresponding data processing for each business request.
[0076] In addition, when the stress test platform obtains the index values of each test index at a preset time interval, the index values of the test indexes can be collected at the preset time interval, or the index values of the test indexes can be collected by using a preset collection frequency, and then the index values of the test indexes of the final time interval are obtained based on the collected index values of the test indexes in the preset time interval. For example, if the test index is transaction processing amount per second, the transaction processing amount per second can be collected at a collection frequency of one second, and when the index values of the transaction processing amount per second are obtained at a preset time interval, the average value of the transaction processing amount per second in the time interval can be taken as the index value of the transaction processing amount per second obtained in the time interval, or the maximum value of the transaction processing amount per second in the time interval can be taken as the index value of the transaction processing amount per second obtained in the time interval.
[0077] Referring to Figure 1bThe arrow between the business system A and the pressure test platform indicates that the pressure test platform obtains the index values of the business system A for each test index, the arrow between the business system B and the pressure test platform indicates that the pressure test platform obtains the index values of the business system B for each test index, the arrow between the business system C and the pressure test platform indicates that the pressure test platform obtains the index values of the business system C for each test index, and the arrow between the business system L and the pressure test platform indicates that the pressure test platform obtains the index values of the business system L for each test index.
[0078] In addition, the IP (Internet Protocol) address and port information of each business system can be input into the pressure test platform, so that the pressure test platform can collect the index values of each test index of the business system through the embedded points set in the business system based on the input IP address and port information of the business system.
[0079] The pressure test platform can also input the role information of the business system to record the business functions of each business system in the process of responding to the business request of the business platform, so as to facilitate the determination of the business functions of the business system that needs to be updated and whether it can be replaced when the business system is updated subsequently, and also facilitate the determination of the business system that appears bottleneck in the pressure test according to the corresponding role information of each business system.
[0080] Step S103: Based on the obtained index values, it is determined whether the business platform is in a business saturation state.
[0081] If the determination is yes, the pressure test platform determines that the business platform is in a business saturation state, and then step S105 is performed, and if the determination is no, the pressure test platform determines that the business platform is not in a business saturation state, and then step S104 is performed.
[0082] Step S104: Based on the obtained index values, a request adjustment step is determined, and the concurrency degree is increased based on the request adjustment step.
[0083] The request adjustment step can include a concurrency number adjustment step, and the pressure test platform can increase the concurrency number adjustment step as a new concurrency degree based on the current concurrency degree. The request adjustment step can also include a request frequency adjustment step, and in the case where the request adjustment step includes the request frequency adjustment step, the pressure test platform can also increase the request frequency based on the request adjustment step.
[0084] The manner of determining the request adjustment step is described below.
[0085] In one implementation manner, the business platform can obtain a preset value as the request adjustment step.
[0086] The step S104 determines other implementations of requesting to adjust the step length, which are described in the following embodiments and are not described here in detail.
[0087] The step S105: stopping generating the service request, and generating the stress test result of the service platform based on the obtained index value.
[0088] In an implementation, the stress test platform can obtain the system link formed by the service systems responding to the service requests of each type according to the response order, analyze the service system with abnormal response time and / or the service system with abnormal system performance in the system link corresponding to each type based on the obtained index value. The service system with abnormal response time and / or the service system with abnormal system performance obtained by the analysis can be taken as the stress test result.
[0089] The way of obtaining the system link is described below.
[0090] Specifically, the stress test platform can obtain the system link formed by the service systems responding to the service requests of each type according to the response order based on the distributed link tracking technology.
[0091] The way of analyzing the service system with abnormal response time and / or the service system with abnormal system performance is described below.
[0092] In an implementation, the stress test platform can determine the response time of the service system responding to the service request in each time interval obtained, which exceeds the system saturation threshold, and determine the service system to which the response time exceeding the system saturation threshold belongs as the service system with abnormal response time. The stress test platform can determine the index value of the system performance index of the service system in each time interval obtained, which exceeds the system saturation threshold, and determine the service system to which the system performance index exceeding the system saturation threshold belongs as the service system with abnormal system performance. Different system saturation thresholds can be set for different indexes, for example, the system saturation threshold for the CPU utilization rate in the system performance index can be 85%, and the system saturation threshold for the request response time in the service response index can be twice the benchmark request response time.
[0093] In another implementation, the pressure test platform can use a change point detection algorithm to determine whether a statistical characteristic of the response time of the business system responding to the business request in the time series of the obtained index value has a significant mutation, and if so, determine the business system whose response time has a significant mutation in the statistical characteristic as the business system with an abnormal response time. The pressure test platform can use a change point detection algorithm to determine whether a statistical characteristic of the index value of the obtained system performance index has a significant mutation in the time series, and if so, determine the business system to which the system performance index with the index value having a significant mutation in the statistical characteristic belongs as the business system with abnormal system performance.
[0094] In this way, the response time change of each business system in the system link, the jump point of the index value of the system performance index, and other data can be determined according to the multi-dimensional system performance index and the response time, and the performance degradation trend in the system link and the business system with a bottleneck can be determined.
[0095] In addition, the pressure test platform can accurately analyze the bottleneck position when the business platform is in a business saturation state by collecting the index values of each test index of each business system. For example, the pressure test platform can determine the abnormal business system that causes the business platform to be in a business saturation state, and can further determine whether the abnormal system is limited by the business processing capacity or by the lack of system resources according to whether the abnormal business system has an abnormal response time or abnormal system performance. Such pressure test results can guide the tester to improve the business processing capacity and / or system resources of the abnormal system by updating and upgrading.
[0096] In addition, after determining the abnormal system of the business system with an abnormal response time and / or the business system with abnormal system performance, the business system that responds to the business request before the abnormal system can be determined as the delay path of the abnormal system according to the response order. In this way, the abnormal system with a bottleneck and other business systems in the delay path affected by the abnormal system can be determined.
[0097] Further, after determining the abnormal system, the pressure test platform can determine the device resource bottleneck of the abnormal system according to the index value of each system performance index corresponding to the abnormal system.
[0098] In an implementation, for each system performance index, the closeness between the maximum value of the system performance index and the system saturation threshold is determined, and the device resource bottleneck of the abnormal system is determined according to the closeness of each system performance index.
[0099] The way of determining the device resource bottleneck of the abnormal system according to the determined closeness is described below.
[0100] In one approach, the stress testing platform may use the device resources corresponding to the system performance indicator with the highest degree of proximity as the device resource bottleneck of the abnormal system.
[0101] Alternatively, the stress testing platform can identify the device resources corresponding to system performance indicators whose proximity exceeds a preset standard range as the device resource bottleneck of the abnormal system based on the proximity of the system performance indicators. For example, the interquartile range method can be used to set the preset standard range.
[0102] In this way, we can not only identify the business systems with performance degradation trends and bottlenecks in the system links of the business platform, but also analyze the types of equipment resources that affect system performance in the business systems with performance degradation trends and bottlenecks, so as to facilitate improvements to the equipment resources of the business systems with bottlenecks.
[0103] After obtaining the stress test results, the stress testing platform can build a visual link tracking diagram based on the obtained system links, and display the abnormal system with bottlenecks and other business systems in the delay path affected by the abnormal system in the link tracking diagram, helping testers to quickly identify the fault point.
[0104] Based on the obtained values for each test indicator, the stress testing platform can generate visual graphs of the values for each test indicator for each system. For example, graphs of transactions per second, response time, and the values of various system performance indicators can be generated. The stress testing platform can also generate structured reports, including key indicators such as business system parameters, maximum transactions per second, average response time of the business platform, and the success rate of the business platform's successful response to business requests, to facilitate testers' analysis of stress test reports.
[0105] It can be seen from the above that, in the service platform pressure test method provided by the embodiment of the application, the concurrency of the service in the real service scenario is simulated to generate service requests, the generated service requests are sent to the service platform to be tested, the service platform responds to the service requests to perform corresponding data processing, the pressure test on the service platform is implemented, in the above pressure test process, the index values of the test indexes of each service system are obtained according to the preset time interval, and whether the service platform is in the service saturation state is judged based on the index values, if the service platform is not in the service saturation state, the request adjustment step is determined, and then the concurrency of the generated service requests is increased based on the request adjustment step, so that the test pressure simulated on the service platform in the above pressure test process can be dynamically adjusted, and then the latest index values of the test indexes of each service system are obtained according to the time interval, whether the service platform is in the service saturation state can be judged in real time, accurate and stable service saturation state identification of the service platform is implemented, so that the generation of service requests can be stopped accurately when the service platform is in the service saturation state, the pressure test result can be accurately generated, and then whether the service platform meets the industry requirements can be accurately confirmed based on the test result.
[0106] The way of determining the request adjustment step in step S102 is described below.
[0107] In one embodiment of the application, referring to Figure 2 The flowchart of the request adjustment step determination method provided is shown in the figure, and the method comprises the following steps:
[0108] Step S201: For each service system, the difference between the index value of each test index of the service system and the system saturation threshold corresponding to the test index is obtained.
[0109] When the index value of the test index of the service system is the system saturation threshold corresponding to the test index, it indicates that the service system is in the service saturation state under the test index.
[0110] For example, for the service system A, if the test indexes of the service system A include CPU utilization and memory occupancy, the obtained index value of the CPU utilization is 55%, the index value of the memory occupancy is 30%, the system saturation threshold of the CPU utilization is 85%, and the system saturation threshold of the memory occupancy is 90%, then the difference between the index value of the CPU utilization of the service system A and the system saturation threshold corresponding to the CPU utilization is (90%-55%) = 30%, and the difference between the index value of the memory occupancy of the service system A and the system saturation threshold corresponding to the memory occupancy is (90%-30%) = 60%.
[0111] Step S202: Based on the obtained difference, the space level of increasing the concurrency of the service request is determined.
[0112] Step S203: determining a step adjustment coefficient based on the space level.
[0113] The step adjustment coefficient is positively correlated with the space level.
[0114] The implementation of steps S202-S203 is described below.
[0115] In an implementation, for each test index, a first correspondence relationship between the difference and the space level for increasing the business request concurrency can be set, and a second correspondence relationship between the space level and the step adjustment coefficient can be set. After the difference of the test index is obtained, the step adjustment coefficient can be determined according to the first correspondence relationship and the second correspondence relationship. The greater the difference, the higher the space level, and the higher the space level, the higher the concurrency that can be adjusted.
[0116] For example, the number of space levels can be four, and four space levels and the difference corresponding to each test index under the four space levels and the step adjustment coefficient corresponding to the four space levels can be set.
[0117] Step S204: adjusting the reference adjustment step of the request using the step adjustment coefficient to obtain a request adjustment step.
[0118] In an implementation, the stress testing platform determines the closeness between the index value corresponding to the minimum difference in the obtained difference and the system saturation threshold. The reference adjustment step of the request is adjusted using the step adjustment coefficient and the closeness to obtain a request adjustment step.
[0119] Specifically, the stress testing platform can use the quotient of the index value corresponding to the minimum difference and the system saturation threshold as the closeness. The stress testing platform can also use the quotient of the minimum difference and the system saturation threshold as the closeness.
[0120] For example, if the difference between the index value of the CPU utilization under the business system A and the system saturation threshold corresponding to the CPU utilization is (85%-55%) = 30%, and the difference between the index value of the memory occupancy rate under the business system A and the system saturation threshold corresponding to the memory occupancy rate is (90%-30%) = 60%, then the difference corresponding to the CPU utilization is the minimum difference in the obtained difference, and the system saturation threshold of the CPU utilization is 85%. Then, the closeness between the index value corresponding to the minimum difference in the obtained difference and the system saturation threshold can be (85%-55%) / 85%. In this case, the smaller the value of the closeness, the higher the closeness between the two. The closeness between the index value corresponding to the minimum difference in the obtained difference and the system saturation threshold can also be 55% / 85%. In this case, the smaller the value of the closeness, the lower the closeness between the two.
[0121] Thus, the closeness between the index value and the system saturation threshold is calculated according to the minimum difference between the difference between the index value of each test index and the system saturation threshold corresponding to each test index, and the request step is adjusted more smoothly and accurately through the closeness, which can further improve the stability of the increase in concurrency.
[0122] The reference adjustment step of the request is adjusted according to the following expression to obtain the request adjustment step:
[0123] Step=Base×e -λ×(1-C) ;
[0124] Wherein, Step is the request adjustment step, Base is the reference adjustment step, λ is the step adjustment coefficient, and C is the closeness.
[0125] Thus, the request adjustment step is determined by the above expression, and the request adjustment step that changes smoothly can be determined according to the closeness. When the business platform is closer to the business saturation state, a smaller request adjustment step is used as much as possible to further improve the stability of the increase in concurrency.
[0126] Thus, the difference between the index value of the test index and the system saturation threshold corresponding to each test index is used to determine different step adjustment coefficients, and then the step adjustment system is controlled to adjust the concurrency that can be adjusted. When the difference is large, a higher step adjustment coefficient is determined to make the concurrency increase faster. When the difference is small, a smaller step adjustment coefficient is determined to make the concurrency increase slower. The request adjustment step is dynamically reduced when the business platform is close to the business saturation state, the pressure increase speed is controlled, the situation that the business platform collapses instantaneously due to the "pressure" of single increase is reduced, the concurrency is increased stably, and the critical performance point of the business platform at the end of the pressure test is more easily determined.
[0127] The way of step S103 determining whether the business platform is in the business saturation state is described below.
[0128] In an implementation mode, the pressure test platform can determine whether the following conditions are met, and determine whether the business platform is in the business saturation state based on the determination result:
[0129] Condition one
[0130] Based on the index value of the test index obtained in the last continuous first number of time intervals, it is determined whether there is a system in the business saturation state in each business system accessed by the business platform.
[0131] Wherein, the first number can be one of 1, 2, 3, 4, and 5.
[0132] Specifically, the pressure test platform can determine a judgment index value based on the index values of the test indexes obtained in the last first number of continuous time intervals, and determine whether there is a system in a business saturation state in the business systems accessed by the business platform by comparing whether the judgment index value exceeds a preset system saturation threshold.
[0133] In a case where the first number is 1, the pressure test platform can use the index values of the test indexes of each system obtained in the last time interval as the judgment index values, and compare whether the judgment index values exceed the preset system saturation threshold. If the index value of the test index of a system exceeds the preset system saturation threshold,
[0134] In a case where the first number is not 1, for each test index, the pressure test platform uses the average value of the index values of the test index in the last first number of time intervals as the judgment index value, and compares whether the judgment index value exceeds the preset system saturation threshold.
[0135] Condition two
[0136] Based on the index values of the business response indexes obtained in the last second number of continuous time intervals, it is determined whether there is a time length mutation in the response of the business platform to the business request.
[0137] In an implementation manner, the pressure test platform can determine whether there is a time length mutation in the response of the business platform to the business request based on whether the statistical characteristics of the index values of the time length of the response of the business platform to the business request in the second number of time intervals have a significant mutation.
[0138] In another implementation manner, the pressure test platform can determine whether there is a time length mutation in the response of the business platform to the business request by determining whether the difference between the maximum value and the minimum value of the time length of the response of the business platform to the business request obtained in the last second number of continuous time intervals exceeds a preset mutation threshold.
[0139] Condition three
[0140] Based on the index values of the business response indexes obtained in the last second number of continuous time intervals, it is determined whether there is a mutation in the success rate of the successful response of the business platform to the business request.
[0141] In an implementation manner, the pressure test platform can determine whether there is a mutation in the success rate of the successful response of the business platform to the business request based on whether the statistical characteristics of the index values of the success rate of the successful response of the business platform to the business request in the second number of time intervals have a significant mutation.
[0142] In another implementation, the pressure testing platform can determine whether the success rate of the service platform in successfully responding to the service request obtained in the last second number of continuous time intervals is lower than a preset success rate threshold, and if so, determine that the success rate of the service platform in successfully responding to the service request has changed abruptly.
[0143] Condition four
[0144] Based on the index values of the service response indexes obtained in the last second number of continuous time intervals, the pressure testing platform can determine whether the transaction processing rate per second of the service platform has decreased.
[0145] In one implementation, for the transaction processing rate per second of adjacent two time intervals, the pressure testing platform can obtain the difference between the transaction processing rate per second of the time interval later and the transaction processing rate per second of the time interval earlier, and if there is a difference less than a preset difference threshold, determine whether the transaction processing rate per second of the service platform has decreased, and if all the differences are greater than or equal to the preset difference threshold, determine that the transaction processing rate per second of the service platform has not decreased. If the difference between the transaction processing rate per second of adjacent two time intervals is 0, it means that the transaction processing rate per second of the service platform has stopped growing, and this situation can also be determined as the transaction processing rate per second of the service platform has decreased.
[0146] In another implementation, the pressure testing platform can perform curve fitting on the transaction processing rate per second of the third number of time intervals as the dependent variable and time as the independent variable, obtain a processing rate expression of the transaction processing rate per second changing with time, perform derivative calculation on the processing rate expression, and according to the derivative expression, determine whether the change amount of the transaction processing rate per second of the service platform has a value less than a preset processing rate change threshold, and if so, determine that the transaction processing rate per second of the service platform has decreased, otherwise, determine that the transaction processing rate per second of the service platform has not decreased.
[0147] The following describes the way of determining whether the service platform is in a service saturation state based on the determination result.
[0148] In one implementation, if there are at least a preset number of determination results of the conditions as yes in the obtained determination results, the pressure testing platform can determine that the service platform is in a service saturation state, wherein the preset number can include any one of 1, 2, 3, and 4.
[0149] In another implementation, for the condition one, the condition two or the condition three, if the pressure test platform determines that at least one of the three conditions is yes, the condition four is determined whether it is met, and if it is met, the business platform is determined to be in the business saturation state. That is, if the pressure test platform determines that the business platform meets the condition four and at least one of the condition one, the condition two or the condition three according to the determination result, the business platform is determined to be in the business saturation state.
[0150] As can be seen from the above, based on the index values of the obtained test indicators in the system performance index, the time length of responding to the business request and the success rate of the business platform successfully responding to the business request, it is determined whether the business platform is in the business saturation state. Through multiple index dimensions, more accurate and timely judgment can be made when the business platform is in the business saturation state, and more accurate pressure test results can be obtained.
[0151] Corresponding to the above business platform pressure test method, an embodiment of the present application also provides a business platform pressure test device.
[0152] In an embodiment of the present application, referring to Figure 3 The structure diagram of a business platform pressure test device provided by the present application is shown in the figure, and the device comprises:
[0153] The pressure test starting module 301 is used for continuously simulating and generating business requests according to the concurrency of business requests in the real business scene in response to the starting of the pressure test, and sending the generated business requests to the business platform to be tested, so that the business platform responds to the received business requests. Wherein, the business platform is connected with multiple business systems.
[0154] The index value obtaining module 302 is used for obtaining the index values of each business system for each test index in the process of the business platform responding to the business request according to the time interval. Wherein, the test index comprises: system performance index and business response index.
[0155] The saturation state judgment module 303 is used for judging whether the business platform is in the business saturation state based on the obtained index values.
[0156] The step adjustment module 304 is used for determining the request adjustment step based on the obtained index values if the business platform is not in the business saturation state, and increasing the concurrency based on the request adjustment step.
[0157] The test result generation module 305 is used for stopping generating business requests if the business platform is in the business saturation state, and generating the pressure test result of the business platform based on the obtained index values.
[0158] It can be seen from the above that, in the service platform pressure test method provided by the embodiment of the application, the concurrency of the service in the real service scenario is simulated to generate a service request, and the generated service request is sent to the service platform to be tested, so that the service platform responds to the service request to perform corresponding data processing, thereby realizing pressure test on the service platform. In the above pressure test process, the index values of the test indexes of each service system are obtained at preset time intervals, and whether the service platform is in a service saturation state is judged based on the index values. If the service platform is not in the service saturation state, the request adjustment step is determined, and then the concurrency of the generated service request is increased based on the request adjustment step. In this way, the test pressure simulated on the service platform in the above pressure test process can be dynamically adjusted. Then, by obtaining the latest index values of the test indexes of each service system at the time intervals, whether the service platform is in the service saturation state can be judged in real time, thereby realizing accurate and stable service saturation state identification of the service platform. In this way, the generation of the service request can be stopped accurately when the service platform is in the service saturation state, and the pressure test result can be accurately generated, and then whether the service platform meets the industry requirements can be accurately confirmed based on the test result.
[0159] In an embodiment of the application, the step adjustment module 304 is specifically configured to obtain, for each service system, a difference between the index values of the test indexes of the service system and the system saturation threshold values corresponding to the test indexes, wherein the index value of the test index of the service system is the system saturation threshold value corresponding to the test index, which indicates that the service system is in the service saturation state under the test index; based on the obtained difference, a space level of increasing the concurrency of the service request is determined, wherein the higher the space level is, the higher the concurrency that can be adjusted is; a step adjustment coefficient is determined based on the space level, wherein the step adjustment coefficient is positively correlated with the space level; and the reference adjustment step of the request is adjusted using the step adjustment coefficient to obtain the request adjustment step.
[0160] In this way, different step adjustment coefficients are determined by the size of the difference between the index values of the test indexes and the system saturation threshold values corresponding to the test indexes, and then the step adjustment system is controlled to adjust the concurrency that can be adjusted. When the difference is large, a higher step adjustment coefficient is determined, so that the concurrency is adjusted at a faster speed. When the difference is small, a smaller step adjustment coefficient is determined, so that the concurrency is adjusted at a slower speed. In this way, when the service platform approaches the service saturation state, the request adjustment step is dynamically reduced, the pressure increase speed is controlled, the situation that the service platform is instantaneously collapsed due to the "pressure" increased at a single time is reduced, the concurrency is steadily increased, and the critical performance point of the service platform can be more easily determined when the pressure test is completed.
[0161] In one embodiment of the present application, the step adjustment module 304 is specifically configured to determine the closeness between the index value corresponding to the minimum difference in the obtained differences and the system saturation threshold, and adjust the requested reference adjustment step length using the step adjustment coefficient and the closeness to obtain the requested adjustment step length.
[0162] In this way, the closeness between the index value and the system saturation threshold is calculated according to the minimum difference in the difference between the index value of each test index and the system saturation threshold corresponding to each test index, and the requested adjustment step length is adjusted more smoothly and accurately through the closeness, which can further improve the smoothness of the increase in concurrency.
[0163] In one embodiment of the present application, the step adjustment module 304 is specifically configured to adjust the requested reference adjustment step length according to the following expression to obtain the requested adjustment step length: Step = Base × e -λ×(1-C) ; wherein Step is the requested adjustment step length, Base is the reference adjustment step length, λ is the step adjustment coefficient, and C is the closeness.
[0164] In this way, the requested adjustment step length is determined using the above expression, which can determine the smooth change of the requested adjustment step length according to the closeness, and a smaller requested adjustment step length is used as much as possible when the business platform is closer to the business saturation state, further improving the smoothness of the increase in concurrency.
[0165] In one embodiment of the present application, the saturation state judgment module 303 is specifically configured to determine whether the following conditions are met, and determine whether the business platform is in a business saturation state based on the judgment result: whether there is a system in a business saturation state in each business system accessed by the business platform based on the index values of the test indexes obtained in the last continuous first number of time intervals; whether there is a time length mutation in the response of the business platform to the business request based on the index values of the business response indexes obtained in the last continuous second number of time intervals; whether there is a mutation in the success rate of the business platform successfully responding to the business request based on the index values of the business response indexes obtained in the last continuous second number of time intervals; and whether there is a decrease in the growth rate of the transaction processing capacity per second of the business platform based on the index values of the business response indexes obtained in the last continuous second number of time intervals.
[0166] In one embodiment of the present application, the test result generation module 305 is specifically configured to obtain a system link formed by the business systems responding to each type of business request in response order; and analyze the business system with an abnormal response time and / or the business system with abnormal system performance in the system link corresponding to each type based on the obtained index values.
[0167] In this way, the response time length change of each service system in the system link, the jump point of the index value of the system performance index, and other data can be determined according to the multi-dimensional system performance index and the response time length, and the performance degradation trend in the system link and the bottlenecked service system can be determined.
[0168] The embodiment of the present application also provides an electronic device, such as Figure 4 As shown in the figure, the electronic device comprises a processor 401, a communication interface 402, a memory 403 and a communication bus 404, wherein the processor 401, the communication interface 402 and the memory 403 complete mutual communication through the communication bus 404.
[0169] The memory 403 is used for storing a computer program.
[0170] The processor 401 is used for executing the program stored in the memory 403, and realizes the service platform pressure test method as described above.
[0171] The communication bus mentioned in the above electronic device can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0172] The communication interface is used for communication between the above electronic device and other devices.
[0173] The memory can comprise a random access memory (RAM) and can also comprise a non-volatile memory (NVM), for example at least one disk memory. Optionally, the memory can also be at least one storage device located away from the aforementioned processor.
[0174] The processor described above can be a general processor, including a central processing unit (CPU), a network processor (NP), etc.; can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.
[0175] In yet another embodiment provided by the present application, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program. The computer program is executed by a processor to implement the steps of any of the service platform stress testing methods described above.
[0176] In yet another embodiment provided by the present application, a computer program product containing instructions is provided, which, when executed on a computer, causes the computer to perform any of the service platform stress testing methods described above.
[0177] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be transferred from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) manner. The computer readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media. The available media can be a magnetic medium (for example, floppy disk, hard disk, magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, solid state disk (SSD)) and the like.
[0178] It is to be noted that, in the present text, the terms such as first and second, and the like, are used merely to differentiate one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between such entities or operations. Moreover, the terms "comprising", "containing", or any other variant thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements in the list, but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the statement "comprising a" does not exclude the existence of additional identical elements in the process, method, article, or apparatus that includes the stated element.
[0179] The various embodiments described in the present specification are described in a related manner, and the same or similar parts among the various embodiments can be mutually referred to, and each embodiment focuses on the difference from other embodiments. In particular, for the device, electronic device, storage medium, and computer program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the part of the description of the method embodiments.
[0180] The above only describes the preferred embodiments of the present application, and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A service platform stress testing method, characterized in that: The method comprises: In response to the start of the stress test, continuously simulating the generation of business requests according to the concurrency of business requests in a real business scenario, and sending the generated business requests to the business platform to be tested, so that the business platform responds to the received business requests, wherein the business platform is connected to multiple business systems; Obtaining, at time intervals, the index values of each business system for each test index during the process of the business platform responding to a business request, wherein the test index includes: a system performance index and a business response index; Based on the obtained indicator value, determining whether the service platform is in a service saturation state; If the service is not in a saturated state, determining a request adjustment step size based on the obtained indicator value, and increasing the concurrency based on the request adjustment step size; If the business is in a saturated state, the generation of business requests is stopped, and a stress test result of the business platform is generated based on the obtained indicator value.
2. The method according to claim 1, characterized in that The step of determining the requested adjustment step size based on the obtained indicator value includes: For each business system, the difference between the index value of each test index under the business system and the system saturation threshold corresponding to each test index is obtained, wherein when the index value of the test index of the business system is equal to the corresponding system saturation threshold, it indicates that the business system is in a business saturation state under the test index; Determining a space level for increasing the concurrency of service requests based on the obtained difference, wherein a higher space level results in a higher concurrency; determining a step size adjustment coefficient based on the spatial level, wherein the step size adjustment coefficient is positively correlated with the spatial level; The requested reference adjustment step size is adjusted using the step size adjustment coefficient to obtain the requested adjustment step size.
3. The method according to claim 2, characterized in that The step size adjustment coefficient is used to adjust the requested reference adjustment step size to obtain the requested adjustment step size, including: Determine the degree of proximity between the index value corresponding to the minimum difference among the obtained differences and the system saturation threshold; The requested reference adjustment step size is adjusted using the step size adjustment coefficient and the proximity to obtain a requested adjustment step size.
4. The method according to claim 3, characterized in that The adjusting the requested reference adjustment step size using the step size adjustment coefficient and the proximity to obtain the requested adjustment step size includes: Adjust the requested baseline adjustment step size according to the following expression to obtain the requested adjustment step size: Step=Base×e -λ×(1-C) ; Wherein, Step is the requested adjustment step size, Base is the benchmark adjustment step size, λ is the step size adjustment coefficient, and C is the degree of proximity.
5. The method according to any one of claims 1 to 4, characterized in that The determining, based on the obtained indicator value, whether the service platform is in a service saturation state includes: Determine whether the following conditions are met, and determine whether the service platform is in a service saturation state based on the determination result: Based on the indicator values of the test indicators obtained at the most recent first number of consecutive time intervals, determining whether there is a system in a service saturation state among the service systems connected to the service platform; Based on the indicator values of the service response indicator obtained at the most recent second number of consecutive time intervals, determining whether there is a sudden change in the time length of the service platform responding to the service request; Based on the indicator values of the business response indicator obtained at the second number of consecutive time intervals, determining whether there is a sudden change in the success rate of the business platform in successfully responding to the business request; Based on the indicator values of the business response indicator obtained at the second number of consecutive time intervals, it is determined whether the transaction volume per second of the business platform has a decreasing growth rate.
6. The method according to any one of claims 1 to 4, characterized in that Generating the stress test result of the business platform based on the obtained indicator value includes: Obtaining system links formed by business systems responding to various types of business requests in response order; Based on the obtained indicator values, the system links corresponding to each type are analyzed to determine whether there are business systems with abnormal response times and / or business systems with abnormal system performance.
7. A service platform stress testing device, characterized in that: The device comprises: A stress test initiation module is configured to, in response to the initiation of the stress test, continuously simulate and generate business requests according to the concurrency of business requests in a real business scenario, and send the generated business requests to the business platform to be tested, so that the business platform responds to the received business requests, wherein the business platform is connected to multiple business systems; An indicator value obtaining module is used to obtain, at time intervals, the indicator values of each business system for each test indicator in the process of the business platform responding to a business request, wherein the test indicators include: system performance indicators and business response indicators; A saturation state judgment module, used to judge whether the service platform is in a service saturation state based on the obtained indicator value; a step size adjustment module, configured to determine a request adjustment step size based on the obtained indicator value if the service is not in a saturated state, and increase the concurrency based on the request adjustment step size; The test result generating module is used to stop generating service requests if the service is in a saturated state, and generate a stress test result of the service platform based on the obtained indicator value.
8. The device according to claim 7, characterized in that The step size adjustment module is specifically configured to obtain, for each business system, the difference between the index value of each test index under the business system and the system saturation threshold corresponding to each test index, wherein the index value of the test index of the business system is equal to the corresponding system saturation threshold, indicating that the business system is in a business saturation state under the test index; based on the obtained difference, determine the space level for increasing the concurrency of business requests, wherein the higher the space level, the higher the concurrency that can be increased; determine the step size adjustment coefficient based on the space level, wherein the step size adjustment coefficient is positively correlated with the space level; and use the step size adjustment coefficient to adjust the requested baseline adjustment step size to obtain the requested adjustment step size; and / or The step size adjustment module is specifically configured to determine a degree of proximity between an indicator value corresponding to a minimum difference among the obtained differences and a system saturation threshold; and to adjust a requested baseline adjustment step size using the step size adjustment coefficient and the degree of proximity to obtain a requested adjustment step size; and / or The step adjustment module is specifically used to adjust the requested base adjustment step according to the following expression to obtain the requested adjustment step: Step = Base × e -λ×(1-C) ; Wherein, Step is the requested adjustment step size, Base is the benchmark adjustment step size, λ is the step size adjustment coefficient, and C is the degree of proximity; and / or The saturation state judgment module is specifically configured to judge whether the following conditions are met, and determine whether the service platform is in a service saturation state based on the judgment result: judging whether there is a system in a service saturation state among the service systems accessed by the service platform based on the index values of the test index obtained in the most recent first number of consecutive time intervals; judging whether there is a sudden change in the time length of the service platform responding to service requests based on the index values of the service response index obtained in the most recent second number of consecutive time intervals; judging whether there is a sudden change in the success rate of the service platform successfully responding to service requests based on the index values of the service response index obtained in the most recent second number of consecutive time intervals; and / or The test result generation module is specifically used to obtain the system links formed by the business systems that respond to various types of business requests in the order of response; based on the obtained indicator values, analyze the system links corresponding to each type to see if there are business systems with abnormal response times and / or business systems with abnormal system performance.
9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory for storing computer programs; A processor, configured to implement the method steps described in any one of claims 1 to 6 when executing a program stored in a memory.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps of any one of claims 1 to 6 are implemented.