CN111666194A - Pressurization parameter self-adaptive adjusting method and device, computer equipment and storage medium - Google Patents

Pressurization parameter self-adaptive adjusting method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111666194A
CN111666194A CN202010437636.8A CN202010437636A CN111666194A CN 111666194 A CN111666194 A CN 111666194A CN 202010437636 A CN202010437636 A CN 202010437636A CN 111666194 A CN111666194 A CN 111666194A
Authority
CN
China
Prior art keywords
parameter
correlation function
positive correlation
pressurization
users
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010437636.8A
Other languages
Chinese (zh)
Other versions
CN111666194B (en
Inventor
熊昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202010437636.8A priority Critical patent/CN111666194B/en
Priority to PCT/CN2020/098809 priority patent/WO2021139103A1/en
Publication of CN111666194A publication Critical patent/CN111666194A/en
Application granted granted Critical
Publication of CN111666194B publication Critical patent/CN111666194B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/24Marginal checking or other specified testing methods not covered by G06F11/26, e.g. race tests
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3457Performance evaluation by simulation

Abstract

The invention discloses a pressurization parameter self-adaptive adjusting method, a pressurization parameter self-adaptive adjusting device, computer equipment and a storage medium. The method comprises the following steps: generating a first positive correlation function, a second positive correlation function and a third positive correlation function according to the number of online users and the number of requests of the users per second; acquiring a load pressurization parameter output by a first positive correlation function, a delay pressurization parameter output by a second positive correlation function and an error rate pressurization parameter output by a third positive correlation function according to the number of initial online users and the number of initial users per second requests; adjusting the load pressurization parameter to be greater than or equal to a first performance peak indicator, and adjusting the delayed pressurization parameter to be less than or equal to a second performance peak indicator, and adjusting the error rate pressurization parameter to be less than or equal to a third performance peak indicator; and determining the maximum performance index of the server of the tested equipment according to the number of online users positively correlated to the three pressurizing parameters and the number of requests of the users per second. The invention can adjust the pressurizing parameters in an adaptive way.

Description

Pressurization parameter self-adaptive adjusting method and device, computer equipment and storage medium
Technical Field
The invention relates to the field of interface testing, in particular to a pressurization parameter self-adaptive adjusting method, a pressurization parameter self-adaptive adjusting device, computer equipment and a storage medium.
Background
When an http server interface is called at present, interactive data in the interface is often small, that is, network bandwidth is difficult to become a bottleneck, so that http server performance indexes mainly concerned by a user are request number per second, server CPU load, request average delay value and request error number.
At present, adjustment is carried out through the prior art, but in the prior http performance testing tool, the pressurizing parameters need to be adjusted manually and continuously so that the concerned performance indexes reach certain standards, the performance index testing process becomes very complicated, a large amount of time is usually spent by testing personnel in the parameter adjusting process, and when the testing environment is changed correspondingly, the prior http performance testing tool has poor adaptability, the pressurizing parameters need to be adjusted manually and repeatedly, and the performance index testing which is not favorable for stable and automatic regression is not facilitated.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a computer device and a storage medium for adaptively adjusting a pressurizing parameter, which are used to improve adaptability to a test environment during a performance test.
A pressurization parameter adaptive adjustment method comprises the following steps:
generating a first positive correlation function of the load information of the tested equipment, a second positive correlation function of the average delay value of the request and a third positive correlation function of the request error rate according to the number of the online users and the number of the requests of the users per second;
when a test request of a current test environment is received, acquiring the number of initial online users and the number of initial users per second requests associated with the current test environment;
in a preset request time period, acquiring a load pressurization parameter output by the first positive correlation function, a delay pressurization parameter output by the second positive correlation function and an error rate pressurization parameter output by the third positive correlation function according to the number of the initial online users and the number of requests of the initial users per second;
receiving all parameter adjustment instructions, adjusting the load pressurization parameter to be greater than or equal to a first performance peak index, adjusting the delay pressurization parameter to be less than or equal to a second performance peak index, and adjusting the error rate pressurization parameter to be less than or equal to a third performance peak index;
and after parameter adjustment is completed, determining the maximum performance index of the server of the tested equipment under the current test environment according to the number of online users and the number of requests of the users per second which are positively correlated with the three pressurizing parameters.
A pressurization parameter adaptive adjustment device, comprising:
the first generation module is used for generating a first positive correlation function of the load information of the tested equipment, a second positive correlation function of the average delay value of the request and a third positive correlation function of the request error rate according to the number of online users and the number of requests of the users per second;
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring the number of initial online users and the number of initial users per second requests which are related to the current test environment when receiving a test request of the current test environment;
a second obtaining module, configured to obtain, in a preset request time period, a load pressurization parameter output by the first positive correlation function, a delay pressurization parameter output by the second positive correlation function, and an error rate pressurization parameter output by the third positive correlation function according to the number of initial online users and the number of initial users requested per second;
the adjusting module is used for receiving all parameter adjusting instructions, adjusting the load pressurization parameter to be greater than or equal to a first performance peak index, adjusting the delay pressurization parameter to be less than or equal to a second performance peak index, and adjusting the error rate pressurization parameter to be less than or equal to a third performance peak index;
and the first determining module is used for determining the maximum performance index of the server of the tested equipment under the current testing environment according to the number of online users and the number of requests of the users per second which are positively correlated with the three pressurizing parameters after parameter adjustment is completed.
A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the above-mentioned pressurization parameter adaptive adjustment method when executing the computer program.
A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, implements the above-mentioned pressurization parameter adaptive adjustment method.
According to the self-adaptive pressurizing parameter adjusting method, the device, the computer equipment and the storage medium, the load pressurizing parameter, the delay pressurizing parameter and the error rate pressurizing parameter under the current test environment are calculated according to the preset first positive correlation function, the preset second positive correlation function and the preset third positive correlation function, and the load pressurizing parameter, the delay pressurizing parameter and the error rate pressurizing parameter are compared with the first performance peak index, the second performance peak index and the third performance peak index under the current test environment to realize the adjustment of the pressurizing parameter and determine the maximum performance index of the server of the tested equipment under the current test environment, so that the problem that the current http performance testing tool needs to adjust the pressurizing parameter manually and has poor adaptation to the transformed test environment is solved, and the problem that the pressurizing parameter is adjusted manually in the http performance testing is avoided on one hand, and on the other hand, the method can be suitable for various test environments, can adaptively adjust the pressurizing parameters after the performance peak value indexes are converted according to the test environments, and is favorable for the performance index test of automatic regression.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a schematic diagram of an application environment of a method for adaptive adjustment of a pressurization parameter according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for adaptive adjustment of pressurization parameters according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an adaptive pressure parameter adjusting apparatus according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a computer device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The adaptive pressurizing parameter adjusting method provided by the invention can be applied to the application environment shown in fig. 1, wherein a client communicates with a server through a network. Among other things, the client may be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. The server may be implemented as a stand-alone server or as a server cluster consisting of a plurality of servers.
In an embodiment, as shown in fig. 2, a method for adaptively adjusting a pressurization parameter is provided, which is described by taking the server in fig. 1 as an example, and includes the following steps:
s10, generating a first positive correlation function of the load information of the tested device, a second positive correlation function of the average delay value of the request and a third positive correlation function of the request error rate according to the number of online users and the number of requests of the users per second;
understandably, the execution subject of the embodiment is a server corresponding to the adaptive http performance pressure measurement tool.
In the embodiment, a first positive correlation function of the load information of the tested equipment is generated according to the number of online users and the number of requests of the users per second; understandably, in the using process of the tested device, firstly, a pressurizing parameter function g (C, R) is formed based on the number of online users C and the number of users per second requests R, and then, on the premise that the function value of the pressurizing parameter function g (C, R) is not 0, the load information of the tested device, which is actually detected, can firstly follow the number of the online users and the number of the users per second requestsThe increase gradually increases and slows down after a certain time, which characteristic follows the characteristics of a logarithmic function. In another embodiment, on the premise that the function value of the pressurizing parameter function g (C, R) formed based on the number C of online users and the number R of requests per second of users is 0, g (C, R) is 0, and at this time, the first positive correlation function is a constant function. Based on the above, the first positive correlation function in the present embodiment can be specifically abstracted as
Figure BDA0002502886750000051
Wherein c is the load information of the tested equipment; g (C, R) may also be understood as a pressurizing parameter function, where g (C, R) ═ 0 and C and R do not affect each other when one of C and R in the pressurizing parameter function is 0, and g (C, R) may be assumed as g (C, R) ═ C × R; a and b are a first environmental parameter and a second environmental parameter under the current test environment of the tested device, the first environmental parameter and the second environmental parameter can be set to be a constant according to the current test environment, wherein both a and b are larger than 0; x should be greater than 1, the first positive correlation function is a function of the positive correlation type.
In the embodiment, a second positive correlation function of the average delay value of the requests is generated according to the number of online users and the number of requests of the users per second; understandably, in the using process of the device under test, firstly, on the premise that the function value of the pressurizing parameter function w (C, R) is greater than or equal to the first preset positive integer based on the number of online users C and the number of requests of users per second, the trend of the request average delay value of the device under test actually detected will gradually increase and the slope reflected by the trend will gradually increase along with the increase of the number of online users and the number of requests of users per second, and the characteristic conforms to the characteristic of the exponential function. In another embodiment, on the premise that the function value of the pressurization parameter function w (C, R) formed by the number of online users C and the number of users requesting R per second is greater than or equal to 0 and smaller than the first preset positive integer, the second positive correlation function is a constant function. Based on the above, the second positive correlation function in the present embodiment can be specifically abstracted as l ═ i × nw(C,R)-i*nu(ii) a Wherein l is a request average delay value; w (C, R) is also understood to meanIn a pressurizing parameter function, when one of C and R is 0, w (C, R) ═ 0, and C and R do not have mutual influence, w (C, R) may be assumed to be w (C, R) ═ C × R; n is a third environmental parameter under the current test environment of the tested device, the third environmental parameter can be set to be a constant according to the current test environment, wherein i is larger than 0; n is the base of the exponential function, n is greater than 1, and n is greater than 1 to enable the second positive correlation function to be a positive correlation type function.
In the embodiment, a third positive correlation function of the request error rate is generated according to the number of online users and the number of requests of the users per second; understandably, in the using process of the tested device, firstly, on the premise that a pressurizing parameter function t (C, R) is formed based on the number of online users C and the number of requests of users per second, and then, under the premise that the function value of the pressurizing parameter function t (C, R) is greater than or equal to a second preset positive integer, the trend of the request error rate of the tested device actually detected will gradually increase and approach to 1 infinitely along with the increase of the number of online users and the number of requests of users per second, and the characteristic conforms to the characteristic of a logarithmic function. In another embodiment, on the premise that the function value of the pressurization parameter function w (C, R) formed by the number of online users C and the number of users requesting R per second is greater than or equal to 0 and smaller than a second preset positive integer, here, the third positive correlation function is 0. Based on the above, the third positive correlation function in the present embodiment can be specifically abstracted as
Figure BDA0002502886750000061
Wherein e is a request average delay value; t (C, R) may also be understood as a pressurizing parameter function, where t (C, R) is 0 when one of C and R is 0, and C and R have no mutual influence, and t (C, R) may be assumed as t (C, R) is C; k and z are fourth environment parameters under the current test environment of the tested device, the fourth environment parameters can be set to be a constant according to the current test environment, wherein k is larger than 0; z is the base number of the logarithmic function, z is more than 1, and the third positive correlation function can be a positive correlation type function only if z is more than 1; w (t (C, R)) is a function in the pressurizing parameter function t (C, R), wherein the function has a characteristic that tends to converge at t (C, R)Near positive infinity, w (t (C, R)) is a constant function.
S20, when receiving a test request of a current test environment, acquiring the number of initial online users and the number of initial users per second requests related to the current test environment;
understandably, the test request requests at least one test interface connected with the server to perform the test; one current testing environment may be associated with at least one testing interface, which may be an order payment interface, a commodity description interface, and the like.
In this embodiment, when a test request associated with a current test environment sent by a user is received, an initial online user number and an initial user number per second in a preset request time period (an actual time for sending the test request) are obtained by a resource monitoring module.
And S30, in a preset request time period, acquiring the load pressurization parameter output by the first positive correlation function, the delay pressurization parameter output by the second positive correlation function and the error rate pressurization parameter output by the third positive correlation function according to the number of the initial online users and the number of the initial users requested per second.
In this embodiment, the load pressurizing parameter, the delay pressurizing parameter and the error rate pressurizing parameter are respectively obtained through the first positive correlation function, the second positive correlation function and the third positive correlation function, where the load pressurizing parameter is load information of the device under test output by the first positive correlation function, the delay pressurizing parameter is a requested average delay value output by the second positive correlation function, and the error rate pressurizing parameter is a requested error rate output by the third positive correlation function.
S40, receiving all parameter adjustment instructions, adjusting the load pressurization parameter to be greater than or equal to a first performance peak index, adjusting the delay pressurization parameter to be less than or equal to a second performance peak index, and adjusting the error rate pressurization parameter to be less than or equal to a third performance peak index;
in the present embodiment, the function g (C, R) of the pressurization parameter formed by the above-mentioned number C of online users and the number R of requests per second of users is satisfiedThe function value is not 0, under the condition that the function value of a pressurizing parameter function w (C, R) formed by the number of online users C and the number of users per second R is larger than or equal to a first preset positive integer and the function value of a pressurizing parameter function t (C, R) formed by the number of online users C and the number of users per second R is larger than or equal to a second preset positive integer, a load pressurizing parameter, a delay pressurizing parameter and an error rate pressurizing parameter are respectively adjusted by a self-adaptive adjusting module through a first performance peak value index, a second performance peak value index and a third performance peak value index at the same time, wherein the first performance peak value index, the second performance peak value index and the third performance peak value index corresponding to the test interfaces under different test environments can be changed, and if the third performance peak value index corresponding to the request error rate of the order interface is e1The third performance peak index corresponding to the request error rate of the commodity description interface is e2Since the order payment interface is a more complex test interface than the commodity description interface, the order payment interface has a high requirement on the success rate (once the order payment interface fails to pay, the conditions of returning the commodity quota in the order payment interface and returning the result of the payment system will generate little overhead), but the commodity description interface has no high requirement on the success rate (even if the commodity description interface fails, the conditions of returning other component systems are not required), so that e1Less than e2
And S50, after parameter adjustment is completed, determining the maximum performance index of the server of the tested device under the current test environment according to the number of online users and the number of requests of users per second which are positively correlated with the three pressurizing parameters.
In this embodiment, after the result collection module determines that the adjustment of three pressurization parameters is completed (the adjustment of the load pressurization parameter is completed to be greater than or equal to the first performance peak value index, the adjustment of the delay pressurization parameter is completed to be less than or equal to the second performance peak value index, and the adjustment of the error rate pressurization parameter is completed to be less than or equal to the third performance peak value index), the maximum performance index of the server under the current test environment is calculated by using a formula q ═ C ═ R formed by the number of online users C and the number of requests R per second of the users, which are positively correlated with the three pressurization parameters after the adjustment is completed (since the first positive correlation function, the second positive correlation function, and the third positive correlation function are all positive correlation functions, when the independent variables C and R are increased, the three pressurization parameters of the dependent variable will also increase, and when the three pressurization parameters of the dependent variable are transformed, the independent variables C and R also change, at the moment, the online user number C and the user request number R per second) which are positively correlated with the three pressurizing parameters can be obtained, so that the performance index test is completed through the maximum performance index of the server, at the moment, q is the maximum value, and represents the maximum performance index of the server.
In the embodiment of steps S10 to S50, the adaptive adjustment of the pressure parameters solves the current tedious problem of manually adjusting the pressure parameters, thereby saving labor and time costs, avoiding errors caused by manually adjusting the pressure parameters, and being applicable to various current test environments, avoiding the influence of the change of the current test environment on the adjustment process of the pressure parameters, further facilitating the automatic performance index test, modeling and standardizing the performance index test process by the constructed mathematical model, further reducing errors caused by the performance index test, and improving the accuracy of the maximum performance index result of the server.
Further, after the obtaining of the load pressurization parameter output by the first positive correlation function, the delay pressurization parameter output by the second positive correlation function, and the error rate pressurization parameter output by the third positive correlation function, the method further includes:
when three adjusting conditions are detected to be met, generating all parameter adjusting instructions; the mediation condition includes: the load pressurization parameter is less than the first performance peak indicator, the delayed pressurization parameter adjustment is greater than the second performance peak indicator, and the error rate pressurization parameter adjustment is greater than the third performance peak indicator;
when detecting that one or two of the mediation conditions are not met, generating a partial parameter adjusting instruction, so as to determine the maximum performance index of the server of the tested device under the current test environment according to the number of online users and the number of requests of the users per second which are positively correlated with the three pressurizing parameters after completing the adjustment of the pressurizing parameters corresponding to the unsatisfied mediation conditions according to the partial parameter adjusting instruction;
and when all the adjusting conditions are not met, determining the maximum performance index of the server of the tested equipment under the current test environment according to the number of online users positively correlated to the three pressurizing parameters and the number of requests of the users per second.
The embodiment is used for judging whether the load pressurization parameter, the delayed pressurization parameter and the error rate pressurization parameter reach the performance peak value index, recording the pressurization parameter reaching the performance peak value index, and readjusting the pressurization parameter not reaching the performance peak value index, wherein the pressurization parameter refers to the load pressurization parameter, the delayed pressurization parameter and the error rate pressurization parameter, and the performance peak value is a first performance peak value index, a second performance peak value index and a third performance peak value index.
Further, after determining the maximum performance index of the server of the device under test in the current test environment, the method further includes:
and calculating executable operation items of the tested equipment under the current test environment according to the maximum performance index of the server, and performing relational connection on all the executable operation items in a data map form to combine a plurality of operation item groups containing the operation items.
Understandably, the execution items may be actual operations of various interfaces, such as pulling data from the interfaces, and the like.
According to the method and the device, the operating items which can be executed by the tested device under the current testing environment are calculated according to the maximum performance index of the server and the performance index required by the tested device to execute the operating items, wherein the operating items can be combined into the operating item group, the operating item group is presented in an intuitive data map form for a subsequent user to select, and the phenomenon that the tested device is crashed due to the fact that the maximum performance index is exceeded in the operating process is avoided.
Further, before receiving the test request of the current test environment, the method further includes:
and enabling the pressure device to simulate the user client behavior, and acquiring the preset number of test requests sent by the pressure device to a target interface according to the current test environment.
The embodiment is to enable a pressure device to simulate a user client to send out a preset number of http-related test requests to a test interface, wherein the pressure device, a resource monitoring module, a result collecting module and an adaptive adjusting module are integrated into an adaptive http performance pressure measuring tool.
Further, before the obtaining of the preset number of test requests sent by the pressure gauge according to the current test environment, the method further includes:
obtaining description information associated with the current testing environment from a preset path in the user client;
and generating an execution command for sending a preset number of test requests to the target interface according to the description information.
Understandably, the preset path is a storage path for storing description information to the user client, and the description information is file information for instructing the user client to send an information interaction protocol to a test interface in the current test environment, wherein an execution command for sending a preset number of test requests can be generated through the file information of the information interaction protocol.
Further, before receiving the test request of the current test environment, the method further includes:
and monitoring the network environment of the tested equipment under the current test environment in real time, and carrying out network debugging on the network environment according to an adjusting measure corresponding to a preset problem when the network environment has the preset problem.
Understandably, the preset problem may refer to a phenomenon that the network abnormality occurs in the device under test, and the connection between the device under test and the local area network fails due to the network abnormality. The network environment of the tested equipment can be preliminarily determined through the embodiment so as to solve the problem of network abnormality existing in the network environment in time, and the adjustment of the pressurization parameter in the performance index testing process is prevented from being directly influenced subsequently.
Further, the acquiring, in a preset request time period, the load pressurization parameter output by the first positive correlation function, the delay pressurization parameter output by the second positive correlation function, and the error rate pressurization parameter output by the third positive correlation function according to the initial online user number and the initial user number per second request, further includes:
when the first positive correlation function is confirmed to be not 0, acquiring the load pressurization parameter output by the first positive correlation function according to the number of the initial online users and the number of the initial users requested per second in a preset request time period;
when the second positive correlation function is confirmed to be larger than or equal to a first preset positive integer, acquiring the delayed pressurization parameter output by the second positive correlation function according to the number of the initial online users and the number of the initial users requested per second in a preset request time period;
and when the third positive correlation function is confirmed to be larger than or equal to a second preset positive integer, acquiring the error rate pressurization parameter output by the third positive correlation function according to the number of the initial online users and the number of the initial users requested per second in a preset request time period.
Understandably, the present embodiment is a condition under which three pressurization parameters are adjusted.
In summary, the foregoing provides a method for adaptively adjusting a pressurization parameter, in which a load pressurization parameter, a delay pressurization parameter, and an error rate pressurization parameter under a current test environment are calculated according to a preset first positive correlation function, a preset second positive correlation function, and a preset third positive correlation function, and the load pressurization parameter, the delay pressurization parameter, and the error rate pressurization parameter are compared with a first performance peak index, a second performance peak index, and a third performance peak index under the current test environment, so as to adjust the pressurization parameter, and determine a maximum performance index of a server of a device under test under the current test environment, which is obvious in the above description, the method solves the problem that a current http performance test tool needs to adjust the pressurization parameter manually and has poor adaptability to a transformed test environment, and therefore, on one hand, the method can avoid a tedious process of manually adjusting the pressurization parameter in the http performance test, and on the other hand, the method can be suitable for various test environments, can adaptively adjust the pressurizing parameters after the performance peak value indexes are converted according to the test environments, and is favorable for the performance index test of automatic regression.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In one embodiment, a pressurization parameter adaptive adjustment device is provided, and the pressurization parameter adaptive adjustment device corresponds to the pressurization parameter adaptive adjustment method in the above embodiment one to one. As shown in fig. 3, the adaptive pressurizing parameter adjusting device includes a first generating module 11, a first acquiring module 12, a second acquiring module 13, an adjusting module 14, and a first determining module 15. The functional modules are explained in detail as follows:
the first generation module 11 is used for generating a first positive correlation function of the load information of the tested equipment, a second positive correlation function of the average delay value of the request and a third positive correlation function of the request error rate according to the number of online users and the number of requests of the users per second;
a first obtaining module 12, configured to obtain, when a test request of a current test environment is received, an initial online user number and an initial user number per second associated with the current test environment;
a second obtaining module 13, configured to obtain, in a preset request time period, a load pressurization parameter output by the first positive correlation function, a delay pressurization parameter output by the second positive correlation function, and an error rate pressurization parameter output by the third positive correlation function according to the initial online user number and the initial user number per second;
an adjusting module 14, configured to receive all parameter adjusting instructions, adjust the load pressurization parameter to be greater than or equal to a first performance peak indicator, adjust the delay pressurization parameter to be less than or equal to a second performance peak indicator, and adjust the error rate pressurization parameter to be less than or equal to a third performance peak indicator;
and the first determining module 15 is configured to determine, after parameter adjustment is completed, a maximum performance index of the server of the device under test in the current test environment according to the number of online users and the number of requests of users per second, which are positively correlated to the three pressurizing parameters.
Further, the adaptive pressurizing parameter adjusting device further comprises:
the second generation module is used for generating all the parameter adjusting instructions when three adjusting conditions are detected to be met; the mediation condition includes: the load pressurization parameter is less than the first performance peak indicator, the delayed pressurization parameter adjustment is greater than the second performance peak indicator, and the error rate pressurization parameter adjustment is greater than the third performance peak indicator;
the second determining module is used for generating a part of parameter adjusting instructions when detecting that one or two of the adjusting conditions are not met, so as to determine the maximum performance index of the server of the tested device under the current test environment according to the number of online users and the number of requests of users per second positively correlated to the three pressurizing parameters after adjusting the pressurizing parameters corresponding to the unsatisfied adjusting conditions according to the part of parameter adjusting instructions;
and the third determining module is used for directly determining the maximum performance index of the server of the tested equipment under the current test environment according to the number of online users positively correlated to the three pressurizing parameters and the number of requests of the users per second when all the adjusting conditions are not met.
Further, the adaptive pressurizing parameter adjusting device further comprises:
and the combination module is used for calculating executable operation items of the tested equipment under the current test environment according to the maximum performance index of the server, and performing relational connection on all the executable operation items in a data map form to combine a plurality of operation item groups containing the operation items.
Further, the adaptive pressurizing parameter adjusting device further comprises:
and the sending module is used for enabling the pressure device to simulate the user client behavior and obtaining the preset number of test requests sent by the pressure device to the target interface according to the current test environment.
Further, the adaptive pressurizing parameter adjusting device further comprises:
a third obtaining module, configured to obtain description information associated with the current testing environment from a preset path in the user client;
and the third generation module is used for generating an execution command for sending a preset number of the test requests to the target interface according to the description information.
Further, the adaptive pressurizing parameter adjusting device further comprises:
and the debugging module is used for monitoring the network environment of the tested equipment in the current testing environment in real time, and carrying out network debugging on the network environment according to the adjusting measure corresponding to the preset problem when the network environment has the preset problem.
Further, the adaptive pressurizing parameter adjusting device further comprises:
a third obtaining module, configured to obtain the load pressurization parameter output by the first positive correlation function according to the initial online user number and the initial user number per second in a preset request time period when it is determined that the first positive correlation function is not 0;
a third obtaining module, configured to obtain the pressurization delay parameter output by the second positive correlation function according to the number of the initial online users and the number of the initial users requested per second in a preset request time period when it is determined that the second positive correlation function is greater than or equal to a first preset positive integer;
a fourth obtaining module, configured to, when it is determined that the third positive correlation function is greater than or equal to a second preset positive integer, obtain the error rate pressurization parameter output by the third positive correlation function according to the number of the initial online users and the number of the initial users requested per second in a preset request time period.
For the specific definition of the pressurization parameter adaptive adjustment device, reference may be made to the above definition of the pressurization parameter adaptive adjustment method, which is not described herein again. The modules in the pressurizing parameter adaptive adjusting device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data involved in the pressurizing parameter adaptive adjustment method. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of adaptive adjustment of a pressurization parameter.
In one embodiment, a computer device is provided, which includes a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the steps of the adaptive pressurization parameter adjustment method in the above embodiments, such as steps S10 to S50 shown in fig. 2. Alternatively, the processor, when executing the computer program, implements the functions of the respective modules/units of the pressurization parameter adaptive adjustment device in the above-described embodiment, for example, the functions of the modules 11 to 15 shown in fig. 3. To avoid repetition, further description is omitted here.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, the computer program, when being executed by a processor, implementing the steps of the pressurization parameter adaptive adjustment method in the above-described embodiments, such as the steps S10 to S50 shown in fig. 2. Alternatively, the computer program, when executed by the processor, implements the functions of the respective modules/units of the pressurization parameter adaptive adjustment device in the above-described embodiment, for example, the functions of the modules 11 to 15 shown in fig. 3. To avoid repetition, further description is omitted here.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A pressurization parameter adaptive adjustment method is characterized by comprising the following steps:
generating a first positive correlation function of the load information of the tested equipment, a second positive correlation function of the average delay value of the request and a third positive correlation function of the request error rate according to the number of the online users and the number of the requests of the users per second;
when a test request of a current test environment is received, acquiring the number of initial online users and the number of initial users per second requests associated with the current test environment;
in a preset request time period, acquiring a load pressurization parameter output by the first positive correlation function, a delay pressurization parameter output by the second positive correlation function and an error rate pressurization parameter output by the third positive correlation function according to the number of the initial online users and the number of requests of the initial users per second;
receiving all parameter adjustment instructions, adjusting the load pressurization parameter to be greater than or equal to a first performance peak index, adjusting the delay pressurization parameter to be less than or equal to a second performance peak index, and adjusting the error rate pressurization parameter to be less than or equal to a third performance peak index;
and after parameter adjustment is completed, determining the maximum performance index of the server of the tested equipment under the current test environment according to the number of online users and the number of requests of the users per second which are positively correlated with the three pressurizing parameters.
2. The adaptive pressurization parameter adjustment method according to claim 1, wherein after obtaining the load pressurization parameter outputted by the first positive correlation function, the delayed pressurization parameter outputted by the second positive correlation function, and the error rate pressurization parameter outputted by the third positive correlation function, the adaptive pressurization parameter adjustment method further comprises:
when three adjusting conditions are detected to be met, generating all parameter adjusting instructions; the mediation condition includes: the load pressurization parameter is less than the first performance peak indicator, the delayed pressurization parameter adjustment is greater than the second performance peak indicator, and the error rate pressurization parameter adjustment is greater than the third performance peak indicator;
when detecting that one or two of the mediation conditions are not met, generating a partial parameter adjusting instruction, so as to determine the maximum performance index of the server of the tested device under the current test environment according to the number of online users and the number of requests of the users per second which are positively correlated with the three pressurizing parameters after completing the adjustment of the pressurizing parameters corresponding to the unsatisfied mediation conditions according to the partial parameter adjusting instruction;
and when all the adjusting conditions are not met, determining the maximum performance index of the server of the tested equipment under the current test environment according to the number of online users positively correlated to the three pressurizing parameters and the number of requests of the users per second.
3. The adaptive pressurization parameter adjustment method according to claim 1, wherein after determining the server maximum performance index of the device under test in the current test environment, the method further comprises:
and calculating executable operation items of the tested equipment under the current test environment according to the maximum performance index of the server, and performing relational connection on all the executable operation items in a data map form to combine a plurality of operation item groups containing the operation items.
4. The adaptive pressurization parameter adjustment method according to claim 1, further comprising, before receiving a test request of a current test environment:
and enabling the pressure device to simulate the user client behavior, and acquiring the preset number of test requests sent by the pressure device to a target interface according to the current test environment.
5. The adaptive pressurization parameter adjustment method according to claim 4, wherein before obtaining the preset number of test requests sent by the pressure gauge according to the current test environment, the method further comprises:
obtaining description information associated with the current testing environment from a preset path in the user client;
and generating an execution command for sending a preset number of test requests to the target interface according to the description information.
6. The adaptive pressurization parameter adjustment method according to claim 1, further comprising, before receiving a test request of a current test environment:
and monitoring the network environment of the tested equipment under the current test environment in real time, and carrying out network debugging on the network environment according to an adjusting measure corresponding to a preset problem when the network environment has the preset problem.
7. The adaptive pressure parameter adjusting method according to claim 1, wherein the obtaining of the load pressure parameter outputted by the first positive correlation function, the delay pressure parameter outputted by the second positive correlation function, and the error rate pressure parameter outputted by the third positive correlation function according to the number of initial online users and the number of initial users requested per second in a preset request time period further comprises:
when the first positive correlation function is confirmed to be not 0, acquiring the load pressurization parameter output by the first positive correlation function according to the number of the initial online users and the number of the initial users requested per second in a preset request time period;
when the second positive correlation function is confirmed to be larger than or equal to a first preset positive integer, acquiring the delayed pressurization parameter output by the second positive correlation function according to the number of the initial online users and the number of the initial users requested per second in a preset request time period;
and when the third positive correlation function is confirmed to be larger than or equal to a second preset positive integer, acquiring the error rate pressurization parameter output by the third positive correlation function according to the number of the initial online users and the number of the initial users requested per second in a preset request time period.
8. A pressurization parameter adaptive adjustment device is characterized by comprising:
the first generation module is used for generating a first positive correlation function of the load information of the tested equipment, a second positive correlation function of the average delay value of the request and a third positive correlation function of the request error rate according to the number of online users and the number of requests of the users per second;
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring the number of initial online users and the number of initial users per second requests which are related to the current test environment when receiving a test request of the current test environment;
a second obtaining module, configured to obtain, in a preset request time period, a load pressurization parameter output by the first positive correlation function, a delay pressurization parameter output by the second positive correlation function, and an error rate pressurization parameter output by the third positive correlation function according to the number of initial online users and the number of initial users requested per second;
the adjusting module is used for receiving all parameter adjusting instructions, adjusting the load pressurization parameter to be greater than or equal to a first performance peak index, adjusting the delay pressurization parameter to be less than or equal to a second performance peak index, and adjusting the error rate pressurization parameter to be less than or equal to a third performance peak index;
and the first determining module is used for determining the maximum performance index of the server of the tested equipment under the current testing environment according to the number of online users and the number of requests of the users per second which are positively correlated with the three pressurizing parameters after parameter adjustment is completed.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the pressurization parameter adaptive adjustment method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, implements the pressurization parameter adaptive adjustment method according to any one of claims 1 to 7.
CN202010437636.8A 2020-05-21 2020-05-21 Pressurization parameter self-adaptive adjusting method and device, computer equipment and storage medium Active CN111666194B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010437636.8A CN111666194B (en) 2020-05-21 2020-05-21 Pressurization parameter self-adaptive adjusting method and device, computer equipment and storage medium
PCT/CN2020/098809 WO2021139103A1 (en) 2020-05-21 2020-06-29 Method and apparatus for adaptively adjusting pressurization parameter, computer device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010437636.8A CN111666194B (en) 2020-05-21 2020-05-21 Pressurization parameter self-adaptive adjusting method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111666194A true CN111666194A (en) 2020-09-15
CN111666194B CN111666194B (en) 2022-02-08

Family

ID=72384171

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010437636.8A Active CN111666194B (en) 2020-05-21 2020-05-21 Pressurization parameter self-adaptive adjusting method and device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN111666194B (en)
WO (1) WO2021139103A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116483718A (en) * 2023-04-25 2023-07-25 无锡市软测认证有限公司 System and method for realizing large-scale pressure test by utilizing big data

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500349B (en) * 2021-12-27 2023-08-08 天翼云科技有限公司 Cloud platform chaos testing method and device
CN115408249B (en) * 2022-10-31 2023-03-24 深圳依时货拉拉科技有限公司 Pressure testing method and device, computer equipment and storage medium
CN116866240B (en) * 2023-07-13 2024-04-12 上海庭臻信息科技有限公司 CAN bus test method, device and system, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103907315A (en) * 2011-09-16 2014-07-02 高通股份有限公司 Systems and methods for network quality estimation, connectivity detection, and load management
US20140298101A1 (en) * 2013-03-29 2014-10-02 Inventec Corporation Distributed pressure testing system and method
CN107480015A (en) * 2017-07-04 2017-12-15 网易(杭州)网络有限公司 Load test approach, device, system, storage medium and pressure survey server
CN109542777A (en) * 2018-11-07 2019-03-29 北京搜狗科技发展有限公司 A kind of method for testing pressure, device and readable medium
CN109597724A (en) * 2018-09-18 2019-04-09 北京微播视界科技有限公司 Service stability measurement method, device, computer equipment and storage medium
CN109783334A (en) * 2018-12-14 2019-05-21 平安普惠企业管理有限公司 Pressure test report-generating method, device, computer equipment and storage medium
CN110188027A (en) * 2019-05-31 2019-08-30 深圳前海微众银行股份有限公司 Performance estimating method, device, equipment and the storage medium of production environment
CN110971697A (en) * 2019-12-06 2020-04-07 深圳市网心科技有限公司 Redis single instance protection processing method and device, computer equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6915344B1 (en) * 1999-11-30 2005-07-05 Microsoft Corporation Server stress-testing response verification
CN102123061B (en) * 2011-03-28 2013-03-13 杭州电子科技大学 Method for determining performance of Web server
CN108959047B (en) * 2018-06-11 2022-05-03 奇安信科技集团股份有限公司 Pressure testing method and device based on service scene
CN110175110B (en) * 2019-05-31 2022-04-01 深圳前海微众银行股份有限公司 Pressure testing method, device, system, equipment and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103907315A (en) * 2011-09-16 2014-07-02 高通股份有限公司 Systems and methods for network quality estimation, connectivity detection, and load management
US20140298101A1 (en) * 2013-03-29 2014-10-02 Inventec Corporation Distributed pressure testing system and method
CN107480015A (en) * 2017-07-04 2017-12-15 网易(杭州)网络有限公司 Load test approach, device, system, storage medium and pressure survey server
CN109597724A (en) * 2018-09-18 2019-04-09 北京微播视界科技有限公司 Service stability measurement method, device, computer equipment and storage medium
CN109542777A (en) * 2018-11-07 2019-03-29 北京搜狗科技发展有限公司 A kind of method for testing pressure, device and readable medium
CN109783334A (en) * 2018-12-14 2019-05-21 平安普惠企业管理有限公司 Pressure test report-generating method, device, computer equipment and storage medium
CN110188027A (en) * 2019-05-31 2019-08-30 深圳前海微众银行股份有限公司 Performance estimating method, device, equipment and the storage medium of production environment
CN110971697A (en) * 2019-12-06 2020-04-07 深圳市网心科技有限公司 Redis single instance protection processing method and device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116483718A (en) * 2023-04-25 2023-07-25 无锡市软测认证有限公司 System and method for realizing large-scale pressure test by utilizing big data
CN116483718B (en) * 2023-04-25 2023-11-14 无锡市软测认证有限公司 System and method for realizing large-scale pressure test by utilizing big data

Also Published As

Publication number Publication date
CN111666194B (en) 2022-02-08
WO2021139103A1 (en) 2021-07-15

Similar Documents

Publication Publication Date Title
CN111666194B (en) Pressurization parameter self-adaptive adjusting method and device, computer equipment and storage medium
CN108376112B (en) Pressure testing method, device and readable medium
CN107341098B (en) Software performance testing method, platform, equipment and storage medium
WO2020238345A1 (en) Pressure test method, device, system, apparatus, and computer readable storage medium
CN109542712B (en) Server pressure testing method and device, computer equipment and storage medium
US6434513B1 (en) Method of load testing web applications based on performance goal
CA2650531A1 (en) Method, program and apparatus for optimizing configuration parameter set of system
CN113590403B (en) Pressure testing method, device, system, electronic equipment, storage medium and product
CN113986733A (en) Jar package based performance test method, device, equipment and storage medium
CN111176843A (en) Multi-dimension-based load balancing method and device and related equipment
CN113438106A (en) Content distribution network processing method and device and electronic equipment
CN112506619A (en) Job processing method, apparatus, electronic device, storage medium, and program product
CN110929994A (en) Enterprise associated risk analysis method, device, equipment and storage medium
WO2019169727A1 (en) Network traffic test method and apparatus, device, and computer-readable storage medium
CN110933514A (en) Video quality control method and device and computer equipment
CN113722240B (en) Stability testing method and system for linux operating system management platform
CN115509931A (en) System-based performance test method and device, electronic equipment and storage medium
CN111274112B (en) Application program pressure measurement method, device, computer equipment and storage medium
CN115017047A (en) Test method, system, equipment and medium based on B/S architecture
CN114168439A (en) Pressure measurement control method and device for service in cluster, storage medium and terminal
CN110929999A (en) Voltage sag severity calculation method considering tolerance characteristics of different devices
CN113342674A (en) Performance baseline regression testing method, device, equipment and medium based on learning
CN114896142A (en) Performance index optimization method based on JMeter
Kounev et al. Elasticity of Cloud Platforms
CN112631869A (en) Page loading data monitoring method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant