Database pressure test method and system, and computer storage medium
A database and execution plan technology, applied in the software field, can solve the problem of high cost of pressure measurement, and achieve the effect of reducing labor costs and workload
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0057] Such as figure 2 As shown, it is a flow chart of the database pressure testing method in the first embodiment of the present invention, and the method includes the following steps:
[0058] Step S101, obtaining the created stress test task, and generating a corresponding stress test instance according to the execution plan and stress test task information in the stress test task;
[0059] Specifically, the execution plan can be used to set a single timing and periodic execution plan by itself through setting up or configuring the execution plan template;
[0060] The execution plan template mainly defines multiple pressure test conditions, and different pressure test conditions specify the execution time and repeated execution times. Generate the underlying specific execution plan by configuring the specified execution date of the execution plan template, so as to realize the rapid configuration of the execution plan for the pressure test task;
[0061] A CronTask st...
Embodiment 2
[0081] Please combine Figure 3 to Figure 8 As shown, it is a flow chart of the database stress testing method in the second embodiment of the present invention, and the step of generating a corresponding stress testing instance according to the execution plan and the stress testing task information in the stress testing task described in step S101 is further include:
[0082] Execute the execution plan set by yourself, and execute it regularly and periodically through a single stress test condition set by yourself, and generate the stress test instance in summary.
[0083] Alternatively, execute the execution plan configured in the execution plan template in the stress testing task, and execute periodically according to multiple stress testing conditions defined in the template, specifying the execution time for different stress testing conditions, and generate the stress testing instance in summary.
[0084] For details, please refer to Figure 7 to Figure 8 , the executio...
Embodiment 3
[0119] The present invention also provides a database pressure measurement system, such as Figure 9 As shown, the system includes:
[0120] The acquiring module 10 is configured to acquire the created stress testing task, and generate a corresponding stress testing instance according to the execution plan and the stress testing task information in the stress testing task;
[0121] A task scheduling module 20, configured to regularly trigger the stress test task according to the stress test instance, and generate a specific stress test task thread;
[0122] A database adaptation module 30, configured to connect the stress testing task thread to the database to be tested, and construct an adapted test environment according to the database configuration information of the database to be tested;
[0123] The database stress testing module 40 is configured to invoke the test environment, connect to the database to be stress tested, and execute the stress testing task.
[0124] S...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


