CN103731453A - Quota administration method and device for service resources in cloud environment - Google Patents

Quota administration method and device for service resources in cloud environment Download PDF

Info

Publication number
CN103731453A
CN103731453A CN201210387952.4A CN201210387952A CN103731453A CN 103731453 A CN103731453 A CN 103731453A CN 201210387952 A CN201210387952 A CN 201210387952A CN 103731453 A CN103731453 A CN 103731453A
Authority
CN
China
Prior art keywords
service source
quotas administered
quota
quotas
minute
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
CN201210387952.4A
Other languages
Chinese (zh)
Other versions
CN103731453B (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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201210387952.4A priority Critical patent/CN103731453B/en
Publication of CN103731453A publication Critical patent/CN103731453A/en
Application granted granted Critical
Publication of CN103731453B publication Critical patent/CN103731453B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a quota administration method and device for service resources in a cloud environment. The quota administration method includes the following steps: a first quota administration module in multiple quota administration modules receives resource consumption data of the service resources; a quota administration type of the service resources is judged; if the quota administration type is minute quota administration, a consumption sum is compared with minute quotas of the service resources, and if a consumption sum excesses the minute quota administration, a blacklist of the service resources is arranged in a cache; if the quota administration type is month/year quota administration, the consumption sum is compared with month/year quotas of the service resources, and if the consumption sum excesses the month/year quotas, a blacklist of the service resources is arranged in the cache, and the consumption sum is updated into a database; if the quota administration type is perpetual quota administration, the resource consumption data are recorded. According to the method in the embodiment, general and unified quota administration on the multiple service resources can be achieved, the development amount of each service system can be reduced, and the complexity of quota location can be reduced.

Description

The quota management method of the Service Source in cloud environment and device
Technical field
The present invention relates to Internet technical field, relate in particular to quota management method and the device of the Service Source in a kind of cloud environment.
Background technology
The userbase having along with various open cloud platforms goes from strength to strength and the value volume and range of product of cloud application grows with each passing day, and the resources such as storage that each cloud service system of rear end consumes, calculating all relate to the problems such as resource consumption statistics, quota control and distribution, the monitoring of attack protection/abuse.
At present, each cloud service system need to carry out resource consumption management separately, and as deposited user and all resource number in database, binding consumption behavior is followed the tracks of, or whether periodic polling inspection exceeds the quata etc.Or the independent resource statistics center of open cloud Platform deployment, for the Expenditure Levels of memory value unit and the analyzing virtual resource of leading subscriber.
The problem existing is at present, the method of resources definition, consumption statistics, Quota distribution and the adjustment of different cloud service systems is different, not identical to the monitoring granularity of service condition yet, the Processing Interface that offers front end can not be unified, the management of carrying out high in the clouds resource based on user's granularity has been brought to a lot of obstacles and unnecessary trouble, can not effectively the user of indivedual abuse resources be taken precautions against and be processed simultaneously.
Summary of the invention
The present invention is intended at least one of solve the problems of the technologies described above.
For this reason, one object of the present invention is to propose the quota management method of the Service Source in a kind of cloud environment, the method can realize the quotas administered that multiple Service Sources are general and unified, reduces the exploitation amount of each service system, reduces location quota problem complexity.
Another object of the present invention is to propose the quotas administered device of the Service Source in a kind of cloud environment.
To achieve these goals, according to the quota management method of the Service Source in the cloud environment of the embodiment of first aspect present invention, comprise the following steps: the first quotas administered module in multiple quotas administered modules receives the resource consumption data of described Service Source; Described the first quotas administered module judges that the quotas administered of described Service Source is a minute quotas administered, the quotas administered of the moon/year or permanent quotas administered; If minute quotas administered, described the first quotas administered module reads the consumption total value of described Service Source and adds the above resource consumption data to obtain the consumption summation of described resource from buffer memory, a minute quota for described consumption summation and described Service Source is compared, if exceeded described minute quota, the blacklist of described Service Source is set in described buffer memory; If month/year quotas administered, described the first quotas administered module reads the consumption total value of described Service Source and adds the above resource consumption data to obtain the consumption summation of described resource from buffer memory, the moon/year quota of described consumption summation and described Service Source is compared, if exceeded described month/year quota, the blacklist of described Service Source be set in described buffer memory and described consumption summation is updated to database; And if permanent quotas administered, resource consumption data described in described the first quotas administered module records.
According to the quota management method of the Service Source in the cloud environment of the embodiment of the present invention, can realize the quotas administered that multiple Service Sources are general and unified, reduce the exploitation amount of each service system, reduce location quota problem complexity, for the lease service of cloud platform release cloud resource, payment systems etc. lay the foundation, simultaneously by (minute quotas administered of division cycle, month/year quotas administered and permanent quotas administered) quota resource is carried out to fine granularity management, and use buffer memory and data-base recording and storage, can provide each service to need the Quota Usage inquiry of paying close attention to, monitoring, control functions such as sealing/lift a ban.
To achieve these goals, according to the quotas administered device of the Service Source in the cloud environment of the embodiment of second aspect present invention, described quotas administered device comprises multiple quotas administered modules, wherein, each quotas administered module comprises: receiving element, and described receiving element is for receiving the resource consumption data of described Service Source; Judging unit, described judging unit is for judging that the quotas administered of described Service Source is a minute quotas administered, the quotas administered of the moon/year or permanent quotas administered; The first reading unit, described the first reading unit is for when minute quotas administered, from buffer memory, read the consumption total value of described Service Source and add the above resource consumption data to obtain the consumption summation of described resource, a minute quota for described consumption summation and described Service Source is compared, if exceeded described minute quota, the blacklist of described Service Source is set in described buffer memory; The second reading unit, described the second reading unit is for when the moon/year quotas administered, from buffer memory, read the consumption total value of described Service Source and add the above resource consumption data to obtain the consumption summation of described resource, the moon/year quota of described consumption summation and described Service Source is compared, if exceeded described month/year quota, the blacklist of described Service Source be set in described buffer memory and described consumption summation is updated to database; And record cell, described record cell is used for, when permanent quotas administered, recording described resource consumption data.
According to the quotas administered device of the Service Source in the cloud environment of the embodiment of the present invention, by multiple quotas administered modules, can realize the quotas administered that multiple Service Sources are general and unified, reduce the exploitation amount of each service system, reduce location quota problem complexity, for the lease service of cloud platform release cloud resource, payment systems etc. lay the foundation, simultaneously by (minute quotas administered of division cycle, month/year quotas administered and permanent quotas administered) quota resource is carried out to fine granularity management, and use buffer memory and data-base recording and storage, can provide each service to need the Quota Usage inquiry of paying close attention to, monitoring, control functions such as sealing/lift a ban.
The aspect that the present invention is additional and advantage in the following description part provide, and part will become obviously from the following description, or recognize by practice of the present invention.
Accompanying drawing explanation
The present invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments obviously and easily and understand, wherein,
Fig. 1 is the flow chart of the quota management method of the Service Source in cloud environment according to an embodiment of the invention;
Fig. 2 is the flow chart of the quota management method of the Service Source in the cloud environment of another embodiment according to the present invention;
Fig. 3 is the flow chart of the quota management method of the Service Source in cloud environment in accordance with another embodiment of the present invention;
Fig. 4 is the flow chart of the quota management method of the Service Source in the cloud environment of another embodiment according to the present invention;
Fig. 5 is according to the structured flowchart of the quotas administered module of the embodiment of the present invention;
Fig. 6 is according to the structured flowchart of the quotas administered module of further embodiment of this invention;
Fig. 7 is the structured flowchart of quotas administered module according to another embodiment of the present invention; And
Fig. 8 is the structured flowchart of quotas administered module according to yet another embodiment of the invention.
Embodiment
Describe embodiments of the invention below in detail, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has the element of identical or similar functions from start to finish.Below by the embodiment being described with reference to the drawings, be exemplary, only for explaining the present invention, and can not be interpreted as limitation of the present invention.On the contrary, embodiments of the invention comprise all changes, modification and the equivalent within the scope of spirit and the intension that falls into additional claims.
In description of the invention, it will be appreciated that, term " first ", " second " etc. are only for describing object, and can not be interpreted as indication or hint relative importance.In description of the invention, it should be noted that, unless otherwise clearly defined and limited, term " is connected ", " connection " should be interpreted broadly, and for example, can be to be fixedly connected with, and can be also to removably connect, or connects integratedly; Can be mechanical connection, can be also electrical connection; Can be to be directly connected, also can indirectly be connected by intermediary.For the ordinary skill in the art, can concrete condition understand above-mentioned term concrete meaning in the present invention.In addition,, in description of the invention, except as otherwise noted, the implication of " multiple " is two or more.
Any process of otherwise describing in flow chart or at this or method are described and can be understood to, represent to comprise that one or more is for realizing module, fragment or the part of code of executable instruction of step of specific logical function or process, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can be not according to order shown or that discuss, comprise according to related function by the mode of basic while or by contrary order, carry out function, this should be understood by embodiments of the invention person of ordinary skill in the field.
Below with reference to accompanying drawing, describe according to the quota management method of the Service Source in the cloud environment of the embodiment of the present invention and device.
A quota management method for Service Source in cloud environment, comprises the following steps: the first quotas administered module in multiple quotas administered modules receives the resource consumption data of Service Source; The first quotas administered module judges that the quotas administered of Service Source is a minute quotas administered, the quotas administered of the moon/year or permanent quotas administered; If minute quotas administered, the first quotas administered module reads the consumption total value of Service Source and adds that resource consumption data are to obtain the consumption summation of resource from buffer memory, a minute quota that consumes summation and Service Source is compared, if exceeded a minute quota, the blacklist of Service Source is set in buffer memory; If month/year quotas administered, the first quotas administered module reads the consumption total value of Service Source and adds that resource consumption data are to obtain the consumption summation of resource from buffer memory, the moon/year the quota that consumes summation and Service Source is compared, if exceeded month/year quota, the blacklist of Service Source be set in buffer memory and consumption summation is updated to database; And if permanent quotas administered, the first quotas administered module records resource consumption data.
Fig. 1 is the flow chart of the quota management method of the Service Source in cloud environment according to an embodiment of the invention.
As shown in Figure 1, according to the quota management method of the Service Source in the cloud environment of the embodiment of the present invention, comprise the steps.
Step S101, the first quotas administered module in multiple quotas administered modules receives the resource consumption data of Service Source.Wherein, Service Source can comprise that message queue service, database provide service, capture web service or off-line download service etc.
In one embodiment of the invention, quotas administered module is stateless, saving resource thus, and Configuration Manager can need to dispose arbitrarily according to user.
Step S102, the first quotas administered module judges that the quotas administered of Service Source is a minute quotas administered, the quotas administered of the moon/year or permanent quotas administered.
Particularly, the most important object of minute quota is attack protection, in the situation that particularly in the short time, user's Service Source consumption is very large, can make user stop using this Service Source a period of time; The moon/year quota is that user has applied for the Service Source quota in certain hour, allows user's legal use in this quota limit; Permanent no time limit of quota, not according to cycle zero clearing.
Step S103, if minute quotas administered, the first quotas administered module reads the consumption total value of Service Source and adds that resource consumption data are to obtain the consumption summation of resource from buffer memory, a minute quota that consumes summation and Service Source is compared, if exceeded a minute quota, the blacklist of Service Source is set in buffer memory.Wherein, can be by minute quota of configuration loading service resource.
Particularly, the first quotas administered module first according to resource consumption data at caching query and read the consumption total value of Service Source, for example can be take " time of resource name+resource consumption " as keyword at caching query and read to obtain consumption summation, then according to consuming summation, upgrade the resource consumption data of this resource at current point in time.Wherein, in minute quotas administered, the actual effect time of the buffer memory of the consumption total value of stores service resource is 1 minute, and the actual effect time that the buffer memory of the blacklist of Service Source is set is 5 minutes, and initial time is current time.
Step S104, if month/year quotas administered, the first quotas administered module reads the consumption total value of Service Source and adds that resource consumption data are to obtain the consumption summation of resource from buffer memory, the moon/year the quota that consumes summation and Service Source is compared, if exceeded month/year quota, the blacklist of Service Source be set in buffer memory and consumption summation is updated to database.
Wherein, also can be by the moon/year quota of configuration loading service resource, if can also read from database while not reading the consumption total value of Service Source in buffer memory.
Step S105, if permanent quotas administered, the first quotas administered module records resource consumption data.
According to the quota management method of the Service Source in the cloud environment of the embodiment of the present invention, can realize the quotas administered that multiple Service Sources are general and unified, reduce the exploitation amount of each service system, reduce location quota problem complexity, for the lease service of cloud platform release cloud resource, payment systems etc. lay the foundation, simultaneously by (minute quotas administered of division cycle, month/year quotas administered and permanent quotas administered) quota resource is carried out to fine granularity management, and use buffer memory and data-base recording and storage, can provide each service to need the Quota Usage inquiry of paying close attention to, monitoring, control functions such as sealing/lift a ban.
Fig. 2 is the flow chart of the quota management method of the Service Source in the cloud environment of another embodiment according to the present invention.
As shown in Figure 2, according to the quota management method of the Service Source in the cloud environment of the embodiment of the present invention, comprise the steps.
Step S201, the first quotas administered module in multiple quotas administered modules receives the resource consumption data of Service Source.Wherein, Service Source can comprise that message queue service, database provide service, capture web service or off-line download service etc.
In one embodiment of the invention, quotas administered module is stateless, saving resource thus, and Configuration Manager can be disposed arbitrarily as required.
Step S202, the first quotas administered module judges that the quotas administered of Service Source is a minute quotas administered, the quotas administered of the moon/year or permanent quotas administered.
Particularly, the most important object of minute quota is attack protection, in the situation that particularly in the short time, user's Service Source consumption is very large, can make user stop using this Service Source a period of time; The moon/year quota is that user has applied for the Service Source quota in certain hour, allows user's legal use in this quota limit; Permanent no time limit of quota, not according to cycle zero clearing.
Step S203, if minute quotas administered, the first quotas administered module reads the consumption total value of Service Source and adds that resource consumption data are to obtain the consumption summation of resource from buffer memory, a minute quota that consumes summation and Service Source is compared, if exceeded a minute quota, the blacklist of Service Source is set in buffer memory.Wherein, can be by minute quota of configuration loading service resource.
Particularly, the first quotas administered module first according to resource consumption data at caching query and read the consumption total value of Service Source, for example can be take " time of resource name+resource consumption " as keyword at caching query and read to obtain consumption summation, then according to consuming summation, upgrade the resource consumption data of this resource at current point in time.Wherein, in minute quotas administered, the actual effect time of the buffer memory of the consumption total value of stores service resource is 1 minute, and the actual effect time that the buffer memory of the blacklist of Service Source is set is 5 minutes, and initial time is current time.
Step S204, if month/year quotas administered, the first quotas administered module reads the consumption total value of Service Source and adds that resource consumption data are to obtain the consumption summation of resource from buffer memory, the moon/year the quota that consumes summation and Service Source is compared, if exceeded month/year quota, the blacklist of Service Source be set in buffer memory and consumption summation is updated to database.
Wherein, also can be by the moon/year quota of configuration loading service resource, if can also read from database while not reading the consumption total value of Service Source in buffer memory.
Step S205, if permanent quotas administered, the first quotas administered module records resource consumption data.
Step S206, is synchronized to multiple quotas administered modules by the blacklist of the Service Source in buffer memory.
According to the quota management method of the Service Source in the cloud environment of the embodiment of the present invention, the blacklist of the Service Source in buffer memory is synchronized to multiple quotas administered modules and makes the convenient management of quotas administered module.
Fig. 3 is the flow chart of the quota management method of the Service Source in cloud environment in accordance with another embodiment of the present invention.
As shown in Figure 3, according to the quota management method of the Service Source in the cloud environment of the embodiment of the present invention, comprise the steps.
Step S301, analyzes daily record data to obtain the resource consumption data of Service Source.
In one embodiment of the invention, daily record data can comprise title, number of request, inflow flow, outflow flow and the CPU time etc. of the affiliated system of daily record, Service Source.Daily record data can be used UAS(user agent server, subscriber proxy server) regulation form.
Step S302, sends to multiple quotas administered modules by the resource consumption data of Service Source.
Wherein, Service Source system can also directly send to corresponding consumption data multiple quotas administered modules.
Step S303, the first quotas administered module in multiple quotas administered modules receives the resource consumption data of Service Source.Wherein, Service Source can comprise that message queue service, database provide service, capture web service or off-line download service etc.
In one embodiment of the invention, quotas administered module is stateless, saving resource thus, and Configuration Manager can be disposed arbitrarily as required.
Step S304, the first quotas administered module judges that the quotas administered of Service Source is a minute quotas administered, the quotas administered of the moon/year or permanent quotas administered.
Particularly, the most important object of minute quota is attack protection, in the situation that particularly in the short time, user's Service Source consumption is very large, can make user stop using this Service Source a period of time; The moon/year quota is that user has applied for the Service Source quota in certain hour, allows user's legal use in this quota limit; Permanent no time limit of quota, not according to cycle zero clearing.
Step S305, if minute quotas administered, the first quotas administered module reads the consumption total value of Service Source and adds that resource consumption data are to obtain the consumption summation of resource from buffer memory, a minute quota that consumes summation and Service Source is compared, if exceeded a minute quota, the blacklist of Service Source is set in buffer memory.Wherein, can be by minute quota of configuration loading service resource.
Particularly, the first quotas administered module first according to resource consumption data at caching query and read the consumption total value of Service Source, for example can be take " time of resource name+resource consumption " as keyword at caching query and read to obtain consumption summation, then according to consuming summation, upgrade the resource consumption data of this resource at current point in time.Wherein, in minute quotas administered, the actual effect time of the buffer memory of the consumption total value of stores service resource is 1 minute, and the actual effect time that the buffer memory of the blacklist of Service Source is set is 5 minutes, and initial time is current time.
Step S306, if month/year quotas administered, the first quotas administered module reads the consumption total value of Service Source and adds that resource consumption data are to obtain the consumption summation of resource from buffer memory, the moon/year the quota that consumes summation and Service Source is compared, if exceeded month/year quota, the blacklist of Service Source be set in buffer memory and consumption summation is updated to database.
Wherein, also can be by the moon/year quota of configuration loading service resource, if can also read from database while not reading the consumption total value of Service Source in buffer memory.
Step S307, if permanent quotas administered, the first quotas administered module records resource consumption data.
Step S308, is synchronized to multiple quotas administered modules by the blacklist of the Service Source in buffer memory.
In one embodiment of the invention, step S308 is optional.
According to the quota management method of the Service Source in the cloud environment of the embodiment of the present invention, multiple quotas administered modules can obtain resource consumption data by daily record data etc.
Fig. 4 is the flow chart of the quota management method of the Service Source in the cloud environment of another embodiment according to the present invention.
As shown in Figure 4, according to the quota management method of the Service Source in the cloud environment of the embodiment of the present invention, comprise the steps.
Step S401, analyzes daily record data to obtain the resource consumption data of Service Source.
In one embodiment of the invention, daily record data can comprise title, number of request, inflow flow, outflow flow and the CPU time etc. of the affiliated system of daily record, Service Source.Daily record data can be used UAS(user agent server, subscriber proxy server) regulation form.
Step S402, sends to multiple quotas administered modules by the resource consumption data of Service Source.
Wherein, Service Source system can also directly send to corresponding consumption data multiple quotas administered modules.
Step S403, the first quotas administered module in multiple quotas administered modules receives the resource consumption data of Service Source.Wherein, Service Source can comprise that message queue service, database provide service, capture web service or off-line download service etc.
In one embodiment of the invention, quotas administered module is stateless, saving resource thus, and Configuration Manager can be disposed arbitrarily as required.
Step S404, the first quotas administered module judges that the quotas administered of Service Source is a minute quotas administered, the quotas administered of the moon/year or permanent quotas administered.
Particularly, the most important object of minute quota is attack protection, in the situation that particularly in the short time, user's Service Source consumption is very large, can make user stop using this Service Source a period of time; The moon/year quota is that user has applied for the Service Source quota in certain hour, allows user's legal use in this quota limit; Permanent no time limit of quota, not according to cycle zero clearing.
Step S405, if minute quotas administered, the first quotas administered module reads the consumption total value of Service Source and adds that resource consumption data are to obtain the consumption summation of resource from buffer memory, a minute quota that consumes summation and Service Source is compared, if exceeded a minute quota, the blacklist of Service Source is set in buffer memory.Wherein, can be by minute quota of configuration loading service resource.
Particularly, the first quotas administered module first according to resource consumption data at caching query and read the consumption total value of Service Source, for example can be take " time of resource name+resource consumption " as keyword at caching query and read to obtain consumption summation, then according to consuming summation, upgrade the resource consumption data of this resource at current point in time.Wherein, in minute quotas administered, the actual effect time of the buffer memory of the consumption total value of stores service resource is 1 minute, and the actual effect time that the buffer memory of the blacklist of Service Source is set is 5 minutes, and initial time is current time.
Step S406, if month/year quotas administered, the first quotas administered module reads the consumption total value of Service Source and adds that resource consumption data are to obtain the consumption summation of resource from buffer memory, the moon/year the quota that consumes summation and Service Source is compared, if exceeded month/year quota, the blacklist of Service Source be set in buffer memory and consumption summation is updated to database.
Wherein, also can be by the moon/year quota of configuration loading service resource, if can also read from database while not reading the consumption total value of Service Source in buffer memory.
Step S407, if permanent quotas administered, the first quotas administered module records resource consumption data.
Step S408, is synchronized to multiple quotas administered modules by the blacklist of the Service Source in buffer memory.
Step S409, to being provided with the Service Source of blacklist of Service Source, carries out and closes strategy.
In one embodiment of the invention, step S408 is optional.
In one embodiment of the invention, step S401 and step S402 are optional.
According to the quota management method of the Service Source in the cloud environment of the embodiment of the present invention, the Service Source implementation of the blacklist that is provided with Service Source is closed to strategy, can effectively the user of indivedual abuse resources be taken precautions against and be processed.
In order to realize above-described embodiment, the present invention also proposes the quotas administered device of the Service Source in a kind of cloud environment.
A quotas administered device for Service Source in cloud environment, quotas administered device comprises multiple quotas administered modules, wherein each quotas administered module comprises: receiving element, receiving element is for receiving the resource consumption data of Service Source; Judging unit, judging unit is for judging that the quotas administered of Service Source is a minute quotas administered, the quotas administered of the moon/year or permanent quotas administered; The first reading unit, the first reading unit is for when minute quotas administered, from buffer memory, read the consumption total value of Service Source and add that resource consumption data are to obtain the consumption summation of resource, a minute quota that consumes summation and Service Source is compared, if exceeded a minute quota, the blacklist of Service Source is set in buffer memory; The second reading unit, the second reading unit is for when the moon/year quotas administered, from buffer memory, read the consumption total value of Service Source and add that resource consumption data are to obtain the consumption summation of resource, the moon/year the quota that consumes summation and Service Source is compared, if exceeded month/year quota, the blacklist of Service Source be set in buffer memory and consumption summation is updated to database; And record cell, record cell is used for, when permanent quotas administered, recording resource consumption data.
Wherein, the quotas administered device of the Service Source in cloud environment can be disposed multiple quotas administered modules as required, each quotas administered module is parallel each other and is identical, illustrate quotas administered module below, by following quotas administered module, can understand the quotas administered device of the Service Source in cloud environment.
Fig. 5 is according to the structured flowchart of the quotas administered module of the embodiment of the present invention.
As shown in Figure 5, according to each quotas administered module of the embodiment of the present invention, comprise: receiving element 100, judging unit 200, the first reading unit 300, the second reading unit 400 and record cell 500.
Particularly, receiving element 100 is for receiving the resource consumption data of Service Source.Wherein, Service Source can comprise that message queue service, database provide service, capture web service or off-line download service etc.
Judging unit 200 is for judging that the quotas administered of Service Source is a minute quotas administered, the quotas administered of the moon/year or permanent quotas administered.Wherein, the most important object of minute quota is attack protection, in the situation that particularly in the short time, user's Service Source consumption is very large, can make user stop using this Service Source a period of time; The moon/year quota is that user has applied for the Service Source quota in certain hour, allows user's legal use in this quota limit; Permanent no time limit of quota, not according to cycle zero clearing.
The first reading unit 300 is for when minute quotas administered, from buffer memory, read the consumption total value of Service Source and add that resource consumption data are to obtain the consumption summation of resource, a minute quota that consumes summation and Service Source is compared, wherein, can be by minute quota of configuration loading service resource, if exceeded a minute quota, the blacklist of Service Source is set in buffer memory.More specifically, the first reading unit 300 first according to resource consumption data at caching query and read the consumption total value of Service Source, for example can be take " time of resource name+resource consumption " as keyword at caching query and read to obtain consumption summation, then according to consuming summation, upgrade the resource consumption data of this resource at current point in time.Wherein, in minute quotas administered, the actual effect time of the buffer memory of the consumption total value of stores service resource is 1 minute, and the actual effect time that the buffer memory of the blacklist of Service Source is set is 5 minutes, and initial time is current time.
The second reading unit 400 is for when the moon/year quotas administered, from buffer memory, read the consumption total value of Service Source and add that resource consumption data are to obtain the consumption summation of resource, the moon/year the quota that consumes summation and Service Source is compared, if exceeded month/year quota, the blacklist of Service Source be set in buffer memory and consumption summation is updated to database.Wherein, also can be by the moon/year quota of configuration loading service resource, if the second reading unit 400 can also read from database while not reading the consumption total value of Service Source in buffer memory.
Record cell 500, for when the permanent quotas administered, records resource consumption data.
According to the quotas administered device of the Service Source in the cloud environment of the embodiment of the present invention, by multiple quotas administered modules, can realize the quotas administered that multiple Service Sources are general and unified, reduce the exploitation amount of each service system, reduce location quota problem complexity, for the lease service of cloud platform release cloud resource, payment systems etc. lay the foundation, simultaneously by (minute quotas administered of division cycle, month/year quotas administered and permanent quotas administered) quota resource is carried out to fine granularity management, and use buffer memory and data-base recording and storage, can provide each service to need the Quota Usage inquiry of paying close attention to, monitoring, control functions such as sealing/lift a ban.
In one embodiment of the invention, quotas administered module is stateless, saving resource thus, and Configuration Manager can need to dispose arbitrarily according to user.
Fig. 6 is according to the structured flowchart of the quotas administered module of further embodiment of this invention.
As shown in Figure 6, on basis embodiment illustrated in fig. 5, according to each quotas administered module of the embodiment of the present invention, also comprise lock unit 600.
Particularly, lock unit 600 is for being synchronized to the blacklist of the Service Source of buffer memory multiple quotas administered modules.
According to the quotas administered device of the Service Source in the cloud environment of the embodiment of the present invention, by the lock unit of each quotas administered module, can conveniently manage.
Fig. 7 is the structured flowchart of quotas administered module according to another embodiment of the present invention.
As shown in Figure 7, on basis embodiment illustrated in fig. 6, according to each quotas administered module of the embodiment of the present invention, also comprise analytic unit 700 and transmitting element 800.
Particularly, analytic unit 700 is for analyzing daily record data to obtain the resource consumption data of Service Source.Wherein, daily record data can comprise the system under daily record, title, number of request, inflow flow, outflow flow and the CPU time etc. of Service Source, daily record data can be used UAS(user agent server, subscriber proxy server) regulation form.
Transmitting element 800 is for sending to multiple quotas administered modules by the resource consumption data of Service Source.Wherein, Service Source system can also directly send to corresponding consumption data multiple quotas administered modules.
In one embodiment of the invention, lock unit 600 is optional.
According to the quotas administered device of the Service Source in the cloud environment of the embodiment of the present invention, the analytic unit in multiple quotas administered modules and transmitting element can obtain resource consumption data by daily record data etc.
Fig. 8 is the structured flowchart of quotas administered module according to yet another embodiment of the invention.
As shown in Figure 8, on basis embodiment illustrated in fig. 7, according to each quotas administered module of the embodiment of the present invention, also comprise and close unit 900.
Particularly, close unit 900 for the Service Source to the blacklist that is provided with Service Source, carry out and close strategy.
In one embodiment of the invention, lock unit 600 is optional.
In one embodiment of the invention, analytic unit 700 and transmitting element 800 are optional.
According to the quotas administered device of the Service Source in the cloud environment of the embodiment of the present invention, closing unit and can effectively the user of indivedual abuse resources be taken precautions against and be processed in multiple quotas administered modules.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple steps or method can realize with being stored in software or the firmware carried out in memory and by suitable instruction execution system.For example, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: there is the discrete logic for data-signal being realized to the logic gates of logic function, there is the application-specific integrated circuit (ASIC) of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
In the description of this specification, the description of reference term " embodiment ", " some embodiment ", " example ", " concrete example " or " some examples " etc. means to be contained at least one embodiment of the present invention or example in conjunction with specific features, structure, material or the feature of this embodiment or example description.In this manual, the schematic statement of above-mentioned term is not necessarily referred to identical embodiment or example.And specific features, structure, material or the feature of description can be with suitable mode combination in any one or more embodiment or example.
Although illustrated and described embodiments of the invention, for the ordinary skill in the art, be appreciated that without departing from the principles and spirit of the present invention and can carry out multiple variation, modification, replacement and modification to these embodiment, scope of the present invention is by claims and be equal to and limit.

Claims (16)

1. a quota management method for the Service Source in cloud environment, is characterized in that, comprises the following steps:
The first quotas administered module in multiple quotas administered modules receives the resource consumption data of described Service Source;
Described the first quotas administered module judges that the quotas administered of described Service Source is a minute quotas administered, the quotas administered of the moon/year or permanent quotas administered;
If minute quotas administered, described the first quotas administered module reads the consumption total value of described Service Source and adds the above resource consumption data to obtain the consumption summation of described resource from buffer memory, a minute quota for described consumption summation and described Service Source is compared, if exceeded described minute quota, the blacklist of described Service Source is set in described buffer memory;
If month/year quotas administered, described the first quotas administered module reads the consumption total value of described Service Source and adds the above resource consumption data to obtain the consumption summation of described resource from buffer memory, the moon/year quota of described consumption summation and described Service Source is compared, if exceeded described month/year quota, the blacklist of described Service Source be set in described buffer memory and described consumption summation is updated to database; And
If permanent quotas administered, resource consumption data described in described the first quotas administered module records.
2. method according to claim 1, is characterized in that, further comprises step:
The blacklist of the described Service Source in described buffer memory is synchronized to described multiple quotas administered module.
3. method according to claim 1, is characterized in that, further comprises step:
Analyze daily record data to obtain the resource consumption data of described Service Source; And
The resource consumption data of described Service Source are sent to described multiple quotas administered module.
4. method according to claim 3, is characterized in that, described daily record data comprises title, number of request, inflow flow, outflow flow and the CPU time of the system under described daily record, described Service Source.
5. method according to claim 1, is characterized in that, further comprises step:
To being provided with the Service Source of blacklist of described Service Source, carry out and close strategy.
6. according to the method described in any one in claim 1 to 5, it is characterized in that, described quotas administered module is stateless.
7. according to the method described in any one in claim 1 to 5, it is characterized in that, described Service Source comprises that message queue service, database provide service, capture web service or off-line download service.
8. according to the method described in any one in claim 1 to 5, it is characterized in that, in minute quotas administered, the actual effect time of storing the buffer memory of the consumption total value of described Service Source is 1 minute, and the actual effect time that the buffer memory of the blacklist of described Service Source is set is 5 minutes.
9. a quotas administered device for the Service Source in cloud environment, is characterized in that, described quotas administered device comprises multiple quotas administered modules, and wherein, each quotas administered module comprises:
Receiving element, described receiving element is for receiving the resource consumption data of described Service Source;
Judging unit, described judging unit is for judging that the quotas administered of described Service Source is a minute quotas administered, the quotas administered of the moon/year or permanent quotas administered;
The first reading unit, described the first reading unit is for when minute quotas administered, from buffer memory, read the consumption total value of described Service Source and add the above resource consumption data to obtain the consumption summation of described resource, a minute quota for described consumption summation and described Service Source is compared, if exceeded described minute quota, the blacklist of described Service Source is set in described buffer memory;
The second reading unit, described the second reading unit is for when the moon/year quotas administered, from buffer memory, read the consumption total value of described Service Source and add the above resource consumption data to obtain the consumption summation of described resource, the moon/year quota of described consumption summation and described Service Source is compared, if exceeded described month/year quota, the blacklist of described Service Source be set in described buffer memory and described consumption summation is updated to database; And
Record cell, described record cell is used for, when permanent quotas administered, recording described resource consumption data.
10. device according to claim 9, is characterized in that, each quotas administered module further comprises:
Lock unit, described lock unit is for being synchronized to described multiple quotas administered module by the blacklist of the described Service Source of described buffer memory.
11. devices according to claim 9, is characterized in that, each quotas administered module further comprises step:
Analytic unit, described analytic unit is for analyzing daily record data to obtain the resource consumption data of described Service Source; And
Transmitting element, described transmitting element is for sending to described multiple quotas administered module by the resource consumption data of described Service Source.
12. devices according to claim 11, is characterized in that, described daily record data comprises title, number of request, inflow flow, outflow flow and the CPU time of the system under described daily record, described Service Source.
13. devices according to claim 9, is characterized in that, each quotas administered module further comprises:
Close unit, described in close unit for the Service Source to the blacklist that is provided with described Service Source, carry out and close strategy.
14. according to the device described in any one in claim 9 to 13, it is characterized in that, each quotas administered module is stateless.
15. according to the device described in any one in claim 9 to 13, it is characterized in that, described Service Source comprises that message queue service, database provide service, capture web service or off-line download service.
16. according to the device described in any one in claim 9 to 13, it is characterized in that, in minute quotas administered, the actual effect time of storing the buffer memory of the consumption total value of described Service Source is 1 minute, and the actual effect time that the buffer memory of the blacklist of described Service Source is set is 5 minutes.
CN201210387952.4A 2012-10-12 2012-10-12 Quota administration method and device for service resources in cloud environment Active CN103731453B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210387952.4A CN103731453B (en) 2012-10-12 2012-10-12 Quota administration method and device for service resources in cloud environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210387952.4A CN103731453B (en) 2012-10-12 2012-10-12 Quota administration method and device for service resources in cloud environment

Publications (2)

Publication Number Publication Date
CN103731453A true CN103731453A (en) 2014-04-16
CN103731453B CN103731453B (en) 2017-02-08

Family

ID=50455380

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210387952.4A Active CN103731453B (en) 2012-10-12 2012-10-12 Quota administration method and device for service resources in cloud environment

Country Status (1)

Country Link
CN (1) CN103731453B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534231A (en) * 2015-09-09 2017-03-22 阿里巴巴集团控股有限公司 Method, device and system for controlling use limit of network resources
CN107977773A (en) * 2017-11-10 2018-05-01 国云科技股份有限公司 A kind of method for the entry resource amount for managing multiple cloud platforms
CN109150593A (en) * 2018-08-01 2019-01-04 郑州云海信息技术有限公司 The management method and device of resource in cloud data system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1752977A (en) * 2004-09-24 2006-03-29 日本电气株式会社 File access service system, exchange apparatus, quota management method and program
CN101136900A (en) * 2006-10-16 2008-03-05 中兴通讯股份有限公司 Fast transparent fault shift device and implementing method facing to service
US20090300608A1 (en) * 2008-05-29 2009-12-03 James Michael Ferris Methods and systems for managing subscriptions for cloud-based virtual machines
CN101968859A (en) * 2010-09-29 2011-02-09 用友软件股份有限公司 Business process management method and system based on cloud computing environment
US20110179233A1 (en) * 2010-01-20 2011-07-21 Xyratex Technology Limited Electronic data store
CN102333103A (en) * 2010-07-12 2012-01-25 戴元顺 Cloud storage system
CN102387023A (en) * 2010-08-27 2012-03-21 中兴通讯股份有限公司 Charging method and system used for cloud computing
CN102447736A (en) * 2011-11-17 2012-05-09 华中科技大学 Management and control method for user quota in multi-network storage system
CN102594576A (en) * 2012-03-19 2012-07-18 广州亦云信息技术有限公司 Charging method based on cloud platform service

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1752977A (en) * 2004-09-24 2006-03-29 日本电气株式会社 File access service system, exchange apparatus, quota management method and program
CN101136900A (en) * 2006-10-16 2008-03-05 中兴通讯股份有限公司 Fast transparent fault shift device and implementing method facing to service
US20090300608A1 (en) * 2008-05-29 2009-12-03 James Michael Ferris Methods and systems for managing subscriptions for cloud-based virtual machines
US20110179233A1 (en) * 2010-01-20 2011-07-21 Xyratex Technology Limited Electronic data store
CN102333103A (en) * 2010-07-12 2012-01-25 戴元顺 Cloud storage system
CN102387023A (en) * 2010-08-27 2012-03-21 中兴通讯股份有限公司 Charging method and system used for cloud computing
CN101968859A (en) * 2010-09-29 2011-02-09 用友软件股份有限公司 Business process management method and system based on cloud computing environment
CN102447736A (en) * 2011-11-17 2012-05-09 华中科技大学 Management and control method for user quota in multi-network storage system
CN102594576A (en) * 2012-03-19 2012-07-18 广州亦云信息技术有限公司 Charging method based on cloud platform service

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
丛磊: "Sina App Engine架构——云计算时代的分布式Web服务解决方案", 《程序员》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534231A (en) * 2015-09-09 2017-03-22 阿里巴巴集团控股有限公司 Method, device and system for controlling use limit of network resources
CN106534231B (en) * 2015-09-09 2019-12-31 阿里巴巴集团控股有限公司 Method, device and system for controlling use limit of network resources
CN107977773A (en) * 2017-11-10 2018-05-01 国云科技股份有限公司 A kind of method for the entry resource amount for managing multiple cloud platforms
CN109150593A (en) * 2018-08-01 2019-01-04 郑州云海信息技术有限公司 The management method and device of resource in cloud data system

Also Published As

Publication number Publication date
CN103731453B (en) 2017-02-08

Similar Documents

Publication Publication Date Title
US10154153B2 (en) Application resource usage information
WO2019062304A1 (en) Method, device and system for managing computing resources of block chain node
CN108259421B (en) Statistical method and system for user activity
US9440548B2 (en) Method and system for managing and controlling electrical vehicle charging events
CN104574051A (en) Charging method and device
CN107995006A (en) Real-time Billing System based on message trigger under a kind of cloud environment
US20210400121A1 (en) Generalized resource accountant
CN103731453A (en) Quota administration method and device for service resources in cloud environment
CN113722276A (en) Log data processing method, system, storage medium and electronic equipment
CN111585798A (en) Network resource parameter configuration method, device and computer readable storage medium
CN102916959B (en) Blacklist synchronization method and device in cloud environment
CN103312623B (en) Task cooperation device and method
CN115202934A (en) Data backup method, device, equipment and storage medium
US11190603B2 (en) Intelligent sampling of data generated from usage of interactive digital properties
CN102843608B (en) Signal source utilization investigation method of smart television
Forshaw Operating policies for energy efficient large scale computing
CN109299020A (en) A kind of management method of disk buffering, device and computer readable storage medium
CN113127187A (en) Method and apparatus for cluster scale-up
Mihoob et al. Consumer-centric resource accounting in the cloud
CN109284304A (en) A kind of electronics based on caching technology goes out folk prescription method and terminal device
CN114282919B (en) Cloud sea resource charging dynamic cost analysis optimization method and system
CN104423975A (en) Data processing method and device
US20220321431A1 (en) Methods and systems for managing edge web services
Chen et al. 5G Charging Mechanism Based on Dynamic Step Size
Gešvindr Software Architecture Optimization in Cloud Applications

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant