[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN113204485A - Memory database pressure testing method, system, terminal and storage medium - Google Patents

Memory database pressure testing method, system, terminal and storage medium Download PDF

Info

Publication number
CN113204485A
CN113204485A CN202110514390.4A CN202110514390A CN113204485A CN 113204485 A CN113204485 A CN 113204485A CN 202110514390 A CN202110514390 A CN 202110514390A CN 113204485 A CN113204485 A CN 113204485A
Authority
CN
China
Prior art keywords
test
pressure
configuration
memory database
sample
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.)
Pending
Application number
CN202110514390.4A
Other languages
Chinese (zh)
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.)
Shandong Yingxin Computer Technology Co Ltd
Original Assignee
Shandong Yingxin Computer Technology 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 Shandong Yingxin Computer Technology Co Ltd filed Critical Shandong Yingxin Computer Technology Co Ltd
Priority to CN202110514390.4A priority Critical patent/CN113204485A/en
Publication of CN113204485A publication Critical patent/CN113204485A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • 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/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a memory database pressure test method, a system, a terminal and a storage medium, comprising the following steps: setting a plurality of test cases, wherein each test case corresponds to a specific memory database configuration parameter, and storing the test cases to a configuration file; sequentially executing the test examples in the configuration file; selecting a test sample corresponding to the current test case from a preset pressure test sample library, and executing a pressure test by using the corresponding test sample; and acquiring a pressure test result of the current test example, and storing the pressure test result to a test log. The MemKeyDB single-instance pressure test method can be used for pressure test of MemKeyDB multiple-instance and clusters, reduces the requirement on the professional level of testers, realizes the automatic test of MemKeyDB, reduces the thought test risk, and improves the test efficiency and accuracy.

Description

Memory database pressure testing method, system, terminal and storage medium
Technical Field
The invention relates to the technical field of big data, in particular to a method, a system, a terminal and a storage medium for testing the pressure of a memory database.
Background
With the rapid development of big data technology, the testing requirements for the performance and stability of big data components become more and more important, so it is a very necessary process to perform a stress test in the process of selecting the type of big data components to determine whether the performance of the selected components meets the business requirements. The MemKeyDB depends on Redis core codes maintained by Antirez and active contribution codes of Internet customers, and meets a Redis branch version generated by the requirement of fast iteration and fast solution of pain points in business of China Internet customers. Among them, how to better perform the stress test on the MemKeyDB is an important issue to be considered.
The MemKeyDB is used as a high-performance memory database, the testing method of the MemKeyDB is generally to use a self-contained Benchmark to perform pressure testing, although the testing tool can realize the performance testing of the MemKeyDB, only the configuration and parameters of the testing are defined, the automatic configuration testing of all the parameters of the MemKeyDB is not realized, the testing tool needs professional testing personnel to operate the testing tool, and the testing parameters are more and easy to make mistakes.
Disclosure of Invention
In view of the above-mentioned deficiencies of the prior art, the present invention provides a method, a system, a terminal and a storage medium for testing the pressure of a memory database, so as to solve the above-mentioned technical problems.
In a first aspect, the present invention provides a method for testing a memory database pressure, including:
setting a plurality of test cases, wherein each test case corresponds to a specific memory database configuration parameter, and storing the test cases to a configuration file;
sequentially executing the test examples in the configuration file;
selecting a test sample corresponding to the current test case from a preset pressure test sample library, and executing a pressure test by using the corresponding test sample;
and acquiring a pressure test result of the current test example, and storing the pressure test result to a test log.
Further, the setting a plurality of test cases, each test case corresponding to a specific in-memory database configuration parameter, and storing the plurality of test cases in a configuration file includes:
appointing to create a memory database configuration file, wherein the configuration file comprises control symbols and logs;
configuring the operation modes of the Server and the Client basic configuration and the test case, the memory configuration of a single test case and a data persistence directory in a configuration file.
Further, the sequentially executing the test cases in the configuration file includes:
and sequentially importing the configuration parameters corresponding to the test case to be executed into the memory database according to the operation mode to be used as the operation parameters of the memory database.
Further, the selecting a test sample corresponding to the current test case from the preset pressure test sample library, and performing the pressure test by using the corresponding test sample includes:
presetting a pressure test sample library, and storing test samples corresponding to each test case in the pressure test sample library;
creating a plurality of concurrent threads and respectively extracting a plurality of test samples corresponding to the current test example from the pressure test sample library;
and sending a test request to the memory database by using a plurality of test samples corresponding to the current test case.
In a second aspect, the present invention provides a memory database stress testing system, including:
the file configuration unit is used for setting a plurality of test cases, each test case corresponds to a specific memory database configuration parameter, and the plurality of test cases are stored in a configuration file;
the example running unit is configured to sequentially execute the test examples in the configuration file;
the sample testing unit is configured and used for selecting a testing sample corresponding to the current testing example from a preset pressure testing sample library and executing pressure testing by using the corresponding testing sample;
and the result acquisition unit is configured to acquire a pressure test result of the current test case and store the pressure test result to the test log.
Further, the file configuration unit includes:
the file creation module is configured to designate and create a configuration file of the memory database, wherein the configuration file comprises a control symbol and a log;
and the instance configuration module is used for configuring the operation modes of the Server and the Client basic configuration and the test instances, the memory configuration of a single test instance and the data persistence directory in the configuration file.
Further, the instance execution unit includes:
and the parameter import module is configured to import the configuration parameters corresponding to the test cases to be executed into the memory database in sequence according to the operation mode to serve as the operation parameters of the memory database.
Further, the sample testing unit includes:
the system comprises a sample storage module, a pressure test sample library and a test data processing module, wherein the sample storage module is configured and used for presetting a pressure test sample library and storing test samples corresponding to test cases in the pressure test sample library;
the concurrent extraction module is configured to create a plurality of concurrent threads and respectively extract a plurality of test samples corresponding to the current test case from the pressure test sample library;
and the request sending module is configured to send a test request to the memory database by using a plurality of test samples corresponding to the current test case.
In a third aspect, a terminal is provided, including:
a processor, a memory, wherein,
the memory is used for storing a computer program which,
the processor is used for calling and running the computer program from the memory so as to make the terminal execute the method of the terminal.
In a fourth aspect, a computer storage medium is provided having stored therein instructions that, when executed on a computer, cause the computer to perform the method of the above aspects.
The beneficial effect of the invention is that,
the memory database pressure testing method, the memory database pressure testing system, the memory database pressure testing terminal and the memory medium can perform pressure testing on the MemKeyDB single instance and also on MemKeyDB multiple instances and clusters, reduce the requirement on the professional level of testers, realize automatic testing on MemKeyDB, reduce the test risk and improve the testing efficiency and accuracy.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention.
FIG. 2 is a schematic block diagram of a system of one embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. 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.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention. The execution subject in fig. 1 may be an in-memory database pressure test system.
As shown in fig. 1, the method includes:
step 110, setting a plurality of test cases, wherein each test case corresponds to a specific memory database configuration parameter, and storing the plurality of test cases to a configuration file;
step 120, executing the test cases in the configuration file in sequence;
step 130, selecting a test sample corresponding to the current test case from a preset pressure test sample library, and executing a pressure test by using the corresponding test sample;
step 140, obtaining a pressure test result of the current test case, and storing the pressure test result in a test log.
The pressure tester currently implementing MemKeyDB has two categories: redis-benchmark and Memtier _ benchmark
Redis-benchmark
Redis-benchmark is a pressure testing tool carried by Redis, is also integrated into MemKeyDB, simulates N clients to simultaneously send M requests to perform pressure testing on the MemKeyDB, only explains configuration parameters and testing modes of testing, has more configuration parameters and complex configuration, and does not consider performing all functional tests automatically;
2、Memtier_benchmark
memtier _ benchmark is a command line tool derived from Redis Labs that is capable of generating a wide variety of traffic patterns and can benchmark MemKeyDB. The tool provides rich custom options and reporting functions, can be easily used through a command line interface, and cannot test a nonvolatile memory part at present. Also, the tool requires manual operation by a professional.
Specifically, the memory database pressure testing method includes:
1) and (3) specification parameter configuration: appointing to create MemKeyDB configuration files, PID, logs and the like, and configuring MemKeyDB Server terminal and Client terminal basic configuration such as MemKeyDB operation instance quantity, single instance memory configuration, data persistence directories and the like;
2) run the MemKeyDB instance: starting the MemKeyDB instance and determining the instance to operate correctly;
3) and (3) carrying out a pressure test: and starting a MemKeyDB Client pressure test program, wherein the pressure test program extracts pressure test samples from a preset pressure test sample library for pressure test at one time, and each pressure test sample corresponds to different test configuration identifiers of the MemKeyDB to be tested. The pressure test program obtains the test result of the test request and stores the test result in association with the test configuration identifier of the MemKeyDB to be tested;
4) and outputting a test result: if the pressure test program extracts the pressure test sample from the pressure test sample library, and finds that no residual pressure test sample exists in the pressure test sample library, the test result stored in the sample test process and the corresponding test configuration identification are summarized and output.
The invention realizes the automatic pressure test of MemKeyDB single-instance, multi-instance and cluster through the standard test file and the reasonable sample library design. The method comprises the following steps:
a specification configuration file: appointing to create a MemKeyDB configuration file, including a PID, a log and the like, and configuring a Server and Client basic configuration such as a MemKeyDB operation instance mode, single instance memory configuration, a data persistence directory and the like;
presetting a pressure test sample library: setting a test sample library according to the test type, data size, data type and the like to be tested, wherein each test sample corresponds to different test configuration identifications;
automated pressure testing: starting a pressure test program to ensure that the Server is normally started, and then carrying out pressure test by the Client through FOR circulation according to the number of samples set in the test sample library until all pressure test samples run out;
collecting test results: and the test process automatically acquires the test result of the test request, stores the test result in association with the test configuration identifier of the MemKeyDB to be tested, and collects and outputs the test result stored in the sample test process and the corresponding test configuration identifier when the test execution of all the pressure test samples in the pressure test sample library is completed.
According to the pressure testing method, the sample testing program is set to extract different pressure testing samples from the pressure testing sample library and send testing requests to the MemKeyDB to be tested, so that the detailed testing results of the pressure testing of the MemKeyDB can be obtained, and when the testing results are unsuccessful, the corresponding pressure testing samples and the corresponding testing configuration identifications can be found.
The specific operation steps are as follows:
s101, MemKeyDB configuration files are standardized, including storage of files such as PID, logs and data persistence, setting of persistence types and the like;
specifically, the standard MemKeyDB configuration file includes a configuration file of the MemKeyDB, a process PID, a LOG, and a persistent data storage directory, and the basic parameter configuration includes a MemKeyDB operation IP, a port, an instance available memory, and the like.
S102, presetting a plurality of pressure test samples in a pressure test sample library, wherein each pressure test sample corresponds to different test configuration identifications of MemKeyDB to be tested
Specifically, the pressure test sample library defines pressure test samples in advance, and after the test starts, the pressure test samples are read from the pressure test sample library in sequence, and the test samples may be preset according to different pressure test configuration identifiers, for example, the pressure test samples may be set, where the pressure test samples are different data structures supported by MemKeyDB, the size of data values, whether the pressure test samples operate in a non-volatile memory environment, and the like, and may further include the number of MemKeyDB clients, the pressure values of the request number, and the like. Each pressure test sample is called by the Client runtime, and the samples are automatically called through a plurality of for loops.
S103, the pressure test process extracts different pressure test samples from the pressure test sample library and sends test requests to the MemKeyDB to be tested according to the extracted pressure test samples
Specifically, according to the configuration of the S101 and S102, the MemKeyDB Server is started first, the started MemKeyDB may be a single instance, or may be a multiple instance, or in a cluster manner, and this time, the description is given with reference to fig. 2 for the MemKeyDB starting cluster. And then starting a plurality of Client pressure processes according to the pressure test sample preset in the step S102, wherein the sample test processes can be preset by an administrator according to needs. For example, the sample testing process sequentially reads the pressure test samples in the sample testing library, assuming that there are 3 pressure test samples which are A, B, C respectively, first executes the first pressure test sample a, concurrently sends a test request to the MemKeyDB instance under test according to the extracted test request sample, and for example, may send a pressure request to the MemKeyDB under test according to the IP address and the port number carried in the extracted test request sample, and implement the pressure test on the MemKeyDB through different pressure parameters. The pressure test program with the test samples starts a plurality of Client processes, each process has an IP address, a port number and one pressure test sample, and the MemKeyDB cluster receives a pressure request of the Client and distributes the pressure request to a server in the cluster for processing.
Similarly, when the sample A to be tested is tested, the test sample B is read cyclically to perform the above test.
And S104, the sample testing process respectively obtains the testing results of the testing requests, and stores the testing results and the testing configuration identification of the MemKeyDB to be tested in a Log Log file in a related manner.
Specifically, the processing of the stress test request is successful, the MemKeyDB test program generates a test log, and if the processing fails, detailed information of the processing failure is returned. After the test result logs of each test request are obtained, the average value of the test results of all the examples and TPS are written into a new log file, and the test results and the test configuration identification corresponding to the test request are stored in a correlated mode, so that when the test is unsuccessful, the resource identification corresponding to the test request which is unsuccessful can be conveniently checked, and the test result corresponding to the test request can be inquired according to the test configuration identification of the MemKeyDB to be tested subsequently.
S105, summarizing and outputting the test result stored in the sample test process and the corresponding test configuration identifier
Specifically, when all the pressure test samples in the pressure test sample library have been taken out by the sample test program and tested, that is, after sending a test request and obtaining a test result, the pressure test apparatus summarizes, formats and outputs the test result stored by the multiple concurrent threads and the corresponding test configuration identifier. And summarizing and outputting MemKeyDB test configuration identification and corresponding MemKeyDB key results, including average execution time and total TPS. Therefore, the test result can be conveniently checked and graphically displayed by the tester.
As shown in fig. 2, the system 200 includes:
a file configuration unit 210 configured to set a plurality of test cases, each test case corresponding to a specific in-memory database configuration parameter, and store the plurality of test cases in a configuration file;
an example running unit 220 configured to sequentially execute the test examples in the configuration file;
a sample testing unit 230 configured to select a test sample corresponding to the current test case from a preset pressure test sample library, and perform a pressure test using the corresponding test sample;
the result obtaining unit 240 is configured to obtain a stress test result of the current test case, and store the stress test result in a test log.
Optionally, as an embodiment of the present invention, the file configuration unit includes:
the file creation module is configured to designate and create a configuration file of the memory database, wherein the configuration file comprises a control symbol and a log;
and the instance configuration module is used for configuring the operation modes of the Server and the Client basic configuration and the test instances, the memory configuration of a single test instance and the data persistence directory in the configuration file.
Optionally, as an embodiment of the present invention, the instance running unit includes:
and the parameter import module is configured to import the configuration parameters corresponding to the test cases to be executed into the memory database in sequence according to the operation mode to serve as the operation parameters of the memory database.
Optionally, as an embodiment of the present invention, the sample testing unit includes:
the system comprises a sample storage module, a pressure test sample library and a test data processing module, wherein the sample storage module is configured and used for presetting a pressure test sample library and storing test samples corresponding to test cases in the pressure test sample library;
the concurrent extraction module is configured to create a plurality of concurrent threads and respectively extract a plurality of test samples corresponding to the current test case from the pressure test sample library;
and the request sending module is configured to send a test request to the memory database by using a plurality of test samples corresponding to the current test case.
Fig. 3 is a schematic structural diagram of a terminal 300 according to an embodiment of the present invention, where the terminal 300 may be used to execute the memory database stress testing method according to the embodiment of the present invention.
Among them, the terminal 300 may include: a processor 310, a memory 320, and a communication unit 330. The components communicate via one or more buses, and those skilled in the art will appreciate that the architecture of the servers shown in the figures is not intended to be limiting, and may be a bus architecture, a star architecture, a combination of more or less components than those shown, or a different arrangement of components.
The memory 320 may be used for storing instructions executed by the processor 310, and the memory 320 may be implemented by any type of volatile or non-volatile storage terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The executable instructions in memory 320, when executed by processor 310, enable terminal 300 to perform some or all of the steps in the method embodiments described below.
The processor 310 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory. The processor may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the processor 310 may include only a Central Processing Unit (CPU). In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
A communication unit 330, configured to establish a communication channel so that the storage terminal can communicate with other terminals. And receiving user data sent by other terminals or sending the user data to other terminals.
The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and the program may include some or all of the steps in the embodiments provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Therefore, the invention can perform pressure test on the MemKeyDB single example and the MemKeyDB multiple examples and clusters, reduces the requirement on the professional level of a tester, realizes the automatic test on the MemKeyDB, reduces the test risk, and improves the test efficiency and accuracy.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of a software product, where the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, and the storage medium can store program codes, and includes instructions for enabling a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) to perform all or part of the steps of the method in the embodiments of the present invention.
The same and similar parts in the various embodiments in this specification may be referred to each other. Especially, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the description in the method embodiment.
In the embodiments provided in the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A memory database pressure test method is characterized by comprising the following steps:
setting a plurality of test cases, wherein each test case corresponds to a specific memory database configuration parameter, and storing the test cases to a configuration file;
sequentially executing the test examples in the configuration file;
selecting a test sample corresponding to the current test case from a preset pressure test sample library, and executing a pressure test by using the corresponding test sample;
and acquiring a pressure test result of the current test example, and storing the pressure test result to a test log.
2. The method of claim 1, wherein the setting a plurality of test cases, each test case corresponding to a specific in-memory database configuration parameter, and saving the plurality of test cases to a configuration file comprises:
appointing to create a memory database configuration file, wherein the configuration file comprises control symbols and logs;
configuring the operation modes of the Server and the Client basic configuration and the test case, the memory configuration of a single test case and a data persistence directory in a configuration file.
3. The method of claim 2, wherein said executing the test cases in the configuration file in sequence comprises:
and sequentially importing the configuration parameters corresponding to the test case to be executed into the memory database according to the operation mode to be used as the operation parameters of the memory database.
4. The method of claim 1, wherein the selecting a test sample corresponding to the current test case from a preset pressure test sample library and performing the pressure test using the corresponding test sample comprises:
presetting a pressure test sample library, and storing test samples corresponding to each test case in the pressure test sample library;
creating a plurality of concurrent threads and respectively extracting a plurality of test samples corresponding to the current test example from the pressure test sample library;
and sending a test request to the memory database by using a plurality of test samples corresponding to the current test case.
5. An in-memory database stress test, comprising:
the file configuration unit is used for setting a plurality of test cases, each test case corresponds to a specific memory database configuration parameter, and the plurality of test cases are stored in a configuration file;
the example running unit is configured to sequentially execute the test examples in the configuration file;
the sample testing unit is configured and used for selecting a testing sample corresponding to the current testing example from a preset pressure testing sample library and executing pressure testing by using the corresponding testing sample;
and the result acquisition unit is configured to acquire a pressure test result of the current test case and store the pressure test result to the test log.
6. The system of claim 5, wherein the file configuration unit comprises:
the file creation module is configured to designate and create a configuration file of the memory database, wherein the configuration file comprises a control symbol and a log;
and the instance configuration module is used for configuring the operation modes of the Server and the Client basic configuration and the test instances, the memory configuration of a single test instance and the data persistence directory in the configuration file.
7. The system of claim 6, wherein the instance execution unit comprises:
and the parameter import module is configured to import the configuration parameters corresponding to the test cases to be executed into the memory database in sequence according to the operation mode to serve as the operation parameters of the memory database.
8. The system of claim 5, wherein the sample testing unit comprises:
the system comprises a sample storage module, a pressure test sample library and a test data processing module, wherein the sample storage module is configured and used for presetting a pressure test sample library and storing test samples corresponding to test cases in the pressure test sample library;
the concurrent extraction module is configured to create a plurality of concurrent threads and respectively extract a plurality of test samples corresponding to the current test case from the pressure test sample library;
and the request sending module is configured to send a test request to the memory database by using a plurality of test samples corresponding to the current test case.
9. A terminal, comprising:
a processor;
a memory for storing instructions for execution by the processor;
wherein the processor is configured to perform the method of any one of claims 1-4.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-4.
CN202110514390.4A 2021-05-08 2021-05-08 Memory database pressure testing method, system, terminal and storage medium Pending CN113204485A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110514390.4A CN113204485A (en) 2021-05-08 2021-05-08 Memory database pressure testing method, system, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110514390.4A CN113204485A (en) 2021-05-08 2021-05-08 Memory database pressure testing method, system, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN113204485A true CN113204485A (en) 2021-08-03

Family

ID=77031944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110514390.4A Pending CN113204485A (en) 2021-05-08 2021-05-08 Memory database pressure testing method, system, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113204485A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113961455A (en) * 2021-10-15 2022-01-21 杭州安恒信息技术股份有限公司 Database pressure measurement method, system and computer storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6859758B1 (en) * 2002-11-12 2005-02-22 Cisco Technology, Inc. Stress testing database storage
CN101093462A (en) * 2006-06-22 2007-12-26 上海全成通信技术有限公司 Automatization method for testing schooling pressure on database application
CN105207832A (en) * 2014-06-13 2015-12-30 腾讯科技(深圳)有限公司 Server stress testing method and device
CN110389900A (en) * 2019-07-10 2019-10-29 深圳市腾讯计算机系统有限公司 A kind of distributed experiment & measurement system test method, device and storage medium
CN110413594A (en) * 2019-06-25 2019-11-05 苏州浪潮智能科技有限公司 A kind of more example method for testing pressure of Redis and device
CN111400186A (en) * 2020-03-19 2020-07-10 时时同云科技(成都)有限责任公司 Performance test method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6859758B1 (en) * 2002-11-12 2005-02-22 Cisco Technology, Inc. Stress testing database storage
CN101093462A (en) * 2006-06-22 2007-12-26 上海全成通信技术有限公司 Automatization method for testing schooling pressure on database application
CN105207832A (en) * 2014-06-13 2015-12-30 腾讯科技(深圳)有限公司 Server stress testing method and device
CN110413594A (en) * 2019-06-25 2019-11-05 苏州浪潮智能科技有限公司 A kind of more example method for testing pressure of Redis and device
CN110389900A (en) * 2019-07-10 2019-10-29 深圳市腾讯计算机系统有限公司 A kind of distributed experiment & measurement system test method, device and storage medium
CN111400186A (en) * 2020-03-19 2020-07-10 时时同云科技(成都)有限责任公司 Performance test method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李翀等: "一种高效的Redis Cluster的分布式缓存系统", 计算机系统应用, vol. 27, no. 10 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113961455A (en) * 2021-10-15 2022-01-21 杭州安恒信息技术股份有限公司 Database pressure measurement method, system and computer storage medium

Similar Documents

Publication Publication Date Title
CN110554938B (en) BIOS (basic input output System) testing method, system, terminal and storage medium based on script set
CN112269697B (en) Equipment storage performance testing method, system and related device
CN110557299A (en) network transmission function batch test method, system, terminal and storage medium
CN114546738A (en) Server general test method, system, terminal and storage medium
CN112559525B (en) Data checking system, method, device and server
CN109788052B (en) Server configuration remote query method, device, terminal and storage medium
CN111966551A (en) Method, system, terminal and storage medium for verifying remote command execution result
CN111124772A (en) Cloud platform storage performance testing method, system, terminal and storage medium
CN113204485A (en) Memory database pressure testing method, system, terminal and storage medium
CN111124854A (en) Method, system, terminal and storage medium for distributing smoking test cases
CN109324933A (en) A kind of AEP memory reboot test method, device, terminal and storage medium
CN111124890B (en) Distributed database performance test method, system, terminal and storage medium
CN111338964B (en) Ordered batch test method, system, terminal and storage medium
CN110543394A (en) server sensor information consistency testing method, system, terminal and storage medium
CN110865932A (en) Program internal interface testing method, system, terminal and storage medium
CN112667498B (en) Server building method, device, computer equipment and readable storage medium
CN111752677B (en) Cloud resource configuration method, system, terminal and storage medium
CN116702668A (en) Regression testing method and device, electronic equipment and storage medium
CN109840213B (en) Test data creating method, device, terminal and storage medium for GUI test
CN111143193B (en) Big data service testing method, system, terminal and storage medium based on RobotFramework
CN111858198A (en) Multi-scheme memory plugging test method, system, terminal and storage medium
CN113238964A (en) Test case set generation method and device and electronic equipment
CN112346994A (en) Test information correlation method and device, computer equipment and storage medium
CN111694727A (en) Network card firmware upgrading and downgrading test method, system, terminal and storage medium
CN110703988A (en) Storage pool creating method, system, terminal and storage medium for distributed storage

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210803