CN111176569A - Flow quota method, device, system and equipment and readable storage medium - Google Patents

Flow quota method, device, system and equipment and readable storage medium Download PDF

Info

Publication number
CN111176569A
CN111176569A CN201911379260.3A CN201911379260A CN111176569A CN 111176569 A CN111176569 A CN 111176569A CN 201911379260 A CN201911379260 A CN 201911379260A CN 111176569 A CN111176569 A CN 111176569A
Authority
CN
China
Prior art keywords
quota
target
write
flow
user information
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.)
Withdrawn
Application number
CN201911379260.3A
Other languages
Chinese (zh)
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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201911379260.3A priority Critical patent/CN111176569A/en
Publication of CN111176569A publication Critical patent/CN111176569A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a traffic quota method, which comprises the following steps: the metadata server receives a corresponding relation between user information and a write-in attribute sent by client equipment, wherein the write-in attribute comprises a preset period and a flow threshold of write-in data in the preset period; receiving a flow quota request sent by client equipment based on target user information, and determining a target write-in attribute corresponding to the target user information according to the corresponding relation; and issuing a target flow quota corresponding to the target user information to the client equipment according to the flow quota request and the target write-in attribute so that the client equipment executes write operation according to the target flow quota. The method and the device avoid the situation that a single user writes in excessive data in a preset period, and improve user experience. The application also provides a flow quota device, a flow quota system, an electronic device and a computer-readable storage medium, which all have the beneficial effects.

Description

Flow quota method, device, system and equipment and readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a flow quota method, a flow quota device, a flow quota system, an electronic device, and a computer-readable storage medium.
Background
A user quota function in a distributed storage system is a storage mechanism that manages the allowed capacity of a particular user of the system. The existing user capacity quota function limits the total capacity of the equipment, so that the problem that a large amount of data of the equipment is written at a certain moment and the writing situation of other equipment cannot be written is easily caused.
Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a flow quota method, a flow quota device, a flow quota system, an electronic device and a computer-readable storage medium, and a storage management method capable of limiting write-in flow, so that the situation that a client device corresponding to a single user writes in excessive data in a preset period is avoided. The specific scheme is as follows:
the application provides a traffic quota method, which comprises the following steps:
the method comprises the steps that a metadata server receives a corresponding relation between user information and a write-in attribute sent by client equipment, wherein the write-in attribute comprises a preset period and a flow threshold of write-in data in the preset period;
receiving a flow quota request sent by the client device based on target user information, and determining a target write-in attribute corresponding to the target user information according to the corresponding relation;
and issuing a target flow quota corresponding to the target user information to the client equipment according to the flow quota request and the target write-in attribute so that the client equipment executes write operation according to the target flow quota.
Optionally, the issuing, according to the traffic quota request and the target write attribute, a target traffic quota corresponding to the target user information to the client device includes:
determining a traffic quota corresponding to a traffic threshold of the target user information according to the traffic quota request and the target write attribute;
judging whether the flow quota is used in the current preset period;
if the traffic quota is not used, taking the traffic quota as the target traffic quota;
if the flow quota is used, determining the relation between the used flow quota and zero;
and if the flow quota is larger than zero, using the used flow quota as the target flow quota, and issuing the target flow quota to the client device, wherein the used flow quota is a quota quantity obtained by subtracting the used flow quota from the flow quota.
Optionally, after receiving the traffic quota request sent by the client device based on the target user information, the method further includes:
judging whether the target user information corresponding to the client equipment is legal information or not;
and if the information is legal, executing the step of determining the target writing attribute corresponding to the target user information according to the corresponding relation.
Optionally, after issuing, to the client device, a target traffic quota corresponding to the target user information according to the traffic quota request and the target write attribute, the method further includes:
receiving a write-in data volume corresponding to the target user information and sent by the client equipment;
and calculating the total amount of data written in the current preset period.
Optionally, after issuing, to the client device, a target traffic quota corresponding to the target user information according to the traffic quota request and the target write attribute, the method further includes:
receiving a remaining traffic quota sent by the client device, where the remaining traffic quota is a traffic quota remaining after the client device completes the write operation.
Optionally, after issuing, to the client device, a target traffic quota corresponding to the target user information according to the traffic quota request and the target write attribute, the method further includes:
the client device executes the write operation according to the target flow quota;
judging whether the target flow quota is used completely;
and if the target flow quota is used completely and the write operation is not executed and completed, sending a new flow quota request to the metadata server in a next preset period so as to complete the write operation.
The application provides a traffic quota device, including:
the corresponding relation receiving module is used for receiving the corresponding relation between the user information and the write-in attribute sent by the client equipment by the metadata server, wherein the write-in attribute comprises a preset period and a flow threshold of the write-in data in the preset period;
a target write-in attribute determination module, configured to receive a traffic quota request sent by the client device based on target user information, and determine a target write-in attribute corresponding to the target user information according to the correspondence;
and the target flow quota issuing module is used for issuing a target flow quota corresponding to the target user information to the client equipment according to the flow quota request and the target write-in attribute so that the client equipment executes write operation according to the target flow quota.
The application provides a traffic quota system, comprising:
the client device is used for sending a corresponding relation between user information and a write attribute, wherein the write attribute comprises a preset period and a flow threshold of write data in the preset period, sending a flow quota request based on target user information, and executing write operation according to a target flow quota;
the metadata server is used for receiving the corresponding relation; receiving the flow quota request, and determining a target write-in attribute corresponding to the client device according to the corresponding relation; and issuing the obtained target flow quota corresponding to the target user information to the client equipment according to the flow quota request and the target write-in attribute.
The application provides an electronic device, including:
a memory for storing a computer program;
a processor configured to implement the steps of the above-mentioned traffic quota method when executing the computer program.
The present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the above-described traffic quota method
The application provides a traffic quota method, which comprises the following steps: the metadata server receives a corresponding relation between user information and a write-in attribute sent by client equipment, wherein the write-in attribute comprises a preset period and a flow threshold of write-in data in the preset period; receiving a flow quota request sent by client equipment based on target user information, and determining a target write-in attribute corresponding to the target user information according to the corresponding relation; and issuing a target flow quota corresponding to the target user information to the client equipment according to the flow quota request and the target write-in attribute so that the client equipment executes write operation according to the target flow quota.
According to the method and the device, a storage management mode that the written-in flow of each user in the preset period is limited and the written-in flow is limited is established according to the corresponding relation between the user information and the written-in attributes, and when a flow quota request sent by the client device based on the target user information is received, the target flow quota is determined according to the corresponding relation and the target written-in attributes corresponding to the target user information, so that the situation that a single user writes in excessive data in the preset period is avoided, and the user experience is improved. The application also provides a flow quota device, a flow quota system, an electronic device and a computer-readable storage medium, which have the above beneficial effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a traffic quota method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a process of issuing a target traffic quota according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a traffic quota apparatus according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
A user quota function in a distributed storage system is a storage mechanism that manages the allowed capacity of a particular user of the system. The existing user capacity quota function limits the total capacity of the equipment, so that the problem that a large amount of data of the equipment is written at a certain moment and the writing situation of other equipment cannot be written is easily caused. Based on the foregoing technical problem, this embodiment provides a traffic quota method, and specifically please refer to fig. 1, where fig. 1 is a flowchart of a traffic quota method provided in this embodiment, and specifically includes:
s110, the metadata server receives the corresponding relation between the user information sent by the client device and the write-in attribute, wherein the write-in attribute comprises a preset period and a flow threshold of write-in data in the preset period.
In this embodiment, the execution subject is a metadata server. The client device sets a flow control attribute, i.e. a write attribute, for a specified user, and the unique user information representing the user may be user ID, user IP, or user-defined setting, as long as the user can be uniquely represented. It is understood that when the user includes a, b, c, a first write attribute is set for the user a, and the first write attribute includes a first preset period and a first traffic threshold; setting a second writing attribute for the user b, wherein the second writing attribute comprises a second preset period and a second flow threshold; and setting a third write attribute for the user c, wherein the third write attribute comprises a third preset period and a third flow threshold. The client device sends the corresponding relation to the metadata server, and the metadata server manages the corresponding relation in a unified mode. It can be understood that, by defining the flow threshold of the written data in the preset period for the user corresponding to the user information, it can be ensured that other users can successfully write data in the same time, and the network pressure is balanced.
And S120, receiving a flow quota request sent by the client device based on the target user information, and determining a target write attribute corresponding to the target user information according to the corresponding relationship.
In this embodiment, the number of times that the received traffic quota request corresponding to the target user information is within the current preset period is not limited, and the number of times may be the first time or the first time. And after receiving the flow quota request, determining a target write-in attribute corresponding to the target user information according to the corresponding relation, wherein the target write-in attribute comprises a corresponding flow threshold value. It should be noted that, in order to avoid frequent interaction with the metadata server, before writing data, the client device pre-applies for a certain amount of available space from the metadata server, and if the space is available, the client device allows the writing, otherwise, the client device waits until the next cycle to write.
Further, after receiving a traffic quota request sent by the client device based on the target user information, the method further includes: judging whether the target user information corresponding to the client equipment is legal information or not; and if the information is legal, determining the target writing attribute corresponding to the target user information according to the corresponding relation. It can be understood that, even if the target user information is included in the correspondence relationship, when the target user corresponding to the target user information is restricted to be unable to perform the data writing operation within a certain time, the target user information is illegal information within the current time, and then unable to perform the subsequent operation, and when the target user information is legal information, then perform the subsequent operation. Therefore, the safety of writing data is improved by judging whether the target user information is legal information.
And S130, issuing a target flow quota corresponding to the target user information to the client equipment according to the flow quota request and the target write-in attribute so that the client equipment executes write operation according to the target flow quota.
In an implementation manner, a target traffic quota is further defined, please refer to fig. 2, and fig. 2 is a schematic flow chart of the target traffic quota, which includes:
s131, determining a flow quota corresponding to the flow threshold of the target user information according to the flow quota request and the target write attribute.
The traffic quota corresponds to a traffic threshold. The traffic quota is a maximum written traffic value allowed by the target user corresponding to the target user information in the current preset period.
S132, judging whether the flow quota is used in the current preset period.
In this embodiment, it is determined whether the traffic quota is used in the current preset period, and it is understood that the client device corresponding to the target user information using the traffic quota may include the client device related in this embodiment, and of course, other client devices may also log in the target user information to implement the data write-in operation.
S133, if the traffic quota is not used, setting the traffic quota as the target traffic quota.
And S134, if the traffic quota is used, determining the relation between the used traffic quota and zero.
It can be understood that when the traffic quota is used, there are two situations, the first is that the traffic quota is zero after use, and the second is that the traffic quota is greater than zero after use.
And S135, if the flow quota is larger than zero, using the used flow quota as a target flow quota, and issuing the target flow quota to the client device, wherein the used flow quota is a quota quantity obtained by subtracting the used flow quota from the flow quota. If equal to zero, the process is stopped.
It can be understood that, in this embodiment, the user side sets a total capacity, i.e., a traffic threshold, that the specified user, i.e., the user information, allows to write data in a unit time, i.e., a preset period. When setting a write attribute for user information, a client needs to specify two parameters, namely a preset period and a flow threshold. And the system records the total amount S of data written in the statistical period, and when S is smaller than the set flow threshold, the data can be continuously written in the system based on the target user information in the preset period, otherwise, the user is prohibited from continuously writing until the next statistical period starts. In the statistical period, the data volume written by each client device by using the target user information is uniformly reported to the metadata server, so that the accuracy of data statistics is ensured. When each client device writes data, it needs to apply for an available flow quota from the metadata manager, and when the available flow quota in a preset period is exhausted, a user is set to prohibit the write request in the preset period. And after one preset period is finished, issuing an available flow quota to the user again according to the specified flow threshold value, and controlling the data writing in the next preset period. And after the user prohibits writing in the previous preset period, allowing to continuously write data in a new preset period.
The conventional user capacity quota management method cannot limit the write volume of a specified user in unit time, which cannot be applied to an application scenario in which the write flow of the user needs to be limited. The embodiment allows the available flow threshold of the user in the preset period to be specified, so that the data flow threshold written by the user in a certain preset period can be conveniently controlled. The use scenes of the user quota are enriched, and the effect of improving the experience of the user by meeting the use condition of the special scene of the user can be better achieved.
Further, after issuing the target traffic quota corresponding to the target user information to the client device according to the traffic quota request and the target write attribute, the method further includes: receiving a write-in data volume corresponding to target user information sent by client equipment; and calculating the total amount of data written in the current preset period.
Each client device records the written data volume written by the target user information under the client device, the recording mode can be a quantitative mode and a timing mode, and then the written data volume is reported to the metadata server, and the metadata server counts the total written data volume of all the clients in the current preset period. The data is recorded, so that the user can conveniently check related information, and the purpose of tracing is achieved.
Further, after issuing the target traffic quota corresponding to the target user information to the client device according to the traffic quota request and the target write attribute, the method further includes: and receiving a residual flow quota sent by the client device, wherein the residual flow quota is a flow quota remaining after the client device completes the write operation.
If the target flow quota applied by the client device is not used up, the client device does not have continuous write operation, and the client device needs to return the remaining flow quota to the metadata server for use by other clients.
Further, after issuing the target traffic quota corresponding to the target user information to the client device according to the traffic quota request and the target write attribute, the method further includes: the client device executes write operation according to the target flow quota; judging whether the target flow quota is used completely; and if the target flow quota is used completely and the write operation is not completed, sending a new flow quota request to the metadata server in the next preset period so as to complete the write operation.
In this embodiment, the total flow of data written to the user corresponding to the target user information is not limited, but the total flow of data written in the preset period is limited, that is, the flow threshold value. Writing is not allowed until a new traffic threshold is entered. By the method, the situation that a user writes too much data in unit time can be avoided, and the use scenes of storage management are further enriched.
Based on the above technical solution, in this embodiment, a storage management manner is established, in which a traffic written in a preset period is defined for each user according to a corresponding relationship between user information and a write-in attribute, and the write-in traffic is limited, and when a traffic quota request sent by the client device based on target user information is received, a target traffic quota is determined according to the corresponding relationship and the target write-in attribute corresponding to the target user information, so that a situation that a single user writes in excessive data in the preset period is avoided, and user experience is improved.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a traffic quota device provided in an embodiment of the present application, where the traffic quota device described below and the traffic quota method described above may be referred to in a corresponding manner, and the relevant modules are all disposed in a metadata server, and the traffic quota device provided in the embodiment of the present application includes:
a corresponding relationship receiving module 310, configured to receive, by a metadata server, a corresponding relationship between user information and a write attribute sent by a client device, where the write attribute includes a preset period and a traffic threshold of write data in the preset period;
a target write attribute determining module 320, configured to receive a traffic quota request sent by the client device based on the target user information, and determine a target write attribute corresponding to the target user information according to the correspondence;
and the target traffic quota issuing module 330 is configured to issue a target traffic quota corresponding to the target user information to the client device according to the traffic quota request and the target write attribute, so that the client device executes a write operation according to the target traffic quota.
Further, the target traffic quota issuing module 330 includes:
the flow quota determining unit is used for determining a flow quota corresponding to the flow threshold of the target user information according to the flow quota request and the target write-in attribute;
the judging unit is used for judging whether the flow quota is used in the current preset period;
a first target traffic quota determining unit, configured to, if the traffic quota is not used, use the traffic quota as a target traffic quota;
a relationship determining unit, configured to determine, if the traffic quota is used, a relationship between the used traffic quota and zero;
and the second target flow quota determining unit is used for taking the used flow quota as the target flow quota if the used flow quota is larger than zero, and issuing the target flow quota to the client device, wherein the used flow quota is a quota quantity obtained by subtracting the used flow quota from the flow quota.
Further, the method also comprises the following steps:
the judging module is used for judging whether the target user information corresponding to the client equipment is legal information or not;
and the execution module is used for executing the step of determining the target writing attribute corresponding to the target user information according to the corresponding relation if the information is legal.
Further, the method also comprises the following steps:
the receiving module is used for receiving the written data volume sent by the client equipment;
and the calculation module is used for calculating the total written data amount of the client equipment in the current preset period.
Further, the method also comprises the following steps:
and the residual flow quota receiving module is used for receiving the residual flow quota sent by the client device, and the residual flow quota is the flow quota left after the client device executes the write operation.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
In the following, a traffic quota system provided in an embodiment of the present application is introduced, and the traffic quota system described below and the method described above may be referred to correspondingly.
The present embodiment provides a traffic quota system, including:
the client device is used for sending a corresponding relation between the user information and the write attribute, the write attribute comprises a preset period and a flow threshold of write data in the preset period, sending a flow quota request based on the target user information, and executing write operation according to the target flow quota;
a metadata server for receiving the corresponding relationship; receiving a flow quota request, and determining a target write-in attribute corresponding to the client device according to the corresponding relation; and issuing the obtained target flow quota corresponding to the target user information to the client equipment according to the flow quota request and the target write-in attribute.
Since the embodiment of the traffic quota system portion and the embodiment of the method portion correspond to each other, please refer to the description of the embodiment of the method portion for the embodiment of the traffic quota system portion, which is not repeated here.
In the following, an electronic device provided in an embodiment of the present application is introduced, and the electronic device described below and the traffic quota method described above may be referred to correspondingly.
The present embodiment provides an electronic device, including:
a memory for storing a computer program;
a processor for implementing the steps of the above-described traffic quota method when executing a computer program.
Since the embodiment of the electronic device portion corresponds to the embodiment of the traffic quota method portion, please refer to the description of the embodiment of the traffic quota method portion for the embodiment of the electronic device portion, which is not described herein again.
In the following, a computer-readable storage medium provided in an embodiment of the present application is introduced, and the computer-readable storage medium described below and the traffic quota method described above may be referred to correspondingly.
The present embodiment provides a computer-readable storage medium, on which a computer program is stored, and when being executed by a processor, the computer program implements the steps of the above-mentioned traffic quota method.
Since the embodiment of the computer-readable storage medium portion corresponds to the embodiment of the traffic quota method portion, for the embodiment of the computer-readable storage medium portion, refer to the description of the embodiment of the traffic quota method portion, which is not repeated here.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
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 application.
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. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
A flow quota method, a flow quota device, a flow quota system, an electronic device, and a computer-readable storage medium provided by the present application are described in detail above. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.

Claims (10)

1. A method of traffic quota, comprising:
the method comprises the steps that a metadata server receives a corresponding relation between user information and a write-in attribute sent by client equipment, wherein the write-in attribute comprises a preset period and a flow threshold of write-in data in the preset period;
receiving a flow quota request sent by the client device based on target user information, and determining a target write-in attribute corresponding to the target user information according to the corresponding relation;
and issuing a target flow quota corresponding to the target user information to the client equipment according to the flow quota request and the target write-in attribute so that the client equipment executes write operation according to the target flow quota.
2. The traffic quota method of claim 1, wherein the issuing, to the client device, a target traffic quota corresponding to the target user information according to the traffic quota request and the target write attribute comprises:
determining a traffic quota corresponding to a traffic threshold of the target user information according to the traffic quota request and the target write attribute;
judging whether the flow quota is used in the current preset period;
if the traffic quota is not used, taking the traffic quota as the target traffic quota;
if the flow quota is used, determining the relation between the used flow quota and zero;
and if the flow quota is larger than zero, using the used flow quota as the target flow quota, and issuing the target flow quota to the client device, wherein the used flow quota is a quota quantity obtained by subtracting the used flow quota from the flow quota.
3. The traffic quota method of claim 1, wherein after receiving the traffic quota request sent by the client device based on the target user information, the method further comprises:
judging whether the target user information corresponding to the client equipment is legal information or not;
and if the information is legal, executing the step of determining the target writing attribute corresponding to the target user information according to the corresponding relation.
4. The traffic quota method according to claim 1, wherein after issuing a target traffic quota corresponding to the target user information to the client device according to the traffic quota request and the target write attribute, the method further comprises:
receiving a write-in data volume corresponding to the target user information and sent by the client equipment;
and calculating the total amount of data written in the current preset period.
5. The traffic quota method according to claim 1, wherein after issuing a target traffic quota corresponding to the target user information to the client device according to the traffic quota request and the target write attribute, the method further comprises:
receiving a remaining traffic quota sent by the client device, where the remaining traffic quota is a traffic quota remaining after the client device completes the write operation.
6. The traffic quota method according to claim 1, wherein after issuing a target traffic quota corresponding to the target user information to the client device according to the traffic quota request and the target write attribute, the method further comprises:
the client device executes the write operation according to the target flow quota;
judging whether the target flow quota is used completely;
and if the target flow quota is used completely and the write operation is not executed and completed, sending a new flow quota request to the metadata server in a next preset period so as to complete the write operation.
7. A traffic quota apparatus, comprising:
the corresponding relation receiving module is used for receiving the corresponding relation between the user information and the write-in attribute sent by the client equipment by the metadata server, wherein the write-in attribute comprises a preset period and a flow threshold of the write-in data in the preset period;
a target write-in attribute determination module, configured to receive a traffic quota request sent by the client device based on target user information, and determine a target write-in attribute corresponding to the target user information according to the correspondence;
and the target flow quota issuing module is used for issuing a target flow quota corresponding to the target user information to the client equipment according to the flow quota request and the target write-in attribute so that the client equipment executes write operation according to the target flow quota.
8. A traffic quota system, comprising:
the client device is used for sending a corresponding relation between user information and a write attribute, wherein the write attribute comprises a preset period and a flow threshold of write data in the preset period, sending a flow quota request based on target user information, and executing write operation according to a target flow quota;
the metadata server is used for receiving the corresponding relation; receiving the flow quota request, and determining a target write-in attribute corresponding to the client device according to the corresponding relation; and issuing the obtained target flow quota corresponding to the target user information to the client equipment according to the flow quota request and the target write-in attribute.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor configured to implement the steps of the traffic quota method according to any of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, performs the steps of the traffic quota method according to any of claims 1 to 5.
CN201911379260.3A 2019-12-27 2019-12-27 Flow quota method, device, system and equipment and readable storage medium Withdrawn CN111176569A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911379260.3A CN111176569A (en) 2019-12-27 2019-12-27 Flow quota method, device, system and equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911379260.3A CN111176569A (en) 2019-12-27 2019-12-27 Flow quota method, device, system and equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN111176569A true CN111176569A (en) 2020-05-19

Family

ID=70650391

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911379260.3A Withdrawn CN111176569A (en) 2019-12-27 2019-12-27 Flow quota method, device, system and equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111176569A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111901253A (en) * 2020-07-28 2020-11-06 平安科技(深圳)有限公司 Flow control method, flow control device, flow control medium and electronic equipment for storage system
CN112000280A (en) * 2020-07-30 2020-11-27 浪潮电子信息产业股份有限公司 Quota control method and system
CN113285884A (en) * 2021-07-19 2021-08-20 阿里云计算有限公司 Flow control method and system
CN113852589A (en) * 2020-06-28 2021-12-28 华为技术有限公司 Method, apparatus and medium for data transmission and data reception
CN114390058A (en) * 2022-02-24 2022-04-22 百果园技术(新加坡)有限公司 Service management system, method, device and storage medium
CN114978998A (en) * 2021-02-26 2022-08-30 中移(苏州)软件技术有限公司 Flow control method, device, terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104158858A (en) * 2014-07-29 2014-11-19 浪潮(北京)电子信息产业有限公司 Method and system for accessing distributed cluster file system
CN106202262A (en) * 2016-06-29 2016-12-07 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN107682280A (en) * 2017-09-22 2018-02-09 郑州云海信息技术有限公司 The method, apparatus and equipment of QOS flows control based on NFS
CN107729417A (en) * 2017-09-27 2018-02-23 郑州云海信息技术有限公司 A kind of quota gives back implementation method, device, equipment and computer-readable storage medium
CN109656877A (en) * 2018-12-12 2019-04-19 郑州云海信息技术有限公司 A kind of method, apparatus and distributed file system of user file quota

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104158858A (en) * 2014-07-29 2014-11-19 浪潮(北京)电子信息产业有限公司 Method and system for accessing distributed cluster file system
CN106202262A (en) * 2016-06-29 2016-12-07 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN107682280A (en) * 2017-09-22 2018-02-09 郑州云海信息技术有限公司 The method, apparatus and equipment of QOS flows control based on NFS
CN107729417A (en) * 2017-09-27 2018-02-23 郑州云海信息技术有限公司 A kind of quota gives back implementation method, device, equipment and computer-readable storage medium
CN109656877A (en) * 2018-12-12 2019-04-19 郑州云海信息技术有限公司 A kind of method, apparatus and distributed file system of user file quota

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
周浩等: "Quota Server配额管理好帮手", 《微电脑世界》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113852589A (en) * 2020-06-28 2021-12-28 华为技术有限公司 Method, apparatus and medium for data transmission and data reception
CN113852589B (en) * 2020-06-28 2023-10-24 华为技术有限公司 Method, apparatus and medium for data transmission and data reception
CN111901253A (en) * 2020-07-28 2020-11-06 平安科技(深圳)有限公司 Flow control method, flow control device, flow control medium and electronic equipment for storage system
CN111901253B (en) * 2020-07-28 2022-06-14 平安科技(深圳)有限公司 Flow control method, flow control device, flow control medium and electronic equipment for storage system
CN112000280A (en) * 2020-07-30 2020-11-27 浪潮电子信息产业股份有限公司 Quota control method and system
CN114978998A (en) * 2021-02-26 2022-08-30 中移(苏州)软件技术有限公司 Flow control method, device, terminal and storage medium
CN114978998B (en) * 2021-02-26 2023-12-12 中移(苏州)软件技术有限公司 Flow control method, device, terminal and storage medium
CN113285884A (en) * 2021-07-19 2021-08-20 阿里云计算有限公司 Flow control method and system
CN113285884B (en) * 2021-07-19 2022-01-25 阿里云计算有限公司 Flow control method and system
CN114390058A (en) * 2022-02-24 2022-04-22 百果园技术(新加坡)有限公司 Service management system, method, device and storage medium
CN114390058B (en) * 2022-02-24 2024-03-08 百果园技术(新加坡)有限公司 Service management system, method, device and storage medium

Similar Documents

Publication Publication Date Title
CN111176569A (en) Flow quota method, device, system and equipment and readable storage medium
CN107276827B (en) Method and device for realizing Qos in distributed storage system
CN108874324B (en) Access request processing method, device, equipment and readable storage medium
CN111030936A (en) Current-limiting control method and device for network access and computer-readable storage medium
CN110930291B (en) GPU video memory management control method and related device
CN110471749A (en) Task processing method, device, computer readable storage medium and computer equipment
WO2022016845A1 (en) Multi-node monitoring method and apparatus, electronic device, and storage medium
CN112333282A (en) Service providing method, device, medium and electronic equipment based on hybrid cloud
CN107196949A (en) The system for limiting same user account registration terminal quantity
CN109063210B (en) Resource object query method, device, equipment and storage medium of storage system
WO2021128897A1 (en) Method, apparatus and device for creating thick-provisioned volume, and medium
CN111355611A (en) Plan drilling method and device and computer readable storage medium
CN107704328A (en) Client accesses method, system, device and the storage medium of file system
WO2020107368A1 (en) Information recommending method and apparatus, and device and readable storage medium
CN106357557A (en) Message processing method and device
CN112416245B (en) Storage volume management method based on multi-architecture container cloud platform and related components
CN109656945A (en) A kind of information processing method
CN105488202B (en) A kind of distributed file system performance bottleneck localization method, device and system
WO2016184199A1 (en) File management method, equipment and system
CN113391834A (en) Data updating method and device, electronic equipment and storage medium
CN110046082B (en) IO characteristic information processing method, IO characteristic information acquisition method and related device
CN111104381A (en) Log management method, device and equipment and computer readable storage medium
CN112181575A (en) Display control system, method and device
CN113467720B (en) Load balancing method and device, readable storage medium and electronic equipment
US20220164466A1 (en) Service platform user privilege management method and computer apparatus

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20200519

WW01 Invention patent application withdrawn after publication