CN109831358A - A kind of client traffic statistical method, device, server and readable storage medium storing program for executing - Google Patents

A kind of client traffic statistical method, device, server and readable storage medium storing program for executing Download PDF

Info

Publication number
CN109831358A
CN109831358A CN201910098144.8A CN201910098144A CN109831358A CN 109831358 A CN109831358 A CN 109831358A CN 201910098144 A CN201910098144 A CN 201910098144A CN 109831358 A CN109831358 A CN 109831358A
Authority
CN
China
Prior art keywords
client
carry
user
file system
user name
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.)
Granted
Application number
CN201910098144.8A
Other languages
Chinese (zh)
Other versions
CN109831358B (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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201910098144.8A priority Critical patent/CN109831358B/en
Publication of CN109831358A publication Critical patent/CN109831358A/en
Application granted granted Critical
Publication of CN109831358B publication Critical patent/CN109831358B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application is about a kind of client traffic statistical method, device, server and readable storage medium storing program for executing.This method comprises: determining the carry client of Network File System;Obtain user name used in client carry Network File System;Wherein, user name used in client is consistent with the mount directory of client carry Network File System;According to the variable quantity of the file size under mount directory, the flow of client is counted.In this way, can the user name according to used in client carry Network File System determine the mount directory of the client carry Network File System, and client traffic can be counted according to mount directory.

Description

A kind of client traffic statistical method, device, server and readable storage medium storing program for executing
Technical field
This application involves file system technology fields, more particularly to a kind of client traffic statistical method, device, service Device and readable storage medium storing program for executing.
Background technique
Currently, storage management can be carried out to data by Network File System.For example, Network File System can be passed through CephFS to carry out storage management to data.Wherein, client can may then pass through network by network carry CephFS Access the file under the CephFS catalogue of institute's carry.
Inventor has found during realizing the application, since the ability of CephFS processing data is limited, thus When a large amount of written documents of certain clients, the pressure of CephFS processing data can become larger, and write data so as to cause other clients Slow, even result in writing business and can not carrying out for other clients.But become for the pressure of CephFS processing data Big situation at present can not count client traffic, thus can not know that the pressure of CephFS processing data is by which Caused by a little clients.
Summary of the invention
To overcome the problems in correlation technique, the application provides a kind of client traffic statistical method, device, service Device and readable storage medium storing program for executing.
According to the embodiment of the present application in a first aspect, a kind of client traffic statistical method is provided, applied to server, packet It includes:
Determine the client of carry Network File System;
Obtain user name used in client carry Network File System;Wherein, user name used in client with The mount directory of client carry Network File System is consistent;
According to the variable quantity of the file size under mount directory, the flow of client is counted.
Optionally, before the step of determining the client of carry Network File System, can also include:
According to the registration request that user sends, the mount directory for carrying carry keyword is generated;Wherein, it is taken in registration request With the customized carry keyword of user;
The user name that mount directory is used as is sent to user, so that user name is input to client by user, makes visitor Family end passes through user name carry Network File System;
When detecting client carry Network File System, user name is stored into carry user list.
Optionally, user name mount directory being used as is sent to user, so that user name is input to client by user End makes the step of client is by user name carry Network File System, may include:
The corresponding key of user name and user name that mount directory is used as is sent to user, so that user is by user name It is input to client with key, client is made to pass through user name and key carry Network File System.
Optionally, it according to the variable quantity of the file size under mount directory, the step of counting the flow of client, can wrap It includes:
Calculate the variable quantity of the file size of file within a preset period of time under mount directory;
According to the duration of variable quantity and preset time period, the average flow rate of client within a preset period of time is calculated.
Optionally, it according to the variable quantity of the file size under mount directory, the step of counting the flow of client, can wrap It includes:
The user name in user name obtained with preset keyword is determined, as target user's name;
According to the variable quantity of the file size under the corresponding mount directory of target user's name, it is corresponding to calculate target user's name The flow of client.
Optionally, it after the step of obtaining user name used in client carry Network File System, can also wrap It includes:
Count the size of memory space shared by the file under mount directory;
Count the number of files under mount directory;
According to the size of memory space, number of files and preset writing rate analytical table, the writing rate point of client is determined Analyse result.
Optionally, in the variable quantity according to the file size under mount directory, after the step of counting the flow of client, Can also include:
Generate flow display diagram corresponding to the flow of client;
Flow display diagram is sent to flow presentation device, so that flow presentation device shows flow display diagram.
According to the second aspect of the embodiment of the present application, a kind of client traffic statistic device is provided, is applied to server, packet It includes:
First determining module is configured to determine that the client of carry Network File System;
Module is obtained, is configured as obtaining user name used in client carry Network File System;Wherein, client Used user name is consistent with the mount directory of client carry Network File System;
First statistical module is configured as the variable quantity according to the file size under mount directory, counts the stream of client Amount.
Optionally, in the embodiment of the present application, can also include:
Generation unit is configured as before the client for determining carry Network File System, is sent according to user Registration request generates the mount directory for carrying carry keyword;Wherein, the customized carry of user is carried in registration request to close Key word;
Transmission unit, the user name for being configured as mount directory being used as are sent to user, so that user is by user name It is input to client, client is made to pass through user name carry Network File System;
Storage unit is configured as storing user name to extension when detecting client carry Network File System It carries in user list.
Optionally, in the embodiment of the present application, transmission unit is configured as:
The corresponding key of user name and user name that mount directory is used as is sent to user, so that user is by user name It is input to client with key, client is made to pass through user name and key carry Network File System.
Optionally, in the embodiment of the present application, the first statistical module may include:
First computing unit is configured as calculating the change of the file size of file within a preset period of time under mount directory Change amount;
Second computing unit is configured as the duration according to variable quantity and preset time period, calculates client when default Between average flow rate in section.
Optionally, in the embodiment of the present application, the first statistical module may include:
Determination unit is configured to determine that the user name in user name obtained with preset keyword, as target User name;
Third computing unit is configured as the variation according to the file size under the corresponding mount directory of target user's name Amount calculates the flow of the corresponding client of target user's name.
Optionally, in the embodiment of the present application, can also include:
Second statistical module is configured as after obtaining user name used in client carry Network File System, Count the size of memory space shared by the file under mount directory;
Third statistical module, the number of files being configured as under statistics mount directory;
Second determining module is configured as according to the size of memory space, number of files and preset writing rate analytical table, Determine the writing rate analysis result of client.
Optionally, in the embodiment of the present application, can also include:
Generation module is configured as counting the flow of client in the variable quantity according to the file size under mount directory Later, flow display diagram corresponding to the flow of client is generated;
Sending module is configured as flow display diagram being sent to flow presentation device, so that flow presentation device is shown Flow display diagram.
According to the third aspect of the embodiment of the present application, a kind of server is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, processor is configured as executing the method step of any one of above-mentioned first aspect client traffic statistical method Suddenly.
According to the fourth aspect of the embodiment of the present application, provide a kind of readable storage medium storing program for executing, when the instruction in storage medium by When the processor of server executes, enable the server to execute any one of above-mentioned first aspect client traffic statistical method Method and step.Wherein, which is computer readable storage medium.
According to the 5th of the embodiment of the present application the aspect, a kind of computer program product is provided, when it runs on the server When, so that server executes: the method and step of any one of above-mentioned first aspect client traffic statistical method.
In the embodiment of the present application, server can determine the client of carry Network File System.It is then possible to obtain User name used in the client carry Network File System.Wherein, by client carry this document system institute The user name used is consistent with mount directory, thus server can determine the carry mesh of the client carry network file Record.Then, server can count the flow of the client according to the variable quantity of the file size under mount directory.In this way, clothes Business device can count the flow of the client, and then can determine that Network File System is handled according to obtained flow Which client is the pressure of data be as caused by.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The application can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the application Example, and together with specification it is used to explain the principle of the application.
Fig. 1 is a kind of flow chart of client traffic statistical method shown according to an exemplary embodiment.
Fig. 2 is the schematic diagram of client carry Network File System shown according to an exemplary embodiment.
Fig. 3 is a kind of block diagram of client traffic statistic device shown according to an exemplary embodiment.
Fig. 4 is a kind of block diagram of server shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the application.
In order to solve the technical problems existing in the prior art, the embodiment of the present application provides a kind of client traffic statistics Method, apparatus, server and readable storage medium storing program for executing.
Client traffic statistical method provided by the embodiments of the present application is illustrated first below.
Client traffic statistical method provided by the embodiments of the present application can be applied to server.Wherein, which can Think the central control server in Network File System, or preassigned for carrying out client traffic statistics Server is not limited thereto certainly.
It is understood that Network File System can carry out storage management to data.Wherein, Network File System includes But it is not limited to CephFS.
Client traffic statistical method provided by the embodiments of the present application is illustrated below with reference to Fig. 1 and Fig. 2.Wherein, Fig. 1 is a kind of flow chart of client traffic statistical method shown according to an exemplary embodiment.Fig. 2 is exemplary according to one Implement the schematic diagram of the client carry Network File System exemplified.
As shown in Figure 1, the client traffic statistical method may comprise steps of:
S101: the client of carry Network File System is determined;
It is understood that client can be configured by network carry Network File System, Network File System in net Network stores in equipment.Also, client can access the file under the Network File System catalogue of institute's carry by network To access the file under the corresponding mount directory of the client by network.
Carry, which refers to, is articulated to a storage equipment in one already present catalogue.Wherein, the storage equipment is accessed In file, need to be mounted to the subregion where this document in one already present catalogue, then by access this catalogue To access the storage equipment.
As shown in Fig. 2, customer end A can (Transmission Control Protocol passes transport control protocol by TCP View) network access institute's carry Network File System CephFS directory A under file, that is, the visitor can be accessed by TCP network File under the corresponding mount directory A of family end A.Wherein, Network File System CephFS configuration is in Ceph distributed memory system In, wherein Ceph distributed memory system is alternatively referred to as Ceph cluster.
In addition, as shown in Fig. 2, customer end B can access the Network File System CephFS mesh of institute's carry by TCP network Record the file under B;Client C can access the text under the Network File System CephFS catalogue C of institute's carry by TCP network Part.
In the embodiment of the present application, server, can be with root before the client for determining carry Network File System According to the registration request that user sends, the mount directory for carrying carry keyword is generated.Wherein, user is carried in registration request certainly The carry keyword of definition.
Wherein, the customized carry keyword of the user may include: related keyword, such as user with business demand It needs to store music file using the Network File System of carry, then, which can be music.Certainly, should The customized carry keyword of user can also include: the keyword, such as address name zhangsan etc. for identity user, Certainly it is not limited thereto.
After generating mount directory according to registration request, server can be somebody's turn to do the mount directory as client carry User name used in Network File System.It is then possible to which user name is sent to user.In this way, in user that user name is defeated Enter to client, client can use authentication of the user name by Network File System, thus the client It can be with the carry Network File System.Wherein, pass through the client of same subscriber name carry Network File System, it is believed that be same Client.
Certainly, for the safety of raising, user name and user name counterpart keys can also be sent to user by server. In this way, client can use the user name and key passes through net after user name and key are input to client by user The authentication of network file system, so that the client can be with the carry Network File System.Wherein, by same subscriber name and The client of key carry Network File System, it is believed that be same client.This is also rational.
Wherein, when server detects client carry Network File System, server can be deposited the user name Storage is into carry user list.In this way, be described user name used in the client of the carry Network File System can Into the carry user list.In this way, server can determine the carry Network File System by the carry user list Client.
S102: user name used in client carry Network File System is obtained;Wherein, user used in client Name is consistent with the mount directory of client carry Network File System;
After the client for determining the carry Network File System, server can obtain the client carry network User name used in file system.Wherein, the user name as used in the client and the client carry network text The mount directory of part system is consistent, thus server can obtain the carry mesh of the Network File System of the client institute carry Record.
And in the related art, user name used in client carry Network File System is the mail that user provides User name and mount directory, are not associated by location and cell-phone number etc..Moreover, in the related art, which visitor can only be determined The family end carry Network File System, but can not determine the client carry of the carry Network File System network Which catalogue of file system.Thus, the flow of client can not be counted in the related art, and then can not also know Which client is the pressure that CephFS handles data be as caused by.
S103: according to the variable quantity of the file size under mount directory, the flow of client is counted.
After determining user name used in the client carry Network File System, that is, it can determine the client carry The mount directory of the Network File System.In turn, which can be counted according to the variable quantity of the file size under mount directory The flow at end.
It is understood that can determine network text according to client traffic after statistics obtains client traffic Which client is the pressure of part system processes data be as caused by.For example, when the flow of a client is more than preset flow threshold When value, then it can determine that the client causes biggish data processing pressure to Network File System.
Wherein, the mode for counting the flow of client can be with are as follows: calculates the file under the mount directory of client default The variable quantity of file size in period.Then, according to the duration of variable quantity and preset time period, client is calculated default Average flow rate in period.In this way, the average flow rate of client within a preset period of time can be calculated.
Wherein, which can be set according to the actual situation by those skilled in the art, such as can be set The fixed preset time period can be the period corresponding to daily 20:00 to 22:00, be not limited thereto certainly.
It is of course also possible to count the variable quantity of the file size under the primary mount directory per minute, i.e., statistical interval is 1 Minute.Then, the average flow rate in one minute is calculated according to the variable quantity, this is also rational.For example, the carry of a client File under catalogue increased the data of 900MB at one minute, then, average flow rate of the client in this minute is 15MB/s。
In addition, the mode of the flow of statistics client may be: determining in user name obtained has default key The user name of word, as target user's name.Wherein, predetermined keyword is referred to as sample tags.For example, user obtained Preset keyword " music " is carried there are three user name in name, then can be using these three user names as target user's name. It is then possible to which it is corresponding to calculate target user's name according to the variable quantity of the file size under the corresponding mount directory of target user's name Client flow.In this way, can be counted to the flow of the corresponding client of target user's name in client.
It is understood that statistical interval and sampling mark can be arranged in those skilled in the art by configuration file Label.For example, it is also possible to increase sample tags " video ", statistical interval can be revised as 1 hour, this is all reasonable.
In the embodiment of the present application, server can determine the client of carry Network File System.It is then possible to obtain User name used in the client carry Network File System.Wherein, by client carry this document system institute The user name used is consistent with mount directory, thus server can determine the carry mesh of the client carry network file Record.Then, server can count the flow of the client according to the variable quantity of the file size under mount directory.In this way, clothes Business device can count the flow of the client, and then can determine that Network File System is handled according to obtained flow Which client is the pressure of data be as caused by.
In addition, server can also count after obtaining user name used in client carry Network File System The size of memory space shared by file under mount directory.And it is possible to the number of files under counting mount directory.Then, may be used To determine the writing rate analysis result of client according to the size of memory space, number of files and preset writing rate analytical table.
Wherein, it can recorde in preset writing rate analytical table: the size of memory space shared by file under mount directory, The mapping relations of number and writing rate the analysis result of this document.For example, working as memory space shared by file destination is 1G and file Number when being 10,000, can show that writing rate analyzes result according to the writing rate analytical table: the slow reason of writing rate is single text The size of part is smaller and number of files is more.In this way, the size and text of the memory space according to shared by file under mount directory The number of part rapidly analyzes the slow reason of writing rate.
Wherein, the number of this document includes the number of files of second-level directory under the mount directory.
In addition, server after the variable quantity according to the file size under mount directory, the flow for counting client, is gone back Flow display diagram corresponding to the flow of client can be generated.It is set it is then possible to which flow display diagram is sent to flow displaying It is standby, so that flow presentation device shows the flow display diagram.In this way, the flow of client can intuitively be shown, from And technical staff is allow rapidly to know which client is the pressure of Network File System processing data be as caused by.
For example, the flow institute of each client of the carry Network File System can be generated by Falcon Corresponding flow display diagram.It is of course also possible to generate marking with sampling for the carry Network File System by Falcon Flow display diagram corresponding to the flow of the client of label.
Wherein, Falcon is a Web server file security monitor supervision platform based on inotify-tools exploitation.? In the embodiment of the present application, the web page creation Falcon-Screen chart of Falcon offer can use, then Falcon- The flow that statistics obtains client can be shown as flow display diagram by Screen chart.Wherein, which can be Curve graph, or histogram is not limited thereto certainly.
It is understood that each client extension of the carry Network File System can also be generated by Falcon Carry the corresponding file size display diagram of catalogue file size.Also, carry network text can also be generated by Falcon The corresponding number of files display diagram of each client mount directory number of files of part system.In this way, technical staff can combine Which client file size display diagram and number of files display diagram are by come the pressure for determining Network File System processing data It is caused, and analyze the reason of causing stress.
It to sum up, can be according to client carry network using client traffic statistical method provided by the embodiments of the present application User name used in file system determines the mount directory of the client carry Network File System, so as to according to extension It carries catalogue and counts client traffic.In turn, the pressure of Network File System processing data can be determined according to client traffic It is as caused by which client.
Corresponding to above method embodiment, the embodiment of the present application also provides a kind of client traffic statistic device, applications In server, referring to Fig. 3, the apparatus may include:
First determining module 301, is configured to determine that the client of carry Network File System;
Module 302 is obtained, is configured as obtaining user name used in client carry Network File System;Wherein, objective User name used in the end of family is consistent with the mount directory of client carry Network File System;
First statistical module 303 is configured as counting client according to the variable quantity of the file size under mount directory Flow.
Using device provided by the embodiments of the present application, server can determine the client of carry Network File System. It is then possible to obtain user name used in the client carry Network File System.Wherein, since the client carry should User name used in file system is consistent with mount directory, thus server can determine the client carry network file Mount directory.Then, server can count the stream of the client according to the variable quantity of the file size under mount directory Amount.In this way, server can count the flow of the client, and then network text can be determined according to obtained flow Which client is the pressure of part system processes data be as caused by.
Optionally, in the embodiment of the present application, which can also include:
Generation unit is configured as before the client for determining carry Network File System, is sent according to user Registration request generates the mount directory for carrying carry keyword;Wherein, the customized carry of user is carried in registration request to close Key word;
Transmission unit, the user name for being configured as mount directory being used as are sent to user, so that user is by user name It is input to client, client is made to pass through user name carry Network File System;
Storage unit is configured as storing user name to extension when detecting client carry Network File System It carries in user list.
Optionally, in the embodiment of the present application, transmission unit is configured as:
The corresponding key of user name and user name that mount directory is used as is sent to user, so that user is by user name It is input to client with key, client is made to pass through user name and key carry Network File System.
Optionally, in one embodiment of the application, the first statistical module 303 may include:
First computing unit is configured as calculating the change of the file size of file within a preset period of time under mount directory Change amount;
Second computing unit is configured as the duration according to variable quantity and preset time period, calculates client when default Between average flow rate in section.
Optionally, in another embodiment of the application, the first statistical module 303 may include:
Determination unit is configured to determine that the user name in user name obtained with preset keyword, as target User name;
Third computing unit is configured as the variation according to the file size under the corresponding mount directory of target user's name Amount calculates the flow of the corresponding client of target user's name.
Optionally, in the embodiment of the present application, which can also include:
Second statistical module is configured as after obtaining user name used in client carry Network File System, Count the size of memory space shared by the file under mount directory;
Third statistical module, the number of files being configured as under statistics mount directory;
Second determining module is configured as according to the size of memory space, number of files and preset writing rate analytical table, Determine the writing rate analysis result of client.
Optionally, in the embodiment of the present application, which can also include:
Generation module is configured as counting the flow of client in the variable quantity according to the file size under mount directory Later, flow display diagram corresponding to client traffic is generated;
Sending module is configured as flow display diagram being sent to flow presentation device, so that flow presentation device is shown Flow display diagram.
Fig. 4 is a kind of frame of device 1900 for realizing client traffic statistics shown according to an exemplary embodiment Figure.For example, device 1900 may be provided as a server.Referring to Fig. 4, device 1900 includes processing component 1922, into one Step includes one or more processors and memory resource represented by a memory 1932, and being used to store can be by processing group The instruction of the execution of part 1922, such as application program.The application program stored in memory 1932 may include one or one Each above corresponds to the module of one group of instruction.In addition, processing component 1922 is configured as executing instruction, it is above-mentioned to execute The method and step of any one client traffic statistical method.
Device 1900 can also include that a power supply module 1926 be configured as the power management of executive device 1900, and one Wired or wireless network interface 1950 is configured as device 1900 being connected to network and input and output (I/O) interface 1958.Device 1900 can be operated based on the operating system for being stored in memory 1932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
In the embodiment of the present application, server can determine the client of carry Network File System.It is then possible to obtain User name used in the client carry Network File System.Wherein, by client carry this document system institute The user name used is consistent with mount directory, thus server can determine the carry mesh of the client carry network file Record.Then, server can count the flow of the client according to the variable quantity of the file size under mount directory.In this way, clothes Business device can count the flow of the client, and then can determine that Network File System is handled according to obtained flow Which client is the pressure of data be as caused by.
Corresponding to above method embodiment, the embodiment of the present application also provides a kind of readable storage medium storing program for executing, work as storage medium In instruction by server processor execute when, enable the server to execute any of the above-described client traffic statistical method Method and step.Wherein, which is computer readable storage medium.
The computer program stored in readable storage medium storing program for executing provided by the embodiments of the present application is executed by the processor of server Afterwards, server can determine the client of carry Network File System.It is then possible to obtain the client carry network text User name used in part system.Wherein, the user name as used in client carry this document system is with mount directory Unanimously, thus server can determine the mount directory of the client carry network file.Then, server can be according to extension The variable quantity for carrying the file size under catalogue, counts the flow of the client.In this way, server can be to the flow of the client It is counted, and then can determine which client is the pressure of Network File System processing data be by according to obtained flow Caused by.
Corresponding to above method embodiment, the embodiment of the present application also provides a kind of computer program products, when it is taking When being run on business device, so that server executes: the method and step of any of the above-described client traffic statistical method.
After computer program product provided by the embodiments of the present application is executed by the processor of server, server can be determined The carry client of Network File System.It is then possible to obtain the used use of the client carry Network File System Name in an account book.Wherein, the user name as used in client carry this document system is consistent with mount directory, thus server can To determine the mount directory of the client carry network file.Then, server can be big according to the file under mount directory Small variable quantity counts the flow of the client.In this way, server can count the flow of the client, Jin Erke To determine which client is the pressure of Network File System processing data be as caused by according to obtained flow.
Those skilled in the art will readily occur to its of the application after considering specification and practicing the application applied here Its embodiment.This application is intended to cover any variations, uses, or adaptations of the application, these modifications, purposes or The common knowledge in the art that person's adaptive change follows the general principle of the application and do not apply including the application Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the application are by the application Claim point out.
It should be understood that the application is not limited to the precise structure that has been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or It partly generates according to process or function described in the embodiment of the present application.The computer can be general purpose computer, dedicated meter Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk Solid State Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device, For server, readable storage medium storing program for executing and computer program product embodiments, since it is substantially similar to the method embodiment, so It is described relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely the preferred embodiments of the application, are not intended to limit the protection scope of the application.It is all Any modification, equivalent replacement, improvement and so within spirit herein and principle are all contained in the protection scope of the application It is interior.

Claims (10)

1. a kind of client traffic statistical method, which is characterized in that be applied to server, which comprises
Determine the client of carry Network File System;
Obtain user name used in Network File System described in the client carry;Wherein, used in the client User name is consistent with the mount directory of Network File System described in the client carry;
According to the variable quantity of the file size under the mount directory, the flow of the client is counted.
2. the method according to claim 1, wherein in the determining carry client of Network File System The step of before, further includes:
According to the registration request that user sends, the mount directory for carrying carry keyword is generated;Wherein, it is taken in the registration request With the customized carry keyword of the user;
The user name that the mount directory is used as is sent to the user, so that the user name is input to by the user The client makes the client pass through Network File System described in the user name carry;
When detecting the client carry Network File System, the user name is stored to carry user list In.
3. according to the method described in claim 2, it is characterized in that, the user name that the mount directory is used as is sent To the user, so that the user name is input to the client by the user, the client is made to pass through the user The step of Network File System described in name carry, comprising:
User name and the corresponding key of the user name that the mount directory is used as are sent to the user, so that described The user name and key are input to the client by user, hang the client by the user name and the key Carry the Network File System.
4. the method according to claim 1, wherein the change according to the file size under the mount directory Change amount, the step of counting the flow of the client, comprising:
Calculate the variable quantity of the file size of file within a preset period of time under the mount directory;
According to the duration of the variable quantity and the preset time period, it is flat in the preset time period to calculate the client Equal flow.
5. the method according to claim 1, wherein the change according to the file size under the mount directory Change amount, the step of counting the flow of the client, comprising:
The user name in user name obtained with preset keyword is determined, as target user's name;
According to the variable quantity of the file size under the corresponding mount directory of target user's name, it is right to calculate target user's name The flow for the client answered.
6. the method according to claim 1, wherein obtaining network file described in the client carry described Used in system the step of user name after, further includes:
Count the size of memory space shared by the file under the mount directory;
Count the number of files under the mount directory;
According to the size of the memory space, the number of files and preset writing rate analytical table, the client is determined Writing rate analyzes result.
7. method according to claim 1 to 6, which is characterized in that described according under the mount directory The variable quantity of file size, after the step of counting the flow of the client, further includes:
Generate flow display diagram corresponding to the flow of the client;
The flow display diagram is sent to flow presentation device, so that the flow presentation device shows that the flow is shown Figure.
8. a kind of client traffic statistic device, which is characterized in that be applied to server, described device includes:
First determining module is configured to determine that the client of carry Network File System;
Module is obtained, is configured as obtaining user name used in Network File System described in the client carry;Wherein, institute It is consistent with the mount directory of Network File System described in the client carry to state user name used in client;
First statistical module is configured as the variable quantity according to the file size under the mount directory, counts the client Flow.
9. a kind of server characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to: execute the method and step of any one of above-mentioned 1-7 client traffic statistical method.
10. a kind of readable storage medium storing program for executing, when the instruction in the readable storage medium storing program for executing is executed by the processor of server, so that Server is able to carry out the method and step of any one of above-mentioned 1-7 client traffic statistical method.
CN201910098144.8A 2019-01-31 2019-01-31 Client flow statistical method and device, server and readable storage medium Active CN109831358B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910098144.8A CN109831358B (en) 2019-01-31 2019-01-31 Client flow statistical method and device, server and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910098144.8A CN109831358B (en) 2019-01-31 2019-01-31 Client flow statistical method and device, server and readable storage medium

Publications (2)

Publication Number Publication Date
CN109831358A true CN109831358A (en) 2019-05-31
CN109831358B CN109831358B (en) 2021-01-01

Family

ID=66863157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910098144.8A Active CN109831358B (en) 2019-01-31 2019-01-31 Client flow statistical method and device, server and readable storage medium

Country Status (1)

Country Link
CN (1) CN109831358B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110809056A (en) * 2019-11-12 2020-02-18 浪潮云信息技术有限公司 Method for counting file storage user usage amount
CN111083012A (en) * 2019-12-18 2020-04-28 苏州浪潮智能科技有限公司 Data center switch flow statistical method and equipment
CN111314183A (en) * 2020-04-09 2020-06-19 网易(杭州)网络有限公司 Flow information detection method and device, electronic equipment and storage medium
CN112988694A (en) * 2019-12-12 2021-06-18 北京车和家信息技术有限公司 Operation and maintenance method and device for batch management of network file systems by centralized management platform

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010079713A1 (en) * 2009-01-08 2010-07-15 日本電気株式会社 Distributed file name resolution system, distributed file name resolution method, and distributed file name resolution program
CN104158886A (en) * 2014-08-21 2014-11-19 中南大学 Flow-type performing method for applications
CN106230938A (en) * 2016-07-29 2016-12-14 浪潮(北京)电子信息产业有限公司 Directory information synchronous method between a kind of client and server and system
CN107484201A (en) * 2017-09-30 2017-12-15 广东欧珀移动通信有限公司 Flow statistical method and device, terminal, computer-readable recording medium
CN107870734A (en) * 2016-09-27 2018-04-03 苏宁云商集团股份有限公司 The exchange method and device of a kind of distributed file system
CN107958051A (en) * 2017-11-28 2018-04-24 郑州云海信息技术有限公司 A kind of method, apparatus and medium of statistics and Display directory size
CN108628727A (en) * 2018-04-19 2018-10-09 山东省计算中心(国家超级计算济南中心) It is a kind of based on mode operation when feature mode operations running state analysis method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010079713A1 (en) * 2009-01-08 2010-07-15 日本電気株式会社 Distributed file name resolution system, distributed file name resolution method, and distributed file name resolution program
CN104158886A (en) * 2014-08-21 2014-11-19 中南大学 Flow-type performing method for applications
CN106230938A (en) * 2016-07-29 2016-12-14 浪潮(北京)电子信息产业有限公司 Directory information synchronous method between a kind of client and server and system
CN107870734A (en) * 2016-09-27 2018-04-03 苏宁云商集团股份有限公司 The exchange method and device of a kind of distributed file system
CN107484201A (en) * 2017-09-30 2017-12-15 广东欧珀移动通信有限公司 Flow statistical method and device, terminal, computer-readable recording medium
CN107958051A (en) * 2017-11-28 2018-04-24 郑州云海信息技术有限公司 A kind of method, apparatus and medium of statistics and Display directory size
CN108628727A (en) * 2018-04-19 2018-10-09 山东省计算中心(国家超级计算济南中心) It is a kind of based on mode operation when feature mode operations running state analysis method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110809056A (en) * 2019-11-12 2020-02-18 浪潮云信息技术有限公司 Method for counting file storage user usage amount
CN110809056B (en) * 2019-11-12 2022-03-22 浪潮云信息技术股份公司 Method for counting file storage user usage amount
CN112988694A (en) * 2019-12-12 2021-06-18 北京车和家信息技术有限公司 Operation and maintenance method and device for batch management of network file systems by centralized management platform
CN111083012A (en) * 2019-12-18 2020-04-28 苏州浪潮智能科技有限公司 Data center switch flow statistical method and equipment
CN111083012B (en) * 2019-12-18 2021-10-26 苏州浪潮智能科技有限公司 Data center switch flow statistical method and equipment
CN111314183A (en) * 2020-04-09 2020-06-19 网易(杭州)网络有限公司 Flow information detection method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109831358B (en) 2021-01-01

Similar Documents

Publication Publication Date Title
US11870795B1 (en) Identifying attack behavior based on scripting language activity
US10942960B2 (en) Automatic triage model execution in machine data driven monitoring automation apparatus with visualization
US10942946B2 (en) Automatic triage model execution in machine data driven monitoring automation apparatus
US11782989B1 (en) Correlating data based on user-specified search criteria
US10877987B2 (en) Correlating log data with performance measurements using a threshold value
US10877986B2 (en) Obtaining performance data via an application programming interface (API) for correlation with log data
EP3267377B1 (en) Identifying network security risks
US10614132B2 (en) GUI-triggered processing of performance data and log data from an information technology environment
US10019496B2 (en) Processing of performance data and log data from an information technology environment by using diverse data stores
US10268750B2 (en) Log event summarization for distributed server system
US11119982B2 (en) Correlation of performance data and structure data from an information technology environment
US10997191B2 (en) Query-triggered processing of performance data and log data from an information technology environment
US9015316B2 (en) Correlation of asynchronous business transactions
US20210173924A1 (en) Automated Cybersecurity Threat Detection with Aggregation and Analysis
CN109831358A (en) A kind of client traffic statistical method, device, server and readable storage medium storing program for executing
US11062016B2 (en) Systems and methods for verifying user credentials for search
CN109844781A (en) For from journal file identifying processing stream and making to flow visual system and method
US20140324862A1 (en) Correlation for user-selected time ranges of values for performance metrics of components in an information-technology environment with log data from that information-technology environment
JP2018506104A (en) Data stream processing language for analyzing instrumented software
US9652357B2 (en) Analyzing physical machine impact on business transaction performance
WO2014100290A1 (en) Management of information-technology services
US20170126580A1 (en) Tracking Contention in a Distributed Business Transaction
US10775751B2 (en) Automatic generation of regular expression based on log line data
EP3105654A1 (en) Management of information-technology services

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