Cluster file system stability testing method, device, and medium
By building a nested virtual machine test cluster in the virtualization platform and using multiple test cases to conduct comprehensive testing of the cluster file system, the problem of inability to evaluate its stability in the existing technology is solved, which improves the testing efficiency and enhances the stability of the file system.
Patent Information
- Application Number
- CN202210800884.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-08
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2042-07-08
AI Technical Summary
Existing cluster file system testing methods cannot accurately evaluate their operation in a virtualized cluster, resulting in file system instability.
By deploying nested virtual institutions to build test clusters in the virtualization platform, using a variety of test cases to conduct comprehensive testing of the cluster file system, including stress testing and failure testing, and gradually determine whether it meets performance requirements.
The stability evaluation of the cluster file system on the virtualization platform is achieved, which improves testing efficiency and exposes potential defects, and enhances the stability of the file system.
Smart Images

Figure CN115016898B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud computing, and in particular to a cluster file system stability testing method, device, and medium. Background Art
[0002] When providing cloud computing services to customers, most virtual service users only have a Storage Area Network (SAN) and lack a Network File System (NFS) interface. Therefore, a cluster file system is needed to manage virtual machine storage. Currently, Oracle Cluster Filesystem V2 (OCFS2) is commonly used to manage files, enabling cluster access by placing files in OCFS2.
[0003] However, the OCFS2 file system was designed for a single database. When used in a virtualization platform, its inherent complexity and the diverse nature of its services make it highly unstable. To make the file system more robust, more thorough stability testing is required. However, current cluster file system testing methods are based on databases and cannot accurately assess the performance of cluster file systems in virtualization clusters.
[0004] Therefore, how to provide a cluster file system stability testing method in a virtualization platform is a problem that those skilled in the art urgently need to solve. Summary of the Invention
[0005] The purpose of this application is to provide a cluster file system testing method, device, and medium to test whether the stability of the cluster file system in a virtualization platform is qualified, so as to facilitate the stable operation of the cluster file system in the virtualization platform.
[0006] To solve the above technical problems, this application provides a cluster file system testing method, including:
[0007] Obtaining a test information file, wherein the test information file includes at least target physical machine and virtualization platform information;
[0008] Deploying a virtualization platform in the target physical machine, and deploying a plurality of test clusters consisting of nested virtual machines in the virtualization platform, and testing the cluster file system in each of the test clusters to determine whether the cluster file system meets the first performance requirement;
[0009] If the cluster file system meets the first performance requirement, testing the cluster file system in the virtualization platform to determine whether the cluster file system meets the second performance requirement;
[0010] If the second performance requirement is met, it is determined that the cluster file system is stable.
[0011] Preferably, after the step of testing the cluster file system in the virtualization platform to determine whether the cluster file system meets the second performance requirement, the method further includes:
[0012] Deleting each of the first test clusters and deploying a second test cluster, where the scale of the second test cluster is much larger than that of the first test clusters;
[0013] A cluster performance test is performed on the cluster file system in the second test cluster to determine whether the cluster file system meets a third performance requirement.
[0014] Preferably, the testing of the cluster file system in each of the test clusters to determine whether the cluster file system meets the first performance requirement includes:
[0015] Performing a basic test on the cluster file system using a first stress test case, a first fault test case, and a virtual machine operation test case, and obtaining a first test pass rate based on the test results, wherein the first stress test case includes at least: a cross-space read and write case, a business scenario simulation case, and a disk mixed read and write case, and the first fault test case includes at least: a server anomaly test case, a network anomaly test case, and a heartbeat line anomaly test case;
[0016] If the first test pass rate is greater than a first test threshold, it is determined that the cluster file system meets the basic performance requirement.
[0017] Preferably, the testing of the cluster file system in the virtualization platform to determine whether the cluster file system meets the second performance requirement includes:
[0018] The cluster file system is tested using a second stress test case and a second fault test case, and a second test pass rate is obtained according to the test results, wherein the second stress test case includes at least: an IO stress test case and a file operation stress test case, and the second fault test case includes at least: a server abnormality test case, a network abnormality test case, and a heartbeat abnormality test case;
[0019] If the second test pass rate is greater than a second test threshold, it is determined that the cluster file system meets the second performance requirement.
[0020] Preferably, after the step of testing the cluster file system in each test cluster to determine whether the cluster file system meets the first performance requirement, the method further includes:
[0021] If the cluster file system does not meet the first performance requirement, it is determined that the cluster file system is unstable and the test ends.
[0022] Preferably, performing a cluster performance test on the cluster file system in the second test cluster to determine whether the cluster file system meets the second performance requirement includes:
[0023] Perform expansion and contraction operations on the second test cluster to determine whether the cluster file system meets the second performance requirement.
[0024] Preferably, it is characterized in that when the cluster file system is tested using each test case, the message volume of each test case is obtained through distributed lock management;
[0025] The test cases with large message volumes are executed first.
[0026] In order to solve the above technical problems, the present application also provides a cluster file system testing device, which is characterized by comprising:
[0027] An acquisition module is used to acquire a test information file, wherein the test information file includes at least target physical machine and virtualization platform information;
[0028] a first deployment module, configured to deploy a virtualization platform in the target physical machine, and deploy a plurality of test clusters consisting of nested virtual machines in the virtualization platform, and test the cluster file system in each of the test clusters to determine whether the cluster file system meets a first performance requirement;
[0029] a second deployment module configured to, if the cluster file system meets the first performance requirement, test the cluster file system in the virtualization platform to determine whether the cluster file system meets the second performance requirement;
[0030] A determination module is configured to determine that the cluster file system is stable if the second performance requirement is met.
[0031] In order to solve the above technical problems, the present application also provides a cluster file system testing device, comprising a memory for storing a computer program;
[0032] A processor is used to implement the steps of the cluster file system testing method when executing the computer program.
[0033] In order to solve the above technical problems, the present application also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the cluster file system testing method are implemented.
[0034] The present application provides a cluster file system testing method, including: obtaining a test information file, the test information file includes at least target physical machine and virtualization platform information, to provide technical support for subsequent testing work. Deploy a virtualization platform in the target physical machine, and test the cluster file system in the virtualization platform to determine whether the cluster file system meets the first performance requirement. If the cluster file system meets the first performance requirement, deploy a test cluster in the virtualization platform, and test the cluster file system in each test cluster to determine whether the cluster file system meets the second performance requirement; if the second performance requirement is met, the cluster file system is determined to be stable. It can be seen that in this application, a test cluster is constructed by using nested virtual machines in the virtualization platform in the physical machine, thereby conducting a more comprehensive test of the performance of the cluster file system on the virtualization platform. In addition, the present application gives priority to low-difficulty use cases to test the cluster file system according to the difficulty of the test, and stops the test process when the test fails, thereby improving the test efficiency.
[0035] In addition, the present application also provides a cluster file system testing device and medium, which correspond to the above method and have the same effect as above. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0037] Figure 1 A flowchart of a cluster file system testing method provided in an embodiment of the present application;
[0038] Figure 2 A flowchart of the test case application provided in the embodiment of the present application;
[0039] Figure 3 A structural diagram of a cluster file system testing device provided in an embodiment of the present application;
[0040] Figure 4 This is a structural diagram of another cluster file system testing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0041] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0042] The core of this application is to provide a cluster file system testing method, device, and medium to test whether the stability of the cluster file system in a virtualization platform is qualified, so as to facilitate the stable operation of the cluster file system in the virtualization platform.
[0043] When virtualization platforms provide cloud computing services to users, they need to manage related files. However, most users only have SAN storage and lack network file system interfaces. Therefore, a cluster file system is needed to provide data management services. Currently, Oracle Cluster Filesystem V2 (OCFS2) is a commonly used cluster file system. OCFS2's operating principle can be broadly divided into three modules: the file system module, the distributed management module, and the distributed lock management module.
[0044] The file system module, like local file systems such as ext3 / 4 and xfs, connects to the VFS and is exposed to user mode through the VFS interface. Understandably, OCFS2 is a distributed system, requiring the coordination of multiple nodes. This is accomplished by the distributed management module, which primarily includes o2hb, o2net, and the cluster node configuration reading module.
[0045] When OCFS2 is working, it is different from local file systems such as ext3 / ext4 and XFS in that: local file systems only need to handle multi-threaded access when accessing shared resources, which can be achieved through some locking primitives provided by the operating system, such as mutex and semphore; while OCFS2 needs to control concurrent access between nodes, which is beyond the support of the operating system's locking primitives. For this reason, OCFS2 introduces the distributed lock manager (DLM), which implements concurrent access control between nodes through the distributed lock interface provided by DLM.
[0046] However, the OCFS2 system, originally a database file management system, was ported to virtual machines. Due to its inherent complexity, coupled with the large number of virtual machines hosted on the OCFS2 file system within the virtualization platform, the volume and types of services increased significantly, resulting in the cluster file system's inability to run stably on the virtualization platform. To address this issue, it was necessary to conduct thorough stability testing of the cluster file system on the virtualization platform to expose operational defects. By fixing these defects and introducing new features, the file system could be made more robust, meeting the robustness requirements of the virtualization platform.
[0047] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0048] Figure 1 A flowchart of a cluster file system testing method provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the method includes:
[0049] S10: Acquire a test information file, where the test information file at least includes target physical machine and virtualization platform information.
[0050] This method is applied in a virtualization platform to detect the stability of a cluster file system in the virtualization system.
[0051] In practice, to create a good test environment for better testing the cluster file system's operational status within the virtualization system, it's necessary to pre-acquire a test information file for the cluster file system. This test information file includes at least physical machine information and virtualization platform information. The physical machine information includes the target physical machine for the virtualization environment to be deployed and centralized storage device information. The virtualization platform information includes information about the nested virtualization environment to be deployed and the image files required for system installation. In practice, a virtualization platform is deployed based on the target physical machine as the basic test environment.
[0052] Furthermore, the test information file may also include test cases for testing system stability, such as stress simulation test cases, network failure simulation test cases, and the like.
[0053] S11: deploying a virtualization platform in the target physical machine, and deploying multiple test clusters consisting of nested virtual machines in the virtualization platform, and testing the cluster file system in each test cluster to determine whether the cluster file system meets the first performance requirement.
[0054] S12: If the cluster file system meets the first performance requirement, the cluster file system is tested in the virtualization platform to determine whether the cluster file system meets the second performance requirement.
[0055] Deploy a virtualization platform in the target physical machine and use test samples in the virtualization platform to test the cluster file system. In the specific implementation, start the back pressure of the cluster file system layer, and then traverse and execute all test samples on this basis to perform fault testing, and finally output the test results and test pass rate. Set the first threshold corresponding to the first performance requirement to M%, and the n value range is 50-100. If the test pass rate is lower than M%, the test will directly exit abnormally, and it is considered that the robustness of the current environment does not meet the conditions for continuing to the next step of testing. If there are multiple clusters, the fault test cases can be executed in parallel, and the test results can be finally summarized to improve test efficiency.
[0056] In specific implementation, a virtualization platform is pre-deployed on the target physical machines, and multiple nested virtual machines are created on each physical machine. To test whether the cluster file system meets the first performance requirement, one nested virtual machine is selected on each physical machine, divided into 3*N groups. Each OCFS2 cluster is created with three nested virtual machines, for a total of N clusters. After testing, the OCFS2 cluster is deleted and the nested virtual machines are shut down for backup. To test whether the cluster file system meets the first performance requirement, a three-node OCFS2 cluster is created using three physical machines.
[0057] If the virtualization platform deployed on the target physical machine meets the preset requirements, multiple test clusters consisting of nested virtual machines are deployed on the virtualization platform. In specific implementation, virtualization layer IO pressure simulation is initiated as backpressure, followed by virtual machine lifecycle operations. Based on this, a full traversal of fault tests is performed, and finally the test results and test pass rate are output. The second threshold corresponding to the second performance requirement is set to N%. If the test pass rate is lower than N%, the system exits abnormally and the current environment is deemed not robust enough to continue to the next step of testing.
[0058] The nested virtualization environment deployment process involves deploying a virtual machine on the aforementioned virtualization platform using a specified ISO image, converting it into a template, and then creating a batch of 3*N virtual machines using the template. These virtual machines are then assigned IP addresses and added to the virtualization platform as hosts. An OCFS2 cluster is created for every three virtual machines, for a total of N clusters. Note that, based on OCFS2 cluster principles, the minimum number of nodes in a cluster is three in actual virtualization platform deployment.
[0059] S13: If the second performance requirement is met, it is determined that the cluster file system is stable.
[0060] If the cluster file system meets the second performance requirement, it indicates that the cluster file system can run stably in the virtualization platform.
[0061] This embodiment provides a cluster file system testing method, including: obtaining a test information file, the test information file includes at least target physical machine and virtualization platform information, to provide technical support for subsequent testing work. Deploy a virtualization platform in the target physical machine, deploy a test cluster in the virtualization platform, and test the cluster file system in each test cluster to determine whether the cluster file system meets the first performance requirement. If the cluster file system meets the first performance requirement, test the cluster file system in the virtualization platform to determine whether the cluster file system meets the second performance requirement; if the second performance requirement is met, determine that the cluster file system is stable. It can be seen that in this application, a test cluster is constructed by using nested virtual machines in the virtualization platform in the physical machine, thereby conducting a more comprehensive test of the performance of the cluster file system on the virtualization platform. In addition, this application gives priority to low-difficulty use cases to test the cluster file system according to the difficulty of the test, and stops the test process when the test fails, thereby improving the test efficiency.
[0062] It is understandable that due to the large number and variety of business requests in the virtualization platform, in order to better simulate the working state of the cluster file system when the virtualization platform is working, the cluster file system can also be tested by simulating a large number of test clusters working simultaneously.
[0063] Based on the above embodiment, testing the cluster file system in each test cluster to determine whether the cluster file system meets the first performance requirement includes:
[0064] Perform basic testing on the cluster file system using a first stress test case, a first fault test case, and a virtual machine operation test case, and obtain a first test pass rate based on the test results, wherein the first stress test case includes at least: a cross-space read and write case, a business scenario simulation case, and a disk mixed read and write case; the first fault test case includes at least: a server anomaly test case, a network anomaly test case, and a heartbeat line anomaly test case;
[0065] If the first test pass rate is greater than the first test threshold, it is determined that the cluster file system meets the basic performance requirements.
[0066] It is understandable that the intensity of the stability test for the cluster file system is gradually increased. Therefore, if the cluster file system fails the pre-order test, it will definitely fail the post-order test. Therefore, when it is detected that the cluster file system does not meet the preset conditions, the test process is terminated to improve the detection efficiency. Based on the above embodiment, after the step of testing the cluster file system in the virtualization platform to determine whether the cluster file system meets the first performance requirement, it also includes:
[0067] If the cluster file system does not meet the first performance requirement, it is determined that the cluster file system is unstable and the test ends.
[0068] It should be noted that testing the cluster file system in the virtualization platform to determine whether the cluster file system meets the second performance requirement includes:
[0069] The cluster file system is tested using a second stress test case and a second fault test case, and a second test pass rate is obtained according to the test results, wherein the second stress test case includes at least: an IO stress test case and a file operation stress test case, and the second fault test case includes at least: a server abnormality test case, a network abnormality test case, and a heartbeat abnormality test case;
[0070] If the second test pass rate is greater than the second test threshold, it is determined that the cluster file system meets the second performance requirement.
[0071] In specific implementation, IO stress test cases include: asynchronous IO reading and writing, directIO reading and writing, and mixed reading and writing of read and write models. Among them, the file specifications used for read and write testing include: 1M, 256K, 8k, and 4k. File operation stress test cases include file addition, deletion, modification, and query operations, for example: using the vdbench tool to simulate file addition, deletion, modification, and query. Among them, IO read and write pressure and file addition, deletion, modification, and query operations are all performed directly on the OCFS file system. Server anomaly test cases include simulating server anomalies through forced shutdown, safe shutdown, safe restart, and forced restart of virtual machines; simulating one-way network communication by adding security group rules and firewall rules in the virtualization platform, simulating network disconnection by shutting down the virtual machine network port, and other operations to simulate network anomalies; simulating the OCFS2 cluster file system to make the IO delay large enough, simulating IO timeout and other operations to simulate heartbeat disk anomalies, etc.
[0072] It is understandable that the first performance requirement is lower than the second performance requirement. Therefore, in order to improve test efficiency, when it is detected that the cluster file system does not meet the first performance requirement, the test process is exited.
[0073] In this embodiment, the operating status of the cluster file system is tested layer by layer in small-scale test clusters and large-scale test clusters, thereby more accurately detecting the stability of the cluster file system. Furthermore, the testing process can be stopped promptly when problems arise, thereby improving testing efficiency. As a preferred embodiment, after testing the cluster file system in the virtualization platform to determine whether the cluster file system meets the second performance requirement, the following steps are also included:
[0074] Delete each first test cluster and deploy a second test cluster, which is much larger than each first test cluster.
[0075] A cluster performance test is performed on the cluster file system in the second test cluster to determine whether the cluster file system meets the third performance requirement.
[0076] It is understandable that the basic test performed on the cluster file system in each first test cluster to determine whether the cluster file system meets the basic performance requirements includes:
[0077] Perform basic testing on the cluster file system using second stress test cases, second fault test cases, and virtual machine operation test cases, and obtain a second test pass rate based on the test results, wherein the second stress test cases include at least: cross-space read and write cases, business scenario simulation cases, and disk mixed read and write cases; the second fault test cases include at least: server anomaly test cases, network anomaly test cases, and heartbeat line anomaly test cases;
[0078] If the second test pass rate is greater than the second test threshold, it is determined that the cluster file system meets the basic performance requirement.
[0079] Figure 2 The test case application flow chart provided in the embodiment of this application is as follows: Figure 2 As shown in the specific implementation, the purpose of basic testing of the cluster file system in the first test cluster is to verify the stability of the cluster file system under low business pressure. Therefore, cross-space read and write use cases include: using the seek parameter in the dd command to simulate the QEMU layer's read and write and cache flushing across 8GB of space; business scenario simulation use cases include: deploying an Oracle database in a virtual machine and running the swingbench stress tool from the command line to simulate different business scenarios, including OLTP and OATP; disk mixed read and write use cases include: continuously increasing disk usage, reading and writing data blocks of 1K, 4K, 512K, and 1MB to the cluster file system in a mixed read and write manner. Server anomaly testing use cases involve using the ipmitool command to execute a server power outage or restart command to simulate server anomalies; network anomaly testing use cases involve using the tc command to simulate network latency, packet loss, and jitter; and heartbeat anomaly testing use cases involve executing a command to modify the disk state / sys / block / sdxx / device / state to simulate a physical disk link disconnection. Furthermore, virtual machine lifecycle testing includes storage-related operations such as virtual machine creation, cloning, migration, snapshots, and backups.
[0080] Furthermore, performing a cluster performance test on the cluster file system in the second test cluster to determine whether the cluster file system meets the second performance requirement includes:
[0081] Batch mount or unmount operations are performed on the second test cluster to expand or shrink the test cluster, so as to determine whether the cluster file system meets the second performance requirement.
[0082] In practice, when testing the cluster file system using various test cases, distributed lock management is used to determine the message volume for each test case. Test cases with the largest message volumes are prioritized. After testing, a test report is generated based on the execution of each test case and the health status of the OCFS2 cluster file system, allowing administrators to assess system stability based on the report.
[0083] In the above embodiments, a cluster file system testing method is described in detail. This application also provides corresponding embodiments of a cluster file system testing device. It should be noted that this application describes the embodiments of the device from two perspectives: one based on functional modules and the other based on hardware.
[0084] Figure 3 This is a structural diagram of a cluster file system testing device provided in an embodiment of the present application, such as Figure 3 As shown, the device includes:
[0085] An acquisition module 10 is configured to acquire a test information file, the test information file including at least target physical machine and virtualization platform information;
[0086] A first deployment module 11 is configured to deploy a virtualization platform in a target physical machine, and deploy multiple test clusters consisting of nested virtual machines in the virtualization platform, and test a cluster file system in each test cluster to determine whether the cluster file system meets a first performance requirement;
[0087] A second deployment module 12 is configured to test the cluster file system in the virtualization platform to determine whether the cluster file system meets the second performance requirement if the cluster file system meets the first performance requirement;
[0088] The determination module 13 is configured to determine that the cluster file system is stable if the second performance requirement is met.
[0089] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, and they will not be repeated here.
[0090] In addition, the cluster file system test device provided in this embodiment further includes: a test ending module, which is used to end the test process when detecting that the cluster file system test device does not meet the preset conditions, so as to reduce invalid test work and improve test efficiency.
[0091] The present application provides a cluster file system testing device, including: obtaining a test information file, the test information file includes at least target physical machine and virtualization platform information, to provide technical support for subsequent testing work. Deploy a virtualization platform in the target physical machine, deploy a test cluster in the virtualization platform, and test the cluster file system in each test cluster to determine whether the cluster file system meets the first performance requirement. If the cluster file system meets the first performance requirement, test the cluster file system in the virtualization platform to determine whether the cluster file system meets the second performance requirement; if the second performance requirement is met, determine that the cluster file system is stable. It can be seen that in this application, a test cluster is constructed by using nested virtual machines in the virtualization platform in the physical machine, thereby conducting a more comprehensive test of the performance of the cluster file system on the virtualization platform. In addition, the present application gives priority to low-difficulty use cases to test the cluster file system according to the difficulty of the test, and stops the test process when the test fails, thereby improving the test efficiency.
[0092] Figure 4 This is a structural diagram of another cluster file system testing device provided in an embodiment of the present application, such as Figure 4 As shown, the cluster file system testing device includes: a memory 20 for storing computer programs;
[0093] The processor 21 is configured to implement the steps of the method for creating a test cluster in the above embodiment when executing a computer program.
[0094] The terminal device running the cluster file system provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a laptop computer, or a desktop computer.
[0095] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0096] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include high-speed random access memory, and non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the cluster file system testing method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include but is not limited to test cases, etc.
[0097] In some embodiments, the cluster file system testing device may further include a display screen 22 , an input / output interface 23 , a communication interface 24 , a power supply 25 , and a communication bus 26 .
[0098] Those skilled in the art will understand that Figure 4 The structure shown in the figure does not constitute a limitation to the cluster file system testing device, and may include more or fewer components than shown in the figure.
[0099] The cluster file system testing device provided in an embodiment of the present application includes a memory and a processor. When the processor executes a program stored in the memory, it can implement the following method:
[0100] Obtaining a test information file, wherein the test information file includes at least target physical machine and virtualization platform information;
[0101] Deploying a virtualization platform in the target physical machine, and testing a cluster file system in the virtualization platform to determine whether the cluster file system meets a first performance requirement;
[0102] If the cluster file system meets the first performance requirement, deploying multiple test clusters consisting of nested virtual machines in the virtualization platform, and testing the cluster file system in each of the test clusters to determine whether the cluster file system meets the second performance requirement;
[0103] If the second performance requirement is met, it is determined that the cluster file system is stable.
[0104] Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps described in the above method embodiment.
[0105] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0106] The cluster file system testing method, device, and medium provided by the present application are introduced in detail above. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
[0107] It should also be noted that, in this specification, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.
Claims
1. A cluster file system testing method, characterized in that: include: Obtaining a test information file, wherein the test information file includes at least target physical machine and virtualization platform information; Deploying a virtualization platform in the target physical machine, and deploying a plurality of first test clusters consisting of nested virtual machines in the virtualization platform, and testing the cluster file system in each of the first test clusters to determine whether the cluster file system meets a first performance requirement; If the cluster file system meets the first performance requirement, testing the cluster file system in the virtualization platform to determine whether the cluster file system meets the second performance requirement; If the second performance requirement is met, determining that the cluster file system is stable; The testing of the cluster file system in each of the first test clusters to determine whether the cluster file system meets the first performance requirement includes: Performing a basic test on the cluster file system using a first stress test case, a first fault test case, and a virtual machine operation test case, and obtaining a first test pass rate based on the test results, wherein the first stress test case includes at least: a cross-space read and write case, a business scenario simulation case, and a disk mixed read and write case, and the first fault test case includes at least: a server anomaly test case, a network anomaly test case, and a heartbeat line anomaly test case; If the first test pass rate is greater than a first test threshold, determining that the cluster file system meets the performance requirement; The testing of the cluster file system in the virtualization platform to determine whether the cluster file system meets the second performance requirement includes: The cluster file system is tested using a second stress test case and a second fault test case, and a second test pass rate is obtained according to the test results, wherein the second stress test case includes at least: an IO stress test case and a file operation stress test case, and the second fault test case includes at least: a server abnormality test case, a network abnormality test case, and a heartbeat abnormality test case; If the second test pass rate is greater than a second test threshold, it is determined that the cluster file system meets the second performance requirement.
2. The cluster file system testing method according to claim 1, wherein: After the step of testing the cluster file system in the virtualization platform to determine whether the cluster file system meets the second performance requirement, the method further includes: Deleting each first test cluster and deploying a second test cluster, where the scale of the second test cluster is much larger than that of each first test cluster; A cluster performance test is performed on the cluster file system in the second test cluster to determine whether the cluster file system meets a third performance requirement.
3. The cluster file system testing method according to claim 1, wherein: After the step of testing the cluster file system in each of the first test clusters to determine whether the cluster file system meets the first performance requirement, the method further includes: If the cluster file system does not meet the first performance requirement, it is determined that the cluster file system is unstable and the test ends.
4. The cluster file system testing method according to claim 2, wherein: The performing a cluster performance test on the cluster file system in the second test cluster to determine whether the cluster file system meets the second performance requirement includes: Perform expansion and contraction operations on the second test cluster to determine whether the cluster file system meets the second performance requirement.
5. The cluster file system testing method according to claim 3 or 4, characterized in that: When testing the cluster file system using each test case, obtaining the message volume of each test case through distributed lock management; The test cases with large message volumes are executed first.
6. A cluster file system testing device, characterized in that: include: An acquisition module is used to acquire a test information file, wherein the test information file includes at least target physical machine and virtualization platform information; a first deployment module, configured to deploy a virtualization platform in the target physical machine, and deploy a plurality of first test clusters consisting of nested virtual machines in the virtualization platform, and test the cluster file system in each of the first test clusters to determine whether the cluster file system meets a first performance requirement; a second deployment module configured to, if the cluster file system meets the first performance requirement, test the cluster file system in the virtualization platform to determine whether the cluster file system meets the second performance requirement; a determination module, configured to determine that the cluster file system is stable if the second performance requirement is met; The testing of the cluster file system in each of the first test clusters to determine whether the cluster file system meets the first performance requirement includes: Performing a basic test on the cluster file system using a first stress test case, a first fault test case, and a virtual machine operation test case, and obtaining a first test pass rate based on the test results, wherein the first stress test case includes at least: a cross-space read and write case, a business scenario simulation case, and a disk mixed read and write case, and the first fault test case includes at least: a server anomaly test case, a network anomaly test case, and a heartbeat line anomaly test case; If the first test pass rate is greater than a first test threshold, determining that the cluster file system meets the first performance requirement; The testing of the cluster file system in the virtualization platform to determine whether the cluster file system meets the second performance requirement includes: The cluster file system is tested using a second stress test case and a second fault test case, and a second test pass rate is obtained according to the test results, wherein the second stress test case includes at least: an IO stress test case and a file operation stress test case, and the second fault test case includes at least: a server abnormality test case, a network abnormality test case, and a heartbeat abnormality test case; If the second test pass rate is greater than a second test threshold, it is determined that the cluster file system meets the second performance requirement.
7. A cluster file system testing device, characterized in that: including a memory for storing a computer program; A processor is configured to implement the steps of the cluster file system testing method according to any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the cluster file system testing method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Method and device for testing virtual machine cluster, and readable storage medium
CN107632937A
Casino management system with a patron facial recognition system and methods of operating same
US20200035064A1