Handle alarm test method and device applied to network file system
By monitoring and controlling the file handle usage ratio of the network file system, the precise control of the NFS client file handle alarm test is achieved, solving the problem of inability to simulate file handle exhaustion scenarios and precise testing in the existing technology, and improving the real-time system Monitoring and user experience.
Patent Information
- Application Number
- CN202411124335.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-12-10
AI Technical Summary
The existing NAS alarm system and NFS file handle alarm system cannot effectively simulate the scenario where the NFS client requests a large number of file access, resulting in the exhaustion of file handles, and it is impossible to accurately control the number of file handles to reach the alarm threshold, making it difficult to conduct accurate testing.
Provide a handle alarm testing method and device applied to a network file system. It monitors the file handle usage ratio through the handle query component, determines the handle requirement information based on the preset alarm threshold and the handle duration, and sends a request to the network file system client. The control server generates a file handle until the alarm threshold is reached, and the alarm information is displayed on the interface management system.
It realizes flexible setting of file handle requests, easily responding to alarm water level fluctuations tests, can monitor the file handle usage ratio in real time, trigger alarms in a timely manner, help testers respond quickly and deal with problems, and enhance the observability and user experience of the system.
Smart Images

Figure CN119105960A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network file system testing, and in particular to a handle alarm testing method and device applied to a network file system. Background Art
[0002] The NFS (Network File System) protocol uses file handles to identify files, and records the file system to which the file belongs on the server, file information, and other content. The client only needs to send the file handle of the requested file to the server, and the server can easily find the corresponding file. However, if the file handle usage exceeds the upper limit, it may cause serious problems. At present, the NAS (Network Attached Storage) alarm system has added NFS file handle alarms to monitor the file handle usage and report alarms when it exceeds the alarm threshold.
[0003] However, the existing NAS alarm system and NFS file handle alarm only provide monitoring and alarm for the file handles used by NFS, but there is no effective means or tool to simulate the scenario where NFS clients request a large number of file accesses and exhaust the file handles. In addition, when the existing alarm is reported, it will only inform the customer that the number of NFS file handles currently in use has exceeded the alarm threshold, and will not inform the customer of more detailed information. In the process of handle testing, it is also impossible to accurately control how many file handles the NFS client must apply for or release to reach the alarm threshold, so it is difficult to accurately test the changes in the number of file handles. Summary of the invention
[0004] In view of the above problems, the present application proposes a handle alarm testing method and device applied to a network file system.
[0005] In a first aspect of the implementation of the present application, a handle alarm test method applied to a network file system is first provided, characterized in that the method is applied to a network attached storage system, the network attached storage system includes a handle query component and a network file system server component, the network attached storage system is respectively connected to a periodic inspection component and a plurality of network file system clients in communication, the periodic inspection component is connected to an alarm reporting component in communication, and the alarm reporting component is deployed in an interface management system, the method includes:
[0006] Controlling the handle query component to query and obtain the file handle usage ratio in the network file system server component;
[0007] Inputting a preset alarm threshold and a preset handle duration into the handle query component;
[0008] Controlling the handle query component to determine handle demand information according to the alarm threshold and the file handle usage ratio;
[0009] The handle requirement information is sent to the network file system client; the network file system client is used to send a file handle request according to the handle requirement information;
[0010] receiving the file handle request, and controlling the network file system server component to continuously generate file handles according to the file handle request;
[0011] When the file handle usage ratio is consistent with the alarm threshold, controlling the periodic inspection component to send the file handle usage ratio to the alarm reporting component for processing to obtain alarm information;
[0012] The alarm information is displayed on the user interface of the interface management system.
[0013] Optionally, controlling the handle query component to query and obtain the file handle usage ratio in the network file system server component includes:
[0014] Inputting a handle calculation signal into the handle query component, wherein the handle calculation signal is used to instruct the handle query component to enter a handle calculation mode;
[0015] Acquire the process identifier of the network file system server component through the handle query component;
[0016] Obtaining the maximum number of file handles according to the process identifier;
[0017] Acquire the number of existing file handles in the network file system server component through the handle query component;
[0018] The file handle usage ratio is calculated according to the existing number of file handles and the maximum number of file handles.
[0019] Optionally, the controlling the handle query component to determine the handle demand information according to the alarm threshold and the file handle usage ratio includes:
[0020] Controlling the handle query component to calculate the handle alarm quantity according to the alarm threshold and the maximum number of file handles;
[0021] Controlling the handle query component to calculate the handle requirement quantity according to the handle alarm quantity and the existing file handle quantity;
[0022] The handle requirement quantity, the maximum number of file handles, and the handle duration are used as the handle requirement information.
[0023] Optionally, when the file handle usage ratio is consistent with the alarm threshold, controlling the periodic inspection component to send the file handle usage ratio to the alarm reporting component for processing to obtain alarm information includes:
[0024] Inputting a handle display signal into the handle query component, wherein the handle display signal is used to instruct the handle query component to enter a handle display mode;
[0025] Acquire the process identifier of the network file system server component through the handle query component;
[0026] Obtaining the maximum number of file handles according to the process identifier;
[0027] Acquire the number of existing file handles in the network file system server component through the handle query component;
[0028] Calculating the file handle usage ratio according to the existing number of file handles and the maximum number of file handles;
[0029] Acquire virtual addresses, host names, and port numbers of several network file system clients corresponding to the file handle requests according to the file handle requests;
[0030] If the network file system client holds the file handle generated by the network file system server component, the number of handles used by the network file system client increases;
[0031] If the network file system client releases the file handle generated by the network file system server component, the number of handles used by the network file system client decreases;
[0032] According to the number of used handles of the network file system clients, the network file system clients are sorted from the one with the largest number of used handles to the one with the smallest number of used handles;
[0033] The virtual addresses, host names, handle usage numbers and file handle usage ratios of the top preset number of network file system clients are sent to the alarm reporting component for processing to obtain alarm information.
[0034] In a second aspect of the present application, there is also provided a handle alarm test method applied to a network file system, characterized in that it is applied to any network file system client, the network file system client includes a handle request component, the network file system client has a communication connection with a network attached storage system, the network attached storage system includes a handle query component and a network file system server component, and the method includes:
[0035] Receiving handle requirement information sent by the handle query component;
[0036] Controlling the handle request component to modify the maximum number of handle requests of the network file system client according to the handle demand information;
[0037] Controlling the handle request component to create a number of empty files according to the handle requirement information;
[0038] Controlling the handle to request the component to open the empty file;
[0039] Sending a file handle request according to the empty file, the network file system server component is used to continuously generate a file handle according to the file handle request;
[0040] Determine whether the time for which the empty file is continuously opened is consistent with a preset handle duration;
[0041] If they are consistent, the handle request component is controlled to close the empty file and delete the empty file.
[0042] Optionally, the handle requirement information includes a handle requirement quantity, a maximum number of file handles, and a handle duration, and controlling the handle request component to modify the maximum number of handle requests of the network file system client according to the handle requirement information includes:
[0043] Controlling the handle request component to obtain the maximum number of file handles according to the handle demand information;
[0044] Controlling the handle request component to issue a handle quantity modification prompt;
[0045] If no feedback on the handle quantity modification prompt is received within a preset time, calling a modification command of the network file system client to modify the maximum handle request quantity of the network file system client;
[0046] The maximum number of file handles is modified to the maximum number of handle requests of the network file system client.
[0047] In a third aspect of the implementation of the present application, there is also provided a handle alarm test system applied to a network file system, characterized in that the handle alarm test system comprises a network attached storage system, a network file system client, an interface management system, and a periodic inspection component, the network attached storage system comprises a handle query component and a network file system server component, the network attached storage system is respectively connected to the periodic inspection component and a number of network file system clients, the periodic inspection component is connected to the alarm reporting component, the alarm reporting component is deployed in the interface management system, the network file system client comprises a handle request component, the network file system client is connected to the network attached storage system, and the network attached storage system comprises a handle query component and a network file system server component;
[0048] The network attached storage system is used to control the handle query component to query and obtain the file handle usage ratio in the network file system server component;
[0049] The network attached storage system is further used to input a preset alarm threshold and a preset handle duration into the handle query component;
[0050] The network attached storage system is further used to control the handle query component to determine handle demand information according to the alarm threshold and the file handle usage ratio;
[0051] The network attached storage system is also used to send the handle demand information to the network file system client;
[0052] The network file system client is used to receive the handle demand information sent by the handle query component;
[0053] The network file system client is also used to control the handle request component to modify the maximum handle request quantity of the network file system client according to the handle demand information;
[0054] The network file system client is also used to control the handle request component to create a number of empty files according to the handle requirement information;
[0055] The network file system client is also used to control the handle request component to open the empty file;
[0056] The network file system client is also used to send a file handle request according to the empty file;
[0057] The network file system client is also used to determine whether the time for which the empty file is continuously opened is consistent with a preset handle duration;
[0058] If they are consistent, the network file system client is also used to control the handle request component to close the empty file and delete the empty file;
[0059] The network attached storage system is further used to receive the file handle request, and control the network file system server component to continuously generate file handles according to the file handle request;
[0060] When the file handle usage ratio is consistent with the alarm threshold, the periodic inspection component is used to send the file handle usage ratio to the alarm reporting component of the interface management system for processing to obtain alarm information;
[0061] The interface management system is used to display the alarm information on the user interface of the interface management system.
[0062] In a fourth aspect of the implementation of the present application, there is also provided a handle alarm test device applied to a network file system, characterized in that it is applied to a network attached storage system, the network attached storage system includes a handle query component and a network file system server component, the network attached storage system is respectively connected to a periodic inspection component and a plurality of network file system clients for communication, the periodic inspection component is connected to an alarm reporting component for communication, the alarm reporting component is deployed in an interface management system, and the device includes:
[0063] A handle usage ratio query module, used to control the handle query component to query and obtain the file handle usage ratio in the network file system server component;
[0064] A data input module, used for inputting a preset alarm threshold and a preset handle duration into the handle query component;
[0065] A handle demand determination module, used to control the handle query component to determine handle demand information according to the alarm threshold and the file handle usage ratio;
[0066] A handle demand sending module, used for sending the handle demand information to the network file system client; the network file system client is used for sending a file handle request according to the handle demand information;
[0067] A handle request receiving module, used for receiving the file handle request, and controlling the network file system server component to continuously generate a file handle according to the file handle request;
[0068] An alarm reporting module, used for controlling the periodic inspection component to send the file handle usage ratio to the alarm reporting component for processing to obtain alarm information when the file handle usage ratio is consistent with the alarm threshold;
[0069] The alarm display module is used to display the alarm information on the user interface of the interface management system.
[0070] In a fifth aspect of the implementation of the present application, there is also provided a handle alarm test device applied to a network file system, characterized in that it is applied to any network file system client, the network file system client includes a handle request component, the network file system client has a communication connection with a network attached storage system, the network attached storage system includes a handle query component and a network file system server component, and the device includes:
[0071] A handle demand receiving module, used for receiving the handle demand information sent by the handle query component;
[0072] A handle upper limit modification module, used to control the handle request component to modify the maximum handle request quantity of the network file system client according to the handle demand information;
[0073] An empty file creation module, used for controlling the handle request component to create a number of empty files according to the handle requirement information;
[0074] An empty file opening module, used for controlling the handle request component to open the empty file;
[0075] A handle request sending module, used for sending a file handle request according to the empty file, and the network file system server component is used for continuously generating a file handle according to the file handle request;
[0076] The empty file duration determination module is used to determine whether the empty file is continuously opened for a period of time that is consistent with a preset handle duration;
[0077] The empty file deletion module is used to control the handle request component to close the empty file and delete the empty file if they are consistent.
[0078] In the sixth aspect of the implementation of the present application, there is also provided an electronic device, characterized in that it includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, it implements the handle alarm test method applied to the network file system as described above.
[0079] In the seventh aspect of the implementation of the present application, a computer-readable storage medium is also provided, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the handle alarm test method applied to the network file system as described above is implemented.
[0080] The embodiments of the present application have the following advantages:
[0081] In an embodiment of the present application, the control handle query component queries and obtains the file handle usage ratio in the network file system server component, inputs the preset alarm threshold and the preset handle duration into the handle query component, and the control handle query component determines the handle demand information according to the alarm threshold and the file handle usage ratio, and sends the handle demand information to the network file system client; the network file system client is used to send a file handle request according to the handle demand information, receive the file handle request, and control the network file system server component to continuously generate file handles according to the file handle request. When the file handle usage ratio is consistent with the alarm threshold, the control period inspection component sends the file handle usage ratio to the alarm reporting component for processing, obtains the alarm information, and displays the alarm information on the user interface of the interface management system. The present application can flexibly set the number of file handle requests initiated, easily cope with the alarm water level fluctuation test, and can set the file handle holding time, which is convenient for testers to react and observe the alarm information. The present application can also monitor the usage ratio of the file handle in real time, and compare it with the preset alarm threshold to ensure that the alarm can be triggered in time when the threshold is reached, helping testers to respond and handle problems quickly. In addition, the alarm information can be directly displayed on the user interface of the interface management system, so that testers can intuitively see the alarm situation and take timely measures, which enhances the observability of the system and user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0082] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art.
[0083] Figure 1 It is a schematic diagram of a framework of a NAS alarm system provided by an embodiment of the present application;
[0084] Figure 2 This is a flowchart of an NFS file handle alarm provided by an embodiment of the present application;
[0085] Figure 3 It is a flowchart of a method for testing a handle alarm applied to a network file system provided by an embodiment of the present application;
[0086] Figure 4 It is a schematic diagram of the overall workflow of a handle calculation component provided by an embodiment of the present application;
[0087] Figure 5 It is a schematic diagram of a handle calculation mode workflow of a handle calculation component provided in one embodiment of the present application;
[0088] Figure 6 It is a flowchart of another method for testing a handle alarm applied to a network file system provided by an embodiment of the present application;
[0089] Figure 7 This is a schematic diagram of a workflow of a handle request component provided in one embodiment of the present application;
[0090] Figure 8 It is a structural diagram of a handle alarm test system applied to a network file system provided by an embodiment of the present application;
[0091] Fig. 9 It is a structural diagram of a handle alarm testing device applied to a network file system provided by an embodiment of the present application.
[0092] Fig.10 It is a structural diagram of another handle alarm testing device applied to a network file system provided by an embodiment of the present application. DETAILED DESCRIPTION
[0093] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, each embodiment of the present application will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in each embodiment of the present application, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can also be implemented. The division of the following embodiments is for the convenience of description, and the specific implementation of the present application should not constitute any limitation, and the various embodiments can be combined with each other and referenced to each other without contradiction.
[0094] In NAS (Network Attached Storage), the file system is used as a carrier to provide network sharing services for files or directories to different hosts in the local area network (Local Area Network). NAS systems provide a variety of sharing protocols, such as CIFS (Common Internet File System), which is often used for file resource sharing in Windows systems. NFS (Network File System), which is compatible with Unix-like operating systems, provides a FUSE (Filesystem in Userspace) compatible interface FSAL (File System Abstraction Layer) for Unix and Unix-like operating systems. In this way, users can access their own storage devices through NFS Client to share files or directories.
[0095] It should be noted that NAS (Network Attached Storage) can be a device specifically used for data storage, which provides file-level storage services through the network. NAS devices are usually connected to a local area network (LAN) to allow multiple users and / or client devices to access shared storage resources. In the embodiment of the present application, the implementation of the NFS service is based on the NAS system.
[0096] NFS (Network File System) is a distributed file system protocol originally developed by Sun Microsystems that enables users to access and share files over the network just like accessing local storage. NFS makes file sharing between different computers and operating systems simple and transparent. Here are some key features and advantages of NFS:
[0097] Transparent access: Users and applications can access remote files just like local files, without knowing where the files are actually stored.
[0098] Centralized management: With NFS, files can be stored on a centralized server for easy management and maintenance.
[0099] Network sharing: NFS allows multiple clients to access and share files on the server at the same time, and supports cross-platform file sharing.
[0100] Performance optimization: NFS supports a variety of optimization technologies, such as caching and asynchronous writing, to improve file access performance.
[0101] Scalability: NFS can be easily expanded to support more clients and larger data sets.
[0102] NFS usually uses a client-server model, where the server runs NFS server software, which is responsible for managing the shared file system, and the client runs NFS client software, which is responsible for accessing these shared files over the network. The NFS protocol itself is stateless, which means that the server does not need to maintain the client's status information, thus simplifying the design and implementation.
[0103] NFS is widely used in many enterprises and organizations, especially in environments that require cross-platform file sharing and centralized storage management.
[0104] In the embodiment of the present application, through the cooperation of the NFS server and the client, users can access and share files through the network.
[0105] However, the server side of NFS may have more than one file system. Each file system usually contains many files, and it does not know which file the client is requesting to access. This requires a unique identifier to distinguish files. Therefore, the NFS protocol uses a file handle to identify files, which records the file system and file information to which the file belongs on the server side. The client only needs to send the file handle of the requested file to the server side, and the server side can easily find the corresponding file. Different versions of the NFS protocol have different restrictions on the length of the file handle. The identification information contained in the file handle is different, but they all serve as unique identifiers for file access. In NFSv2, the length of the file handle is fixed to 32 bytes. In NFSv3, the length of the file handle is variable, but cannot exceed 64 bytes. In NFSv4, the length of the file handle is variable, but cannot exceed 128 bytes.
[0106] It should be noted that a file handle is an abstract concept, which may refer to a unique identifier assigned by an operating system to an open file. This identifier is used to reference the file in subsequent file operations, such as reading, writing, and positioning. A file handle is a mechanism used by the operating system kernel to manage file resources. In an embodiment of the present application, a test of a large number of file requests in an NFS service is implemented through a file handle.
[0107] It should be noted that the length of file handles does vary in different versions of NFS (Network File System). These length restrictions are to ensure the uniqueness and security of file handles. The following is a detailed description of the file handle lengths in various versions of NFS:
[0108] NFSv2: In NFS version 2, the length of the file handle is fixed at 32 bytes. This means that no matter what file system the file is stored on, the length of its file handle is 32 bytes.
[0109] NFSv3: In NFS version 3, the length of the file handle becomes variable, but there is an upper limit, which cannot exceed 64 bytes. This design provides greater flexibility while ensuring the uniqueness and security of the file handle.
[0110] NFSv4: In NFS version 4, the length of the file handle is further increased, but there is still an upper limit, which cannot exceed 128 bytes. NFSv4 introduces more features and improvements, including stronger security, better performance, and a richer feature set, so larger file handles are needed to support these new features.
[0111] The length limit of the file handle ensures that the file handle can uniquely identify a file between different NFS versions and different file systems while maintaining sufficient flexibility and security.
[0112] Limited by the software or hardware performance of the operating system, such as the processing power of the processor, memory, etc., the file sharing concurrency provided by NFS is limited. Therefore, the file handles also have a number limit. After exceeding this limit, the NFS process will not be able to respond to more requests, which is manifested in the NFS Client (client) end as the NFS service is stuck, and more seriously, it may cause the service to crash. The operating system of the Unix client usually also sets a lower upper limit on the number of file handles by default (for example, the centos7 operating system sets an upper limit of 1024 by default), but it can be modified. In an embodiment of the present application, by modifying the upper limit of the number of file handles, a single NFS client can initiate a large number of handle requests to implement the test of the handle alarm.
[0113] Reference Figure 1 , shows a schematic diagram of a framework of a NAS alarm system provided by an embodiment of the present application, which may specifically include the following contents:
[0114] In the NAS storage system, the following settings are available: Figure 1 The NAS alarm system shown is mainly composed of the alarm reporting component in the interface management system, the network file system server component in the network attached storage system, and the scheduled inspection component. The scheduled inspection component can periodically trigger the inspection action, enter the network attached storage system to obtain the status information of various shared network file system server components or other modules. If it is normal, the inspection ends; if the status is abnormal, it will be fed back to the scheduled inspection component. At this time, the scheduled inspection component transmits the abnormal information back to the alarm reporting component. The alarm reporting component analyzes and processes the information, and translates it into easy-to-understand alarm information, which is reported to the event page of the interface management system.
[0115] In the specific implementation, the NAS alarm system can be composed of three modules: the server on the NAS server side, the interactive Alarm_timer, and the reporter that presents the alarm information. The Alarm_timer can periodically trigger the inspection action, enter the NAS server to obtain the status information of various shared servers or other modules. If it is normal, the inspection ends; if the status is abnormal, it will be fed back to the timer module. At this time, the timer module will pass the abnormal information back to the reporter module. The reporter module analyzes and processes the information, and translates it into easy-to-understand alarm information, and reports it to the event page of the interface management system. Among them, the interface management system can be a UI management system.
[0116] This NAS alarm system can realize functions such as periodic monitoring of service status and reporting of abnormal alarms.
[0117] Reference Figure 2 , shows a schematic diagram of a process of NFS file handle alarm provided by an embodiment of the present application, which may specifically include the following contents:
[0118] In view of the current situation that the use of file handles in NFS services may cause serious problems if they exceed the upper limit, the NFS file handle alarm has been added to the NAS alarm system to monitor the use of file handles and report an alarm when the alarm threshold is exceeded. Figure 2 As shown in the NFS file handle alarm process, the periodic inspection task will obtain the NFS service on the NAS server and the used file handle water level. If the water level exceeds the alarm threshold, the abnormal information will be fed back to the interface management system, and the NFS file handle alarm will be reported, and the used water level value will be notified.
[0119] The file handle watermark refers to the ratio of used file handles to the upper limit of the number of file handles in the NFS server.
[0120] The inspection starts, obtains the usage ratio of file handles, and determines whether the usage ratio of file handles exceeds the alarm threshold. If it exceeds the alarm threshold, the file handle usage ratio is fed back to the interface management system, and the file handle alarm is reported. If it does not exceed the alarm threshold, the inspection ends.
[0121] In the above-mentioned NAS alarm system and NFS file handle alarm, only the monitoring and alarm of the file handles used by NFS are provided, but there is no effective means or tool to simulate the scenario where the NFS Client (client) requests a large number of file accesses and then exhausts the file handles. This is because the default upper limit of the file handle of the NFS Client (client) is low, and in the regular real NFS business access, not too many file handle requests are sent at one time.
[0122] If you want to simulate the exhaustion of file handles on the NFS server, you can use the following methods: 1) Rely on a large number of clients to access concurrently, but too many server resources are required, the testing cost is high, and concurrent operations are difficult. 2) Find and exploit BUG vulnerabilities, simulate the client requesting NFS file handles, abnormally releasing handles, and continuously requesting until the handles are exhausted. However, if such vulnerabilities exist, R&D will respond quickly to fix them, and this cannot be used as a stable testing method, and the testing difficulty is higher.
[0123] In addition, in the above-mentioned NAS alarm system and NFS file handle alarm, when reporting, customers will only be informed that the currently used NFS file handles have exceeded the water level and what the current water level value is. Whether there is a problem is of course what customers care about, but this is far from enough. Customers want to know where the problem is and how to solve it. For example, which NFS Client has too many requests, which process's handles continue to grow, etc., what response measures or solution suggestions are there, etc. Among them, the file handle water level refers to the proportion of the file handles that have been used to the upper limit of the number of file handles in the NFS server.
[0124] Moreover, in the above-mentioned NAS alarm system and NFS file handle alarm, it is difficult to verify the change of the alarm water level. In view of the fluctuation of the alarm water level, it is necessary to test the update of the alarm information after the water level changes, but it is not easy to achieve. If the alarm water level changes by a certain percentage (such as an increase of 5%) after exceeding the alarm water level, update the alarm details. Even with concurrent access by multiple clients, or abnormal applications that do not release handles, it is impossible to accurately control the number of new file handles applied for or released by the NFS client. It is very difficult to accurately test the fluctuation of the file handle water level, such as 80% to 85%, 90% to 84%, etc.
[0125] Therefore, the present application proposes a handle alarm test method applied to a network file system, which monitors the file handle usage ratio in the network file system server component by controlling the handle query component, and determines the handle demand information according to the preset alarm threshold and handle duration. The network file system client automatically sends a file handle request according to the demand information, and triggers an alarm when the usage ratio reaches the alarm threshold. The alarm information is directly displayed on the interface management system, which is convenient for testers to quickly respond and handle problems, and improves the flexibility, real-time monitoring capability and user experience of the system.
[0126] Reference Figure 3 , showing a step flow chart of a handle alarm test method applied to a network file system provided by an embodiment of the present application, which is applied to a network attached storage system, wherein the network attached storage system includes a handle query component and a network file system server component, wherein the network attached storage system is respectively communicated with a periodic inspection component and a plurality of network file system clients, wherein the periodic inspection component has a communication connection with an alarm reporting component, and the alarm reporting component is deployed in an interface management system.
[0127] It should be noted that the network attached storage system may be a NAS storage system, the handle query component may be a module deployed in the NAS storage system for handle testing, the network file system server component may be a module deployed in the NAS storage system for providing NFS services, the periodic inspection component may be a module for periodic inspection of NFS services in the NAS storage system, the network file system client may be an NFS client, and the NFS client may include a Linux client. The alarm reporting component may be a module that receives alarm information sent by the periodic inspection component and then implements alarm reporting in the interface management system, and the interface management system may include an event page for reporting abnormal alarms.
[0128] In a specific implementation, the handle query component may be a Handle_counter module, the network file system server component may be an NFS server, the periodic inspection component may be an Alarm_timer module, the network file system client may be an NFS Client, the alarm reporting component may be a reporter module, and the interface management system may be a UI management system.
[0129] In the embodiment of the present application, the communication connection between the network attached storage system and the network file system client may be pre-configured.
[0130] In a specific implementation, the communication connection between the network attached storage system and the network file system client can be achieved in the following ways:
[0131] The NAS storage system establishes NFS sharing and provides NFS sharing services to the outside world. The NFS Client mounts this NFS file system to access NFS files.
[0132] Deploy Handle_counter on the NAS storage system, deploy Open_handle_tool on the linu x client, and then configure the password-free login from the NAS storage system to the NFS Client.
[0133] The method may specifically include the following steps:
[0134] Step 101: Control the handle query component to query and obtain the file handle usage ratio in the network file system server component.
[0135] It should be noted that the file handle usage ratio can be used to monitor the health of the system, especially under high load or resource constraints, to ensure that the allocation of file handles does not exceed the processing capacity of the system, thereby avoiding performance degradation or system crash. In an embodiment of the present application, the test of the handle alarm can be implemented by calculating or processing the file handle usage ratio.
[0136] In the embodiment of the present application, the file handle usage ratio in the network file system server component can be queried and obtained through the handle query component.
[0137] Step 102: input a preset alarm threshold and a preset handle duration into the handle query component.
[0138] It should be noted that the alarm threshold can be a set percentage or value. When the file handle usage ratio reaches or exceeds this threshold, the handle query component will trigger an alarm. The alarm information can be displayed in the event page of the UI management interface, and the alarm information can also be notified to the tester or related personnel through email, SMS, system log or other means, so that measures can be taken to solve the problem.
[0139] It should be noted that the handle duration may refer to the length of time that a file handle is kept open. In some cases, keeping a file handle open for a long time may cause resource leakage or occupation, so setting a reasonable duration can help manage system resources. The handle query component can monitor the holding of handles based on this time and take action when necessary, such as closing handles that have not been used for a long time. In an embodiment of the present application, a test of a large number of handle requests in a short time can be implemented by setting the handle duration.
[0140] In an embodiment of the present application, a preset alarm threshold and a preset handle duration may be input into the handle query component.
[0141] Step 103: Control the handle query component to determine handle demand information according to the alarm threshold and the file handle usage ratio.
[0142] It should be noted that the handle demand information may be the number of required handles, the maximum number of file handles, the handle duration, and other information required when applying for a file handle;
[0143] In an embodiment of the present application, the handle query component can be controlled to determine the handle demand information according to the alarm threshold and the file handle usage ratio.
[0144] Step 104: Send the handle requirement information to the network file system client. The network file system client is used to send a file handle request according to the handle requirement information.
[0145] In an embodiment of the present application, the handle requirement information may be sent to the network file system client, and the network file system client may send a file handle request according to the handle requirement information.
[0146] Step 105: receiving the file handle request, and controlling the network file system server component to continuously generate file handles according to the file handle request.
[0147] It should be noted that a file handle may refer to a unique identifier assigned by the operating system to an open file. This identifier is used to reference the file in subsequent file operations, such as reading, writing, positioning, etc.
[0148] In an embodiment of the present application, a file handle request sent by a network file system client may be received, and according to the file handle request, the network file system server component may be controlled to continuously generate file handles.
[0149] Step 106: When the file handle usage ratio is consistent with the alarm threshold, control the periodic inspection component to send the file handle usage ratio to the alarm reporting component for processing to obtain alarm information.
[0150] In an embodiment of the present application, after the network file system server component continues to generate file handles based on file handle requests, the file handles will continue to increase, and the file handle usage ratio will continue to increase. When the file handle usage ratio is consistent with the alarm threshold, it means that the number of file handles at this time has reached the level that requires an alarm. The periodic inspection component can be controlled to send the file handle usage ratio to the alarm reporting component for processing to obtain alarm information.
[0151] Step 107: Display the alarm information on the user interface of the interface management system.
[0152] In an embodiment of the present application, the alarm information obtained after being processed by the alarm reporting component can be displayed on the user interface of the interface management system.
[0153] In the specific implementation, the following methods can be used to test the handle alarm:
[0154] Run Handle_counter and enter the alarm level you want to test, such as 85%. The calculation result is automatically output and passed to the Open_handle_tool of the NFS Client. Open_handle_tool starts the NFS simulation service according to the input parameters, touches and opens an empty file, and holds the file handle on the NFS server, so that the usage level reaches 85% and lasts for a period of time.
[0155] The periodic polling Alarm_timer module detects that the file handle usage of the NFS service exceeds the alarm threshold water level, and feeds the queried water level information back to the repotor module of the UI management system. The reporter module processes the information, translates it into an easy-to-understand language, and presents an alarm on the UI interface. The detailed information of the alarm lists the file handle water level currently used by NFS.
[0156] When the preset duration is reached, the Open_handle_tool module closes the file, releases the file handle, and the NFSClient stops service access. The handle water level on the NFS server drops below the alarm threshold, and the next periodic polling of the Alarm_timer module detects that the NFS file handle returns to the normal value, and the alarm is eliminated.
[0157] In an embodiment of the present application, the control handle query component queries and obtains the file handle usage ratio in the network file system server component, inputs the preset alarm threshold and the preset handle duration into the handle query component, and the control handle query component determines the handle demand information according to the alarm threshold and the file handle usage ratio, and sends the handle demand information to the network file system client; the network file system client is used to send a file handle request according to the handle demand information, receive the file handle request, and control the network file system server component to continuously generate file handles according to the file handle request. When the file handle usage ratio is consistent with the alarm threshold, the control period inspection component sends the file handle usage ratio to the alarm reporting component for processing, obtains the alarm information, and displays the alarm information on the user interface of the interface management system. The present application can flexibly set the number of file handle requests initiated, easily cope with the alarm water level fluctuation test, and can set the file handle holding time, which is convenient for testers to react and observe the alarm information. The present application can also monitor the usage ratio of the file handle in real time, and compare it with the preset alarm threshold to ensure that the alarm can be triggered in time when the threshold is reached, helping testers to respond and handle problems quickly. In addition, the alarm information can be directly displayed on the user interface of the interface management system, so that testers can intuitively see the alarm situation and take timely measures, which enhances the observability of the system and user experience.
[0158] In an optional embodiment of the present application, step S101 further includes the following sub-steps:
[0159] S1011: inputting a handle calculation signal into the handle query component, wherein the handle calculation signal is used to instruct the handle query component to enter a handle calculation mode;
[0160] S1012: Acquire the process identifier of the network file system server component through the handle query component;
[0161] S1013: Obtain the maximum number of file handles according to the process identifier;
[0162] S1014: Acquire the number of existing file handles in the network file system server component through the handle query component;
[0163] S1015: Calculate the file handle usage ratio according to the existing number of file handles and the maximum number of file handles.
[0164] It should be noted that the handle calculation signal can be a numerical value or any character, which is used to instruct the handle query component to enter the handle calculation mode.
[0165] The process identifier may be a PID, which is a numerical value used by the operating system to uniquely identify a process. In a multitasking operating system, each running process has a unique PID, so that the operating system can distinguish and manage different processes. In an embodiment of the present application, the NFS service information is identified by the process identifier.
[0166] The maximum number of file handles can be the handle_limits of the NFS service. The handle limit of the NFS server refers to the maximum number of file handles that the server can open simultaneously. This limit is to prevent resource exhaustion and ensure stable operation of the server.
[0167] The number of existing file handles may be the number of file handles currently opened in the network file system server component.
[0168] The file handle usage ratio can be the ratio of the existing number of file handles to the maximum number of file handles. This ratio is usually expressed as a percentage and is used to measure the utilization of file handle resources in the system.
[0169] In an embodiment of the present application, a handle calculation signal can be input into the handle query component to instruct the handle query component to enter a handle calculation mode, and then the process identifier of the network file system server component is obtained through the handle query component, and then the maximum number of file handles is obtained based on the process identifier, and the existing number of file handles in the network file system server component is obtained through the handle query component, and the file handle usage ratio is calculated based on the existing number of file handles and the maximum number of file handles.
[0170] In the specific implementation, the legality of the input value can be verified first, and then the NAS system can be entered to query the NFS service process, file handle limit, current usage water level and other information (① Get the process PID of the NFS service; ② Get the file handle limit handle_limits of the NFS service according to the PID (get the Maxopen file field in / proc / ${pid} / limits); ③ Get the total number of file handles used (take the open source ganesha as an example, use its own tool ganesha_stat_tool to query and get the Open_fd_count field); ④ Calculate the water level of file handle usage: (Open_fd_count / handle_limits)*100%.).
[0171] This application can instruct the component to enter the handle calculation mode by inputting a handle calculation signal into the handle query component, thereby obtaining the process ID of the network file system server component, and then obtaining the maximum number of file handles based on the process ID. Subsequently, the handle query component can obtain the number of existing file handles and calculate the file handle usage ratio based on these data. It can monitor and calculate the usage of file handles in real time, helping testers or automated tools to quickly understand the usage status of system resources, and promptly discover potential resource bottlenecks or performance problems, so as to take corresponding optimization or adjustment measures to ensure the stable operation and high efficiency of the network file system.
[0172] In an optional embodiment of the present application, step S103 further includes the following sub-steps:
[0173] S1021: Control the handle query component to calculate the handle alarm quantity according to the alarm threshold and the maximum number of file handles;
[0174] S1022: Control the handle query component to calculate the required number of handles according to the number of handle alarms and the number of existing file handles;
[0175] S1023: Use the handle requirement quantity, the maximum number of file handles, and the handle duration as the handle requirement information.
[0176] It should be noted that the handle alarm number may be the total number of handles that the network file system server component needs to open in order to reach the alarm threshold.
[0177] The handle requirement number may be the number of handles that the network file system server component needs to open in order to reach the alarm threshold.
[0178] In the embodiment of the present application, the handle query component can be controlled to calculate the handle alarm number according to the alarm threshold and the maximum number of file handles, and the handle query component can be controlled to calculate the handle demand number according to the handle alarm number and the existing number of file handles. Specifically, the handle demand number can be calculated by subtracting the existing number of file handles from the handle alarm number. Then the handle demand number, the maximum number of file handles, and the handle duration are used as the handle demand information.
[0179] In the specific implementation, the number of NFS handles that need to be applied can be calculated based on the input preset water level, so that the usage water level can reach the preset value. Finally, the calculation result, the input client holding handle preset time, the upper limit of the number of file handles and other parameters are passed to the client's Open_handle_tool module, which initiates business access.
[0180] This application calculates the number of handle alarms based on the preset alarm threshold and the maximum number of file handles by controlling the handle query component, and then calculates the number of handle requirements based on the number of handle alarms and the number of existing file handles. The specific method is to subtract the number of existing file handles from the number of handle alarms. The advantage of this method is that it provides an accurate resource management mechanism that can dynamically adjust the allocation of file handles to ensure the successful conduct of the handle alarm test. At the same time, using the number of handle requirements, the maximum number of file handles, and the handle duration as handle requirement information helps to achieve accurate testing of handle alarms, enhances the stability and predictability of the system, provides clear operational guidance for testers, and simplifies the complexity of resource management and troubleshooting.
[0181] In an optional embodiment of the present application, step S106 further includes the following sub-steps:
[0182] S1031: inputting a handle display signal into the handle query component, wherein the handle display signal is used to instruct the handle query component to enter a handle display mode;
[0183] S1032: Acquire the process identifier of the network file system server component through the handle query component;
[0184] S1033: Obtain the maximum number of file handles according to the process identifier;
[0185] S1034: Acquire the number of existing file handles in the network file system server component through the handle query component;
[0186] S1035: Calculating the file handle usage ratio according to the existing number of file handles and the maximum number of file handles;
[0187] S1036: Acquire virtual addresses, host names, and port numbers of a plurality of network file system clients corresponding to the file handle requests according to the file handle requests;
[0188] S1037: If the network file system client holds the file handle generated by the network file system server component, the number of handles used by the network file system client increases;
[0189] S1038: If the network file system client releases the file handle generated by the network file system server component, the number of handles used by the network file system client decreases;
[0190] S1039: sorting the network file system clients from the one with the largest number of used handles to the one with the smallest number of used handles according to the number of used handles of the network file system clients;
[0191] S1040: Send the virtual addresses, host names, handle usage numbers and file handle usage ratios of a preset number of the network file system clients that are ranked first to the alarm reporting component for processing to obtain alarm information.
[0192] It should be noted that the handle display signal can instruct the handle query component to enter the handle display mode. The handle display mode can be used to display the client holding the most handles in the interface management system.
[0193] A virtual address may refer to a memory address used by a process at runtime, which is logical and different from a physical memory address. The operating system maps a virtual address to a physical address through a memory management unit (MMU) to achieve memory isolation and protection. Alternatively, a virtual address may also be an address created through technologies such as network address translation (NAT) or a virtual private network (VPN) for communication between a private network and a public network. In an embodiment of the present application, a virtual address may be attribute information of a network file system client.
[0194] The host name may be an identifier of a device in a network, usually an easy-to-remember string, used to identify a computer or device on a network instead of an IP address. In an embodiment of the present application, the host name may be attribute information of a network file system client.
[0195] The port number can be a 16-bit integer in network communication, used to identify a specific process or service. In a TCP / IP network, the port number is used in conjunction with the IP address to form a socket, which is used to uniquely identify a communication endpoint on the network. In an embodiment of the present application, the port number can be attribute information of a network file system client.
[0196] In an embodiment of the present application, a handle display signal is input into a handle query component, the handle display signal is used to instruct the handle query component to enter a handle display mode, and then the process identifier of the network file system server component is obtained through the handle query component, the maximum number of file handles is obtained based on the process identifier, the existing number of file handles in the network file system server component is obtained through the handle query component, and the file handle usage ratio is calculated based on the existing number of file handles and the maximum number of file handles.
[0197] Then, according to the file handle request, the virtual addresses, host names, and port numbers of several network file system clients corresponding to the file handle requests are obtained. If the network file system client holds the file handle generated by the network file system server component, the number of handles used by the network file system client increases. If the network file system client releases the file handle generated by the network file system server component, the number of handles used by the network file system client decreases.
[0198] Finally, the network file system clients are sorted from the largest number of handles to the smallest number of handles according to the number of handles used by the network file system clients, and the virtual addresses, host names, handle usage numbers and file handle usage ratios of the top preset number of network file system clients are sent to the alarm reporting component for processing to obtain alarm information. The preset number can be set by the tester.
[0199] In the specific implementation, you can first query the NFS service of the current NAS system, ① obtain the process PID of the NFS service; ② obtain the file handle upper limit handle_limits of the NFS service according to the PID (obtain the Maxopen file field in / proc / ${pid} / limits); ③ obtain the total number of file handles used (taking the open source ganesha as an example, use its built-in tool ganesha_stat_tool to query and obtain the Open_fd_count field); ④ calculate the water level of file handle usage: (Open_fd_count / handle_limits)*100%.
[0200] In addition, according to the request information of the initiated handle, the IP, hostname, port number, etc. contained in the message are parsed, and the operation request of the current handle is collectively attributed to which client. Since this information is not often read, it can be saved in a database table and checked when needed. ① If the handle is held, the handle usage count of the client is increased by one, and the count is reduced by one when the handle is released; ② The handle usage statistics of all clients are sorted by the count, and a special function interface is encapsulated for real-time query; ③ The encapsulated function can be called to obtain the client usage of the NFS handle, intercept the first three (if it does not meet the three, return as many as there are), and return the client's IP, hostname, number of handles used and other information to the UI management system, and then report the information to the interface.
[0201] This application can identify the clients that use the most file handles, and send the relevant information of these clients together with the file handle usage ratio to the alarm reporting component to generate alarm information. The advantage of this method is that it provides a comprehensive monitoring and alarm mechanism, which can help customers or operation and maintenance personnel locate abnormal clients more quickly based on alarm information, and improve the efficiency of troubleshooting and resolution.
[0202] In the embodiment of the present application, the overall workflow of the handle calculation component can be referred to Figure 4 , shows a schematic diagram of the overall workflow of a handle calculation component provided by an embodiment of the present application, which may specifically include the following contents:
[0203] Enter the handle calculation signal or handle display signal to select the function of the handle calculation component. At this time, you can check whether the signal is legal, that is, whether the input handle calculation signal or handle display signal is the preset handle calculation signal or handle display signal. If not, prompt the legal signal, that is, what the preset handle calculation signal or handle display signal is, for example, the handle calculation signal is 2 and the handle display signal is 1. You can select the corresponding function by entering 1 or 2.
[0204] Then enter the corresponding mode according to the function. If it is a handle calculation signal, enter the handle calculation mode; if it is a handle display signal, enter the handle display mode.
[0205] In handle calculation mode, you can perform handle calculation and then end the process. For more specific calculation methods, please refer to Figure 5 The content will not be repeated here.
[0206] In the handle display mode, you can first query the file handle usage ratio, then query the clients that use the largest number of handles, pass this information to the alarm reporting component, and then the handle display mode ends.
[0207] The overall workflow of the handle calculation component is completed.
[0208] In the embodiment of the present application, if an NFS file handle alarm is reported, and the customer wants to know which clients' file handles are used too much and cause the alarm, they can run Handle_counter again and select input function mode 1 to automatically query the IP, hostname and other information of the three clients that currently hold the largest number of NFS file handles. The queried client information can also be further optimized and supported to be output to the UI management system and reported together with the alarm information. In this way, the customer or technical support personnel can quickly locate which NFS Client has a problem, which can shorten the time for troubleshooting and solving the problem.
[0209] In the embodiment of the present application, the calculation mode workflow of the handle calculation component can refer to Figure 5 , shows a schematic diagram of a handle calculation mode workflow of a handle calculation component provided in an embodiment of the present application, which may specifically include the following contents:
[0210] At the beginning of the handle calculation mode, enter the preset alarm threshold and handle duration, and then check whether the input is legal. The purpose of checking whether the input is legal is to ensure that the input alarm threshold and handle duration are within a reasonable range. If the input alarm threshold and handle duration are not within a reasonable range, the legal range will be prompted for re-entry. If the input alarm threshold and handle duration are within a reasonable range, proceed to the next step.
[0211] First query the network file service process ID, then query the file handle usage ratio and the maximum number of file handles, calculate the number of handle alarms, and then calculate the number of handle requirements. Send the number of handle requirements, the maximum number of file handles, and the handle duration to the network file system client, and the handle calculation mode ends.
[0212] Reference Figure 6 , shows a step flow chart of another handle alarm test method applied to a network file system provided by an embodiment of the present application, which is applied to any network file system client, the network file system client includes a handle request component, the network file system client has a communication connection with a network attached storage system, and the network attached storage system includes a handle query component and a network file system server component.
[0213] It should be noted that the network file system client may be an NFS client, the NFS client may include a Linux client, the handle request component may be a module in the NFS client for initiating a handle request, the network attached storage system may be a NAS storage system, the handle query component may be a module deployed in the NAS storage system for handle testing, and the network file system server component may be a module deployed in the NAS storage system for providing NFS services.
[0214] It should be noted that the handle request component of the present application can be arranged on any network file system client, and the function of sending a large number of handle requests can be achieved through only one network file system client.
[0215] The method may specifically include the following steps:
[0216] S201: Receive handle requirement information sent by the handle query component.
[0217] In an embodiment of the present application, the network file system client may receive the handle requirement information sent by the handle query component.
[0218] S202: Control the handle request component to modify the maximum handle request quantity of the network file system client according to the handle demand information.
[0219] It should be noted that the maximum number of handle requests of the network file system client is usually set to a smaller value, which may not meet the test requirements of this application, so it needs to be modified.
[0220] In an embodiment of the present application, the handle request component can be controlled to modify the maximum number of handle requests of the network file system client according to the handle demand information.
[0221] S203: Control the handle request component to create a number of empty files according to the handle requirement information.
[0222] It should be noted that an empty file can be a file whose content is empty, that is, there is no data in the file. Since this application only needs to hold the handle of the file, directly creating an empty file can achieve the function of obtaining the handle.
[0223] In an embodiment of the present application, the handle request component can be controlled to create several empty files according to the handle requirement information.
[0224] S204: Control the handle request component to open the empty file.
[0225] In the embodiment of the present application, the handle request component can be controlled to open several empty files, so as to hold the handles of these empty files.
[0226] S205: Sending a file handle request according to the empty file, the network file system server component is used to continuously generate file handles according to the file handle request.
[0227] In an embodiment of the present application, a file handle request may be sent according to an open empty file, and the network file system server component is used to continuously generate file handles according to the file handle request.
[0228] S206: Determine whether the time for which the empty file is continuously opened is consistent with a preset handle duration time.
[0229] In the embodiment of the present application, it can be determined whether the time during which the empty file is continuously opened is consistent with the preset handle duration time.
[0230] S207: If they are consistent, control the handle request component to close the empty file and delete the empty file.
[0231] In the embodiment of the present application, if they are consistent, the handle request component can be controlled to close the empty file and delete the empty file to release the handle.
[0232] In the specific implementation, you can start the file read and write access to NFS based on other parameters passed in by the handle_counter module: preset time (the default value of 10 minutes is automatically passed in, and manual input is supported), the number of file handles to be applied for, etc. You only need to hold the handle of the file, so touch the empty file, the number of files to be operated is the number of file handles passed in, open all empty files, so that you can hold the file handle and keep it open until the preset time ends, then close the file, release the file handle, and finally delete the created empty file to end the process.
[0233] This application receives the handle demand information sent by the handle query component, controls the handle request component to modify the maximum number of handle requests of the network file system client according to the handle demand information, controls the handle request component to create several empty files according to the handle demand information, controls the handle request component to open the empty file, sends a file handle request according to the empty file, and the network file system server component is used to continuously generate file handles according to the file handle request, and judge whether the time that the empty file is continuously opened is consistent with the preset handle duration. If it is consistent, the control handle request component closes the empty file and deletes the empty file. This application is simple to deploy and low in cost. It can be implemented with only one Linux client and does not rely on multiple clients. The maximum number of handle requests can be modified to complete the test of a large number of handle requests. In addition, the file handle holding time can be set to facilitate testers to respond to and observe alarm information.
[0234] In an optional embodiment of the present application, the handle requirement information includes the handle requirement quantity, the maximum number of file handles, and the handle duration, and step S202 further includes the following sub-steps:
[0235] S2011: controlling the handle request component to obtain the maximum number of file handles according to the handle demand information;
[0236] S2012: Control the handle request component to issue a handle quantity modification prompt;
[0237] S2013: If no feedback on the handle quantity modification prompt is received within a preset time, calling a modification command of the network file system client to modify the maximum handle request quantity of the network file system client;
[0238] S2014: Modify the maximum number of file handles to the maximum number of handle requests of the network file system client.
[0239] It should be noted that the handle quantity modification prompt can be used to prompt the modification of the handle quantity.
[0240] In an embodiment of the present application, the handle request component can be controlled to obtain the maximum number of file handles based on handle demand information, and the handle request component can be controlled to issue a handle number modification prompt. If no feedback on the handle number modification prompt is received within a preset time, the modification command of the network file system client is called to modify the maximum number of handle requests of the network file system client, and the maximum number of file handles is modified to the maximum number of handle requests of the network file system client.
[0241] In the specific implementation, the handlelimits, the maximum file handle limit of the NFS Client, can be modified to meet the test needs. This process includes the following steps: ① Get the handle_limits of the NFS service in the parameters output by the handle_counter module; ② Prompt to enter the Linux client file handle limit to be modified. If no entry is made, the value obtained in step ① is used as the default modification value; ③ Temporarily modify the handle limits of the Linux client and call the system's built-in modification command ulimit-SHn50000 (modify the soft limit S and hard limit H at the same time to 50000). The temporary modification will be restored to the default after restarting the Linux system.
[0242] In the embodiment of the present application, the workflow of the handle request component can refer to Figure 7 , shows a schematic diagram of the workflow of a handle request component provided by an embodiment of the present application, which may specifically include the following contents:
[0243] The process starts, modifies the maximum number of handle requests of the network file system client, obtains handle demand information, starts the network file system access service, creates an empty file, and determines whether the empty file opening time reaches the handle duration. If not, continue to determine after a short delay. If reached, close the empty file, delete the empty file and end the process, and the process ends.
[0244] refer to Figure 8 , shows a structural schematic diagram of a handle alarm test system applied to a network file system according to an embodiment of the present application, the handle alarm test system includes a network attached storage system, a network file system client, an interface management system, and a periodic inspection component, the network attached storage system includes a handle query component and a network file system server component, the network attached storage system is respectively connected to the periodic inspection component and a number of network file system clients, the periodic inspection component is connected to the alarm reporting component, the alarm reporting component is deployed in the interface management system, the network file system client includes a handle request component, the network file system client is connected to the network attached storage system, the network attached storage system includes a handle query component and a network file system server component;
[0245] The network attached storage system is used to control the handle query component to query and obtain the file handle usage ratio in the network file system server component;
[0246] The network attached storage system is further used to input a preset alarm threshold and a preset handle duration into the handle query component;
[0247] The network attached storage system is further used to control the handle query component to determine handle demand information according to the alarm threshold and the file handle usage ratio;
[0248] The network attached storage system is also used to send the handle demand information to the network file system client;
[0249] The network file system client is used to receive the handle demand information sent by the handle query component;
[0250] The network file system client is also used to control the handle request component to modify the maximum handle request quantity of the network file system client according to the handle demand information;
[0251] The network file system client is also used to control the handle request component to create a number of empty files according to the handle requirement information;
[0252] The network file system client is also used to control the handle request component to open the empty file;
[0253] The network file system client is also used to send a file handle request according to the empty file;
[0254] The network file system client is also used to determine whether the time for which the empty file is continuously opened is consistent with a preset handle duration;
[0255] If they are consistent, the network file system client is also used to control the handle request component to close the empty file and delete the empty file;
[0256] The network attached storage system is further used to receive the file handle request, and control the network file system server component to continuously generate file handles according to the file handle request;
[0257] When the file handle usage ratio is consistent with the alarm threshold, the periodic inspection component is used to send the file handle usage ratio to the alarm reporting component of the interface management system for processing to obtain alarm information;
[0258] The interface management system is used to display the alarm information on the user interface of the interface management system.
[0259] As a specific example of the present application, the above process can be implemented in the following manner:
[0260] The network attached storage system includes a network file system server component and a handle query component, and the network file system client includes a handle request component and a network file system request component. The interface management system includes an alarm reporting component, and the alarm reporting component can output alarm information.
[0261] The handle query component can obtain the handle information in the network file system request component, and after calculation, pass the parameters such as the number of handle requirements, the maximum number of file handles, and the handle duration to the handle request component. The handle request component can initiate an access request to the network file service server component through the network file system request component. The scheduled inspection module can poll periodically and check that the file handle usage of the network file system server component exceeds the alarm threshold. The queried file handle usage ratio information is fed back to the alarm reporting component module of the interface management system. The alarm reporting component module processes the information and translates it into an easy-to-understand language. The alarm is presented in the interface management system. The detailed information of the alarm lists the file handle water level currently used by the network file system server component.
[0262] In addition, the handle query component can be a Handle_counter module. The handle request component can be an Open_handle_tool module. The network file system request component can be an NFS server. The present application can add two flexibly deployable components based on the above-mentioned NAS storage system, including a Handle_counter module: responsible for querying and calculating the number of NFS file handles that need to be requested; querying the NFS client information with the highest file handle usage ratio, etc. Open_handle_tool module: responsible for modifying the file handle limit of the NFS client; responsible for the client initiating the file read and write process and applying for the NFS file handle from the NFS server.
[0263] In an embodiment of the present application, the control handle query component queries and obtains the file handle usage ratio in the network file system server component, inputs the preset alarm threshold and the preset handle duration into the handle query component, and the control handle query component determines the handle demand information according to the alarm threshold and the file handle usage ratio, and sends the handle demand information to the network file system client; the network file system client is used to send a file handle request according to the handle demand information, receive the file handle request, and control the network file system server component to continuously generate file handles according to the file handle request. When the file handle usage ratio is consistent with the alarm threshold, the control period inspection component sends the file handle usage ratio to the alarm reporting component for processing, obtains the alarm information, and displays the alarm information on the user interface of the interface management system. The present application can flexibly set the number of file handle requests initiated, easily cope with the alarm water level fluctuation test, and can set the file handle holding time, which is convenient for testers to react and observe the alarm information. The present application can also monitor the usage ratio of the file handle in real time, and compare it with the preset alarm threshold to ensure that the alarm can be triggered in time when the threshold is reached, helping testers to respond and handle problems quickly. In addition, the alarm information can be directly displayed on the user interface of the interface management system, so that testers can intuitively see the alarm situation and take timely measures, which enhances the observability of the system and user experience.
[0264] In an embodiment of the present application, the handle request component, that is, the Open_handle_tool tool, can be used for extreme stress testing and fault superposition testing. In the above scheme, if the NFS file handles of the NAS system are consumed too much, some unpredictable problems may occur in the NFS service under extreme stress. The NAS storage system is a high-availability system with multiple nodes, which supports concurrent access and rapid business switching in case of failure. The Open_handle_tool tool can be deployed on the NFSClient side, and a large number of NFS file handle applications can be initiated at the same time, so that the NFS file handle usage level of the current node of the NAS system is increased. In this special scenario, a high availability test is performed to inject a fault into the current node of the NAS, so that the NFS business is switched to other nodes, so that the node that undertakes the business is suddenly subjected to the handle access pressure that exceeds the limit, so as to test the exception handling capability and high availability guarantee mechanism of the NAS storage system. First, this solution can simulate the high load and failure conditions in real use to ensure the stability and reliability of the system in actual operation; second, through this stress test, potential bottlenecks and performance problems of the system under high load can be discovered, which helps to optimize and adjust in advance; third, this solution provides a repeatable and controllable test environment, making the test results more accurate and reliable, and facilitating system administrators and developers to locate and solve problems; finally, this method can also verify the system's automatic failover and recovery capabilities, ensuring that services can be seamlessly switched when a node fails, reducing service interruption time, and improving user experience and overall system availability.
[0265] Reference Fig. 9 , shows a schematic diagram of the structure of a handle alarm test device applied to a network file system provided by an embodiment of the present application. Applied to a network attached storage system, the network attached storage system includes a handle query component and a network file system server component, the network attached storage system is respectively connected to a periodic inspection component and a plurality of network file system clients for communication, the periodic inspection component is connected to an alarm reporting component for communication, the alarm reporting component is deployed in an interface management system, and the device includes:
[0266] A handle usage ratio query module 901 is used to control the handle query component to query and obtain the file handle usage ratio in the network file system server component;
[0267] A data input module 902, used to input a preset alarm threshold and a preset handle duration into the handle query component;
[0268] A handle demand determination module 903, used to control the handle query component to determine handle demand information according to the alarm threshold and the file handle usage ratio;
[0269] A handle demand sending module 904 is used to send the handle demand information to the network file system client; the network file system client is used to send a file handle request according to the handle demand information;
[0270] A handle request receiving module 905 is used to receive the file handle request and control the network file system server component to continuously generate a file handle according to the file handle request;
[0271] The alarm reporting module 906 is used to control the periodic inspection component to send the file handle usage ratio to the alarm reporting component for processing to obtain alarm information when the file handle usage ratio is consistent with the alarm threshold;
[0272] The alarm display module 907 is used to display the alarm information on the user interface of the interface management system.
[0273] Optionally, the handle usage ratio query module 901 includes:
[0274] A handle calculation signal input module, used for inputting a handle calculation signal into the handle query component, wherein the handle calculation signal is used for instructing the handle query component to enter a handle calculation mode;
[0275] A process identification acquisition module, used for acquiring the process identification of the network file system server component through the handle query component;
[0276] A handle quantity maximum value acquisition module, used to obtain the maximum value of the file handle quantity according to the process identifier;
[0277] An existing file handle quantity acquisition module, used for acquiring the existing file handle quantity in the network file system server component through the handle query component;
[0278] The file handle usage ratio calculation module is used to calculate the file handle usage ratio according to the existing file handle quantity and the maximum file handle quantity.
[0279] Optionally, the handle requirement determination module 903 includes:
[0280] A handle alarm quantity calculation module, used to control the handle query component to calculate the handle alarm quantity according to the alarm threshold and the maximum number of file handles;
[0281] A handle requirement quantity calculation module, used for controlling the handle query component to calculate the handle requirement quantity according to the handle alarm quantity and the existing file handle quantity;
[0282] The handle requirement information acquisition module is used to use the handle requirement quantity, the maximum number of file handles, and the handle duration as the handle requirement information.
[0283] Optionally, the alarm reporting module 906 includes:
[0284] A handle display signal input module, used for inputting a handle display signal into the handle query component, wherein the handle display signal is used for instructing the handle query component to enter a handle display mode;
[0285] A process identification acquisition module, used for acquiring the process identification of the network file system server component through the handle query component;
[0286] A handle quantity maximum value acquisition module, used to obtain the maximum value of the file handle quantity according to the process identifier;
[0287] An existing file handle quantity acquisition module, used for acquiring the existing file handle quantity in the network file system server component through the handle query component;
[0288] A file handle usage ratio calculation module, used to calculate the file handle usage ratio according to the existing number of file handles and the maximum number of file handles;
[0289] A client information acquisition module, used for acquiring virtual addresses, host names, and port numbers of several network file system clients corresponding to the file handle requests according to the file handle requests;
[0290] A handle usage quantity increasing module, used for increasing the handle usage quantity of the network file system client if the network file system client holds the file handle generated by the network file system server component;
[0291] A handle usage number reduction module, used to reduce the number of handle usage of the network file system client if the network file system client releases the file handle generated by the network file system server component;
[0292] A sorting module, used to sort the network file system clients from the one with the largest number of used handles to the one with the least used handles according to the number of used handles of the network file system clients;
[0293] The alarm information acquisition module is used to send the virtual addresses, host names, handle usage numbers and file handle usage ratios of the top preset number of network file system clients to the alarm reporting component for processing to obtain alarm information.
[0294] Reference Fig.10, shows a schematic diagram of the structure of a handle alarm test device applied to a network file system provided by another embodiment of the present application. Applied to any network file system client, the network file system client includes a handle request component, the network file system client has a communication connection with a network attached storage system, the network attached storage system includes a handle query component and a network file system server component, the device includes:
[0295] The handle requirement receiving module 1001 is used to receive the handle requirement information sent by the handle query component;
[0296] A handle upper limit modification module 1002, used to control the handle request component to modify the maximum handle request quantity of the network file system client according to the handle demand information;
[0297] An empty file creation module 1003, used to control the handle request component to create a number of empty files according to the handle requirement information;
[0298] The empty file opening module 1004 is used to control the handle request component to open the empty file;
[0299] A handle request sending module 1005, used for sending a file handle request according to the empty file, and the network file system server component is used for continuously generating a file handle according to the file handle request;
[0300] The empty file duration determination module 1006 is used to determine whether the empty file is continuously opened for a period of time that is consistent with a preset handle duration;
[0301] The empty file deletion module 1007 is used to control the handle request component to close the empty file and delete the empty file if they are consistent.
[0302] Optionally, the handle requirement information includes the handle requirement quantity, the maximum number of file handles, and the handle duration, and the handle upper limit modification module 1002 includes:
[0303] A handle upper limit acquisition module, used to control the handle request component to obtain the maximum number of file handles according to the handle demand information;
[0304] A handle quantity modification prompt module, used to control the handle request component to issue a handle quantity modification prompt;
[0305] The handle quantity automatic modification module is used to call the modification command of the network file system client to modify the maximum handle request quantity of the network file system client if no feedback on the handle quantity modification prompt is received within a preset time;
[0306] The handle upper limit determination module is used to modify the maximum number of file handles to the maximum number of handle requests of the network file system client.
[0307] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0308] An embodiment of the present application also provides an electronic device, which may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the handle alarm test method applied to the network file system as described above is implemented.
[0309] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the handle alarm test method applied to a network file system as described above is implemented.
[0310] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0311] The various embodiments in this 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 referenced to each other.
[0312] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the embodiments of the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0313] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0314] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0315] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0316] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0317] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used 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 "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the above elements.
[0318] The above is a detailed introduction to the provided handle alarm test method and device for network file systems. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A handle alarm test method applied to a network file system, characterized in that: Applied to a network attached storage system, the network attached storage system includes a handle query component and a network file system server component, the network attached storage system is respectively connected to a periodic inspection component and a plurality of network file system clients, the periodic inspection component is connected to an alarm reporting component, the alarm reporting component is deployed in an interface management system, the method includes: Controlling the handle query component to query and obtain the file handle usage ratio in the network file system server component; Inputting a preset alarm threshold and a preset handle duration into the handle query component; Controlling the handle query component to determine handle demand information according to the alarm threshold and the file handle usage ratio; The handle requirement information is sent to the network file system client; the network file system client is used to send a file handle request according to the handle requirement information; receiving the file handle request, and controlling the network file system server component to continuously generate a file handle according to the file handle request; When the file handle usage ratio is consistent with the alarm threshold, controlling the periodic inspection component to send the file handle usage ratio to the alarm reporting component for processing to obtain alarm information; The alarm information is displayed on the user interface of the interface management system.
2. The method according to claim 1, characterized in that: The controlling the handle query component to query and obtain the file handle usage ratio in the network file system server component includes: Inputting a handle calculation signal into the handle query component, wherein the handle calculation signal is used to instruct the handle query component to enter a handle calculation mode; Acquire the process identifier of the network file system server component through the handle query component; Obtaining the maximum number of file handles according to the process identifier; Acquire the number of existing file handles in the network file system server component through the handle query component; The file handle usage ratio is calculated according to the existing number of file handles and the maximum number of file handles.
3. The method according to claim 2, characterized in that The controlling the handle query component to determine the handle demand information according to the alarm threshold and the file handle usage ratio includes: Controlling the handle query component to calculate the handle alarm quantity according to the alarm threshold and the maximum number of file handles; Controlling the handle query component to calculate the handle requirement quantity according to the handle alarm quantity and the existing file handle quantity; The handle requirement quantity, the maximum number of file handles, and the handle duration are used as the handle requirement information.
4. The method according to claim 1, characterized in that: When the file handle usage ratio is consistent with the alarm threshold, controlling the periodic inspection component to send the file handle usage ratio to the alarm reporting component for processing to obtain alarm information, including: Inputting a handle display signal into the handle query component, wherein the handle display signal is used to instruct the handle query component to enter a handle display mode; Acquire the process identifier of the network file system server component through the handle query component; Obtaining the maximum number of file handles according to the process identifier; Acquire the number of existing file handles in the network file system server component through the handle query component; Calculating the file handle usage ratio according to the existing number of file handles and the maximum number of file handles; Acquire virtual addresses, host names, and port numbers of several network file system clients corresponding to the file handle requests according to the file handle requests; If the network file system client holds the file handle generated by the network file system server component, the number of handles used by the network file system client increases; If the network file system client releases the file handle generated by the network file system server component, the number of handles used by the network file system client decreases; According to the number of used handles of the network file system clients, the network file system clients are sorted from the one with the largest number of used handles to the one with the smallest number of used handles; The virtual addresses, host names, handle usage numbers and file handle usage ratios of the top preset number of network file system clients are sent to the alarm reporting component for processing to obtain alarm information.
5. A handle alarm test method applied to a network file system, characterized in that: Applied to any network file system client, the network file system client includes a handle request component, the network file system client has a communication connection with a network attached storage system, the network attached storage system includes a handle query component and a network file system server component, the method includes: Receiving handle requirement information sent by the handle query component; Controlling the handle request component to modify the maximum number of handle requests of the network file system client according to the handle demand information; Controlling the handle request component to create a number of empty files according to the handle requirement information; Controlling the handle to request the component to open the empty file; Sending a file handle request according to the empty file, the network file system server component is used to continuously generate a file handle according to the file handle request; Determine whether the time for which the empty file is continuously opened is consistent with a preset handle duration; If they are consistent, the handle request component is controlled to close the empty file and delete the empty file.
6. The method according to claim 5, characterized in that The handle requirement information includes the handle requirement quantity, the maximum number of file handles, and the handle duration, and the controlling the handle request component to modify the maximum number of handle requests of the network file system client according to the handle requirement information includes: Controlling the handle request component to obtain the maximum number of file handles according to the handle demand information; Controlling the handle request component to issue a handle quantity modification prompt; If no feedback on the handle quantity modification prompt is received within a preset time, calling a modification command of the network file system client to modify the maximum handle request quantity of the network file system client; The maximum number of file handles is modified to the maximum number of handle requests of the network file system client.
7. A handle alarm test system applied to a network file system, characterized in that: The handle alarm test system comprises a network attached storage system, a network file system client, an interface management system, and a periodic inspection component. The network attached storage system comprises a handle query component and a network file system server component. The network attached storage system is respectively connected to the periodic inspection component and a plurality of network file system clients in communication. The periodic inspection component is connected to the alarm reporting component in communication. The alarm reporting component is deployed in the interface management system. The network file system client comprises a handle request component. The network file system client is connected to the network attached storage system in communication. The network attached storage system comprises a handle query component and a network file system server component. The network attached storage system is used to control the handle query component to query and obtain the file handle usage ratio in the network file system server component; The network attached storage system is further used to input a preset alarm threshold and a preset handle duration into the handle query component; The network attached storage system is further used to control the handle query component to determine handle demand information according to the alarm threshold and the file handle usage ratio; The network attached storage system is also used to send the handle demand information to the network file system client; The network file system client is used to receive the handle demand information sent by the handle query component; The network file system client is also used to control the handle request component to modify the maximum handle request quantity of the network file system client according to the handle demand information; The network file system client is also used to control the handle request component to create a number of empty files according to the handle requirement information; The network file system client is also used to control the handle request component to open the empty file; The network file system client is also used to send a file handle request according to the empty file; The network file system client is also used to determine whether the time for which the empty file is continuously opened is consistent with a preset handle duration; If they are consistent, the network file system client is also used to control the handle request component to close the empty file and delete the empty file; The network attached storage system is further used to receive the file handle request, and control the network file system server component to continuously generate file handles according to the file handle request; When the file handle usage ratio is consistent with the alarm threshold, the periodic inspection component is used to send the file handle usage ratio to the alarm reporting component of the interface management system for processing to obtain alarm information; The interface management system is used to display the alarm information on the user interface of the interface management system.
8. A handle alarm test device applied to a network file system, characterized in that: Applied to a network attached storage system, the network attached storage system includes a handle query component and a network file system server component, the network attached storage system is respectively connected to a periodic inspection component and a plurality of network file system clients, the periodic inspection component is connected to an alarm reporting component, the alarm reporting component is deployed in an interface management system, and the device includes: A handle usage ratio query module, used to control the handle query component to query and obtain the file handle usage ratio in the network file system server component; A data input module, used for inputting a preset alarm threshold and a preset handle duration into the handle query component; A handle demand determination module, used to control the handle query component to determine handle demand information according to the alarm threshold and the file handle usage ratio; A handle demand sending module, used for sending the handle demand information to the network file system client; the network file system client is used for sending a file handle request according to the handle demand information; A handle request receiving module, used for receiving the file handle request, and controlling the network file system server component to continuously generate a file handle according to the file handle request; An alarm reporting module, used for controlling the periodic inspection component to send the file handle usage ratio to the alarm reporting component for processing to obtain alarm information when the file handle usage ratio is consistent with the alarm threshold; The alarm display module is used to display the alarm information on the user interface of the interface management system.
9. A handle alarm test device applied to a network file system, characterized in that: Applied to any network file system client, the network file system client includes a handle request component, the network file system client has a communication connection with a network attached storage system, the network attached storage system includes a handle query component and a network file system server component, the device includes: A handle demand receiving module, used for receiving the handle demand information sent by the handle query component; A handle upper limit modification module, used to control the handle request component to modify the maximum handle request quantity of the network file system client according to the handle demand information; An empty file creation module, used for controlling the handle request component to create a number of empty files according to the handle requirement information; An empty file opening module, used for controlling the handle request component to open the empty file; A handle request sending module, used for sending a file handle request according to the empty file, and the network file system server component is used for continuously generating a file handle according to the file handle request; The empty file duration determination module is used to determine whether the empty file is continuously opened for a period of time that is consistent with a preset handle duration; The empty file deletion module is used to control the handle request component to close the empty file and delete the empty file if they are consistent.
10. An electronic device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the handle alarm test method applied to a network file system as described in any one of claims 1 to 6 is implemented.
11. 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 handle alarm test method applied to a network file system according to any one of claims 1 to 6 is implemented.
Citation Information
Cited By
Method for processing deletion operation in network file system and electronic equipment
CN119336715A
Method for detecting performance, security and privacy problems of network attached storage device
CN119728722A
A method for detecting performance, security and privacy issues of a network attached storage device
CN119728722B
