WO2020238345A1 - 压力测试方法、装置、系统、设备及计算机可读存储介质 - Google Patents

压力测试方法、装置、系统、设备及计算机可读存储介质 Download PDF

Info

Publication number
WO2020238345A1
WO2020238345A1 PCT/CN2020/079999 CN2020079999W WO2020238345A1 WO 2020238345 A1 WO2020238345 A1 WO 2020238345A1 CN 2020079999 W CN2020079999 W CN 2020079999W WO 2020238345 A1 WO2020238345 A1 WO 2020238345A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
target server
target
stress test
stress
Prior art date
Application number
PCT/CN2020/079999
Other languages
English (en)
French (fr)
Inventor
毛伟
卢道和
周杰
方镇举
陈文龙
黄涛
袁文静
Original Assignee
深圳前海微众银行股份有限公司
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 深圳前海微众银行股份有限公司 filed Critical 深圳前海微众银行股份有限公司
Publication of WO2020238345A1 publication Critical patent/WO2020238345A1/zh

Links

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
    • G06F11/3414Workload generation, e.g. scripts, playback
    • 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/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging

Definitions

  • This application relates to the technical field of financial technology (Fintech), in particular to stress testing methods, devices, systems, equipment and computer-readable storage media.
  • the main purpose of this application is to propose a stress test method, device, system, equipment and computer-readable storage medium, aiming to improve the flexibility of stress test and the accuracy of test results by flexibly adjusting the number of test tasks.
  • the present application provides a stress test method, which includes the following steps:
  • the stress test method should be set as a stress test device, the stress test device communicates with the target server and the simulated client, and the stress test method includes the following steps:
  • the present application also provides a pressure test device, the pressure test device is provided in the pressure test equipment, the pressure test device includes:
  • the request receiving module is configured to determine the target server to be tested corresponding to the stress test request, and the stress test configuration information and test target value corresponding to the target server when the stress test request is received;
  • the information sending module is configured to send a scheduling instruction to the simulation client according to the stress test configuration information and the test target value, so that the simulation client adjusts the number of threads to send to the target server according to the scheduling instruction Test task
  • a data acquisition module configured to acquire heartbeat data information corresponding to the target server when it is detected that the target server executes the test task
  • the result output module is configured to determine the stress test result of the target server according to the heartbeat data information and the test target value.
  • the present application also provides a stress test system
  • the stress test system includes a communication-connected stress test device, a simulation client and a target server
  • the stress test system includes:
  • the stress test device When the stress test device receives the stress test request, it determines that the stress test request corresponds to the target server to be tested, and the stress test configuration information and the test target value corresponding to the target server;
  • the simulation client receives the scheduling instruction, and adjusts the number of threads according to the scheduling instruction to send a test task to the target server;
  • the target server receives and executes the test task
  • the stress testing device When the stress testing device detects that the target server executes the test task, the stress testing device acquires heartbeat data information corresponding to the target server;
  • the stress test device determines the stress test result of the target server according to the heartbeat data information and the test target value.
  • the present application also provides a stress test device, the stress test device comprising: a memory, a processor, and a computer corresponding to the stress test stored in the memory and running on the processor A program, when the computer program corresponding to the stress test is executed by the processor, the steps of the stress test method described above are implemented.
  • the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program corresponding to the stress test, and the computer program corresponding to the stress test is executed when the processor is executed The steps of the stress test method as described above.
  • This application provides a stress testing method, device, system, equipment, and computer-readable storage medium.
  • the stress testing equipment is preset with the server under test stress testing configuration information and the test target value.
  • the stress test equipment sends the stress test configuration information to the simulated client so that the simulated client can respond to the pressure Test configuration information adjusts the number of threads to send test tasks to the target server under test, which realizes the flexible adjustment of the number of test tasks.
  • the stress test equipment When the stress test equipment detects that the target server is performing the test task, it obtains the heartbeat data information corresponding to the target server; according to the heartbeat data Information and test target values, determine the stress test results of the target server, and make the stress test results more accurate. At the same time, by flexibly adjusting the number of test tasks, it effectively avoids the problem of inaccurate stress test results caused by simulated clients .
  • FIG. 1 is a schematic diagram of a device structure of a hardware operating environment involved in a solution of an embodiment of the present application
  • FIG. 2 is a schematic flow chart of the first embodiment of the stress testing method of this application.
  • FIG. 3 is a schematic diagram of a specific scenario of the first embodiment of the stress testing method of this application.
  • step S40 is a detailed flowchart of step S40 in the first embodiment of the stress testing method of this application;
  • FIG. 5 is a schematic diagram of functional modules of an embodiment of the pressure testing device of the present application.
  • FIG. 6 is a schematic diagram of interaction of an embodiment of the stress testing system of this application.
  • FIG. 1 is a schematic diagram of the device structure of the hardware operating environment involved in the solution of the embodiment of the present application.
  • the stress testing device in the embodiment of the present application may be a PC or a server device, on which a Java virtual machine runs.
  • the stress test device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002.
  • the communication bus 1002 is configured to realize connection and communication between these components.
  • the user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
  • the network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
  • the memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a magnetic disk memory.
  • the memory 1005 may also be a storage device independent of the foregoing processor 1001.
  • the structure of the device shown in FIG. 1 does not constitute a limitation on the device, and may include more or fewer components than those shown in the figure, or a combination of certain components, or different component arrangements.
  • the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a computer program corresponding to a stress test.
  • the network interface 1004 is mainly set to connect to the back-end server and communicate with the back-end server;
  • the user interface 1003 is mainly set to connect to the client (user side) to communicate with the client;
  • the processor 1001 can be configured to call the computer program corresponding to the stress test stored in the memory 1005 and execute the operations in the following stress test method.
  • Fig. 2 is a schematic flow chart of the first embodiment of the stress testing method of this application, including:
  • Step S10 When a stress test request is received, it is determined that the stress test request corresponds to the target server to be tested, and the stress test configuration information and test target value corresponding to the target server.
  • the stress test method in this embodiment should be set as the stress test equipment in financial institutions (banking institutions, insurance institutions, securities institutions, etc.) in the financial industry.
  • the stress test equipment refers to a hardware platform equipped with a computer program corresponding to the stress test.
  • the device is set to perform a stress test on the server, and the server runs on a JVM (Java Virtual Machine, Java Virtual Machine). This process requires the server to have a strong anti-stress effect to meet the concurrency and access speed requirements of financial services.
  • JVM Java Virtual Machine, Java Virtual Machine
  • the stress test device communicates with the target server under test and the simulated client.
  • the stress test device is the main control node and controls the simulated client (also called pressure source device or pressurized device) to simulate the real client to the target server under test. Send an operation request to pressurize the target server to perform a stress test on the target server. It is understandable that the function of the simulated client can be integrated into the stress test equipment.
  • the stress test device receives the stress test request, where the triggering method of the stress test request is not specifically limited, that is, the stress test request may be triggered by the user actively, for example, the user clicks "stress test" on the stress test device Press the key to trigger the pressure test request; or the pressure test request can also be automatically triggered by the pressure test device.
  • the pressure test device is preset to trigger the pressure test request automatically on the 1st of each month, and the pressure test device detects that the pressure meets the preset pressure When testing conditions, the pressure test request is automatically triggered.
  • the stress test device determines the target server that needs to be subjected to the stress test, that is, the stress test device obtains the server under test ID in the stress test request, and uses the server corresponding to the test server ID as the target server.
  • the stress testing equipment After the stress testing equipment determines the target server to be tested, the stress testing equipment queries a preset data table.
  • the preset data table refers to the server identification and information mapping table.
  • the stress testing equipment obtains the stress test configuration information and the test target corresponding to the server identification under test. Value, as the stress test configuration information and test target value of the target server; among them, the stress test configuration information refers to the pre-configured pressure information; the test target value refers to the preset stress test standard value, for example, the test target value can be TPS (TPS task processing efficiency, 1000 tasks per second) or ART (task processing average time, average processing time 100ms).
  • TPS TPS task processing efficiency, 1000 tasks per second
  • ART task processing average time, average processing time 100ms
  • the stress test device is pre-configured with the stress test configuration information and test target values of the different tested devices.
  • the stress test device selects the corresponding stress test configuration according to the tested target server.
  • the stress test realizes the flexible pressurization of different tested target servers, making the stress test more intelligent.
  • Step S20 Send a scheduling instruction to the simulated client according to the stress test configuration information and the test target value, so that the simulated client adjusts the number of threads according to the scheduling instruction to send a test task to the target server.
  • the stress test device in this embodiment is in communication connection with multiple simulated clients.
  • the stress test device sends a unified scheduling instruction to the simulated client according to the stress test configuration information and the test target value, and each simulated client receives the data sent by the stress test device. After scheduling the instruction, the simulated client sends a test task to the target server.
  • the stress testing equipment sends unified scheduling instructions to multiple simulated clients, and each simulated client sends test tasks to the target server according to the unified scheduling instructions, thereby realizing the stress testing process under the distributed architecture.
  • Implementation method 1 The stress test equipment determines the scheduling instructions according to the target processing time in the test target value, including:
  • Step a1 obtain the total number of tasks in the stress test configuration information, obtain the target processing time in the test target value, and multiply the total number of tasks by the target processing time to obtain the total execution time of the task;
  • Step a2 determine the number of tasks that each simulated client can send during the total execution time of the task (for example, if the simulation client sends a test task in 100ms, the total execution time of the task is 10s, then the total execution time of the task can send the number of tasks Is 100), the total number of tasks is divided by the number of tasks to obtain the scheduling number;
  • Step a3 The stress testing device sends a scheduling instruction to the simulated client corresponding to the scheduling quantity, so that the simulated client adjusts the number of threads according to the scheduling instruction to send a test task to the target server.
  • the stress test equipment determines the scheduling instruction according to the target processing rate in the test target value, including:
  • Step b1 Determine the task sending rate of each simulated client to send the test task, and divide the target processing rate by the task sending rate to obtain the scheduling quantity, where the task sending rate of the simulated client is the task sent by the simulated client per unit time Quantity
  • Step b2 The stress testing device sends a scheduling instruction to the simulated client corresponding to the scheduling quantity, so that the simulated client adjusts the number of threads according to the scheduling instruction to send a test task to the target server.
  • the stress testing device sends the scheduling instructions to the simulated client, so that the simulated client dynamically adjusts the number of active threads according to the scheduling instructions to achieve the adjustment of the number of test tasks; effectively avoiding the problem that the number of test tasks is smaller than the number of threads.
  • Insufficient utilization of the resources of the simulated client machine makes full use of the resources of the simulated client; it also effectively avoids that the number of test tasks is more than the number of threads, and the simulated client cannot add threads in time to perform the test tasks. This is due to the simulated client The problem of inaccurate stress test results caused by forming a bottleneck by itself.
  • Step S30 When detecting that the target server executes the test task, obtain the heartbeat data information corresponding to the target server.
  • the target server receives and responds to the test task sent by the simulated client.
  • the stress test device detects that the target server is performing the test task
  • the stress test device obtains the heartbeat data information when the target server performs the test task.
  • the heartbeat data information includes but is not limited to the task processing rate (TPS), task processing average time (ART) and server resource information.
  • step S30 includes:
  • Step c1 when detecting that the target server executes the test task, acquiring the task processing rate and task processing time of the target server;
  • Step c2 using the task processing rate and the task processing time as heartbeat data information.
  • the stress testing device acquires the target server to execute the test task
  • the task processing rate and task processing time of the target server (task processing time can be understood as the average time it takes to process a task, that is, the stress test equipment counts 1 second Processing 100 tasks, the task processing time is 10ms)
  • the stress test equipment uses the task processing rate and task processing time as the heartbeat data information to determine the stress test result, specifically,
  • Step S40 Determine a stress test result of the target server according to the heartbeat data information and the test target value.
  • the stress test device compares the heartbeat data information with the corresponding test target value, that is, the stress test device compares the task processing rate with the target processing rate in the test target value, and compares the task processing time with the target processing in the test target value Time-consuming comparison, if the target server's heartbeat data information is the same as the test target value, the stress testing device determines that the target server's stress test passes, and vice versa.
  • the stress test device when the stress test device performs a stress test on the target server, the stress test device obtains the stress test configuration information of the target server and sends it to the simulated client, so that the simulated client adjusts the number of threads according to the stress test configuration information.
  • the target server stress test is taken as an example; if the device under test is the AMQP protocol (Advanced For the message middleware corresponding to the Message Queuing Protocol (Advanced Message Queuing Protocol), refer to Figure 3.
  • the stress test device perf-master
  • the simulated client adjusts the number of threads according to the pressure test configuration information Send a test task to the message production device (perf-produce) corresponding to the message middleware (server) for stress testing.
  • the stress test device (perf-master) can also subscribe to the message device corresponding to the message middleware (server) ( Perf-consumer) heartbeat data information is monitored to determine the stress resistance capability of the message middleware. It can be understood that the principle of stress testing the message middleware is the same as that of the target server, and will not be repeated in this embodiment.
  • a specific implementation method to determine the target server's stress test results includes:
  • Step S41 Obtain the target processing rate and the target processing time in the test target value.
  • the stress test equipment obtains the target processing rate and target processing time in the test target value, where the test target value can be understood as the standard evaluation index of the target server, and the target processing rate and target processing time refer to the preset pressure of the target server Test standard value.
  • step S42 the task processing rate is compared with the target processing rate, and the task processing time is compared with the target processing time.
  • the stress test equipment compares the task processing rate with the target processing rate, and the stress test device compares the task processing time with the target processing time to determine the target server's stress test result based on the comparison result.
  • Step S43 If the task processing rate matches the target processing rate, and the task processing time matches the target processing time, it is determined that the target server stress test passes.
  • the stress test equipment determines that the task processing rate of the target server matches the target processing rate, and the task processing time matches the target processing time; that is, the task processing rate of the target server is greater than or equal to the target processing rate, and the task processing time is less than or Equal to the target processing time, the stress test equipment determines that the target server's stress test passes.
  • the stress testing device analyzes the stress test result of the target server by setting two indicators of target processing rate and target processing time, so that the target server stress test analysis is more accurate.
  • a third embodiment of the stress test method of the present application is proposed; this embodiment is a step after step S42 in the second embodiment, and the stress test in this embodiment
  • the specific processing steps for failure include:
  • Step S44 If the task processing rate does not match the target processing rate, and/or the task processing time does not match the target processing time, it is determined that the target server stress test fails.
  • the stress testing device determines that the task processing rate does not match the target processing rate, and/or the task processing time does not match the target processing time, that is, the stress testing device determines that the task processing rate is less than the target processing rate, and/or the task processing time is time-consuming More than the target processing time, the stress test equipment determines that the target server stress test fails.
  • Step S45 When the target server stress test fails, calculate the relative value of the task processing rate and the target processing rate, and/or calculate the relative value of the task processing time and the target processing time, and calculate the The relative rate value and/or the relative time-consuming value adjust the stress test configuration information to obtain new stress test configuration information.
  • the stress test device calculates the relative value of the task processing rate and the target processing rate, and/or calculates the relative value of the task processing time and the target processing time, and based on the rate
  • the relative value and/or time-consuming relative value adjusts the stress test configuration information to obtain new stress test configuration information.
  • the task processing rate is 200 test tasks per second
  • the target processing rate is 250 test tasks per second.
  • the relative rate is 50 test tasks executed per second
  • the stress test equipment reduces the total number of tasks in the stress test configuration information by one-fifth to obtain new stress test configuration information.
  • Step S46 Send the new stress test configuration information to the simulation client to perform a second test on the target server.
  • the stress test device sends the new stress test configuration information to the simulated client, so that the simulated client adjusts the number of threads to send a test task to the target server according to the new stress test configuration information, so as to perform a second test on the target server.
  • the stress test device adjusts the stress test configuration information according to different test results to accurately obtain the stress resistance capability of the target server.
  • the stress test device obtains new heartbeat data information of the second stress test, and the stress test device Compare the two heartbeat data information to accurately analyze the anti-stress performance of the target server.
  • This embodiment is a refinement of step S30 in the first embodiment.
  • the processing efficiency of the target server is not constant, the processing efficiency of the target server is relatively low when the target server first starts. Make the target server's stress test result more accurate, so warm up the target server, specifically:
  • the stress test device When the stress test device detects that the target server executes the test task, the stress test device starts the timer and starts timing.
  • the stress testing device When the stress testing device reaches the preset time (the preset time can be flexibly set according to specific scenarios, for example, the preset time is set to 0.1s), the stress testing device obtains the heartbeat data information corresponding to the target server when the test task is executed; In this embodiment, during the stress test process of the stress test device, in order to prevent the unstable operation of the target server from affecting the stress test result when the target server just executes the test task, the stress test device preheats the target server to obtain an accurate heartbeat Data information makes the stress test results of the target server more accurate.
  • the preset time can be flexibly set according to specific scenarios, for example, the preset time is set to 0.1s
  • This embodiment is a step after step S30 in the first embodiment.
  • the stress testing device monitors the hardware resource information of the target server and determines what affects the target server's stress test Factors, specifically:
  • the hardware resource information of the target server is monitored, the factors affecting the stress test result of the target server are determined according to the hardware resource information, and a stress test report containing the factors is generated and output.
  • the stress test equipment monitors the hardware resource information of the target server.
  • the hardware resource information includes CPU information, memory information, disk IO information, and network speed information.
  • the stress test equipment analyzes the information in the hardware resource information of the target server. Determine the factors that affect the target server's stress test results.
  • the stress test equipment generates and outputs stress test reports corresponding to the factors that affect the target server's stress test results; for example, during the stress test, the stress test equipment monitors the target server's hardware resource information
  • the stress test device determines that the CPU performance of the target server is a factor that affects the target server's stress test.
  • the stress test device generates and outputs the corresponding stress test report so that developers can understand the factors that affect the target server's stress test. .
  • the stress testing device synchronously monitors the hardware resource information of the target server when the target server performs the test task, accurately analyzes the factors that affect the target server's stress test result, and optimizes the target server to improve the anti-stress effect of the target server .
  • the preset functions and/or each preset method can be optimized by Methods to improve the anti-stress effect of the target server, specifically:
  • the target server calls each preset function and/or each preset method to execute the test task, obtain the heartbeat data information corresponding to the target server.
  • the stress testing device detects that the target server calls each preset function and/or each preset method to execute the test task (the preset function refers to the function involved in the test task, and the preset method refers to the test task involved When the method is reached), the stress test device obtains the heartbeat data information corresponding to the target server, and then the stress test is executed in step S40 in the first embodiment to determine the first stress test result of the target server according to the heartbeat data information and the test target value.
  • the stress testing equipment counts the calling frequency of each preset function and/or each preset method in unit time.
  • the stress testing equipment uses a shift operation to count each preset function and/or each preset method in the unit Time (unit time can be flexibly set according to the actual situation, for example, the unit time is set to one minute) call frequency, for example, the initial data is 00, the first call uses shift operation to get data 01, the second call uses shift The bit operation becomes 10.
  • the shift operation saves more resources and makes the frequency statistics faster.
  • the stress testing equipment uses the preset function with the highest frequency of call as the hotspot function, and/or uses the preset method with the highest call frequency as the hotspot method, and generates prompt information corresponding to the hotspot function and/or hot method for the user to optimize the hot function and /Or hotspot method.
  • the developer is prompted to optimize the hotspot function and/or the hotspot method, and by optimizing the preset function or preset method with the highest call frequency, the target server task processing time is shortened, so as to improve the stress resistance of the target server.
  • the stress test device in this embodiment detects that the optimization of the hotspot function and/or hotspot method is completed, it can trigger the stress test request again and execute step S10 in the first embodiment.
  • a stress test request is received, it is determined that the stress test request corresponds to the target server under test, and the stress test configuration information and test target value corresponding to the target server, so as to repeatedly stress test the target server to determine the target server The second stress test result.
  • the stress testing device in this embodiment After determining the hotspot function and/or hotspot method optimization, the stress testing device in this embodiment performs repeated stress tests on the target server, and compares the first stress test result with the second stress test result for accurate analysis Changes in the target server's stress resistance.
  • this application also provides a pressure test device, the pressure test device includes:
  • the request receiving module 10 is configured to determine the target server to be tested corresponding to the stress test request, and the stress test configuration information and the test target value corresponding to the target server when the stress test request is received;
  • the information sending module 20 is configured to send a scheduling instruction to the simulation client according to the stress test configuration information and the test target value, so that the simulation client adjusts the number of threads to the target server according to the scheduling instruction. Send test tasks;
  • the data acquisition module 30 is configured to acquire heartbeat data information corresponding to the target server when it is detected that the target server executes the test task;
  • the result output module 40 is configured to determine the stress test result of the target server according to the heartbeat data information and the test target value.
  • the data acquisition module is further configured to:
  • the result output module includes:
  • An obtaining unit configured to obtain the target processing rate and the target processing time in the test target value
  • a comparing unit configured to compare the task processing rate with the target processing rate, and compare the task processing time with the target processing time
  • the first determining unit is configured to determine that the target server stress test passes if the task processing rate matches the target processing rate, and the task processing time matches the target processing time.
  • the result output module includes:
  • the second determining unit is configured to determine that the target server stress test does not match if the task processing rate does not match the target processing rate, and/or the task processing time does not match the target processing time. by;
  • the adjustment unit is set to calculate the relative value of the task processing rate and the target processing rate, and/or the relative value of the task processing time and the target processing time when the target server fails the stress test, and Adjusting the stress test configuration information by the relative rate value and/or the relative time-consuming value to obtain new stress test configuration information;
  • the sending unit is configured to send the new stress test configuration information to the simulation client to perform a second test on the target server.
  • the data acquisition module includes:
  • the timing start unit is set to start a timer when it is detected that the target server executes the test task
  • the data obtaining unit is configured to obtain the heartbeat data information corresponding to the target server when the timer reaches a preset time.
  • the pressure testing device includes:
  • the information statistics module is configured to monitor hardware resource information of the target server, determine factors that affect the target server's stress test result according to the hardware resource information, generate and output a stress test report containing the factors, where all
  • the hardware resource information includes CPU information, memory information, disk IO information, and network speed information.
  • the data acquisition module is further configured to:
  • the target server calls each preset function and/or each preset method to execute the test task, acquiring the heartbeat data information corresponding to the target server;
  • the pressure test device includes:
  • a frequency statistics module configured to count the calling frequency of each preset function and/or each preset method per unit time
  • the prompt generation module is configured to use the preset function with the highest calling frequency as the hotspot function, and/or use the preset method with the highest calling frequency as the hotspot method, and generate the hotspot function and/or the prompt information corresponding to the hotspot method, For the user to optimize the hotspot function and/or the hotspot method.
  • the present application also provides a stress test system
  • the stress test system includes a communication connected stress test device, a simulation client and a target server
  • the stress test system includes:
  • the stress test device When the stress test device receives the stress test request, it determines that the stress test request corresponds to the target server to be tested, and the stress test configuration information and the test target value corresponding to the target server;
  • the simulation client receives the scheduling instruction, and adjusts the number of threads according to the scheduling instruction to send a test task to the target server;
  • the target server receives and executes the test task
  • the stress testing device When the stress testing device detects that the target server executes the test task, the stress testing device acquires heartbeat data information corresponding to the target server;
  • the stress test device determines the stress test result of the target server according to the heartbeat data information and the test target value.
  • the step of the simulation client receiving the scheduling instruction and adjusting the number of threads according to the scheduling instruction to send a test task to the target server includes:
  • the simulation client acquires the number of tasks in the scheduling instruction, and the simulation client starts a task thread corresponding to the number of tasks, and sends the test task to the target server through the task thread.
  • the simulation client dynamically adjusts the number of threads to execute tasks according to the number of tasks to be executed, and makes full use of the resources of the simulation client: if the task is not submitted to the thread pool for a long time, that is, if the worker thread is idle for a specified time (specified time It can be set to 1 minute), the worker thread pool is automatically terminated. After termination, if a new task is submitted, the simulated client thread pool will resubmit a worker thread; making full use of the resources of the simulated client.
  • the application also provides a computer-readable storage medium.
  • the computer-readable storage medium of the present application stores a computer program corresponding to the stress test, and the computer program corresponding to the stress test is executed by the processor to implement the steps of the stress test method as described above.
  • the method implemented when the computer program corresponding to the stress test running on the processor is executed please refer to the various embodiments of the stress test method of this application, which will not be repeated here.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Debugging And Monitoring (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

提供一种压力测试方法,包括如下步骤:在接收到压力测试请求时,确定所述压力测试请求对应被测的目标服务器,及所述目标服务器对应的压力测试配置信息和测试目标值;根据所述压力测试配置信息和所述测试目标值向所述模拟客户端发送调度指令,以使所述模拟客户端根据所述调度指令调整线程数量向所述目标服务器发送测试任务;在检测到所述目标服务器执行所述测试任务时,获取所述目标服务器对应的心跳数据信息;根据所述心跳数据信息与所述测试目标值,确定所述目标服务器的压力测试结果。还提供了一种压力测试装置、系统、设备和计算机可读存储介质。

Description

[根据细则26改正15.04.2020] 压力测试方法、装置、系统、设备及计算机可读存储介质
关于优先权引用的声明:本申请要求于2019年05月31日提交中国知识产权组织国知局,申请号为201910475984.1、申请名称为“压力测试方法、装置、系统、设备及计算机可读存储介质”的专利优先权,其全部内容通过引用结合在本申请。
技术领域
本申请涉及金融科技(Fintech)技术领域,尤其涉及压力测试方法、装置、系统、设备及计算机可读存储介质。
背景技术
近年来,互联网金融科技(Fintech)的飞速发展,越来越多的技术(大数据、分布式、区块链Blockchain、人工智能等)应用在金融领域。
金融业务的数据量和业务量指数增长,这种情况下,对处理金融业务的服务器并发性和响应速度都提出了更高要求;目前在金融领域,使用分布式架构执行金融业务请求,为了提高金融业务请求的响应效率,并降低服务器的压力,通常需要对处理金融业务的服务器进行压力测试。
技术问题
当前对服务器压力测试时预先设置好固定的任务数量,这种压力测试的方法测试过程固定,得到的测试结果不准确,例如,设置的任务数量较多,模拟客户端不能提供相对的任务数量,导致模拟客户端自身形成交易瓶颈,从而达不到对压力测试效果。
技术解决方案
本申请的主要目的在于提出一种压力测试方法、装置、系统、设备及计算机可读存储介质,旨在通过灵活调整测试任务的数量,提高了压力测试的灵活性和测试结果的准确性。
为实现上述目的,本申请提供一种压力测试方法,所述压力测试方法包括如下步骤:
所述压力测试方法应设置为压力测试设备,所述压力测试设备与目标服务器和模拟客户端通信连接,所述压力测试方法包括如下步骤:
在接收到压力测试请求时,确定所述压力测试请求对应被测的目标服务器,及所述目标服务器对应的压力测试配置信息和测试目标值;
根据所述压力测试配置信息和所述测试目标值向所述模拟客户端发送调度指令,以使所述模拟客户端根据所述调度指令调整线程数量向所述目标服务器发送测试任务;
在检测到所述目标服务器执行所述测试任务时,获取所述目标服务器对应的心跳数据信息;
根据所述心跳数据信息与所述测试目标值,确定所述目标服务器的压力测试结果。
此外,为实现上述目的,本申请还提供一种压力测试装置,所述压力测试装置设置于压力测试设备,所述压力测试装置包括:
请求接收模块,设置为在接收到压力测试请求时,确定所述压力测试请求对应被测的目标服务器,及所述目标服务器对应的压力测试配置信息和测试目标值;
信息发送模块,设置为根据所述压力测试配置信息和所述测试目标值向所述模拟客户端发送调度指令,以使所述模拟客户端根据所述调度指令调整线程数量向所述目标服务器发送测试任务;
数据获取模块,设置为在检测到所述目标服务器执行所述测试任务时,获取所述目标服务器对应的心跳数据信息;
结果输出模块,设置为根据所述心跳数据信息与所述测试目标值,确定所述目标服务器的压力测试结果。
此外,为实现上述目的,本申请还提供一种压力测试系统,所述压力测试系统包括通信连接的压力测试设备、模拟客户端和目标服务器,所述压力测试系统包括:
所述压力测试设备在接收到压力测试请求时,确定所述压力测试请求对应被测的目标服务器,及所述目标服务器对应的压力测试配置信息和测试目标值;
所述压力测试设备根据所述压力测试配置信息和所述测试目标值向所述模拟客户端发送调度指令;
所述模拟客户端接收所述调度指令,并根据所述调度指令调整线程数量向所述目标服务器发送测试任务;
所述目标服务器接收并执行所述测试任务;
所述压力测试设备在检测到所述目标服务器执行所述测试任务时,所述压力测试设备获取所述目标服务器对应的心跳数据信息;
所述压力测试设备根据所述心跳数据信息与所述测试目标值,确定所述目标服务器的压力测试结果。
此外,为实现上述目的,本申请还提供一种压力测试设备,所述压力测试设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的压力测试对应的计算机程序,所述压力测试对应的计算机程序被所述处理器执行时实现如上所述的压力测试方法的步骤。
此外,为实现上述目的,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有压力测试对应的计算机程序,所述压力测试对应的计算机程序被处理器执行时实现如上所述的压力测试方法的步骤。
有益效果
本申请提供一种压力测试方法、装置、系统、设备及计算机可读存储介质,本申请本实施例中压力测试设备中预先设置有被测服务器压力测试配置信息和测试目标值,在接收到压力测试请求时,确定压力测试请求对应被测的目标服务器,及目标服务器对应的压力测试配置信息和测试目标值,压力测试设备将压力测试配置信息发送至模拟客户端,以使模拟客户端根据压力测试配置信息调整线程数量向被测的目标服务器发送测试任务,实现了测试任务数量的灵活调整,压力测试设备在检测到目标服务器执行测试任务时,获取目标服务器对应的心跳数据信息;根据心跳数据信息与测试目标值,确定目标服务器的压力测试结果,使得压力测试结果更加准确,与此同时,通过灵活调整测试任务的数量,有效地避免了由于模拟客户端导致的压力测试结果不准确的问题。
附图说明
图1是本申请实施例方案涉及的硬件运行环境的设备结构示意图;
图2为本申请压力测试方法第一实施例的流程示意图;
图3为本申请压力测试方法第一实施例的具体场景示意图;
图4为本申请压力测试方法第一实施例中步骤S40的细化流程示意图;
图5为本申请压力测试装置一实施例的功能模块示意图;
图6为本申请压力测试系统一实施例的交互示意图。
本发明的实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不设置为限定本申请。
如图1所示,图1是本申请实施例方案涉及的硬件运行环境的设备结构示意图。
本申请实施例压力测试设备可以是PC机或服务器设备,其上运行有Java虚拟机。
如图1所示,该压力测试设备可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002设置为实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。本领域技术人员可以理解,图1中示出的设备结构并不构成对设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及压力测试对应的计算机程序。在图1所示的设备中,网络接口1004主要设置为连接后台服务器,与后台服务器进行数据通信;用户接口1003主要设置为连接客户端(用户端),与客户端进行数据通信;而处理器1001可以设置为调用存储器1005中存储的压力测试对应的计算机程序,并执行下述压力测试方法中的操作。
基于上述硬件结构,提出本申请压力测试方法实施例。
参照图2,图2为本申请压力测试方法第一实施例的流程示意图,包括:
步骤S10,在接收到压力测试请求时,确定所述压力测试请求对应被测的目标服务器,及所述目标服务器对应的压力测试配置信息和测试目标值。
本实施例中压力测试方法应设置为金融行业的金融机构(银行机构、保险机构、证券机构等)中的压力测试设备,压力测试设备是指搭载压力测试对应计算机程序的硬件平台,该压力测试设备设置为对服务器进行压力测试,服务器上运行有JVM(Java Virtual Machine,Java虚拟机),这一过程需要服务器具有较强的抗压效果,以满足金融业务的并发性和访问速度要求。
压力测试设备与被测目标服务器和模拟客户端通信连接,压力测试设备为主控节点,控制模拟客户端(又叫压力源设备,或者加压设备)模拟真实的客户端向被测的目标服务器发送操作请求,以在目标服务器上进行加压对目标服务器进行压力测试,可以理解的是,模拟客户端的功能可以集成到压力测试设备中。
本实施例中,压力测试设备接收压力测试请求,其中,压力测试请求的触发方式不作具体限定,即,压力测试请求可以是用户主动触发的,例如,用户在压力测试设备上点击“压力测试”按键触发压力测试请求;或者压力测试请求还可以是压力测试设备自动触发的,例如,压力测试设备上预设每月1日自动触发触发压力测试请求,压力测试设备在检测到符合预设的压力测试条件时,自动触发压力测试请求。压力测试设备在接收压力测试请求时,压力测试设备确定需要进行压力测试的目标服务器,即,压力测试设备获取压力测试请求中的被测服务器标识,并将该被测服务器标识对应的服务器作为目标服务器。
压力测试设备确定被测的目标服务器之后,压力测试设备查询预设数据表,预设数据表是指服务器标识与信息映射表,压力测试设备获取被测服务器标识对应的压力测试配置信息和测试目标值,作为目标服务器的压力测试配置信息和测试目标值;其中,压力测试配置信息是指预先配置的加压信息;测试目标值是指预先设置的压力测试标准值,例如,测试目标值可以是TPS(TPS任务处理效率,每秒1000件任务)或者ART(任务处理平均耗时,平均处理耗时100ms)。
本实施例中,压力测试设备中预先配置了不同被测设备的压力测试配置信息和测试目标值,在对服务器进行压力测试时,压力测试设备根据被测的目标服务器选择对应的压力测试配置进行压力测试,实现证明不同被测目标服务器的灵活加压,使得压力测试更加智能。
步骤S20,根据所述压力测试配置信息和所述测试目标值向所述模拟客户端发送调度指令,以使所述模拟客户端根据所述调度指令调整线程数量向所述目标服务器发送测试任务。
本实施例中的压力测试设备与多个模拟客户端通信连接,压力测试设备根据压力测试配置信息和测试目标值,向模拟客户端发送统一调度指令,各个模拟客户端收到压力测试设备发送的调度指令后,模拟客户端向目标服务器发送测试任务。可以理解,通过压力测试设备向多个模拟客户端发送统一调度指令,再由各个模拟客户端根据统一调度指令向目标服务器发送测试任务,实现了该分布式架构下的压力测试过程。
本实施例中给出了两种确定调度指令的具体实现方式:
实现方式一,压力测试设备根据测试目标值中的目标处理耗时,确定调度指令,包括:
步骤a1,获取压力测试配置信息中的任务总数量,获取测试目标值中的目标处理耗时,用任务总数量乘以目标处理耗时得到任务总执行时间;
步骤a2,确定各模拟客户端在任务总执行时间可以发送的任务数量(例如,模拟客户端送一个测试任务的时间为100ms,任务总执行时间为10s,则任务总执行时间可以发送的任务数量为100个),所述任务总数量除以所述任务数量得到调度数量;
步骤a3,压力测试设备向所述调度数量对应的模拟客户端发送调度指令,以使所述模拟客户端根据所述调度指令调整线程数量向所述目标服务器发送测试任务。
实现方式二,压力测试设备根据测试目标值中的目标处理速率,确定调度指令,包括:
步骤b1,确定各模拟客户端发送测试任务的任务发送速率,用所述目标处理速率除以所述任务发送速率得到调度数量,其中,模拟客户端的任务发送速率为模拟客户端单位时间发送的任务数量;
步骤b2,压力测试设备向所述调度数量对应的模拟客户端发送调度指令,以使所述模拟客户端根据所述调度指令调整线程数量向所述目标服务器发送测试任务。
本实施例中压力测试设备将调度指令发送至模拟客户端,使得模拟客户端根据调度指令动态调整活跃的线程数量,实现测试任务数量的调整;有效避免了测试任务的数量比线程数小导致的模拟客户端机器资源利用不充分的情况,使得模拟客户端资源充分利用;也有效避免了测试任务的数量比线程数多,模拟客户端不能及时增加线程来执行测试任务,出现的由于模拟客户端自身形成瓶颈,导致的压力测试结果不准确的问题。
步骤S30,在检测到所述目标服务器执行所述测试任务时,获取所述目标服务器对应的心跳数据信息。
目标服务器接收模拟客户端发送的测试任务并响应,压力测试设备检测到目标服务器执行测试任务时,压力测试设备获取目标服务器执行测试任务时的心跳数据信息,心跳数据信息包括但不仅限于任务处理速率(TPS)、任务处理平均耗时(ART)和服务器资源信息,具体地,步骤S30包括:
步骤c1,在检测到所述目标服务器执行所述测试任务时,获取所述目标服务器的任务处理速率和任务处理耗时;
步骤c2,将所述任务处理速率和所述任务处理耗时作为心跳数据信息。
本实施例中,压力测试设备获取目标服务器执行测试任务时,目标服务器的任务处理速率和任务处理耗时(任务处理耗时可以理解为一个任务处理平均耗时,即,压力测试设备统计1s中处理任务100件,则任务处理耗时为10ms),压力测试设备将任务处理速率和任务处理耗时作为心跳数据信息,以确定压力测试结果,具体地,
步骤S40,根据所述心跳数据信息与所述测试目标值,确定所述目标服务器的压力测试结果。
压力测试设备将心跳数据信息与对应的测试目标值进行比较,即,压力测试设备将任务处理速率和测试目标值中的目标处理速率进行比较,将任务处理耗时与测试目标值中的目标处理耗时进行比较,若目标服务器的心跳数据信息与测试目标值相同,则压力测试设备确定目标服务器的压力测试通过,反之。本实施例中,压力测试设备对目标服务器进行压力测试时,压力测试设备获取目标服务器的压力测试配置信息并发送至模拟客户端,以使模拟客户端根据压力测试配置信息,通过调整线程数量,调整测试任务数量,实现灵活加压测试的目的,使得针对目标服务器的压力测试的测试结果更加准确。在银行机构等金融机构内采用上述压力测试方式,经过压力测试的金融业务服务器具有更高的抗压效果,使得金融机构可以更加高效地处理金融业务,并且通过上述测试过程,提高了该分布式架构下的压力测试效果,更加符合银行机构等金融机构的需求。
本实施例中以目标服务器压力测试为例进行说明;若被测设备为AMQP协议(Advanced Message Queuing Protocol高级消息队列协议)对应的消息中间件时,参照图3,压力测试设备(perf-master)将压力测试配置信息发送至模拟客户端之后,模拟客户端根据压力测试配置信息调整线程数量向消息中间件(server)对应的消息生产设备(perf-produce)发送测试任务以进行压力测试,此外,压力测试设备(perf-master)还可以对消息中间件(server)对应的消息订阅设备(perf-consumer)的心跳数据信息进行监控以确定消息中间件的抗压能力,可以理解的是,对消息中间件压力测试与对目标服务器压力测试原理相同,本实施例中不作赘述。
进一步地,参照图4,基于本申请压力测试方法第一实施例,提出本申请压力测试方法第二实施例;本实施例是第一实施例中步骤S40的细化,本实施例中给出了一种确定目标服务器压力测试结果的具体实现方式,包括:
步骤S41,获取所述测试目标值中的目标处理速率和目标处理耗时。
压力测试设备获取测试目标值中的目标处理速率和目标处理耗时,其中,测试目标值可以理解为目标服务器的标准评价指标,目标处理速率和目标处理耗时是指预先设置的目标服务器的压力测试标准值。
步骤S42,将所述任务处理速率与所述目标处理速率进行比对,将所述任务处理耗时与所述目标处理耗时进行比对。
压力测试设备将任务处理速率与目标处理速率进行比对,压力测试设备将任务处理耗时与目标处理耗时进行比对,以根据比对结果确定目标服务器的压力测试结果,具体地,
步骤S43,若所述任务处理速率与所述目标处理速率匹配,且所述任务处理耗时与所述目标处理耗时匹配,则判定所述目标服务器压力测试通过。
压力测试设备确定目标服务器的任务处理速率与目标处理速率匹配,且任务处理耗时与目标处理耗时匹配;即,目标服务器的任务处理速率大于或等于目标处理速率,且任务处理耗时小于或者等于目标处理耗时,压力测试设备判定目标服务器压力测试通过。
本实施例中压力测试设备通过设置目标处理速率和目标处理耗时两个指标,对目标服务器的压力测试结果进行分析,使得目标服务器压力测试分析更加准确。
进一步地,参照图4,基于本申请压力测试方法第二实施例,提出本申请压力测试方法第三实施例;本实施例是第二实施例中步骤S42之后的步骤,本实施例中压力测试不通过的具体处理步骤,包括:
步骤S44,若所述任务处理速率与所述目标处理速率不匹配,和/或所述任务处理耗时与所述目标处理耗时不匹配,则判定所述目标服务器压力测试不通过。
压力测试设备确定任务处理速率与目标处理速率不匹配,和/或任务处理耗时与目标处理耗时不匹配,即,压力测试设备确定任务处理速率小于目标处理速率,和/或任务处理耗时大于目标处理耗时,压力测试设备判定目标服务器压力测试不通过。
步骤S45,在所述目标服务器压力测试不通过时,计算任务处理速率与目标处理速率的速率相对值,和/或计算任务处理耗时与目标处理耗时的耗时相对值,并根据所述速率相对值和/或所述耗时相对值调整所述压力测试配置信息,得到新的压力测试配置信息。
压力测试设备在目标服务器压力测试不通过时,压力测试设备计算任务处理速率与目标处理速率的速率相对值,和/或计算任务处理耗时与目标处理耗时的耗时相对值,并根据速率相对值和/或耗时相对值调整所述压力测试配置信息,得到新的压力测试配置信息,例如,任务处理速率为每秒执行200个测试任务,目标处理速率为每秒执行250个测试任务,速率相对值为每秒执行50个测试任务,压力测试设备将压力测试配置信息中的任务总数量减少五分之一,得到新的压力测试配置信息。
步骤S46,将新的所述压力测试配置信息发送至所述模拟客户端,以对所述目标服务器进行二次测试。
压力测试设备将新的压力测试配置信息发送至模拟客户端,以使模拟客户端根据新的压力测试配置信息调整线程数量向目标服务器发送测试任务,实现对目标服务器进行二次测试。
本实施例中,压力测试设备根据不同的测试结果调整压力测试配置信息,以准确地得到目标服务器的抗压能力,此外,压力测试设备获取二次压力测试的新的心跳数据信息,压力测试设备将两次的心跳数据信息进行比较,以准确分析目标服务器的抗压性能。
进一步地,基于本申请压力测试方法上述实施例,提出本申请压力测试方法第四实施例。
本实施例是第一实施例中步骤S30的细化,本实施例中由于目标服务器的处理效率并不恒定,在目标服务器刚开始的时候,目标服务器的处理效率较低,本实施例中为了使得目标服务器的压力测试结果更加准确,因此对目标服务器进行预热,具体地:
在检测到所述目标服务器执行所述测试任务时,开启定时器;
在所述定时器到达预设时间时,获取所述目标服务器对应的心跳数据信息。
压力测试设备在检测到目标服务器执行所述测试任务时,压力测试设备开启定时器并开始计时。
压力测试设备在定时器到达预设时间(预设时间可以根据具体场景灵活设置,例如,预设时间设置为0.1s)时,压力测试设备获取测试任务执行时,目标服务器对应的心跳数据信息;本实施例中,压力测试设备在压力测试过程中,为了防止目标服务器刚执行测试任务时,目标服务器操作不稳定对压力测试结果的影响,压力测试设备对目标服务器进行预热,获取准确的心跳数据信息,使得目标服务器的压力测试结果更加准确。
进一步地,基于本申请压力测试方法上述实施例,提出本申请压力测试方法第五实施例。
本实施例是第一实施例中步骤S30之后的步骤,本实施例中压力测试设备在检测到目标服务器执行测试任务之后,压力测试设备监测目标服务器的硬件资源信息,确定影响目标服务器压力测试的因素,具体地:
监测所述目标服务器的硬件资源信息,根据所述硬件资源信息,确定影响所述目标服务器压力测试结果的因素,生成包含所述因素的压力测试报告并输出。
压力测试设备监测目标服务器的硬件资源信息,其中,硬件资源信息包括CPU信息、内存信息、磁盘IO信息和网速信息,压力测试设备,压力测试设备将目标服务器的硬件资源信息中信息进行分析,确定影响目标服务器压力测试结果的因素,压力测试设备生成影响目标服务器压力测试结果的因素对应的压力测试报告并输出;例如,在压力测试过程中,压力测试设备监测到目标服务器的硬件资源信息中CPU占用率达到98%,则压力测试设备确定目标服务器的CPU性能为影响目标服务器压力测试的因素,压力测试设备生成对应的压力测试报告并输出,以使开发人员了解影响目标服务器压力测试的因素。本实施例中压力测试设备在目标服务器执行测试任务时,同步监控目标服务器的硬件资源信息,准确分析影响目标服务器压力测试结果的因素,实现对目标服务器的优化,以提高目标服务器的抗压效果。
进一步地,基于本申请压力测试方法上述实施例,提出本申请压力测试方法第六实施例。
本实施例中压力测试设备在对目标服务器压力测试时,由于目标服务器执行测试任务时需要调用各预设函数和/或各预设方法,所以可以通过优化各预设函数和/或各预设方法,提高目标服务器的抗压效果,具体地:
在检测到所述目标服务器调用各预设函数和/或各预设方法执行所述测试任务时,获取所述目标服务器对应的心跳数据信息。
在本实施例中压力测试设备在检测到目标服务器调用各预设函数和/或各预设方法执行测试任务(预设函数是指测试任务中涉及到的函数,预设方法是指测试任务涉及到的方法)时,压力测试设备获取目标服务器对应的心跳数据信息,然后,压力测试执行第一实施例中步骤S40根据心跳数据信息与测试目标值,确定目标服务器的第一压力测试结果。
与此同时,压力测试设备统计各预设函数和/或各预设方法在单位时间的调用频率,具体地:压力测试设备用移位操作统计各预设函数和/或各预设方法在单位时间(单位时间可以根据实际情况灵活设置,例如,单位时间设置为是一分钟)的调用频率,例如,初始数据为00,第一次调用使用移位操作得到数据01,第二次调用使用移位操作变成10,本实施例中使用移位操作节省更多的资源,使得频率统计更加快捷。
压力测试设备将调用频率最高的预设函数作为热点函数,和/或将调用频率最高的预设方法作为热点方法,生成热点函数和/或热点方法对应的提示信息,以供用户优化热点函数和/或热点方法。本实施例中提示开发人员优化热点函数和/或热点方法,通过优化调用频率最高的预设函数或者预设方法,缩短目标服务器任务处理耗时,以提高目标服务器的抗压能力。
此外,可以理解的是,本实施例中压力测试设备在检测到热点函数和/或热点方法优化完成时,可以通过再次触发压力测试请求,并执行第一实施例中的步骤S10,所述在接收到压力测试请求时,确定所述压力测试请求对应被测的目标服务器,及所述目标服务器对应的压力测试配置信息和测试目标值,以重复地对目标服务器进行压力测试,确定目标服务器的第二压力测试结果。
本实施例中压力测试设备在确定热点函数和/或热点方法优化完成后,对目标服务器进行重复的压力测试,并将将第一压力测试结果和第二压力测试结果进行比对,以准确分析目标服务器抗压能力的变化情况。
参照图5,本申请还提供一种压力测试装置,所述压力测试装置包括:
请求接收模块10,设置为在接收到压力测试请求时,确定所述压力测试请求对应被测的目标服务器,及所述目标服务器对应的压力测试配置信息和测试目标值;
信息发送模块20,设置为根据所述压力测试配置信息和所述测试目标值向所述模拟客户端发送调度指令,以使所述模拟客户端根据所述调度指令调整线程数量向所述目标服务器发送测试任务;
数据获取模块30,设置为在检测到所述目标服务器执行所述测试任务时,获取所述目标服务器对应的心跳数据信息;
结果输出模块40,设置为根据所述心跳数据信息与所述测试目标值,确定所述目标服务器的压力测试结果。
在一实施例中,所述数据获取模块,还设置为:
在检测到所述目标服务器执行所述测试任务时,获取所述目标服务器的任务处理速率和任务处理耗时,将所述任务处理速率和所述任务处理耗时作为心跳数据信息;
所述结果输出模块,包括:
获取单元,设置为获取所述测试目标值中的目标处理速率和目标处理耗时;
比对单元,设置为将所述任务处理速率与所述目标处理速率进行比对,将所述任务处理耗时与所述目标处理耗时进行比对;
第一判定单元,设置为若所述任务处理速率与所述目标处理速率匹配,且所述任务处理耗时与所述目标处理耗时匹配,则判定所述目标服务器压力测试通过。
在一实施例中,所述结果输出模块,包括:
第二判定单元,设置为若所述任务处理速率与所述目标处理速率不匹配,和/或所述任务处理耗时与所述目标处理耗时不匹配,则判定所述目标服务器压力测试不通过;
调整单元,设置为在所述目标服务器压力测试不通过时,计算任务处理速率与目标处理速率的速率相对值,和/或计算任务处理耗时与目标处理耗时的耗时相对值,并根据所述速率相对值和/或所述耗时相对值调整所述压力测试配置信息,得到新的压力测试配置信息;
发送单元,设置为将新的所述压力测试配置信息发送至所述模拟客户端,以对所述目标服务器进行二次测试。
在一实施例中,所述数据获取模块,包括:
定时开启单元,设置为在检测到所述目标服务器执行所述测试任务时,开启定时器;
数据获取单元,设置为在所述定时器到达预设时间时,获取所述目标服务器对应的心跳数据信息。
在一实施例中,所述压力测试装置,包括:
信息统计模块,设置为监测所述目标服务器的硬件资源信息,根据所述硬件资源信息,确定影响所述目标服务器压力测试结果的因素,生成包含所述因素的压力测试报告并输出,其中,所述硬件资源信息包括CPU信息、内存信息、磁盘IO信息和网速信息。
在一实施例中,所述数据获取模块,还设置为:
在检测到所述目标服务器调用各预设函数和/或各预设方法执行所述测试任务时,获取所述目标服务器对应的心跳数据信息;
所述压力测试装置,包括:
频率统计模块,设置为统计各所述预设函数和/或各所述预设方法在单位时间的调用频率;
提示生成模块,设置为将调用频率最高的预设函数作为热点函数,和/或将调用频率最高的预设方法作为热点方法,生成所述热点函数和/或所述热点方法对应的提示信息,以供用户优化所述热点函数和/或所述热点方法。
参照图6,本申请还提供一种压力测试系统,所述压力测试系统包括通信连接的压力测试设备、模拟客户端和目标服务器,所述压力测试系统包括:
所述压力测试设备在接收到压力测试请求时,确定所述压力测试请求对应被测的目标服务器,及所述目标服务器对应的压力测试配置信息和测试目标值;
所述压力测试设备根据所述压力测试配置信息和所述测试目标值向所述模拟客户端发送调度指令;
所述模拟客户端接收所述调度指令,并根据所述调度指令调整线程数量向所述目标服务器发送测试任务;
所述目标服务器接收并执行所述测试任务;
所述压力测试设备在检测到所述目标服务器执行所述测试任务时,所述压力测试设备获取所述目标服务器对应的心跳数据信息;
所述压力测试设备根据所述心跳数据信息与所述测试目标值,确定所述目标服务器的压力测试结果。
在一实施例中,所述模拟客户端接收所述调度指令,并根据所述调度指令调整线程数量向所述目标服务器发送测试任务的步骤,包括:
所述模拟客户端获取所述调度指令中的任务数量,所述模拟客户端启动所述任务数量对应的任务线程,并通过所述任务线程向所述目标服务器发送所述测试任务。
本实施例中模拟客户端根据待执行的任务数量动态调节执行任务的线程数量,充分利用模拟客户端的资源:若长时间没有往线程池中提交任务,即如果工作线程空闲了指定时间 (指定时间可以设置为1分钟),则该工作线程池自动终止,终止后,若又提交了新的任务,则模拟客户端线程池重新提交一个工作线程;使得充分利用模拟客户端的资源。
本申请还提供一种计算机可读存储介质。本申请计算机可读存储介质上存储有压力测试对应的计算机程序,所述压力测试对应的计算机程序被处理器执行时实现如上所述的压力测试方法的步骤。其中,在所述处理器上运行的压力测试对应的计算机程序被执行时所实现的方法可参照本申请压力测试方法各个实施例,此处不再赘述。
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。

Claims (16)

  1. 一种压力测试方法,其中,所述压力测试方法设置为压力测试设备,所述压力测试设备与目标服务器和模拟客户端通信连接,所述压力测试方法包括如下步骤:
    在接收到压力测试请求时,确定所述压力测试请求对应被测的目标服务器,及所述目标服务器对应的压力测试配置信息和测试目标值;
    根据所述压力测试配置信息和所述测试目标值向所述模拟客户端发送调度指令,以使所述模拟客户端根据所述调度指令调整线程数量向所述目标服务器发送测试任务;
    在检测到所述目标服务器执行所述测试任务时,获取所述目标服务器对应的心跳数据信息;以及,
    根据所述心跳数据信息与所述测试目标值,确定所述目标服务器的压力测试结果。
  2. 如权利要求1所述的压力测试方法,其中,所述在检测到所述目标服务器执行所述测试任务时,获取所述目标服务器对应的心跳数据信息的步骤,包括:
    在检测到所述目标服务器执行所述测试任务时,获取所述目标服务器的任务处理速率和任务处理耗时;以及,
    将所述任务处理速率和所述任务处理耗时作为心跳数据信息;
    所述根据所述心跳数据信息与所述测试目标值,确定所述目标服务器的压力测试结果的步骤,包括:
    获取所述测试目标值中的目标处理速率和目标处理耗时;
    将所述任务处理速率与所述目标处理速率进行比对,将所述任务处理耗时与所述目标处理耗时进行比对;以及,
    若所述任务处理速率与所述目标处理速率匹配,且所述任务处理耗时与所述目标处理耗时匹配,则判定所述目标服务器压力测试通过。
  3. 如权利要求2所述的压力测试方法,其中,所述将所述任务处理速率与所述目标处理速率进行比对,将所述任务处理耗时与所述目标处理耗时进行比对的步骤之后,包括:
    若所述任务处理速率与所述目标处理速率不匹配,和/或所述任务处理耗时与所述目标处理耗时不匹配,则判定所述目标服务器压力测试不通过;
    在所述目标服务器压力测试不通过时,计算任务处理速率与目标处理速率的速率相对值,和/或计算任务处理耗时与目标处理耗时的耗时相对值,并根据所述速率相对值和/或所述耗时相对值调整所述压力测试配置信息,得到新的压力测试配置信息;以及,
    将新的所述压力测试配置信息发送至所述模拟客户端,以对所述目标服务器进行二次测试。
  4. 如权利要求1所述的压力测试方法,其中,所述在检测到所述目标服务器执行所述测试任务时,获取所述目标服务器对应的心跳数据信息的步骤,包括:
    在检测到所述目标服务器执行所述测试任务时,开启定时器;以及,
    在所述定时器到达预设时间时,获取所述目标服务器对应的心跳数据信息。
  5. 如权利要求1所述的压力测试方法,其中,所述在检测到所述目标服务器执行所述测试任务时,获取所述目标服务器对应的心跳数据信息的步骤之后,包括:
    监测所述目标服务器的硬件资源信息,根据所述硬件资源信息,确定影响所述目标服务器压力测试结果的因素,生成包含所述因素的压力测试报告并输出,其中,所述硬件资源信息包括CPU信息、内存信息、磁盘IO信息和网速信息。
  6. 如权利要求1所述的压力测试方法,其中,所述在检测到所述目标服务器执行所述测试任务时,获取所述目标服务器对应的心跳数据信息的步骤,包括:
    在检测到所述目标服务器调用各预设函数和/或各预设方法执行所述测试任务时,获取所述目标服务器对应的心跳数据信息;
    所述在检测到所述目标服务器执行所述测试任务时,获取所述目标服务器对应的心跳数据信息的步骤之后,包括:
    统计各所述预设函数和/或各所述预设方法在单位时间的调用频率;以及,
    将调用频率最高的预设函数作为热点函数,和/或将调用频率最高的预设方法作为热点方法,生成所述热点函数和/或所述热点方法对应的提示信息,以供用户优化所述热点函数和/或所述热点方法。
  7. 一种压力测试装置,其中,所述压力测试装置设置于压力测试设备,所述压力测试装置包括:
    请求接收模块,设置为在接收到压力测试请求时,确定所述压力测试请求对应被测的目标服务器,及所述目标服务器对应的压力测试配置信息和测试目标值;
    信息发送模块,设置为根据所述压力测试配置信息和所述测试目标值向所述模拟客户端发送调度指令,以使所述模拟客户端根据所述调度指令调整线程数量向所述目标服务器发送测试任务;
    数据获取模块,设置为在检测到所述目标服务器执行所述测试任务时,获取所述目标服务器对应的心跳数据信息;以及,
    结果输出模块,设置为根据所述心跳数据信息与所述测试目标值,确定所述目标服务器的压力测试结果。
  8. 如权利要求7所述的压力测试装置,其中,所述数据获取模块,还设置为:
    在检测到所述目标服务器执行所述测试任务时,获取所述目标服务器的任务处理速率和任务处理耗时,将所述任务处理速率和所述任务处理耗时作为心跳数据信息;
    所述结果输出模块,包括:
    获取单元,设置为获取所述测试目标值中的目标处理速率和目标处理耗时;
    比对单元,设置为将所述任务处理速率与所述目标处理速率进行比对,将所述任务处理耗时与所述目标处理耗时进行比对;以及,
    第一判定单元,设置为若所述任务处理速率与所述目标处理速率匹配,且所述任务处理耗时与所述目标处理耗时匹配,则判定所述目标服务器压力测试通过。
  9. 如权利要求8所述的压力测试装置,其中,所述结果输出模块,包括:
    第二判定单元,设置为若所述任务处理速率与所述目标处理速率不匹配,和/或所述任务处理耗时与所述目标处理耗时不匹配,则判定所述目标服务器压力测试不通过;
    调整单元,设置为在所述目标服务器压力测试不通过时,计算任务处理速率与目标处理速率的速率相对值,和/或计算任务处理耗时与目标处理耗时的耗时相对值,并根据所述速率相对值和/或所述耗时相对值调整所述压力测试配置信息,得到新的压力测试配置信息;以及,
    发送单元,设置为将新的所述压力测试配置信息发送至所述模拟客户端,以对所述目标服务器进行二次测试。
  10. 如权利要求7所述的压力测试装置,其中,所述数据获取模块,包括:
    定时开启单元,设置为在检测到所述目标服务器执行所述测试任务时,开启定时器;以及,
    数据获取单元,设置为在所述定时器到达预设时间时,获取所述目标服务器对应的心跳数据信息。
  11. 如权利要求7所述的压力测试装置,其中,所述压力测试装置,包括:
    信息统计模块,设置为监测所述目标服务器的硬件资源信息,根据所述硬件资源信息,确定影响所述目标服务器压力测试结果的因素,生成包含所述因素的压力测试报告并输出,其中,所述硬件资源信息包括CPU信息、内存信息、磁盘IO信息和网速信息。
  12. 如权利要求7所述的压力测试装置,其中,所述数据获取模块,还设置为:
    在检测到所述目标服务器调用各预设函数和/或各预设方法执行所述测试任务时,获取所述目标服务器对应的心跳数据信息;
    所述压力测试装置,包括:
    频率统计模块,设置为统计各所述预设函数和/或各所述预设方法在单位时间的调用频率;以及,
    提示生成模块,设置为将调用频率最高的预设函数作为热点函数,和/或将调用频率最高的预设方法作为热点方法,生成所述热点函数和/或所述热点方法对应的提示信息,以供用户优化所述热点函数和/或所述热点方法。
  13. 一种压力测试系统,其中,所述压力测试系统包括通信连接的压力测试设备、模拟客户端和目标服务器,所述压力测试系统包括:
    所述压力测试设备在接收到压力测试请求时,确定所述压力测试请求对应被测的目标服务器,及所述目标服务器对应的压力测试配置信息和测试目标值;
    所述压力测试设备根据所述压力测试配置信息和所述测试目标值向所述模拟客户端发送调度指令;
    所述模拟客户端接收所述调度指令,并根据所述调度指令调整线程数量向所述目标服务器发送测试任务;
    所述目标服务器接收并执行所述测试任务;
    所述压力测试设备在检测到所述目标服务器执行所述测试任务时,所述压力测试设备获取所述目标服务器对应的心跳数据信息;以及,
    所述压力测试设备根据所述心跳数据信息与所述测试目标值,确定所述目标服务器的压力测试结果。
  14. 如权利要求13所述的压力测试系统,其中,所述模拟客户端接收所述调度指令,并根据所述调度指令调整线程数量向所述目标服务器发送测试任务的步骤,包括:
    所述模拟客户端获取所述调度指令中的任务数量,所述模拟客户端启动所述任务数量对应的任务线程,并通过所述任务线程向所述目标服务器发送所述测试任务。
  15. 一种压力测试设备,其中,所述压力测试设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的压力测试对应的计算机程序,所述压力测试对应的计算机程序被所述处理器执行时实现如权利要求1-6任一项所述的方法。
  16. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有压力测试对应的计算机程序,所述压力测试对应的计算机程序被处理器执行时实现如权利要求1-6任一项所述的方法。
PCT/CN2020/079999 2019-05-31 2020-03-18 压力测试方法、装置、系统、设备及计算机可读存储介质 WO2020238345A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910475984.1A CN110175110B (zh) 2019-05-31 2019-05-31 压力测试方法、装置、系统、设备及计算机可读存储介质
CN201910475984.1 2019-05-31

Publications (1)

Publication Number Publication Date
WO2020238345A1 true WO2020238345A1 (zh) 2020-12-03

Family

ID=67697691

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/079999 WO2020238345A1 (zh) 2019-05-31 2020-03-18 压力测试方法、装置、系统、设备及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN110175110B (zh)
WO (1) WO2020238345A1 (zh)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112954449A (zh) * 2021-01-29 2021-06-11 浙江大华技术股份有限公司 视频流处理方法、系统、电子装置和存储介质
CN113360390A (zh) * 2021-06-24 2021-09-07 平安普惠企业管理有限公司 接口的自动化测试方法、装置、设备以及存储介质
CN113704031A (zh) * 2021-08-06 2021-11-26 北京罗克维尔斯科技有限公司 系统压力测试方法、装置、介质及设备
CN113900915A (zh) * 2021-09-28 2022-01-07 盐城金堤科技有限公司 确定服务性能状态的方法和装置、及存储介质和电子设备
CN114003442A (zh) * 2021-09-26 2022-02-01 苏州浪潮智能科技有限公司 一种arm服务器的压力测试方法、装置、设备及介质
CN115022203A (zh) * 2022-06-30 2022-09-06 唯品会(广州)软件有限公司 一种压力测试方法和装置
CN115396411A (zh) * 2022-08-23 2022-11-25 北京星汉未来网络科技有限公司 一种获取目标服务器的方法、装置、系统及介质
CN116074555A (zh) * 2022-12-23 2023-05-05 天翼云科技有限公司 一种云边架构视频监控平台的全链路性能测试方法及系统
CN117389813A (zh) * 2023-11-07 2024-01-12 中科驭数(北京)科技有限公司 Rdma测试方法、装置、电子设备及计算机存储介质

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110175110B (zh) * 2019-05-31 2022-04-01 深圳前海微众银行股份有限公司 压力测试方法、装置、系统、设备及计算机可读存储介质
CN111026627A (zh) * 2019-12-10 2020-04-17 北京奇艺世纪科技有限公司 压力测试方法、装置及服务器
CN111343048B (zh) * 2020-02-28 2024-04-09 深圳市网心科技有限公司 压力测试方法及装置、计算机装置及存储介质
CN111488271B (zh) * 2020-03-10 2023-10-27 中移(杭州)信息技术有限公司 消息中间件的调优方法、系统、电子设备及存储介质
CN111666194B (zh) * 2020-05-21 2022-02-08 平安科技(深圳)有限公司 加压参数自适应调节方法、装置、计算机设备及存储介质
CN111625469B (zh) * 2020-06-11 2024-09-20 深圳前海微众银行股份有限公司 压力测试方法、装置、设备及计算机可读存储介质
CN114077449B (zh) * 2020-08-20 2023-08-01 网联清算有限公司 数据库服务器的测试方法、装置、电子设备和存储介质
CN112162926A (zh) * 2020-09-30 2021-01-01 新华三大数据技术有限公司 一种自动化测试方法及装置
CN113778768B (zh) * 2021-08-24 2024-08-23 深圳市联影高端医疗装备创新研究院 重建服务器测试方法、装置、计算机设备和存储介质
CN113806193A (zh) * 2021-08-30 2021-12-17 济南浪潮数据技术有限公司 一种大批量服务器压力测试系统、方法及装置
CN113760777B (zh) * 2021-10-12 2024-01-23 平安国际智慧城市科技股份有限公司 应用程序压力测试方法、装置、设备及存储介质
CN114328196A (zh) * 2021-12-16 2022-04-12 北京明朝万达科技股份有限公司 数据防泄漏系统的测试方法、装置、设备及存储介质
CN116095022B (zh) * 2022-12-27 2024-09-27 天翼云科技有限公司 一种针对网络节点下带宽压测的调度策略确定方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6324492B1 (en) * 1998-01-20 2001-11-27 Microsoft Corporation Server stress testing using multiple concurrent client simulation
CN108763009A (zh) * 2018-06-06 2018-11-06 驭势(上海)汽车科技有限公司 服务器压力测试方法、系统、设备及计算机可读存储介质
CN108959000A (zh) * 2018-06-20 2018-12-07 深圳市腾讯网络信息技术有限公司 一种服务器压力测试方法、系统及终端
CN110175110A (zh) * 2019-05-31 2019-08-27 深圳前海微众银行股份有限公司 压力测试方法、装置、系统、设备及计算机可读存储介质

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104484250B (zh) * 2014-11-28 2018-04-27 英业达科技有限公司 快速通道互联总线的压力测试方法和压力测试装置
CN106502876B (zh) * 2016-10-26 2020-01-10 腾讯科技(深圳)有限公司 一种热点函数确定的方法及相关设备
CN109783334A (zh) * 2018-12-14 2019-05-21 平安普惠企业管理有限公司 压力测试报告生成方法、装置、计算机设备和存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6324492B1 (en) * 1998-01-20 2001-11-27 Microsoft Corporation Server stress testing using multiple concurrent client simulation
CN108763009A (zh) * 2018-06-06 2018-11-06 驭势(上海)汽车科技有限公司 服务器压力测试方法、系统、设备及计算机可读存储介质
CN108959000A (zh) * 2018-06-20 2018-12-07 深圳市腾讯网络信息技术有限公司 一种服务器压力测试方法、系统及终端
CN110175110A (zh) * 2019-05-31 2019-08-27 深圳前海微众银行股份有限公司 压力测试方法、装置、系统、设备及计算机可读存储介质

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112954449A (zh) * 2021-01-29 2021-06-11 浙江大华技术股份有限公司 视频流处理方法、系统、电子装置和存储介质
CN113360390A (zh) * 2021-06-24 2021-09-07 平安普惠企业管理有限公司 接口的自动化测试方法、装置、设备以及存储介质
CN113704031A (zh) * 2021-08-06 2021-11-26 北京罗克维尔斯科技有限公司 系统压力测试方法、装置、介质及设备
CN113704031B (zh) * 2021-08-06 2023-10-10 北京罗克维尔斯科技有限公司 系统压力测试方法、装置、介质及设备
CN114003442B (zh) * 2021-09-26 2023-09-12 苏州浪潮智能科技有限公司 一种arm服务器的压力测试方法、装置、设备及介质
CN114003442A (zh) * 2021-09-26 2022-02-01 苏州浪潮智能科技有限公司 一种arm服务器的压力测试方法、装置、设备及介质
CN113900915A (zh) * 2021-09-28 2022-01-07 盐城金堤科技有限公司 确定服务性能状态的方法和装置、及存储介质和电子设备
CN113900915B (zh) * 2021-09-28 2024-03-08 盐城天眼察微科技有限公司 确定服务性能状态的方法和装置、及存储介质和电子设备
CN115022203A (zh) * 2022-06-30 2022-09-06 唯品会(广州)软件有限公司 一种压力测试方法和装置
CN115022203B (zh) * 2022-06-30 2024-05-07 唯品会(广州)软件有限公司 一种压力测试方法和装置
CN115396411B (zh) * 2022-08-23 2023-04-28 北京星汉未来网络科技有限公司 一种获取目标服务器的方法、装置、系统及介质
CN115396411A (zh) * 2022-08-23 2022-11-25 北京星汉未来网络科技有限公司 一种获取目标服务器的方法、装置、系统及介质
CN116074555A (zh) * 2022-12-23 2023-05-05 天翼云科技有限公司 一种云边架构视频监控平台的全链路性能测试方法及系统
CN116074555B (zh) * 2022-12-23 2024-06-07 天翼云科技有限公司 一种云边架构视频监控平台的全链路性能测试方法及系统
CN117389813A (zh) * 2023-11-07 2024-01-12 中科驭数(北京)科技有限公司 Rdma测试方法、装置、电子设备及计算机存储介质

Also Published As

Publication number Publication date
CN110175110B (zh) 2022-04-01
CN110175110A (zh) 2019-08-27

Similar Documents

Publication Publication Date Title
WO2020238345A1 (zh) 压力测试方法、装置、系统、设备及计算机可读存储介质
US10812333B2 (en) Microservice configuration apparatus and method
US10394693B2 (en) Quantization of data streams of instrumented software
WO2021139103A1 (zh) 加压参数自适应调节方法、装置、计算机设备及存储介质
WO2021114829A1 (zh) 基于令牌桶的接口限流方法、装置、系统及可读存储介质
CN113590403B (zh) 压力测试方法、装置、系统、电子设备、存储介质及产品
CN109542718B (zh) 服务调用的监控方法、装置、存储介质及服务器
US9935853B2 (en) Application centric network experience monitoring
WO2019178957A1 (zh) 分布式系统的测试方法、装置、计算机设备及存储介质
CN113609026B (zh) 对服务器进行压力测试的方法和装置
WO2022267348A1 (zh) 一种bmc参数配置及生效的方法、装置、设备和介质
WO2019169727A1 (zh) 网络流量测试方法、装置、设备以及计算机可读存储介质
CA3182794A1 (en) Resource adjusting method, device, equipment and storage medium for flink task processing
TW202215262A (zh) 一種具延遲感知負載平衡的反向代理方法和存儲裝置
CN111724262A (zh) 一种应用服务器后续包查询系统及其工作方法
WO2022022446A1 (zh) 一种打印日志的方法、装置及系统
CN111782364B (zh) 服务调用方法、装置、电子设备及存储介质
US12112212B2 (en) Controlling system load based on memory bandwidth
CN116860657B (zh) 压测控制处理方法、装置、计算机设备和存储介质
US20240005182A1 (en) Streaming Media Processing Method, Device and Electronic Equipment Based on Inference Service
CN115174665B (zh) 登录状态确定方法、装置、设备及存储介质
WO2021190281A1 (zh) 网络带宽调整方法和相关产品
CN111782364A (zh) 服务调用方法、装置、电子设备及存储介质
CN118035215A (zh) 一种数据库中间件的实时容量评估方法和装置
CN118714040A (zh) 一种基于智算网络组件的测试方法、系统、设备和介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20814114

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20814114

Country of ref document: EP

Kind code of ref document: A1