High-availability test method and device for file storage gateway

By automatically building a test environment and recording logs in detail, high availability testing methods for simulating multiple fault scenarios, the problem of insufficient testing complexity and flexibility in the existing technology is solved, and comprehensive testing and efficient analysis of file storage gateways are realized. Improves its reliability and stability.

CN119316314AActive Publication Date: 2025-01-14CHINA TELECOM DIGITAL INTELLIGENCE TECH CO LTD

Patent Information

Application Number
CN202411421133.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-12
Publication Date
2025-01-14
Estimated Expiration
2044-10-12

AI Technical Summary

Technical Problem

The existing high availability test system for file storage gateways is complex to build, and requires manual configuration or dependence on specific hardware. The test efficiency is low, the flexibility is insufficient, and the failure scenario cannot be fully simulated, resulting in the incomplete test results and the high level of file storage gateways cannot be accurately judged. Availability.

Method used

A high availability testing method including test environment construction module, fault simulation module, result recording module and monitoring and alarm module is proposed. Through automated construction of the test environment, different types of fault scenarios are simulated, read and write logs and drift duration are recorded in detail, and logs are analyzed. Consistency and drift duration, output test results, and issue alarm messages.

Benefits of technology

Improves testing flexibility and efficiency, can cover a variety of fault conditions in a comprehensive range, ensures that the file storage gateway maintains normal operation and rapid recovery in complex fault conditions, records and analyzes data in detail, accurately tests high availability and security, and improves files Reliability and stability of storage gateways.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119316314A_ABST
    Figure CN119316314A_ABST
Patent Text Reader

Abstract

The invention relates to a high-availability test method and device for a file storage gateway, and belongs to the technical field of distributed file storage. Comprising the steps of obtaining client business; constructing a test environment of the file storage gateway through a test environment construction module; recording a first data read-write log under the client service; using a fault simulation module to simulate client services under different fault types by taking the file storage gateway node as a fault virtual node; recording a second data read-write log in the presence of the fault virtual node and a drift time length when the fault virtual node returns to normal; and when the first data read-write log and the second data read-write log are consistent and the drift duration is less than the preset drift duration, the test result of the output file storage gateway is normal, otherwise, the test result of the output file storage gateway is abnormal through a monitoring alarm module, and alarm information is sent. According to the invention, the test efficiency and accuracy of the file storage gateway are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of distributed file storage, and in particular relates to a high availability testing method and device for a file storage gateway. Background Art

[0002] The file storage gateway is a network device or software system that acts as a bridge between the enterprise's local file storage system and cloud storage. Its main function is to integrate the enterprise's internal file storage with external cloud storage services, allowing users to access cloud storage resources through standard file access protocols. The high availability test of the file storage gateway mainly simulates single point failures, network interruptions, power failures and other scenarios to verify whether the gateway can automatically switch to the backup node when facing a failure to ensure uninterrupted service. During the test, the system's fault detection, automatic switching and recovery time are observed to evaluate the gateway's fault tolerance and service continuity performance.

[0003] The high availability testing method and device of file storage gateway are often used in large-scale computer systems, especially in file storage scenarios that require high reliability and high performance. The high availability testing of file storage gateway can ensure that the system can continue to provide file access services in the event of unforeseen circumstances such as network interruptions and node failures. This method and device can effectively test the switching and recovery capabilities of the file storage gateway in the event of a failure, so as to ensure the continuity and stability of the service.

[0004] However, the existing test system is relatively complex when building the test environment. It requires manual configuration or relies on specific hardware. The test efficiency is low and the flexibility is insufficient. During the fault simulation process, only some fault scenarios can be simulated. The test results are not comprehensive enough and the test record data is single. As a result, there is a lack of sufficient test information when analyzing the impact of the fault, and it is impossible to accurately judge the high availability of the file storage gateway. Summary of the invention

[0005] In view of the above deficiencies in the prior art, in order to solve the problems that the existing test systems are relatively complex when building a test environment, require manual configuration or rely on specific hardware, have low test efficiency and insufficient flexibility, can only simulate some fault scenarios during the fault simulation process, the test results are not comprehensive enough, and the test record data is single, resulting in a lack of sufficient test information when analyzing the impact of the fault, and the technical problem that the high availability of the file storage gateway cannot be accurately judged, the present invention provides a high availability testing method and device for a file storage gateway.

[0006] In a first aspect of the present invention, a high availability testing method for a file storage gateway is proposed, which is applied to a high availability testing platform for the file storage gateway. The high availability testing platform for the file storage gateway includes a test environment construction module, a fault simulation module, a result recording module, a result analysis module and a monitoring alarm module connected in sequence. The method includes:

[0007] S1, obtain client services;

[0008] S2, build a test environment for the file storage gateway through the test environment construction module;

[0009] S3, using the result recording module to record the first data read and write log under the client service;

[0010] S4, in the test environment, using the fault simulation module to use the file storage gateway node as a fault virtual node to simulate client services under different fault types;

[0011] S5, using the result recording module, recording the second data read and write log under the faulty virtual node and the drift time for the faulty virtual node to return to normal;

[0012] S6, analyzing the first data read and write log and the second data read and write log through the result analysis module, if the first data read and write log and the second data read and write log are consistent and the drift duration is less than the preset drift duration, the test result of the output file storage gateway is normal, otherwise, proceeding to step S7;

[0013] S7, the test result of the file storage gateway is outputted abnormally through the monitoring alarm module, and an alarm message is issued.

[0014] Furthermore, S2 specifically includes:

[0015] S201, creating a file gateway group of a file storage gateway, wherein the file gateway group includes multiple nodes;

[0016] S202, mounting the storage sharing service of the file storage gateway, namely, the client service;

[0017] S203, perform IPMI configuration on each node to complete the construction of the test environment.

[0018] Furthermore, S201 specifically includes:

[0019] S201A, creating a file storage group for a file storage gateway;

[0020] S201B, a storage device for configuring a configuration file storage gateway;

[0021] S201C, set the file sharing permissions of the file storage gateway and complete the creation of the file gateway group.

[0022] Further, S202 is specifically:

[0023] Connect each client to the file storage system corresponding to the file storage gateway, and set the relevant parameters of each client, where the relevant parameters include access rights, read and write operation types, and read and write data sizes.

[0024] Further, S203 is specifically:

[0025] Perform IPMI configuration for each node by setting the node IPMI address, node user name, and node password.

[0026] Furthermore, the result recording module includes a vdbench tool.

[0027] Furthermore, S4 specifically includes:

[0028] S401, obtaining the node to which the virtual IP used by the file storage gateway in the current file sharing service belongs;

[0029] S402, setting the file storage gateway node corresponding to the node to which the virtual IP belongs as a faulty virtual node;

[0030] S403 , for the purpose of simulating different types of failures of client services, the faulty virtual node is powered off through an IPMI tool according to a predetermined rule and a predetermined schedule.

[0031] Furthermore, S5 specifically includes:

[0032] S501, with the goal of ensuring that the file storage gateway responds to the failure, waiting for a first preset time and powering on the failed virtual node;

[0033] S502, waiting for a second preset time period, and recording a second data read and write log and a drift time period.

[0034] Further, analyzing the first data read and write log and the second data read and write log by the result analysis module specifically includes:

[0035] Verify whether the first data read and write log and the second data read and write log are consistent by checking the execution log and the vdbench service generation log;

[0036] By checking the node to which the virtual IP of the file gateway group belongs, determine whether the faulty virtual node has successfully drifted to another node, and record the drift duration

[0037] In a second aspect of the present invention, a high availability testing device for a file storage gateway is provided, which is used to implement the high availability testing method for a file storage gateway according to any one of the first aspects, and is applied to a high availability testing platform for a file storage gateway. The high availability testing platform for a file storage gateway comprises a test environment construction module, a fault simulation module, a result recording module, a result analysis module, and a monitoring alarm module connected in sequence, and the device comprises:

[0038] An acquisition module is used to acquire client services;

[0039] A building module, used to build a test environment for the file storage gateway through a test environment building module;

[0040] A first recording module, used to record a first data read and write log under a client service by using a result recording module;

[0041] A simulation module is used to use the fault simulation module to use the file storage gateway node as a fault virtual node to simulate client services under different fault types in a test environment;

[0042] A second recording module is used to record the second data read and write log under the faulty virtual node and the drift time length of the faulty virtual node returning to normal by using the result recording module;

[0043] An analysis module, used for analyzing the first data read and write log and the second data read and write log through a result analysis module, and outputting a normal test result of the file storage gateway when the first data read and write log and the second data read and write log are consistent and the drift duration is less than a preset drift duration, otherwise, entering an alarm module;

[0044] The alarm module is used to output abnormal test results of the file storage gateway through the monitoring alarm module and issue an alarm message.

[0045] Furthermore, the building blocks specifically include:

[0046] A submodule is created to create a file gateway group for a file storage gateway, wherein the file gateway group includes multiple nodes;

[0047] The mounting submodule is used to mount the storage sharing service of the file storage gateway, namely the client service;

[0048] The configuration submodule is used to perform IPMI configuration on each node and complete the construction of the test environment.

[0049] Furthermore, the mounting submodule is specifically used for:

[0050] Connect each client to the file storage system corresponding to the file storage gateway, and set the relevant parameters of each client, where the relevant parameters include access rights, read and write operation types, and read and write data sizes.

[0051] Furthermore, the configuration submodule is specifically used for:

[0052] Perform IPMI configuration for each node by setting the node IPMI address, node user name, and node password.

[0053] Furthermore, the simulation module specifically includes:

[0054] The acquisition submodule is used to obtain the node to which the virtual IP used by the file storage gateway in the current file sharing service belongs;

[0055] A setting submodule is used to set the file storage gateway node corresponding to the node to which the virtual IP belongs as a faulty virtual node;

[0056] The power-off electronic module is used to simulate different types of failures of client services and to power off the faulty virtual nodes through the IPMI tool according to predetermined rules and a predetermined schedule.

[0057] Furthermore, the second recording module specifically includes:

[0058] The upper electronic module is used to ensure that the file storage gateway responds to the failure, wait for a first preset time, and power on the failed virtual node;

[0059] The recording submodule is used to wait for a second preset time period and record a second data read and write log and a drift time period.

[0060] A third aspect of the present invention provides a high availability testing system for a file storage gateway, comprising: a memory and one or more processors.

[0061] One or more application programs are stored in the memory, and the one or more application programs are suitable for being executed by one or more processors to implement the high availability testing method for the file storage gateway of the first aspect.

[0062] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which can be loaded and executed by a processor to implement the high availability testing method for a file storage gateway according to the first aspect.

[0063] The beneficial effects of the present invention are as follows:

[0064] In an embodiment of the present invention, through the test environment construction module, the test environment of the file storage gateway can be automatically created, the complexity of manual configuration is reduced, and the flexibility and efficiency of the test are improved. The fault simulation module can simulate different types of fault scenarios, comprehensively cover a variety of fault conditions, and more comprehensively test the file storage gateway in business scenarios to ensure that the file storage gateway can still maintain normal operation and rapid recovery under various complex fault conditions. The result recording module records the read and write logs of the client business under normal and fault conditions in detail, making data analysis and comparison more comprehensive and accurate, and can accurately test the high availability and security of the file gateway, further improving the reliability and stability of the file storage gateway. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] The accompanying drawings are only used to illustrate specific embodiments and are not considered to limit the present invention. In the entire drawings, the same reference symbols represent the same components. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings.

[0066] Figure 1 It is a flowchart of a high availability testing method for a file storage gateway provided by an embodiment of the present invention;

[0067] Figure 2 It is a structural schematic diagram of a high availability test platform for a file storage gateway provided by an embodiment of the present invention;

[0068] Figure 3 It is a structural schematic diagram of a high availability testing device for a file storage gateway provided by an embodiment of the present invention;

[0069] Figure 4 It is a structural diagram of a high availability testing system for a file storage gateway provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0070] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present invention.

[0071] Furthermore, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily obscuring the concepts disclosed in the present invention.

[0072] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the orientation or position relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. In addition, the terms "first", "second", and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. The terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0073] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of methods and systems consistent with some aspects of the present invention as detailed in the appended claims.

[0074] The present invention proposes a high availability testing method and device for a file storage gateway, in order to solve the problems that the existing testing system is relatively complex when building a test environment, requires manual configuration or relies on specific hardware, has low testing efficiency and insufficient flexibility, can only simulate some fault scenarios during the fault simulation process, the test results are not comprehensive enough, and the test record data is single, resulting in a lack of sufficient test information when analyzing the impact of the fault, and cannot accurately judge the high availability of the file storage gateway.

[0075] Method Embodiment

[0076] Reference Figure 1 , shows a flow chart of a high availability testing method for a file storage gateway provided by an embodiment of the present invention.

[0077] Reference Figure 2 , shows a structural schematic diagram of a high availability testing platform for a file storage gateway provided by an embodiment of the present invention.

[0078] A high availability testing method for a file storage gateway provided by an embodiment of the present invention is applied to a high availability testing platform for the file storage gateway, wherein the high availability testing platform for the file storage gateway comprises a test environment building module, a fault simulation module, a result recording module, a result analysis module, and a monitoring alarm module connected in sequence; the method comprises:

[0079] Specifically, the method includes steps S1 to S7.

[0080] S1, obtain client services.

[0081] Among them, client business refers to the data access operations and related business processes initiated by the client (such as server, user equipment, etc.) in the file storage gateway system, including operations such as reading, writing, and deleting files, which are the actual workload that the gateway needs to handle.

[0082] It should be noted that by obtaining client services, it is possible to ensure that the services simulated in the test environment are consistent with the workload in the actual production environment, reflecting the actual usage scenarios.

[0083] S2, builds a test environment for the file storage gateway through the test environment construction module.

[0084] Among them, the file storage gateway test environment is an environment used to simulate the normal operation and failure scenarios of the file storage gateway, which includes the hardware or virtualization nodes of the file storage gateway, the file storage system, and the corresponding network and client connection configurations.

[0085] In a possible implementation, S2 specifically includes:

[0086] S201, create a file gateway group of a file storage gateway, where the file gateway group includes multiple nodes.

[0087] Among them, the file storage gateway is a system that connects the enterprise's internal storage system with external storage services (such as cloud storage). It is responsible for providing data access, protocol conversion and other functions between users and storage resources. The file gateway group is a cluster composed of multiple file storage gateway nodes, providing redundancy and load balancing functions to improve the reliability and availability of file storage. A node refers to an independent unit in the file gateway group, which is responsible for processing some storage requests. Multiple nodes work together to provide high availability and distributed file storage services.

[0088] In a possible implementation, S201 specifically includes:

[0089] S201A, create a file storage group for the file storage gateway.

[0090] Among them, in the file storage gateway, the file storage group is a logical structure that includes multiple physical or virtual storage devices, which is used to centrally manage and organize file storage space. The file storage group can integrate multiple storage devices together to provide higher storage capacity and performance.

[0091] S201B, configure the storage device of the configuration file storage gateway.

[0092] Among them, storage devices refer to physical or virtual storage hardware connected to the file storage gateway, usually including hard disks, SSDs, storage arrays or network attached storage (NAS). Storage devices are used to actually store user data and are accessed by clients through the file storage gateway.

[0093] S201C, set the file sharing permissions of the file storage gateway and complete the creation of the file gateway group.

[0094] Among them, in the file storage gateway, file sharing permissions are the permission configurations that control different users or clients' access to file storage resources. By setting permissions, administrators can restrict or allow specific users to read, write, modify, or delete shared files to ensure data security and access control.

[0095] It should be noted that by creating a file gateway group containing multiple nodes, redundancy and load balancing can be provided, so that the system has strong fault tolerance. When a node fails, other nodes can take over its work to ensure the continuity and reliability of the service.

[0096] S202, mounting the storage sharing service of the file storage gateway, that is, the client service.

[0097] Among them, the storage sharing business of the file storage gateway refers to the storage resources and services provided by the file storage gateway, allowing multiple clients to access shared files or storage space through network protocols (such as NFS, SMB).

[0098] In a possible implementation manner, S202 specifically includes:

[0099] Connect each client to the file storage system corresponding to the file storage gateway, and set the relevant parameters of each client, where the relevant parameters include access rights, read and write operation types, and read and write data sizes.

[0100] Among them, access rights refer to the permission rules configured for each client, which control the scope of the client's operations on files or folders in the storage system. The read and write operation types refer to the types of operations performed by the client when accessing the storage system, including reading and writing files. The read and write data size refers to the amount of data involved when the client performs read and write operations. This can be adjusted according to business needs and affects the efficiency and performance of data transmission.

[0101] It should be noted that by mounting the storage sharing service of the file storage gateway, the client can transparently access the storage resources provided by the file storage gateway, realizing the effective connection between the client and the storage system, ensuring that the client can seamlessly perform data read and write operations. This step supports multiple clients to access shared resources at the same time, improving the flexibility and scalability of the storage system, and facilitating efficient data management and collaboration in complex business scenarios.

[0102] S203, perform IPMI configuration on each node to complete the construction of the test environment.

[0103] Among them, IPMI (Intelligent Platform Management Interface), namely Intelligent Platform Management Interface, is an industry-standard hardware management interface specification used for remote management and monitoring of hardware devices such as servers. Through the IPMI tool, administrators can remotely perform various management operations on the server, such as power management, temperature monitoring, fault diagnosis, etc.

[0104] In a possible implementation manner, S203 specifically includes:

[0105] Perform IPMI configuration for each node by setting the node IPMI address, node user name, and node password.

[0106] It should be noted that by building test environment modules and automatically creating a standardized test environment, not only the test efficiency is improved, but also the consistency of the environment is ensured, the possibility of human configuration errors is reduced, the test process is faster, and different test requirements can be responded to quickly to ensure that the environment meets actual production conditions.

[0107] S3, using the result recording module to record the first data read and write log under the client service.

[0108] In a possible implementation, the result recording module includes a vdbench tool.

[0109] Among them, vdbench (Veritas Storage Benchmark) is a tool used to evaluate and compare the performance of different storage devices. vdbench can simulate real workloads and test the read and write performance, persistence, consistency and other indicators of storage devices.

[0110] It should be noted that by recording the first data read and write log under the client business in detail through the result recording module, it can ensure that data operations under normal business operation are completely preserved, and provide accurate benchmark data for subsequent fault simulation and performance comparison, so as to facilitate accurate analysis of the performance of the file storage gateway and the differences in system behavior before and after the failure, and improve the reliability and traceability of the test results.

[0111] S4, in the test environment, the fault simulation module is used to use the file storage gateway node as a fault virtual node to simulate client services under different fault types.

[0112] Among them, the file storage gateway node refers to an independent physical or virtual node in the file storage gateway system, which is responsible for processing the client's file storage requests. The faulty virtual node is a node that is artificially simulated as a faulty state during the test process to evaluate the performance of the file storage gateway under fault conditions.

[0113] In a possible implementation, S4 specifically includes:

[0114] S401, obtaining the node to which the virtual IP used by the file storage gateway in the current file sharing service belongs.

[0115] Among them, the virtual IP is an IP address allocated to achieve high availability and is not bound to a specific physical network interface. The virtual IP can drift dynamically between different nodes, so that the client does not need to perceive the changes in the node when accessing the file storage gateway.

[0116] It should be noted that by obtaining the node to which the virtual IP used in the current file sharing service belongs, the node that specifically processes the client request can be determined, and the faulty node can be accurately simulated when a system failure occurs.

[0117] S402: Use the file storage gateway node corresponding to the node to which the virtual IP belongs as a faulty virtual node.

[0118] S403 , for the purpose of simulating different types of failures of client services, the faulty virtual node is powered off through an IPMI tool according to a predetermined rule and a predetermined schedule.

[0119] It should be noted that by simulating the faults of the file storage gateway nodes through the fault simulation module, the response capability and recovery mechanism of the gateway under different types of faults can be comprehensively tested, and its high availability, fault tolerance and automatic switching capabilities can be verified, thereby ensuring that the system can still operate stably when a fault occurs in the actual production environment, thereby minimizing the risk of business interruption.

[0120] S5, using a result recording module, recording a second data read and write log of the faulty virtual node and a drift time length for the faulty virtual node to return to normal.

[0121] The drift duration refers to the time interval after a node failure occurs, when the file storage gateway switches from the failed node to other normal nodes and resumes service (i.e., the time it takes for the failed node to return to normal and switch).

[0122] In a possible implementation, S5 specifically includes:

[0123] S501, with the goal of ensuring that the file storage gateway responds to the failure, waits for a first preset time and powers on the failed virtual node.

[0124] It should be noted that those skilled in the art can set the first preset duration according to actual needs, and the present invention is not limited thereto.

[0125] S502, waiting for a second preset time period, and recording a second data read and write log and a drift time period.

[0126] Among them, the drift duration refers to the time required for the virtual IP to automatically switch (drift) from the faulty node to other normal nodes when a node failure occurs in the file storage gateway. This period of time represents the process from the system detecting the failure to restoring normal service.

[0127] It should be noted that those skilled in the art can set the second preset duration according to actual needs, and the present invention is not limited thereto.

[0128] It should be noted that by recording the second data read and write logs and drift duration during the failure period, the performance of the system in the event of a failure can be tracked in detail, providing an accurate data basis for evaluating the high availability of the system, enabling the system to quickly switch and restore business when a failure occurs, reducing downtime and ensuring business continuity.

[0129] S6, analyzing the first data read and write log and the second data read and write log through the result analysis module. If the first data read and write log and the second data read and write log are consistent and the drift time is less than the preset drift time, the test result of the output file storage gateway is normal, otherwise, enter step S7.

[0130] Among them, the result analysis module includes a shell script, and the test result can also be judged by this script, specifically: extract the start timestamp and end timestamp of the data area with consecutive 0s in the first record log and the second record log, wherein the start timestamp and the corresponding end timestamp constitute a time zone; calculate the duration of the start timestamp and the end timestamp; count the number of time zones with a duration of not less than 30 seconds; after the number of time zones exceeds a certain number of time zones, it is determined that the file storage gateway is unqualified, that is, the high availability is insufficient, and the test fails.

[0131] It should be noted that those skilled in the art can set the preset drift duration according to actual needs, and the present invention is not limited thereto.

[0132] In a possible implementation, analyzing the first data read and write log and the second data read and write log by the result analysis module specifically includes:

[0133] Verify whether the first data read and write log is consistent with the second data read and write log by checking the execution log and the vdbench service generation log.

[0134] By checking the node to which the virtual IP of the file gateway group belongs, determine whether the faulty virtual node has successfully drifted to another node, and record the drifting duration.

[0135] It should be noted that through the result analysis module, by comparing the first and second data read and write logs in detail and checking the drift duration, the performance of the file storage gateway in the event of a failure can be accurately evaluated, so that the file storage gateway can quickly recover and maintain data consistency after a failure occurs, and determine whether the test results meet the preset standards, which helps to identify potential problems and improve the stability and reliability of the system.

[0136] S7, the test result of the file storage gateway is outputted abnormally through the monitoring alarm module, and an alarm message is issued.

[0137] It should be noted that the monitoring alarm module automatically detects and reports test anomalies of the file storage gateway, which can realize real-time fault alarms, shorten the time for problem discovery and processing, and enable operation and maintenance personnel to quickly locate and solve problems, avoiding further impact caused by system failures.

[0138] The beneficial effects of the present invention are as follows:

[0139] In an embodiment of the present invention, through the test environment construction module, the test environment of the file storage gateway can be automatically created, the complexity of manual configuration is reduced, and the flexibility and efficiency of the test are improved. The fault simulation module can simulate different types of fault scenarios, comprehensively cover a variety of fault conditions, and more comprehensively test the file storage gateway in business scenarios to ensure that the file storage gateway can still maintain normal operation and rapid recovery under various complex fault conditions. The result recording module records the read and write logs of the client business under normal and fault conditions in detail, making data analysis and comparison more comprehensive and accurate, and can accurately test the high availability and security of the file gateway, further improving the reliability and stability of the file storage gateway.

[0140] Device Embodiment

[0141] Reference Manual Attached Figure 3, shows a schematic structural diagram of a high availability testing device for a file storage gateway provided in an embodiment of the present invention.

[0142] Another specific embodiment of the present invention discloses a high availability testing device for a file storage gateway, which is used to implement the high availability testing method for a file storage gateway in any one of the method embodiments, and is applied to a high availability testing platform for a file storage gateway. The high availability testing platform for a file storage gateway includes a test environment construction module, a fault simulation module, a result recording module, a result analysis module, and a monitoring alarm module connected in sequence. The high availability testing device 20 for a file storage gateway includes:

[0143] Acquisition module 201, used to acquire client services;

[0144] A construction module 202 is used to construct a test environment for the file storage gateway through a test environment construction module;

[0145] A first recording module 203, used to record a first data read and write log under a client service by using a result recording module;

[0146] The simulation module 204 is used to use the fault simulation module to simulate the client services under different fault types in the test environment by using the file storage gateway node as a fault virtual node;

[0147] The second recording module 205 is used to record the second data read and write log under the faulty virtual node and the drift time length of the faulty virtual node returning to normal by using the result recording module;

[0148] An analysis module 206 is used to analyze the first data read and write log and the second data read and write log through a result analysis module. When the first data read and write log and the second data read and write log are consistent and the drift duration is less than a preset drift duration, the test result of the output file storage gateway is normal; otherwise, the alarm module is entered;

[0149] The alarm module 207 is used to output abnormal test results of the file storage gateway through the monitoring alarm module and issue an alarm message.

[0150] In a possible implementation, the building blocks specifically include:

[0151] A submodule is created to create a file gateway group for a file storage gateway, wherein the file gateway group includes multiple nodes;

[0152] The mounting submodule is used to mount the storage sharing service of the file storage gateway, namely the client service;

[0153] The configuration submodule is used to perform IPMI configuration on each node and complete the construction of the test environment.

[0154] In a possible implementation, the mounting submodule is specifically used for:

[0155] Connect each client to the file storage system corresponding to the file storage gateway, and set the relevant parameters of each client, where the relevant parameters include access rights, read and write operation types, and read and write data sizes.

[0156] In a possible implementation, the configuration submodule is specifically used for:

[0157] Perform IPMI configuration for each node by setting the node IPMI address, node user name, and node password.

[0158] In a possible implementation, the simulation module specifically includes:

[0159] The acquisition submodule is used to obtain the node to which the virtual IP used by the file storage gateway in the current file sharing service belongs;

[0160] A setting submodule is used to set the file storage gateway node corresponding to the node to which the virtual IP belongs as a faulty virtual node;

[0161] The power-off electronic module is used to power off the faulty virtual node through the IPMI tool according to a predetermined rule and a predetermined schedule for the purpose of simulating different fault types of client services.

[0162] In a possible implementation, the second recording module specifically includes:

[0163] The upper electronic module is used to ensure that the file storage gateway responds to the failure, wait for a first preset time, and power on the failed virtual node;

[0164] The recording submodule is used to wait for a second preset time period and record a second data read and write log and a drift time period.

[0165] The beneficial effects of the present invention are as follows:

[0166] In an embodiment of the present invention, through the test environment construction module, the test environment of the file storage gateway can be automatically created, the complexity of manual configuration is reduced, and the flexibility and efficiency of the test are improved. The fault simulation module can simulate different types of fault scenarios, comprehensively cover a variety of fault conditions, and more comprehensively test the file storage gateway in business scenarios to ensure that the file storage gateway can still maintain normal operation and rapid recovery under various complex fault conditions. The result recording module records the read and write logs of the client business under normal and fault conditions in detail, making data analysis and comparison more comprehensive and accurate, and can accurately test the high availability and security of the file gateway, further improving the reliability and stability of the file storage gateway.

[0167] System Example

[0168] Reference Manual Attached Figure 4 , shows a structural schematic diagram of a high availability testing system for a file storage gateway provided by an embodiment of the present invention.

[0169] The present invention provides a high availability testing system 30 for a file storage gateway, comprising: a memory 303 and one or more processors 301 .

[0170] One or more application programs are stored in the memory 303 , and the one or more application programs are suitable for being executed by the one or more processors 301 to implement the high availability testing method for the file storage gateway of the method embodiment.

[0171] The high availability test system 30 of the file storage gateway includes: a processor 301 and a memory 303. The processor 301 and the memory 303 are connected, for example, through a bus 302.

[0172] The structure of the high availability testing system 30 for the file storage gateway does not constitute a limitation on the embodiment of the present invention.

[0173] Processor 301 may be a CPU, a general purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present invention. Processor 301 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0174] The bus 302 may include a path to transmit information between the above components. The bus 302 may be a PCI bus or an EISA bus, etc. The bus 302 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0175] The memory 303 can be a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, or an EEPROM, a CD-ROM or other optical disk storage, an optical disk storage (including a compressed optical disk, a laser disk, an optical disk, a digital versatile disk, a Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.

[0176] Computer Readable Storage Medium Embodiments

[0177] The present invention provides a computer-readable storage medium on which a computer program is stored. The computer program can be loaded and executed by a processor to implement the high availability testing method for a file storage gateway according to the first aspect.

[0178] The applicant of the present invention has made a detailed explanation and description of the implementation examples of the present invention in conjunction with the drawings in the specification. However, those skilled in the art should understand that the above implementation examples are only preferred implementation schemes of the present invention, and the detailed description is only to help readers better understand the spirit of the present invention, but not to limit the scope of protection of the present invention. On the contrary, any improvements or modifications based on the inventive spirit of the present invention should fall within the scope of protection of the present invention.

[0179] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the above embodiments, or replace some of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. Any changes or replacements that can be easily thought of by those skilled in the art within the technical scope disclosed in the present invention should be covered within the protection scope of the present invention.

Claims

1. A high availability testing method for a file storage gateway, characterized in that: A high availability test platform for a file storage gateway, the high availability test platform for the file storage gateway comprising a test environment construction module, a fault simulation module, a result recording module, a result analysis module and a monitoring alarm module connected in sequence; the method comprises: S1, obtain client services; S2, constructing a test environment for the file storage gateway through the test environment construction module; S3, using the result recording module to record the first data read and write log under the client service; S4, in the test environment, using the fault simulation module to use the file storage gateway node as a fault virtual node to simulate client services under different fault types; S5, using the result recording module to record the second data read and write log under the faulty virtual node and the drift time for the faulty virtual node to return to normal; S6, analyzing the first data read and write log and the second data read and write log by the result analysis module, and outputting that the test result of the file storage gateway is normal when the first data read and write log and the second data read and write log are consistent and the drift duration is less than the preset drift duration, otherwise, proceeding to step S7; S7, outputting the abnormal test result of the file storage gateway through the monitoring alarm module and issuing an alarm message.

2. The high availability testing method for a file storage gateway according to claim 1, characterized in that: The S2 specifically includes: S201, creating a file gateway group of the file storage gateway, wherein the file gateway group includes multiple nodes; S202, mounting the storage sharing service of the file storage gateway, namely the client service; S203, performing IPMI configuration on each node to complete the construction of the test environment.

3. The high availability testing method for a file storage gateway according to claim 2, characterized in that: The S201 specifically includes: S201A, creating a file storage group of the file storage gateway; S201B, configuring the storage device of the file storage gateway; S201C, setting the file sharing permissions of the file storage gateway to complete the creation of the file gateway group.

4. The high availability testing method for a file storage gateway according to claim 2, characterized in that: The S202 is specifically as follows: Connect each client to the file storage system corresponding to the file storage gateway, and set relevant parameters of each client, wherein the relevant parameters include access rights, read and write operation types, and read and write data sizes.

5. The high availability testing method for a file storage gateway according to claim 2, characterized in that: The S203 is specifically as follows: Perform IPMI configuration for each node by setting the node IPMI address, node user name, and node password.

6. The high availability testing method for a file storage gateway according to claim 1, characterized in that: The result recording module includes a vdbench tool.

7. The high availability testing method for a file storage gateway according to claim 1, characterized in that: The S4 specifically includes: S401, obtaining the node to which the virtual IP used by the file storage gateway in the current file sharing service belongs; S402, setting the file storage gateway node corresponding to the node to which the virtual IP belongs as a faulty virtual node; S403 , for the purpose of simulating different fault types of the client service, the faulty virtual node is powered off through an IPMI tool according to a predetermined rule and a predetermined schedule.

8. The high availability testing method for a file storage gateway according to claim 1, characterized in that: The S5 specifically includes: S501, with the goal of ensuring that the file storage gateway responds to the fault, waiting for a first preset time and powering on the faulty virtual node; S502: Wait for a second preset time period, and record the second data read and write log and the drift time period.

9. The high availability testing method for a file storage gateway according to claim 2, characterized in that: The analyzing the first data read and write log and the second data read and write log by the result analysis module specifically includes: Verify whether the first data read and write log and the second data read and write log are consistent by checking the execution log and the vdbench service generation log; By checking the node to which the virtual IP of the file gateway group belongs, it is determined whether the faulty virtual node has successfully drifted to other nodes, and the drift duration is recorded.

10. A high availability testing device for a file storage gateway, characterized in that: A high availability test platform applied to a file storage gateway, the high availability test platform of the file storage gateway comprising a test environment construction module, a fault simulation module, a result recording module, a result analysis module and a monitoring alarm module connected in sequence, and the high availability test device of the file storage gateway comprises: An acquisition module is used to acquire client services; A construction module, used to construct a test environment for the file storage gateway through the test environment construction module; A first recording module, used to record a first data read and write log under the client service by using the result recording module; A simulation module, used to use the fault simulation module to simulate client services under different fault types in the test environment by using the file storage gateway node as a fault virtual node; A second recording module is used to record the second data read and write log under the faulty virtual node and the drift time length of the faulty virtual node returning to normal by using the result recording module; An analysis module, configured to analyze the first data read and write log and the second data read and write log through the result analysis module, and output that the test result of the file storage gateway is normal when the first data read and write log and the second data read and write log are consistent and the drift duration is less than a preset drift duration; otherwise, enter an alarm module; The alarm module is used to output the abnormal test result of the file storage gateway through the monitoring alarm module and issue an alarm message.

Citation Information

Patent Citations

  • Bus robustness testing method and system

    CN108733523A

  • Fault monitoring period test method and system and computer storage medium

    CN111459734A

  • Apparatus for Evaluating Control Performance

    KR101029036B1

  • Accelerated testing using simulated failures in a multi-device storage system

    US9727432B1

Cited By

  • Request processing method and device, equipment, storage medium and program product

    CN121125849A