CN109063081B - NFS service monitoring method, device, equipment and readable storage medium - Google Patents

NFS service monitoring method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN109063081B
CN109063081B CN201810825923.9A CN201810825923A CN109063081B CN 109063081 B CN109063081 B CN 109063081B CN 201810825923 A CN201810825923 A CN 201810825923A CN 109063081 B CN109063081 B CN 109063081B
Authority
CN
China
Prior art keywords
target
shared directory
iops
export
nfs
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810825923.9A
Other languages
Chinese (zh)
Other versions
CN109063081A (en
Inventor
李进文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Inspur Smart Computing Technology Co Ltd
Original Assignee
Guangdong Inspur Big Data Research Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Inspur Big Data Research Co Ltd filed Critical Guangdong Inspur Big Data Research Co Ltd
Priority to CN201810825923.9A priority Critical patent/CN109063081B/en
Publication of CN109063081A publication Critical patent/CN109063081A/en
Application granted granted Critical
Publication of CN109063081B publication Critical patent/CN109063081B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a NFS service monitoring method, which comprises the following steps: receiving an access request sent by a target client; the access request comprises an operation type and a shared directory identifier mounted by a target client; when the operation type is read/write operation, determining a target export corresponding to the shared directory identifier in an export linked list; adding 1 to a target field corresponding to the operation type in a target export to obtain an IOPS corresponding to the shared directory; and monitoring the target service corresponding to the shared directory by using the IOPS. The IOPS of each shared directory can be used for monitoring the service such as performance analysis, anomaly detection, pressure tracking and the like. The performance of the NFS system is further improved, and the user experience is improved. The invention also discloses an NFS service monitoring device, equipment and a readable storage medium, and the NFS service monitoring device, the equipment and the readable storage medium have corresponding technical effects.

Description

NFS service monitoring method, device, equipment and readable storage medium
Technical Field
The present invention relates to the field of storage technologies, and in particular, to a method, an apparatus, a device, and a readable storage medium for NFS service monitoring.
Background
The NFS (Network File System) has excellent stability and expandability, and is widely applied to various service scenes in the field of distributed storage. The storage service cluster provides data services to all users through the NFS service.
NFS service providers often place different services under different shared directories. Then, different directories are shared and provided for different users. Because different services are placed in different shared catalogs, in the NFS, it is difficult to implement unified monitoring on each service. Namely, the service abnormality cannot be found in time, and the pressure change rule of the service is difficult to obtain, which is not beneficial to service adjustment.
In summary, how to effectively solve the problems of NFS service monitoring and the like is a technical problem that needs to be solved urgently by those skilled in the art at present.
Disclosure of Invention
The invention aims to provide a method, a device and equipment for monitoring NFS (network file system) services and a readable storage medium, which are used for further monitoring the NFS services by carrying out real-time statistics on IOPS (internet of things) of a shared directory corresponding to each service.
In order to solve the technical problems, the invention provides the following technical scheme:
a NFS service monitoring method includes:
receiving an access request sent by a target client; the access request comprises an operation type and a shared directory identifier mounted by the target client;
when the operation type is read/write operation, determining a target export corresponding to the shared directory identifier in an export linked list
Adding 1 to a target field corresponding to the operation type in the target export to obtain an IOPS corresponding to the shared directory;
and monitoring the target service corresponding to the shared directory by using the IOPS.
Preferably, in the target export, after adding 1 to a target field corresponding to the operation type, the method further includes:
and clearing the target field every other second by using a timer.
Preferably, the target field corresponding to the read operation is read _ ops, and the target field corresponding to the write operation is write _ ops.
Preferably, before the receiving the access request sent by the target client, the method further includes:
in the export linked list, read _ ops and write _ ops are added to the corresponding export of each shared directory.
Preferably, before the receiving the access request sent by the target client, the method further includes:
mounting the target client to the corresponding target shared directory by using the mounting command;
returning the sharing directory identification corresponding to the target sharing directory to the target client; wherein the shared directory identifier is a shared directory ID number.
Preferably, the obtaining the IOPS corresponding to the shared directory includes:
and inquiring fields corresponding to the shared directory in the export linked list by using a pre-created reading thread, and calculating the IOPS of the shared directory.
Preferably, the monitoring, by using the IOPS, a target service corresponding to the shared directory includes:
and carrying out anomaly detection and/or pressure tracking on the target service corresponding to the shared directory by utilizing the IOPS.
An NFS traffic monitoring apparatus, comprising:
the access request receiving module is used for receiving an access request sent by a target client; the access request comprises an operation type and a shared directory identifier mounted by the target client;
a target export determination module, configured to determine, in an export linked list, a target export corresponding to the shared directory identifier when the operation type is read/write operation;
an IOPS obtaining module, configured to add 1 to a target field corresponding to the operation type in the target export to obtain an IOPS corresponding to the shared directory;
and the monitoring module is used for monitoring the target service corresponding to the shared directory by using the IOPS.
An NFS traffic monitoring device, comprising:
a memory for storing a computer program;
and the processor is used for realizing the steps of the NFS service monitoring method when the computer program is executed.
A readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the NFS traffic monitoring method described above.
By applying the method provided by the embodiment of the invention, the access request sent by the target client is received; the access request comprises an operation type and a shared directory identifier mounted by a target client; when the operation type is read/write operation, determining a target export corresponding to the shared directory identifier in an export linked list; adding 1 to a target field corresponding to the operation type in a target export to obtain an IOPS corresponding to the shared directory; and monitoring the target service corresponding to the shared directory by using the IOPS.
Because different services are placed in different shared directories, that is, one service corresponds to one shared directory. Traffic may be monitored by the IOPS of the statistical shared directory. Specifically, an access request sent by a target client is received; the access request comprises an operation type and a shared directory identifier mounted by a target client; when the operation type is read/write operation, determining a target export corresponding to the shared directory identifier in an export linked list; and in the target export, adding 1 to a target field corresponding to the operation type to obtain the IOPS corresponding to the shared directory. That is, the IOPS of the shared directory can be counted by the identifier of the shared directory and the operation type in the operation request. And then, monitoring the service corresponding to each shared directory by using the IOPS corresponding to each shared directory. The IOPS of the shared directory can be used for monitoring performance analysis, abnormality detection, pressure tracking and the like on target services which have corresponding relations with the shared directory. Abnormal services can be found in time, the pressure of the services can be known according to the change rule of the IOPS, and the change rule of the IOPS is utilized to distribute matched system resources for each service in the NFS, so that the system performance of the NFS is further improved, and the user experience is improved.
Accordingly, embodiments of the present invention further provide an NFS service monitoring apparatus, a device, and a readable storage medium corresponding to the NFS service monitoring method, which have the above technical effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of an implementation of an NFS service monitoring method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an NFS service monitoring apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an NFS service monitoring device in an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
The first embodiment is as follows:
referring to fig. 1, fig. 1 is a flowchart of an NFS service monitoring method according to an embodiment of the present invention, where the method includes the following steps:
s101, receiving an access request sent by a target client.
The access request comprises an operation type and a shared directory identifier mounted by a target client.
In the embodiment of the present invention, in order to facilitate statistics of NFS services by using access requests, ID numbers may be set in advance for shared directories respectively corresponding to each service. And then after the client side is mounted to the corresponding shared directory, the ID number of the shared directory is sent to the client side, so that the client side sends the ID number to the NFS server together when sending the access request, and the NFS server can conveniently perform corresponding processing. The specific process is as follows:
step one, mounting a target client to a corresponding target shared directory by using a mounting command;
step two, returning the sharing directory identification corresponding to the target sharing directory to the target client; wherein the shared directory identifier is a shared directory ID number.
For convenience of description, the above two steps will be described in combination.
The NFS server sets an ID number for each shared directory, and stores all the shared directories into an export linked list.
When the target client mounts the NFS service, the mounted shared directory is specified through a mount command, and the ID number of the mounted shared directory is returned to the target client after the mounting is successful. The mount command is an attach command in the linux system, how to mount the mount command, and the related specific parameters can refer to a mount command usage rule, which is not described herein again.
When the target client uses different services for access, an access request including at least one of common operation types such as read, write, read and write may be sent to the NFS server. In addition, in order to conveniently process the access request, the shared directory identifier mounted by the target client is also included in the access request. The identification may be an ID number of the shared directory, an address of the shared directory, or the like.
And S102, when the operation type is read/write operation, determining a target export corresponding to the shared directory identifier in the export linked list.
It should be noted that the export linked list is a linked list in which parameters such as environment variables and the like corresponding to each shared directory are recorded. Each export structure corresponds to a shared directory, so that in the export linked list, a target export corresponding to the shared directory identifier can be determined. The target export is the shared directory mounted by the target client.
When monitoring NFS traffic, it is mainly to monitor its pressure, performance, etc. The speed of processing read/write requests, the number of read and write requests, may indicate the performance and pressure of the NFS service. Therefore, in the embodiment of the present invention, after receiving an access request, first, the access request is determined, and whether the access request is any one of a read operation or a write operation is determined. Specifically, a specific method for determining whether the access request is a read/write operation is to extract the operation type in the access request for determination. And when the operation type is read/write operation, determining a target export corresponding to the shared directory identifier in the export linked list by using the shared directory identifier in the access request.
Preferably, in order to obtain the IOPS, a reading process may be created in advance, and then the fields corresponding to the shared directory are queried in the export linked list by using the read thread created in advance, so as to calculate the IOPS of the shared directory. The reading operation can also query fields corresponding to each shared directory in the export linked list at regular time, then obtain the IOPS corresponding to each shared directory, and further monitor the NFS service corresponding to each shared directory.
S103, adding 1 to the target field corresponding to the operation type in the target export to obtain the IOPS corresponding to the shared directory.
It should be noted that a field is a computer term, which may be expressed as a member of a database, and refers to a "column" of a table, which represents a variable associated with an object or class. In the embodiment of the present invention, the field indicates a variable, specifically, the number of times corresponding to each read/write operation. For example, the target field for a read operation may be read _ ops, and the target field for a write operation may be write _ ops. Of course, the target fields corresponding to the read/write operations may also be represented by other characters. The specific setting method may add read _ ops and write _ ops to the export corresponding to each shared directory in the export linked list before receiving the access request sent by the target client.
After determining that the access type of the access request is read operation or write operation, adding 1 to a target field corresponding to the operation type corresponding to the received access request in a target export, so that the access requests of a certain operation type can be counted by performing the operation of adding 1 to the target field. For example, when the operation type is read operation, adding 1 to a target field corresponding to the read operation, and then reading the target field at regular time, i.e. knowing the number of times of accessing the target shared directory in a read manner, that is, the number of times of accessing the target service corresponding to the target shared directory to monitor the read operation; when the operation type is write operation, adding 1 to the target field corresponding to the write operation, and then reading the target field at regular time, namely knowing the number of times of accessing the target shared directory in a write mode. In conjunction with the time, an IOPS (Input/Output Operations Per Second, the number of times of read/write (I/O) Operations Per Second) corresponding to a target service corresponding to the target shared directory can be obtained. For example, the latest reading time is different from the last reading time to obtain a time difference; the latest read data and the last read data are subjected to subtraction to obtain a difference value of the number of read-write operations; and then dividing the difference value of the reading and writing times by the time difference to obtain the IOPS in the latest reading time period and the last reading time period.
Preferably, in order to simplify the operation and reduce the calculation amount, the target field may be cleaned at regular time, so as to reduce the calculation steps, speed up the processing speed and reduce the resource occupation when the IOPS is acquired. Specifically, in the target export, after adding 1 to the target field corresponding to the operation type, the target field is cleared every second by using a timer. That is, after the target field is subjected to the plus 1 operation and then is subjected to the zero clearing processing every second, the target field is counted for the number of times within one second. Specifically, the target field may be read once every second, and then the target field is cleared after reading, so that the numerical value of the target field read each time is the number of accesses in one second. For example, when the IOPS is counted, the read value of the target field corresponding to the read operation and the read value of the target field corresponding to the write operation are added to obtain the IOPS.
And S104, monitoring the target service corresponding to the shared directory by using the IOPS.
After the IOPS corresponding to the shared directory is obtained, because one shared directory corresponds to one target service, the IOPS of the shared directory can represent the IOPS of the target service. The IOPS can be used for monitoring the target service, wherein the monitoring can be specifically performance monitoring and pressure change rule monitoring. So as to adjust the resource distribution in the NFS in time and adjust the NFS service.
And monitoring the target service by using the IOPS of the shared directory, specifically, performing anomaly detection and/or pressure tracking on the target service corresponding to the shared directory by using the IOPS. The abnormality detection may set a normal threshold interval of the IOPS for the target service in advance, and when the IOPS of the shared directory falls into the abnormal threshold interval, it may be determined that the current target service is abnormal, for example, when the IOPS of the shared directory is greater than an upper limit threshold of the normal threshold interval, it may be considered that a hacker malicious attack may occur at present; when the IOPS of the shared directory is smaller than the lower threshold of the normal threshold interval, it may be considered that the current shared directory cannot provide the shared service for all the clients mounted under the directory, and a network failure problem may occur. The pressure tracking may be to perform tracking statistics on the IOPS of the shared directory within a period of time, find a change rule of the IOPS, and set a most matched resource distribution for the target service corresponding to the shared directory according to the change rule, so as to improve the performance of the NFS system and reduce waste of NFS resources. For example, when the IOPS variation law indicates that the time period of 17: 00-20: 00 is many times higher than other time periods, the NFS system resources can be allocated to the target service in the time period of 17: 00-20: 00, and the resource allocation is reduced in the time period of not 17: 00-20: 00, so that the NFS system allocates the resources to other services for use.
By applying the method provided by the embodiment of the invention, the access request sent by the target client is received; the access request comprises an operation type and a shared directory identifier mounted by a target client; when the operation type is read/write operation, determining a target export corresponding to the shared directory identifier in an export linked list; adding 1 to a target field corresponding to the operation type in a target export to obtain an IOPS corresponding to the shared directory; and monitoring the target service corresponding to the shared directory by using the IOPS.
Because different services are placed in different shared directories, that is, one service corresponds to one shared directory. Traffic may be monitored by the IOPS of the statistical shared directory. Specifically, an access request sent by a target client is received; the access request comprises an operation type and a shared directory identifier mounted by a target client; when the operation type is read/write operation, determining a target export corresponding to the shared directory identifier in an export linked list; and in the target export, adding 1 to a target field corresponding to the operation type to obtain the IOPS corresponding to the shared directory. That is, the IOPS of the shared directory can be counted by the identifier of the shared directory and the operation type in the operation request. And then, monitoring the service corresponding to each shared directory by using the IOPS corresponding to each shared directory. The IOPS utilizing the shared directory can monitor performance analysis, abnormal detection, pressure tracking and the like of target services having corresponding relations with the shared directory. Abnormal services can be found in time, the pressure of the services can be known according to the change rule of the IOPS, and the change rule of the IOPS is utilized to distribute matched system resources for each service in the NFS, so that the system performance of the NFS is further improved, and the user experience is improved.
Example two:
in order to facilitate those skilled in the art to understand the technical solutions provided by the embodiments of the present invention, the following describes the technical solutions provided by the embodiments of the present invention in detail by taking specific application flows as examples.
The NFS server sets an ID number for each shared directory, and stores all the shared directories into an export linked list. Wherein, the shared directory corresponds to the NFS service one by one.
When the client mounts the NFS service, the mounted shared directory is specified through a mount command. And after the mounting is successful, the NFS server returns the ID number of the mounted shared directory to the client. When a client needs to access the NFS service, an access request including the mounted shared directory ID is sent.
After receiving the request, the NFS server first determines whether the request is a read/write request, and if the request is a read/write request, finds a corresponding shared directory from the export linked list according to the ID number in the request. The shared directory is the shared directory mounted by the client, the export structure represents a shared directory structure, and the information of the shared directory is recorded in the export. Specifically, two fields are added in the export, namely read _ ops and write _ ops respectively, and the number of read and write operations of the shared directory is recorded. For example, when a read or write request is received, an operation is added to the read _ ops or write _ ops, and then the read _ ops and write _ ops fields are cleared every second using a timer, starting with 0. To ensure that only the number of read and write operations processed in each second is recorded. Then, statistics are made on the IOPS of the shared directory. Specifically, the NFS server starts a new thread when starting up, and is responsible for traversing the shared directories in the export linked list once per second, calculating and storing the IOPS value of each shared directory per second. One second of IOPS information for all shared directories in the export linked list may be displayed by command.
Adding an IOPS statistical function to the shared directory, adding corresponding records in an export structure, and setting a thread to read the variable of the IOPS at regular time. That is, when the NFS server receives and processes a request sent by the client, the corresponding shared directory is found according to the shared directory ID of the request, the IOPS of the shared directory is updated, and the IOPS information of each directory per second is counted. And further analyzing the pressure change and the service condition of the NFS service corresponding to each shared directory by monitoring the IOPS of each shared directory. For example, analyzing the pressure change rule of different services, monitoring whether the services are abnormal, and the like.
Corresponding to the above method embodiment, an embodiment of the present invention further provides an NFS service monitoring apparatus, and the NFS service monitoring apparatus described below and the NFS service monitoring method described above may be referred to correspondingly.
Referring to fig. 2, the apparatus includes the following modules:
an access request receiving module 101, configured to receive an access request sent by a target client; the access request comprises an operation type and a shared directory identifier mounted by a target client;
a target export determination module 102, configured to determine, in an export linked list, a target export corresponding to the shared directory identifier when the operation type is read/write operation;
an IOPS obtaining module 103, configured to add 1 to a target field corresponding to the operation type in the target export, to obtain an IOPS corresponding to the shared directory;
and the monitoring module 104 is configured to monitor a target service corresponding to the shared directory by using the IOPS.
The device provided by the embodiment of the invention is applied to receive the access request sent by the target client; the access request comprises an operation type and a shared directory identifier mounted by a target client; when the operation type is read/write operation, determining a target export corresponding to the shared directory identifier in an export linked list; adding 1 to a target field corresponding to the operation type in a target export to obtain an IOPS corresponding to the shared directory; and monitoring the target service corresponding to the shared directory by using the IOPS.
Because different services are placed in different shared directories, that is, one service corresponds to one shared directory. Traffic may be monitored by the IOPS of the statistical shared directory. Specifically, an access request sent by a target client is received; the access request comprises an operation type and a shared directory identifier mounted by a target client; when the operation type is read/write operation, determining a target export corresponding to the shared directory identifier in an export linked list; and in the target export, adding 1 to a target field corresponding to the operation type to obtain the IOPS corresponding to the shared directory. That is, the IOPS of the shared directory can be counted by the identifier of the shared directory and the operation type in the operation request. And then, monitoring the service corresponding to each shared directory by using the IOPS corresponding to each shared directory. The IOPS utilizing the shared directory can monitor performance analysis, abnormal detection, pressure tracking and the like of target services having corresponding relations with the shared directory. Abnormal services can be found in time, the pressure of the services can be known according to the change rule of the IOPS, and the change rule of the IOPS is utilized to distribute matched system resources for each service in the NFS, so that the system performance of the NFS is further improved, and the user experience is improved.
In an embodiment of the present invention, the method further comprises:
and the zero clearing module is used for performing zero clearing processing on the target field every second by using a timer after adding 1 to the target field corresponding to the operation type in the target export.
In one embodiment of the present invention, the target field corresponding to the read operation is read _ ops, and the target field corresponding to the write operation is write _ ops.
In one embodiment of the present invention, the method further comprises:
and the field setting module is used for adding read _ ops and write _ ops to the export corresponding to each shared directory in the export linked list before receiving the access request sent by the target client.
In one embodiment of the present invention, the method further comprises:
the shared directory ID number setting module is used for mounting the target client to the corresponding target shared directory by using a mounting command before receiving the access request sent by the target client; returning a shared directory identifier corresponding to the target shared directory to the target client; wherein the shared directory identifier is a shared directory ID number.
In a specific embodiment of the present invention, the IOPS obtaining module 103 is specifically configured to query, by using a pre-created read thread, a field corresponding to the shared directory in the export linked list, and calculate an IOPS of the shared directory.
In an embodiment of the present invention, the monitoring module 104 is specifically configured to perform anomaly detection and/or pressure tracking on a target service corresponding to a shared directory by using an IOPS.
Corresponding to the above method embodiment, an embodiment of the present invention further provides an NFS service monitoring device, and an NFS service monitoring device described below and an NFS service monitoring method described above may be referred to in a corresponding manner.
Referring to fig. 3, the NFS service monitoring apparatus includes:
a memory D1 for storing computer programs;
a processor D2, configured to implement the steps of the NFS service monitoring method in the foregoing method embodiment when executing the computer program.
Corresponding to the above method embodiment, an embodiment of the present invention further provides a readable storage medium, and a readable storage medium described below and an NFS service monitoring method described above may be referred to correspondingly.
A readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the NFS traffic monitoring method of the above method embodiment.
The readable storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various other readable storage media capable of storing program codes.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention. The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two.

Claims (9)

1. An NFS service monitoring method, comprising:
receiving an access request sent by a target client; the access request comprises an operation type and a shared directory identifier mounted by the target client;
when the operation type is read/write operation, determining a target export corresponding to the shared directory identifier in an export linked list;
adding 1 to a target field corresponding to the operation type in the target export to obtain an IOPS corresponding to the shared directory;
monitoring a target service corresponding to the shared directory by using the IOPS;
in the target export, after adding 1 to a target field corresponding to the operation type, the method further includes:
and clearing the target field every other second by using a timer.
2. The NFS traffic monitoring method of claim 1, wherein the target field corresponding to the read operation is read _ ops, and the target field corresponding to the write operation is write _ ops.
3. The NFS traffic monitoring method according to claim 2, wherein before the receiving the access request sent by the target client, the method further comprises:
in the export linked list, read _ ops and write _ ops are added to the corresponding export of each shared directory.
4. The NFS traffic monitoring method according to claim 1, wherein before the receiving the access request sent by the target client, the method further comprises:
mounting the target client to the corresponding target shared directory by using the mounting command;
returning a sharing directory identifier corresponding to the target sharing directory to the target client; wherein the shared directory identifier is a shared directory ID number.
5. The NFS traffic monitoring method according to any one of claims 1 to 4, wherein the obtaining the IOPS corresponding to the shared directory includes:
and inquiring fields corresponding to the shared directory in the export linked list by using a pre-created reading thread, and calculating the IOPS of the shared directory.
6. The NFS service monitoring method according to claim 5, wherein the monitoring, by using the IOPS, the target service corresponding to the shared directory includes:
and carrying out anomaly detection and/or pressure tracking on the target service corresponding to the shared directory by utilizing the IOPS.
7. An NFS traffic monitoring apparatus, comprising:
the access request receiving module is used for receiving an access request sent by a target client; the access request comprises an operation type and a shared directory identifier mounted by the target client;
a target export determination module, configured to determine, in an export linked list, a target export corresponding to the shared directory identifier when the operation type is read/write operation;
an IOPS obtaining module, configured to add 1 to a target field corresponding to the operation type in the target export to obtain an IOPS corresponding to the shared directory;
the monitoring module is used for monitoring the target service corresponding to the shared directory by using the IOPS;
and the zero clearing module is used for performing zero clearing processing on the target field every second by using a timer after adding 1 to the target field corresponding to the operation type in the target export.
8. An NFS traffic monitoring device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the NFS traffic monitoring method according to any of claims 1 to 6 when executing the computer program.
9. A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the NFS traffic monitoring method according to any of claims 1 to 6.
CN201810825923.9A 2018-07-25 2018-07-25 NFS service monitoring method, device, equipment and readable storage medium Active CN109063081B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810825923.9A CN109063081B (en) 2018-07-25 2018-07-25 NFS service monitoring method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810825923.9A CN109063081B (en) 2018-07-25 2018-07-25 NFS service monitoring method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN109063081A CN109063081A (en) 2018-12-21
CN109063081B true CN109063081B (en) 2022-05-24

Family

ID=64836459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810825923.9A Active CN109063081B (en) 2018-07-25 2018-07-25 NFS service monitoring method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN109063081B (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8789208B1 (en) * 2011-10-04 2014-07-22 Amazon Technologies, Inc. Methods and apparatus for controlling snapshot exports
US9819588B1 (en) * 2011-12-19 2017-11-14 Veritas Technologies Llc Techniques for monitoring a server
US10027546B1 (en) * 2014-12-29 2018-07-17 EMC IP Holding Company LLC Method and system for virtual storage array mobility and live migration using locator-identifier separation protocol
CN105426522A (en) * 2015-12-07 2016-03-23 浪潮(北京)电子信息产业有限公司 File system performance statistical method and system
CN105743732B (en) * 2015-12-28 2020-03-17 哈尔滨安天科技集团股份有限公司 Method and system for recording transmission path and distribution condition of local area network files
CN106550037B (en) * 2016-11-07 2019-09-24 天脉聚源(北京)传媒科技有限公司 A kind of method and device of server data sharing
CN107172075B (en) * 2017-06-26 2021-09-21 努比亚技术有限公司 Communication method, system and readable storage medium based on network isolation
CN107864215B (en) * 2017-11-21 2020-10-20 中国科学院上海微系统与信息技术研究所 Peer-to-peer network file system, access control/management method/system, and terminal

Also Published As

Publication number Publication date
CN109063081A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
US10560465B2 (en) Real time anomaly detection for data streams
CN108737473B (en) Data processing method, device and system
CN109087055B (en) Service request control method and device
US20160062880A1 (en) Methods and Systems for the Use of Synthetic Users To Performance Test Cloud Applications
CN107544832B (en) Method, device and system for monitoring process of virtual machine
EP3138241A2 (en) Systems, devices and methods for generating locality-indicative data representations of data streams, and compressions thereof
CN109831358B (en) Client flow statistical method and device, server and readable storage medium
CN107924345B (en) Data store for aggregated measurements of metrics
CN109582649B (en) Metadata storage method, device and equipment and readable storage medium
CN106201839B (en) Information loading method and device for business object
EP2650787A2 (en) Method and system for reclaiming unused resources in a networked application environment
CN111899856A (en) Risk control method, device, equipment and storage medium for hospital registration
CN108337100B (en) Cloud platform monitoring method and device
CN110363381B (en) Information processing method and device
CN110688360A (en) Distributed file system storage management method, device, equipment and storage medium
CN117459536A (en) Resource distribution method, cloud server, device, electronic equipment and storage medium
CN113079062A (en) Resource adjusting method and device, computer equipment and storage medium
CN109063081B (en) NFS service monitoring method, device, equipment and readable storage medium
CN105893150B (en) Interface calling frequency control method and device and interface calling request processing method and device
CN109286532B (en) Management method and device for alarm information in cloud computing system
CN115374109B (en) Data access method, device, computing equipment and system
CN110851758A (en) Webpage visitor number statistical method and device
US11580082B2 (en) Object storage system with control entity quota usage mapping
CN112861031B (en) URL refreshing method, device and equipment in CDN and CDN node
CN110543496B (en) Data processing method and device for time sequence database cluster

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant