Test method, device, electronic device and storage medium
By performing a stress test on the storage cluster to evaluate the difference between writing and reading data and its impact on performance, the shortcomings of storage cluster performance testing in the existing technology are solved, and accurate evaluation and optimization of storage cluster performance are achieved.
Patent Information
- Application Number
- CN202310886203.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-18
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2043-07-18
AI Technical Summary
Existing technologies make it difficult to effectively test and evaluate the performance of storage clusters, especially under stress test conditions, and cannot accurately determine the difference between written and read data and its impact on the performance of the storage cluster.
Provide a testing method and device to perform a stress test on a target storage cluster based on its stress test parameters, and determine the stress test results of the storage cluster through the degree of data difference and performance changes between written data and read data. , including using the stress test module and the test result determination module to evaluate the system stability, flow change range, and memory change range.
It can accurately determine the stress test results of the storage cluster, help optimize performance and improve system stability, and achieve effective evaluation and adjustment of storage cluster performance by adjusting stress test parameters and parameter thresholds.
Smart Images

Figure CN116841850B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a testing method, device, electronic equipment and storage medium. Background Art
[0002] Cluster storage aggregates the storage space in multiple storage devices into a storage pool that can provide a unified access interface and management interface to application servers. Applications can transparently access and utilize the disks on all storage devices through this access interface, which can give full play to the performance and disk utilization of storage devices. Data will be stored and read from multiple storage devices according to certain rules to obtain higher concurrent access performance. Therefore, testing the storage cluster to determine its performance is a problem to be solved in this field. Summary of the invention
[0003] The embodiments of the present disclosure provide a testing method, an apparatus, an electronic device, and a storage medium to solve or alleviate one or more technical problems in the prior art.
[0004] As a first aspect of an embodiment of the present disclosure, an embodiment of the present disclosure provides a testing method, including:
[0005] Based on the stress test parameters of the target storage cluster, performing a stress test on the target storage cluster;
[0006] The stress test result of the target storage cluster is determined based on the degree of data difference between the written data and the read data of the stress test and the performance change of the target storage cluster in the stress test.
[0007] As a second aspect of an embodiment of the present disclosure, an embodiment of the present disclosure provides a testing device, the device comprising:
[0008] A stress test module, used to perform a stress test on the target storage cluster based on the stress test parameters of the target storage cluster;
[0009] The test result determination module is used to determine the stress test result of the target storage cluster based on the data difference between the written data and the read data of the stress test and the performance change of the target storage cluster in the stress test.
[0010] As a third aspect of an embodiment of the present disclosure, an embodiment of the present disclosure provides an electronic device, including:
[0011] at least one processor; and
[0012] a memory communicatively connected to the at least one processor; wherein,
[0013] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method provided by any embodiment of the present disclosure.
[0014] As a fourth aspect of an embodiment of the present disclosure, an embodiment of the present disclosure provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method provided by the embodiment of the present disclosure.
[0015] The technical solution provided by the embodiment of the present disclosure performs a stress test on the target storage cluster based on the stress test parameters of the target storage cluster, and can accurately determine the stress test result of the target storage cluster based on the degree of data difference between the write data and the read data of the stress test and the performance change of the target storage cluster during the stress test.
[0016] The above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, further aspects, embodiments and features of the present disclosure will be readily apparent by reference to the accompanying drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments according to the present disclosure and should not be regarded as limiting the scope of the present disclosure.
[0018] Figure 1 is a flow chart of a testing method according to an embodiment of the present disclosure;
[0019] Figure 2 is a structural diagram of a pressure testing platform according to an embodiment of the present disclosure;
[0020] Figure 3 is a flow chart of a pressure testing method according to an embodiment of the present disclosure;
[0021] Figure 4 This is an interface diagram of a login test platform according to an embodiment of the present disclosure;
[0022] Figure 5 is a front view of a test platform according to an embodiment of the present disclosure;
[0023] Figure 6 This is a diagram of an interface for adding host information according to an embodiment of the present disclosure;
[0024] Figure 7 This is a diagram of a viewing interface of host information according to an embodiment of the present disclosure;
[0025] Figure 8 is an interface diagram for inputting commands to a host according to an embodiment of the present disclosure;
[0026] Fig. 9 This is a diagram of a parameter input interface for a stress test according to an embodiment of the present disclosure;
[0027] Fig.10 is a structural block diagram of a testing device provided by an embodiment of the present disclosure;
[0028] Fig.11 is a schematic diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0029] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the spirit or scope of the present disclosure. Therefore, the drawings and descriptions are considered to be exemplary and non-restrictive in nature.
[0030] Figure 1 FIG. 1 is a flow chart of a testing method provided by an embodiment of the present disclosure. Figure 1 As shown, the present disclosure provides a testing method, including:
[0031] S11, performing a stress test on the target storage cluster based on the stress test parameters of the target storage cluster;
[0032] S12, determining a stress test result of the target storage cluster based on the degree of data difference between the written data and the read data of the stress test and the performance change of the target storage cluster during the stress test.
[0033] The target storage cluster is one of multiple storage clusters. The storage cluster includes multiple storage servers. For example, the storage clusters are divided by location, such as a storage cluster located in Beijing and a storage cluster located in Hubei. Different storage clusters may have different deployed service versions. For example, the service version deployed by storage cluster A is different from the service version deployed by storage cluster B. For storage clusters with different service versions, the above stress tests can be performed separately to ensure that the storage clusters of each service version can meet the performance requirements of the stress test.
[0034] Exemplarily, the stress test parameters may include the number of parallel processes, the content and amount of input data of each process, the stress test time, the number of stress tests, etc.
[0035] In some embodiments, a test platform may be provided. In the test platform, a target storage cluster is selected and stress test parameters are input. Then, a test execution button is clicked. The test platform may call a corresponding test script according to the stress test parameters and perform stress test on the target storage cluster using the test script. Different stress test parameters correspond to different test scripts.
[0036] In some embodiments, a default test script may be pre-set, and when applied, the test script is modified according to the stress test parameters to obtain a target test script, and then the target storage cluster is stress-tested using the target test script.
[0037] In some embodiments, a plurality of different test scripts may be pre-set according to different stress test parameters. When applied, the corresponding test scripts are called according to the input stress test parameters to perform stress testing on the target storage cluster.
[0038] Exemplarily, the data difference degree refers to the difference degree in content and the difference degree in data volume between the written data and the read data. If the written data and the read data have the same content and the same data volume, the difference degree between the two is zero.
[0039] For example, during the stress test, the storage performance of the storage cluster may change, for example, the remaining storage space or occupied space of the memory may change, and the data flow may change.
[0040] In this example, a stress test is performed on the target storage cluster based on the stress test parameters of the target storage cluster, and the stress test result of the target storage cluster can be accurately determined based on the degree of data difference between the write data and the read data of the stress test and the performance change of the target storage cluster during the stress test.
[0041] In one embodiment, the stress test parameter includes the number of parallel processes. In the above step S11, the stress test is performed on the target storage cluster based on the stress test parameter of the target storage cluster, including:
[0042] According to the number of parallel processes, a corresponding number of storage operations are performed on the target storage cluster to perform a stress test on the target storage cluster. Each storage operation includes a write operation and a read operation. Thus, each storage operation has corresponding write data and read data.
[0043] In actual application, the test platform can provide a stress test window in which the tester can enter stress test parameters, such as the number of parallel processes, the target storage cluster ID, the input data volume of each process, the stress test start time, etc.
[0044] When the test platform feeds back the stress test results, the tester can adjust the stress test parameters he inputs according to the test results.
[0045] In some embodiments, the adjustment may be automatic and the adjustment may be stopped after reaching the set stress test target.
[0046] In one embodiment, in the above step S12, determining the stress test result of the target storage cluster based on the degree of data difference between the written data and the read data of the stress test and the performance change of the target storage cluster during the stress test may include:
[0047] Determine the system stability of the target storage cluster based on the degree of data difference between the written data and the read data of each storage operation in the stress test;
[0048] During the stress test, determine the traffic change range and memory change range of the target storage cluster;
[0049] The stress test result of the target storage cluster is determined based on the system stability, traffic change range, and memory change range of the target storage cluster.
[0050] In this example, the system stability of the target storage cluster can be accurately determined by the degree of data difference between the write data and the read data of each storage operation in the stress test. In addition, during the test, the flow change range and memory change range of the target storage cluster can be determined. In this way, the stress test results of the target storage cluster can be comprehensively evaluated based on the system stability, flow change range and memory change range of the target storage cluster, thereby facilitating subsequent adjustments to the target storage cluster to improve the performance of the target storage cluster.
[0051] In some embodiments, the above stress test steps may be performed on multiple storage clusters, and then a preferred storage cluster may be determined based on the stress test results of each storage cluster.
[0052] In some embodiments, according to a first algorithm, the data difference between the written data and the read data of each storage operation is calculated to obtain a first value, and based on the first value, the system stability of the target storage cluster is determined. The first algorithm can be a weighted sum algorithm or a standard deviation algorithm.
[0053] The flow rate variation range may be the difference between the maximum flow rate and the minimum flow rate of the target storage cluster during the stress test.
[0054] The memory change range may be the difference between the maximum memory usage value and the minimum memory usage value of the target storage cluster during the stress test.
[0055] In some embodiments, according to the second algorithm, the system stability, flow change range, and memory change range of the target storage cluster are calculated to obtain a second value; based on the second value, the stress test result of the target storage cluster is determined. For example, the second algorithm can be a weighted sum algorithm. If the second value is greater than a set threshold, the stress test result of the target storage cluster is determined to be passed. If the second value is less than the set threshold, the stress test result of the target storage cluster is determined to be failed.
[0056] In some embodiments, for the above process of determining the stress test results, corresponding thresholds can be set for the system stability, traffic change range and memory change range respectively, and the thresholds are used to determine whether each parameter meets the corresponding threshold. If all meet the corresponding thresholds, the stress test result of the target storage cluster is determined to be passed. If one of them does not meet the corresponding threshold, the stress test result of the target storage cluster is determined to be failed.
[0057] Exemplarily, the above-mentioned determination of the stress test result of the target storage cluster based on the system stability, flow change range, and memory change range of the target storage cluster includes one of the following:
[0058] If the system stability, traffic change range, and memory change range of the target storage cluster all meet the set thresholds, the stress test result of the target storage cluster is determined to be passed;
[0059] When any one of the system stability, flow change range, and memory change range of the target storage cluster does not meet the set threshold, it is determined that the stress test result of the target storage cluster fails.
[0060] In this example, whether the stress test result of the target storage cluster passes is determined based on the system stability, traffic change range, and memory change range of the target storage cluster, so that the result of the stress test can be accurately determined.
[0061] In some embodiments, the critical stress test parameters can be determined using stress tests and stress test results. Specifically, the following uses the critical number of parallel processes as an example to introduce an embodiment:
[0062] Exemplarily, when the stress test result is passed, the number of parallel processes is updated according to the set increasing function, and the stress test step is returned to be executed, until the stress test result is failed, and the critical number of parallel processes of the target storage cluster is determined based on the updated number of parallel processes and the increasing function;
[0063] The stress testing steps include:
[0064] Performing a corresponding number of storage operations on the target storage cluster according to the number of parallel processes to perform a stress test on the target storage cluster; and
[0065] The stress test result of the target storage cluster is determined based on the degree of data difference between the written data and the read data of the stress test and the performance change of the target storage cluster during the stress test.
[0066] In this example, the increment value of the increment function can be 1, 2, or 3, and the initial value can be the number of parallel processes in the last stress test. The number of parallel processes in the last stress test when the update is stopped is used as the critical number of parallel processes of the target storage cluster, or the difference between the number of parallel processes in the current stress test when the update is stopped and the increment value of the increment function is used as the critical number of parallel processes of the target storage cluster.
[0067] The critical number of parallel processes may be used to indicate an upper limit value of the number of parallel processes of the target storage cluster.
[0068] Exemplarily, when the stress test result is failed, the number of parallel processes is updated according to the set decreasing function, and the stress test step is returned to be executed until the stress test result is passed, and the critical number of parallel processes of the target storage cluster is determined based on the updated number of parallel processes;
[0069] The stress testing steps include:
[0070] Performing a corresponding number of storage operations on the target storage cluster according to the number of parallel processes to perform a stress test on the target storage cluster; and
[0071] The stress test result of the target storage cluster is determined based on the degree of data difference between the written data and the read data of the stress test and the performance change of the target storage cluster during the stress test.
[0072] In this example, the decreasing value of the decreasing function can be 1, 2, or 3, and the initial value can be the number of parallel processes in the previous stress test. The number of parallel processes in the stress test when the update is stopped is used as the critical number of parallel processes of the target storage cluster.
[0073] Figure 2 FIG. 1 is a structural diagram of a pressure testing platform according to an embodiment of the present disclosure. Figure 2As shown in the figure, the stress test platform includes a login module, a host information module, a host operation module, and a result module. The login module is mainly used to log in to the platform and obtain the permissions of the current user, display the corresponding host information, and use the MySQL database to verify whether it is a registered user. The host information module mainly has the functions of adding host information, modifying host information, deleting hosts, viewing host CPU, memory, IP address, etc., and uses Python and MySQL database for operations and addition, deletion, modification, and query operations. The host operation module mainly has the functions of logging in to the host, executing commands, and stress testing. It uses the Python built-in module paramiko and the unittest test framework to log in to the host and perform stress testing.
[0074] Figure 3 FIG. 1 is a flow chart of a stress testing method according to an embodiment of the present disclosure. Figure 3 As shown, when using it, first log in, add a host, modify the host information, view the host information, etc., then log in to the host and execute commands and stress tests.
[0075] like Figures 4 to 9 shown. Figure 4 The interface diagram for logging into the test platform is shown. Figure 5 A top view of the test platform is shown. Figure 6 A diagram showing the interface for adding host information. Figure 7 A diagram showing a viewing interface for host information. Figure 8 An interface diagram for inputting commands to a host is shown. Fig. 9 The diagram shows the parameter input interface for the stress test.
[0076] Fig.10 is a structural block diagram of a test device according to an embodiment of the present disclosure. Fig.10 As shown, the test device includes:
[0077] A stress testing module 110, configured to perform a stress test on a target storage cluster based on stress testing parameters of the target storage cluster;
[0078] The test result determination module 120 is used to determine the stress test result of the target storage cluster based on the data difference between the written data and the read data of the stress test and the performance change of the target storage cluster in the stress test.
[0079] In one implementation, the stress test parameter includes the number of parallel processes, and the stress test module is specifically used to:
[0080] According to the number of parallel processes, a corresponding number of storage operations are performed on the target storage cluster to perform a stress test on the target storage cluster.
[0081] In one embodiment, the test result determination module includes:
[0082] A first determining unit, configured to determine a system stability of the target storage cluster based on a data difference between write data and read data of each storage operation in the stress test;
[0083] A second determining unit, configured to determine a flow change range and a memory change range of the target storage cluster during the stress test;
[0084] The third determining unit is used to determine the stress test result of the target storage cluster based on the system stability, flow change range and memory change range of the target storage cluster.
[0085] In one implementation, the third determining unit is specifically used for one of the following:
[0086] When the system stability, flow change range, and memory change range of the target storage cluster all meet the set thresholds, determining that the stress test result of the target storage cluster is passed;
[0087] When any one of the system stability, flow change range, and memory change range of the target storage cluster does not meet a set threshold, it is determined that the stress test result of the target storage cluster has failed.
[0088] The functions of each unit, module or sub-module in each device of the embodiments of the present disclosure can be found in the corresponding description in the above method embodiments, and will not be repeated here.
[0089] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
[0090] Fig.11 A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0091] like Fig.11As shown, the electronic device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0092] Multiple components in the electronic device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the electronic device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0093] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as test methods. For example, in some embodiments, the test method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of the test method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the test method in any other appropriate manner (e.g., by means of firmware).
[0094] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0095] The program code for implementing the method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable atmosphere light adjustment device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0096] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0097] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0098] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0099] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0100] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0101] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A testing method, characterized in that: include: Based on the stress test parameters of the target storage cluster, a stress test is performed on the target storage cluster; wherein the stress test parameters include the number of parallel processes; Determining a stress test result of the target storage cluster based on a degree of data difference between the written data and the read data of the stress test and a performance change of the target storage cluster during the stress test; Wherein, based on the degree of data difference between the written data and the read data of the stress test and the performance change of the target storage cluster in the stress test, determining the stress test result of the target storage cluster includes: determining the system stability of the target storage cluster based on the degree of data difference between the written data and the read data of each storage operation in the stress test; determining the flow change amplitude and memory change amplitude of the target storage cluster in the stress test; determining the stress test result of the target storage cluster based on the system stability, flow change amplitude and memory change amplitude of the target storage cluster; Wherein, determining the stress test result of the target storage cluster based on the system stability, flow rate change range and memory change range of the target storage cluster includes: determining that the stress test result of the target storage cluster is passed when the system stability, flow rate change range and memory change range of the target storage cluster all meet the set thresholds; determining that the stress test result of the target storage cluster is failed when any one of the system stability, flow rate change range and memory change range of the target storage cluster does not meet the set threshold; The method also includes: when the stress test result is passed, updating the number of parallel processes according to a set increasing function, and returning to execute the stress test step, until the stress test result is failed, determining the critical number of parallel processes of the target storage cluster based on the updated number of parallel processes and the increasing function; wherein the stress test step includes: performing a corresponding number of storage operations on the target storage cluster according to the number of parallel processes to stress test the target storage cluster; and determining the stress test result of the target storage cluster based on the degree of data difference between the write data and the read data of the stress test and the performance change of the target storage cluster in the stress test.
2. The method according to claim 1, characterized in that The performing a stress test on the target storage cluster based on the stress test parameters of the target storage cluster includes: According to the number of parallel processes, a corresponding number of storage operations are performed on the target storage cluster to perform a stress test on the target storage cluster.
3. The method according to claim 1, characterized in that The method further comprises: If the stress test result is not passed, the number of parallel processes is updated according to the set decreasing function, and the stress test step is returned to be executed until the stress test result is passed, and the critical number of parallel processes of the target storage cluster is determined based on the updated number of parallel processes; Wherein, the stress testing step includes: Performing a corresponding number of storage operations on the target storage cluster according to the number of parallel processes to perform a stress test on the target storage cluster; and The stress test result of the target storage cluster is determined based on the degree of data difference between the written data and the read data of the stress test and the performance change of the target storage cluster in the stress test.
4. A testing device, characterized in that: include: A stress test module, used to perform a stress test on the target storage cluster based on the stress test parameters of the target storage cluster; wherein the stress test parameters include the number of parallel processes; A test result determination module, configured to determine a stress test result of the target storage cluster based on a degree of data difference between written data and read data of the stress test and a performance change of the target storage cluster during the stress test; The test result determination module includes a first determination unit, which is used to determine the system stability of the target storage cluster based on the degree of data difference between the write data and the read data of each storage operation in the stress test; a second determination unit, which is used to determine the flow change range and memory change range of the target storage cluster in the stress test; and a third determination unit, which is used to determine the stress test result of the target storage cluster based on the system stability, flow change range and memory change range of the target storage cluster. The third determining unit is specifically used for: If the system stability, flow rate change range and memory change range of the target storage cluster all meet the set thresholds, the stress test result of the target storage cluster is determined to be passed; if any one of the system stability, flow rate change range and memory change range of the target storage cluster does not meet the set threshold, the stress test result of the target storage cluster is determined to be failed; The test result determination module is also used for: when the stress test result is passed, updating the number of parallel processes according to the set increasing function, and returning to execute the stress test step, until the stress test result is failed, determining the critical number of parallel processes of the target storage cluster based on the updated number of parallel processes and the increasing function; wherein the stress test step includes: performing a corresponding number of storage operations on the target storage cluster according to the number of parallel processes to stress test the target storage cluster; and determining the stress test result of the target storage cluster based on the degree of data difference between the write data and the read data of the stress test and the performance change of the target storage cluster in the stress test.
5. The device according to claim 4, characterized in that The stress test parameters include the number of parallel processes, and the stress test module is specifically used for: According to the number of parallel processes, a corresponding number of storage operations are performed on the target storage cluster to perform a stress test on the target storage cluster.
6. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 3.
7. A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the method according to any one of claims 1 to 3.
