CN109901923A - A kind of frequency limit method, frequency limit device and readable storage medium storing program for executing - Google Patents
A kind of frequency limit method, frequency limit device and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN109901923A CN109901923A CN201711284975.1A CN201711284975A CN109901923A CN 109901923 A CN109901923 A CN 109901923A CN 201711284975 A CN201711284975 A CN 201711284975A CN 109901923 A CN109901923 A CN 109901923A
- Authority
- CN
- China
- Prior art keywords
- quota
- global
- access request
- frequency limit
- shared drive
- 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
Links
Landscapes
- Memory System Of A Hierarchy Structure (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the present application discloses a kind of frequency limit method, frequency limit device and readable storage medium storing program for executing, for improving the processing capacity of frequency limit.The embodiment of the present application method includes: reception access request;Overall situation quota required for the access request is deducted from the first global quota of local shared drive, described first global quota is to generate after the global quota in the local shared drive deducts overall situation quota required for received access request, for global quota in the local shared drive with default global allocation of quota from the global frequencies limitation quota in caching component, the caching component is third party's caching component;Global verification is carried out to the access request and obtains check results, and executes phase application operating according to the check results.
Description
Technical field
This application involves computer field more particularly to a kind of frequency limit methods, frequency limit device and readable storage
Medium.
Background technique
Frequency limit is a kind of common anti-snowslide strategy in business development, when background system limited capacity or user can
When can carry out malicious requests using script, it is necessary to frequency control strategy is added, it in this way can be with crime prevention system under a large amount of requests
Overload, traffic affecting normal operation.
Current frequency limit is that adding up for access times is realized using Cloud KeyValue (ckv), and server receives
It requests, the value in the ckv that will add up, if accumulated value overfrequency limits value, will refuse this request.If the key of ckv
Expired time arrive, the expired time of key will be reset, initial value is set to 0, is added up again.
And in this fashion, the amount of access of ckv is a magnitude with the amount of access of business interface, and network overhead is very
Greatly.When the concurrent request amount of business interface has reached the access bottleneck of ckv, global frequencies limitation will largely fail, and cause
It services unavailable.
Summary of the invention
The embodiment of the present application provides a kind of frequency limit method, frequency limit device and readable storage medium storing program for executing, for mentioning
The processing capacity of high-frequency limitation.
On the one hand, the embodiment of the present application provides a kind of frequency limit method, comprising:
The frequency limit device receives access request;The access is deducted from the first global quota of local shared drive
Global quota required for request, the described first global quota are that the global quota deduction in the local shared drive has received
Access request required for generate after overall situation quota, the global quota in the local shared drive is from complete in caching component
With default global allocation of quota in office's frequency limit quota, which is third party's caching component;The finally frequency limit
Device carries out global verification to the access request and obtains check results, and executes corresponding operating according to the check results.
On the one hand, the embodiment of the present application provides a kind of frequency limit device, which, which has, realizes above-mentioned side
The function of frequency limits device in method.The function it is real can also to execute corresponding software by hardware realization by hardware
It is existing.The hardware or software include one or more modules corresponding with above-mentioned function.
In a kind of possible implementation, which includes:
Receiving module, for receiving access request;
Processing module is complete required for the access request for deducting from the first global quota of local shared drive
Office's quota, the described first global quota are that the global quota in the local shared drive deducts needed for received access request
It is generated after the global quota wanted, the global quota in the local shared drive limits quota by the global frequencies in caching component
In with default global allocation of quota, the caching component is third party's caching component;
Global verification is carried out to the access request and obtains check results, and executes corresponding behaviour according to the check results
Make.
In alternatively possible implementation, which includes:
Transceiver, processor and bus;
The transceiver is connected with the processor by the bus;
The transceiver executes following steps:
Receive access request;
The processor executes following steps:
Deduct overall situation quota required for the access request from the first of local shared drive the global quota, described the
One global quota is that the global quota in the local shared drive deducts overall situation quota required for received access request
After generate, the global quota in the local shared drive by the global frequencies limitation quota in caching component with the default overall situation
Allocation of quota, the caching component are third party's caching component;
Global verification is carried out to the access request and obtains check results, and executes corresponding behaviour according to the check results
Make.
On the one hand, the embodiment of the present application provides a kind of computer readable storage medium, including instruction, when the instruction is calculating
When running on machine, which executes the above method.
On the one hand, the embodiment of the present application provides a kind of computer program product comprising instruction, when the computer program produces
When product are run on computers, which executes the above method.
As can be seen from the above technical solutions, the embodiment of the present application has the advantage that the local of the frequency limit device
Part global frequencies are saved in shared drive and limit quota, when the frequency limit device is after receiving access request, directly
Overall situation quota required for the access request is deducted in the local shared drive, no longer direct access cache component solves
The hot issue of caching component, to improve the processing capacity of frequency limit.
Detailed description of the invention
Fig. 1 is application scenario diagram in the embodiment of the present application;
Fig. 2 is system architecture schematic diagram in the embodiment of the present application;
Fig. 3 is one embodiment schematic diagram of frequency method for limiting in the embodiment of the present application;
Fig. 4 is another embodiment schematic diagram of frequency method for limiting in the embodiment of the present application;
Fig. 5 is another embodiment schematic diagram of frequency method for limiting in the embodiment of the present application;
Fig. 6 is the Stored Procedure schematic diagram that global frequencies limit quota in the embodiment of the present application;
Fig. 7 is a flow diagram of frequency method for limiting in the embodiment of the present application;
Fig. 8 is the unsanctioned interface schematic diagram of access request in frequency limit in the embodiment of the present application;
Fig. 9 is one embodiment schematic diagram of frequency limits device in the embodiment of the present application;
Figure 10 is another embodiment schematic diagram of frequency limits device in the embodiment of the present application.
Specific embodiment
The embodiment of the present application provides a kind of frequency limit method, frequency limit device and readable storage medium storing program for executing, for mentioning
The processing capacity of high-frequency limitation.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawing
The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage
The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein
Or the sequence other than the content of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that
Cover it is non-exclusive include, for example, containing the process, method, system, product or equipment of a series of steps or units need not limit
In step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produce
The other step or units of product or equipment inherently.
The embodiment of the present application is applied to application scenarios as shown in Figure 1, including server, terminal.The terminal to this
Server initiate access request, then the server according to the frequency limit quota of itself verify the terminal access request whether
It is allowed through, if allowing if, the server is to terminal feedback data corresponding with the access request, if not allowing to lead to
It crosses, then the server forbids the access request of the terminal, and the data that can not be accessed are fed back to the terminal.It is implementing
In the process, ckv is usually used at present realizes the cumulative of access times, server receives request, the value in the ckv that will add up,
If accumulated value overfrequency limits value, will refuse this request.If the expired time of the key of ckv arrives, will be again
The expired time of key is set, initial value is set to 0, is added up again.And in this fashion, current global frequencies limit master
If realizing the cumulative of access times at ckv, access request is then limited in accumulated value overfrequency limits value, and ckv
Amount of access with the amount of access of business interface be a magnitude, network overhead is very big.When the concurrent request amount of business interface reaches
When having arrived the access bottleneck of ckv, global frequencies limitation will largely fail, and cause to service unavailable.
In order to solve this problem, the embodiment of the present application provides the following technical solutions: the frequency limit device receives access
Request;The frequency limit device deducts required for the access request from the first global quota of the local shared drive of itself
Global quota, the first global quota is that the global quota in the local shared drive deducts received access request
It is generated after required overall situation quota, the global quota in the local shared drive is matched by the global frequencies limitation in caching component
With default global allocation of quota in volume;Then global verification is carried out to the access request and obtains check results, and according to described
Check results execute corresponding operating.
The embodiment of the present application be applied to system architecture diagram as shown in Figure 2, including caching component, management timer with
And local shared drive.The caching component is third-party cloud storage component, for saving global frequencies limitation quota.The caching
Component can may be redis for ckv, be illustrated by taking ckv as an example in the embodiment of the present application.The management timer is for fixed
When be written into the caching component and limit quota, the wherein pipe by the global frequencies in the preset time period of starting point of current time
Reason timer is managed using zookeeper.The local shared drive is the local shared drive of individual machine, this is locally total
Global portions and single machine part can be divided by enjoying memory, and wherein global portions are used to save slow from the local that the caching component distributes
Quota is deposited, which is used to save the single machine frequency limit quota and single machine access times of the individual machine.
In the embodiment of the present application, frequency limit is used to indicate the request of control service or business interface within the unit time
Amount is no more than a certain limits value;Single machine frequency limit, which is used to indicate, carries out frequency limit to single machine;Global frequencies limitation is used
Frequency limit is carried out in clusters of machines of the instruction to deployment services;Quota is used to indicate service or the maximum allowable visit of business interface
Ask frequency values.
Referring specifically to shown in Fig. 3, one embodiment of frequency method for limiting in the embodiment of the present application, comprising:
301, frequency limit device receives access request.
The frequency limit device receives access request.
In the present embodiment, which is the access request to each service or each business interface.For example an examination is looked into
Separate service, then user can according to the number of examining to the examination check the mark business send access request.
302, the frequency limit device deducts quota required for the access request in local shared drive.Frequency limit
Device processed deducts quota required for the access request from the first global quota.
Described first global quota deducts received access request institute for the global quota in the local shared drive
It is generated after the global quota needed, the global quota in the local shared drive is matched from the global frequencies limitation in caching component
With default global allocation of quota in volume, the caching component is third party's caching component.
For example the first global quota in the present embodiment is 18, quota required for the access request is 9, then the frequency limits
Device processed deducts 9 from the first global quota in local shared drive.And in the local shared drive of the frequency limit device
New global quota be 9.
In the present embodiment, which also executes the following steps: before receiving access request
The frequency limit device obtains configuration file, includes the preset time using current time as starting point in the configuration file
Global frequencies in section limit quota;Then the frequency limit device is written this according to the configuration file in caching component and presets
Global frequencies in period limit quota.The global frequencies, which limit quota, to be generated according to prefixed time interval, wherein with this
Prefixed time interval is key, is value with frequency limit value.Then the global frequencies are limited quota by the frequency limit device
It is saved from the caching component to local shared drive according to default global quota.
The caching component can be ckv and redis.It is illustrated in the present embodiment with ckv.For example assume the frequency limit
Device will include following information in the configuration file that current time obtains: the prefixed time interval is 3 minutes, preset time period
It is 1 hour, the key at current time is 1, and the key of each time interval in this 1 hour is followed successively by number 2 to 20, first 10
The frequency limit value of time interval is that access frequency is 10,000 times in every 3 minutes, and the frequency limit value of rear 10 time intervals is every
Access frequency is 5,000 times in 3 minutes.Then current time will be the one of starting point according to the configuration file by the frequency limit device
Ckv is written in a hour global frequencies limitation quota.It is understood that can be with one time interval of every mistake, the frequency limit
Device can all reacquire a configuration file, and global frequencies then are written according to the configuration file and limit quota.And in the ckv
It is written after global frequencies limitation quota, it will the sheet that the frequency limit device is written in default global quota is distributed from the ckv
In ground shared drive.
In the present embodiment, user can be arranged the default global quota according to the actual situation, for example different periods are different
Access frequency, different business has different access frequencys etc..Specific facilities are herein without limitation.For example, if business
Access frequency amount it is big, then the default global quota can be 300;If the access frequency amount of the business is small, the default overall situation
Quota can be 40.Specifically it is arranged after assessing different business by user.
303, the frequency limit device carries out global verification to the access request and thens follow the steps 304 if passing through, if not
Pass through, thens follow the steps 305.
The frequency limit device carries out global verification to the access request, if global verification passes through, frequency limit dress
Setting allows the access request to pass through, i.e. execution step 304;If overall situation verification does not pass through, that is, execute step 305.
In the present embodiment, the frequency limit device when carrying out global verification in the following way:
The overall situation after the frequency limit device deducts overall situation quota required for the access request, in the caching component
In the case that frequency limit quota is equal to the global quota in 0 and the local shared drive less than 0, which is determined
Access frequency in current time interval has been more than largest access frequency, needs to limit the access request;Frequency limit
After device processed deducts overall situation quota required for the access request, global frequencies in caching component limitation quota be greater than or
In the case that global quota equal to 0 or in the local shared drive is greater than or equal to 0, when which determines current
Between access frequency in interval be also less than largest access frequency value, then it is logical to can permit the access request for the frequency limit device
It crosses.
In practical applications, synchronization can have multiple access requests, if deducting the access request institute at current time
The overall situation that global frequencies limitation quota after the global quota needed in the caching component is equal in 0 and the local shared drive is matched
Volume is less than 0 but is greater than or equal to the negative value of number of the access request (quota i.e. in current time interval can only meet portion
Divide the demand of access request), at this moment the frequency limit device can be randomly selected part access request and pass through, and remaining another
Part access request is rejected.For example quota required for the access request at current time is 10, and the overall situation in caching component
Frequency limit quota be 0 and local shared drive in global quota be 5, then the frequency limit device can be randomly selected 5
Access request passes through, and in addition 5 access requests are then refused.
304, the frequency limit device allows the access request to pass through.
The frequency limit device allows the access request, and feeds back corresponding data according to the access request.
305, the frequency limit device refuses the access request.
The frequency limit device refuses the access request.
Global frequencies are saved in the present embodiment, in the local shared drive of the frequency limit device and limit quota, when the frequency
Rate limits device directly deducts in the local shared drive complete required for the access request after receiving access request
Office's quota, no longer direct access cache component solve the hot issue of caching component, to improve global frequencies limitation
Processing capacity.
Referring specifically to shown in Fig. 4, another embodiment of frequency method for limiting in the embodiment of the present application, comprising:
401, frequency limit device receives access request.
The frequency limit device receives access request.
In the present embodiment, which is the access request to each service or each business interface.For example an examination is looked into
Separate service, then user can according to the number of examining to the examination check the mark business send access request.
402, whether the first global quota in the local shared drive of frequency limit device detection is greater than or equal to default
Threshold value, if so, 403 are thened follow the steps, if it is not, thening follow the steps 404 to step 405.
The frequency limit device detects whether the first global quota in local shared drive is greater than or equal to preset threshold,
If so, the frequency limit device executes step 403, if it is not, thening follow the steps 404 to step 405.
In the present embodiment, the first global quota in the local shared drive is that the overall situation in the local shared drive is matched
Volume has received the global quota updated after overall situation quota required for access request in deduction.For example, the local shared drive
Interior initial global quota is 40, after receiving an access request (number of access request is 2), becomes 18, at this moment should
First global quota is 18.
In the present embodiment, which also executes the following steps: before receiving access request
The frequency limit device obtains configuration file, includes the preset time using current time as starting point in the configuration file
Global frequencies in section limit quota;Then the frequency limit device is written this according to the configuration file in caching component and presets
Global frequencies in period limit quota.The global frequencies, which limit quota, to be generated according to prefixed time interval, wherein with this
Prefixed time interval is key, is value with frequency limit value.Then the global frequencies are limited quota by the frequency limit device
It is saved from the caching component to local shared drive according to default global quota.
The caching component can be ckv and redis.It is illustrated in the present embodiment with ckv.For example assume the frequency limit
Device will include following information in the configuration file that current time obtains: the prefixed time interval is 3 minutes, preset time period
It is 1 hour, the key at current time is 1, and the key of each time interval in this 1 hour is followed successively by number 2 to 20, first 10
The frequency limit value of time interval is that access frequency is 10,000 times in every 3 minutes, and the frequency limit value of rear 10 time intervals is every
Access frequency is 5,000 times in 3 minutes.Then current time will be the one of starting point according to the configuration file by the frequency limit device
Ckv is written in a hour global frequencies limitation quota.It is understood that can be with one time interval of every mistake, the frequency limit
Device can all reacquire a configuration file, and global frequencies then are written according to the configuration file and limit quota.And in the ckv
It is written after global frequencies limitation quota, it will the sheet that the frequency limit device is written in default global quota is distributed from the ckv
In ground shared drive.
In the present embodiment, user can be arranged the default global quota according to the actual situation, for example different periods are different
Access frequency, different business has different access frequencys etc..Specific facilities are herein without limitation.For example, if business
Access frequency amount it is big, then the default global quota can be 300;If the access frequency amount of the business is small, the default overall situation
Quota can be 40.Particular user is arranged after assessing different business.
403, the frequency limit device deducts quota required for the access request from the first global quota.
The frequency limit device deducts quota required for the access request from the first global quota.Such as this implementation
The first global quota in is 18, and quota required for the access request is 9, then the frequency limit device is out of local share
9 are deducted in the global quota of first deposited, then global quota new in the frequency limit device is 9.
404, the frequency limit device distributes default global quota to the local shared drive to generate from caching component
Second global quota.
The frequency limit device redistributes default global quota to the local of the frequency limit device from caching component
To generate the second global quota in shared drive.
For example assume that the preset threshold is 5, which is 4, and presetting overall situation quota is 40, then the frequency limit
Device generates the second global quota from pulling 40 quotas in the ckv and be added in the local shared drive of the frequency limit device,
The second global quota is 24.
405, the frequency limit device deducts quota required for the access request from the second global quota.
The frequency limit device deducts quota required for the access request from the second global quota.
406, global verification is carried out to the access request in the frequency limit device and thens follow the steps 407 if passing through,
If obstructed, 408 are thened follow the steps.
The frequency limit device carries out global verification to the access request, if global verification passes through, frequency limit dress
Setting allows the access request to pass through, i.e. execution step 407;If overall situation verification does not pass through, that is, execute step 408.
In the present embodiment, the frequency limit device when carrying out global verification in the following way:
When the number of the access request is 1, if after deducting overall situation quota required for the access request, it is described
Global frequencies in caching component limit quota equal to 0 and the global quota of the local shared drive is less than 0, then described in refusal
Access request;
When the number of the access request is N, and the N is the integer greater than 1, if deducting required for the access request
Global quota after, global frequencies in caching component limitation quota is equal to the overall situation of 0 and the local shared drive
Quota is M, and the M is the integer less than 0 and more than or equal to negative N, then M access in access request described in random rejection is asked
It asks.
Global frequency after the frequency limit device deducts overall situation quota required for the access request, in the caching component
In the case that rate limits global quota of the quota equal to 0 and in the local shared drive less than 0, frequency limit device determination is worked as
Access frequency in preceding time interval has been more than largest access frequency, needs to limit the access request;The frequency limit
After device deducts overall situation quota required for the access request, the global frequencies limitation quota in the caching component is greater than or waits
In the case that global quota in 0 or the local shared drive is greater than or equal to 0, which determines current time
Access frequency in interval is also less than largest access frequency value, then it is logical to can permit the access request for the frequency limit device
It crosses.
In practical applications, synchronization can have multiple access requests, if at current time, deduct the access request it
It is big less than 0 to be equal to the global quota in 0 and the local shared drive for the global frequencies limitation quota in the caching component afterwards
In or equal to the negative value of number of the access request, (quota i.e. in current time interval can only meet the need of part access request
Ask), at this moment the frequency limit device can be randomly selected part access request and pass through, and remaining another part access request quilt
Refusal.For example quota required for the access request at current time is 10, and the global frequencies limitation quota in caching component is 0
And the global quota in local shared drive is 5, then the frequency limit device can be randomly selected 5 access requests and pass through, separately
Outer 5 access requests are then refused.
407, the frequency limit device allows the access request to pass through.
The frequency limit device allows the access request, and feeds back corresponding data according to the access request.
408, the frequency limit device refuses the access request.
The frequency limit device refuses the access request.
Part global frequencies, which are saved, in the present embodiment, in the local shared drive of the frequency limit device limits quota, when
The frequency limit device is greater than or waits after receiving access request, in the global frequencies limitation quota of the local shared drive
In the case where preset threshold, overall situation quota required for the access request is directly deducted in the local shared drive, no longer
Direct access cache component, solves the hot issue of caching component, to improve the processing capacity of global frequencies limitation.
Referring specifically to shown in Fig. 5, another embodiment of frequency method for limiting in the embodiment of the present application, comprising:
501, frequency limit device receives access request.
The frequency limit device receives access request.
In the present embodiment, which is the access request to each service or each business interface.For example an examination is looked into
Separate service, then user can according to the number of examining to the examination check the mark business send access request.
502, whether the first global quota in the local shared drive of frequency limit device detection is greater than or equal to default
Threshold value, if so, 503 are thened follow the steps, if it is not, thening follow the steps 504 to step 505.
The frequency limit device detects whether the first global quota in local shared drive is greater than or equal to preset threshold,
If so, the frequency limit device executes step 503, if it is not, thening follow the steps 504 to step 505.
In the present embodiment, the first global quota in the local shared drive is that the caching in the local shared drive is matched
Volume has received the global quota updated after overall situation quota required for access request in deduction.For example, in the local shared drive
Initial caching quota is 20, after receiving an access request, becomes 18, and at this moment the first global quota is 18.
503, the frequency limit device deducts quota required for the access request from the first global quota.
504, the frequency limit device distributes default global quota to the local shared drive to generate from caching component
Second global quota.
505, the frequency limit device deducts quota required for the access request from the second global quota.
The frequency limit device deducts quota required for the access request from the second global quota.
506, the frequency limit device is according to the cumulative single machine access times of the number of the access request.
The frequency limit device is after receiving the access request, according to the cumulative single machine access of the number of the access request
Number.
In the present embodiment, the single machine frequency limit quota is also saved in the local shared drive of the frequency limit device.
The frequency limit device can be in the following way when saving the single machine frequency limit quota:
The frequency limit device obtains configuration file, includes the preset time using current time as starting point in the configuration file
Single machine frequency limit quota in section;Then the frequency limit device is written in local shared drive according to the configuration file is somebody's turn to do
Single machine frequency limit quota in preset time period.The single machine frequency limit quota be generated according to prefixed time interval, wherein
It is key with the prefixed time interval, is value with frequency limit value.For example the frequency limit device obtained at current time
To include following information in configuration file: the prefixed time interval be 3 minutes, and preset time period is 1 hour, current time
Key is 1, and the key of each time interval in this 1 hour is followed successively by number 2 to 20, the frequency limit of preceding 10 time intervals
Value is that access frequency is 10,000 times in every 3 minutes, and the frequency limit value of rear 10 time intervals is that access frequency is 5 in every 3 minutes
Thousand times.Then the frequency limit device will limit the single machine frequency for the hour that current time is starting point according to the configuration file
It prepares volume and local shared drive is written.It is understood that can all be weighed with one time interval of every mistake, the frequency limit device
A configuration file is newly obtained, single machine frequency limit quota is then written according to the configuration file.
507, global verification is carried out to the access request in the frequency limit device and single machine verifies, if passing through, held
Row step 508 thens follow the steps 509 if there is any one obstructed.
The frequency limit device carries out global verification to the access request and single machine verifies, if global verification and single machine verification
Pass through, then the frequency limit device allows the access request to pass through, i.e. execution step 508;If overall situation verification and single machine school
There is any one not pass through in testing, then the frequency limit device refuses the access request, i.e. execution step 509.
In the present embodiment, the frequency limit device when carrying out global verification in the following way:
Global frequency after the frequency limit device deducts overall situation quota required for the access request, in the caching component
In the case that rate limits global quota of the quota equal to 0 and in the local shared drive less than 0, frequency limit device determination is worked as
Access frequency in preceding time interval has been more than largest access frequency, needs to limit the access request;The frequency limit
After device deducts overall situation quota required for the access request, the global frequencies limitation quota in the caching component is greater than or waits
In the case that global quota in 0 or the local shared drive is greater than or equal to 0, which determines current time
Access frequency in interval is also less than largest access frequency value, then it is logical to can permit the access request for the frequency limit device
It crosses.
In practical applications, synchronization can have multiple access requests, if deducting the access request institute at current time
The overall situation that global frequencies limitation quota after the global quota needed in the caching component is equal in 0 and the local shared drive is matched
Volume is less than 0 but is greater than or equal to the negative value of number of the access request (quota i.e. in current time interval can only meet portion
Divide the demand of access request), at this moment the frequency limit device can be randomly selected part access request and pass through, and remaining another
Part access request is rejected.For example quota required for the access request at current time is 10, and the overall situation in caching component
Frequency limit quota be 0 and local shared drive in global quota be 5, then the frequency limit device can be randomly selected 5
Access request passes through, and in addition 5 access requests are then refused.
In the present embodiment, the frequency limit device when carrying out single machine verification in the following way:
Whether the single machine access times after frequency limit device judgement is cumulative are more than single machine frequency limit quota, if super
It crosses, then illustrates that the access frequency in current time interval has been more than largest access frequency, need to limit the access request;
If not exceeded, then illustrating that the access frequency in current time interval is also less than largest access frequency value, then the frequency limit fills
Setting can permit the access request and passes through.
When the number of the access request is 1, if the single machine access times after cumulative are more than the single machine frequency limit
The number of quota is greater than 0, then refuses the access request.It is X in the number of the access request, the X is the integer greater than 1
When, if the number that the single machine access times after cumulative are more than single machine frequency limit quota is Y, the Y is greater than 0 and is less than or equal to
X, then Y access request in access request described in random rejection.
In practical applications, synchronization can have multiple access requests, if the single machine after this is cumulative is visited at current time
Ask that number is more than that the number of the single machine frequency limit quota is greater than 0 but is less than or equal to the number of the access request (i.e. currently
Quota in time interval can only meet the needs of part access request), at this moment portion can be randomly selected in the frequency limit device
Point access request passes through, and remaining another part access request is rejected.
The single machine frequency limit quota is less than in the single machine access times and is being deducted needed for the access request
After the global quota wanted, in the case that the global quota in the local shared drive is greater than or equal to 0, allow the access
Request passes through.
508, the frequency limit device allows the access request to pass through.
The frequency limit device allows the access request, and feeds back corresponding data according to the access request.
509, the frequency limit device refuses the access request.
The frequency limit device refuses the access request.
Part global frequencies, which are saved, in the present embodiment, in the local shared drive of the frequency limit device limits quota, when
The frequency limit device is greater than or waits after receiving access request, in the global frequencies limitation quota of the local shared drive
In the case where preset threshold, overall situation quota required for the access request is directly deducted in the local shared drive, no longer
Direct access cache component, solves the hot issue of caching component, to improve the processing capacity of global frequencies limitation.Together
When the frequency limit device simultaneously realize global frequencies verification and single machine frequency verification, improve the disaster tolerance of frequency limit device
Rate.
The embodiment of the present application is illustrated with a concrete scene below:
As shown in fig. 6, with inquiry business interface, current time is to be illustrated for 7 points of morning, 7 points to morning in the morning
It will include following information in the configuration file which obtains: between the preset time in upper 8 points of this periods
Be divided into 3 minutes, preset time period is 1 hour, and the key at current time is 1, the key of each time interval in this 1 hour according to
Secondary is digital 2 to 20, and the frequency limit value of preceding 10 time intervals is that access frequency is 5,000 times in every 3 minutes, rear 10 time
The frequency limit value at interval is that access frequency is 10,000 times in every 3 minutes.The frequency limit device generates key at current time, should
Key includes (1,2,3 ... 20).Since the frequency limit device is matched with the global frequencies limitation of one hour of write-in in every 3 minutes
Volume, therefore key value may have been contained in current time, the ckv and matched for the global frequencies limitation of 1 to 19 time interval
Volume.At this moment the frequency limit device detects in the ckv the identical key of the whether existing key generated with current time, if not depositing
Global frequencies limitation quota is directly then being written by the ckv according to the configuration file;If it exists, then directly according to configuration text
Part updates the global frequencies limitation quota of already present key instruction.Finally by the global frequencies limitation quota in ckv with every time 20
Quota local shared drive is written.
It is understood that user can basis from the ckv from when pulling default global quota write-in local shared drive
The default global quota is arranged in actual conditions, for example different periods have different access frequencys, and different business has different visits
Ask frequency etc..Specific facilities are herein without limitation.
As shown in fig. 7, current time, the total marks of the examination inquiry business interface connect equally by taking total marks of the examination inquiry business as an example
Receive 5 access requests;Then the global quota at the current time in frequency limit device inquiry own local shared drive
Whether safety line (i.e. preset threshold) is not less than, if being not less than, the frequency limit device is directly out of this local shared drive
Global quota in deduct quota 5 required for the access request;If being lower than, which pulls this from ckv
Default overall situation quota is added to the local shared drive, then deducts the access from the global quota of the local shared drive again and asks
Quota 5 required for asking.For example, the global quota at current time is 5 in the local shared drive if the safety line is 6, then should
Frequency limit device will pull 20 from the ckv and be stored in the local shared drive, and at this moment the overall situation of the local shared drive is matched
Volume is 25, and then the frequency limit device deducts quota 5 required for the access request from 25 li again.Meanwhile the frequency limit
When receiving 5 access requests, which will add up single machine access times device, i.e. hypothesis current time
Single machine access times be 2500, then add up after single machine access times be 2505.Finally, the frequency limit device is to the access
The global verification of request progress and single machine verification, if both passing through, allow the access request to pass through, if there is any one illogical
It crosses, then refuses the access request.It, can if user is rejected by the inquiry request that the number of examining is sent in specific implementation scene
Scene as shown in Figure 8 can be gone out, " awfully sorry, system is busy to cause inquiry to fail, and woulds you please weigh later for pop-up on the mobile phone interface
Examination ".
The frequency limit method in the embodiment of the present application is illustrated above, below to the frequency in the embodiment of the present application
Limits device is illustrated.
Referring specifically to shown in Fig. 9, one embodiment of frequency limits device in the embodiment of the present application, comprising:
Receiving module 901, for receiving access request;
Processing module 902, for being deducted required for the access request from the first global quota of local shared drive
Global quota, the first global quota is that the global quota in the local shared drive deducts received access request
It is generated after required overall situation quota, the global quota in the local shared drive is matched from the global frequencies limitation in caching component
With default global allocation of quota in volume, the caching component is third party's caching component;Global school is carried out to the access request
It tests to obtain check results, and executes corresponding operating according to the check results.
Optionally, the processing module 902 is also used to be greater than or equal to the feelings of preset threshold in the described first global quota
Under condition, quota required for the access request is deducted from the described first global quota;In the local shared drive
In the case that first global quota is less than the preset threshold, from the global frequencies limitation quota in the caching component again
The default global quota is distributed to the local shared drive to generate the second global quota;From the described second global quota
Deduct overall situation quota required for the access request.
Optionally, the processing module 902 is also used to when the number of the access request is 1, if deducting the access
After global quota required for request, the global frequencies limitation quota in the caching component is equal to 0 and the local is shared
The global quota of memory then refuses the access request less than 0;It is N in the number of the access request, the N is greater than 1
When integer, if after deducting overall situation quota required for the access request, the global frequencies limitation in the caching component is matched
Volume be equal to 0 and the global quota of the local shared drive be M, the M is less than 0 and to be greater than or equal to the integer of negative N, then with
Machine refuses M access request in the access request.
Optionally, the frequency limit device further include:
Memory module 903, for saving single machine frequency limit quota in the local shared drive;
Counting module 904 is added up single machine according to the number of the access request for when receiving the access request
Access times;
When the processing module 902 for the number in the access request is 1, if the single machine access times after cumulative
Number more than single machine frequency limit quota is greater than 0, then refuses the access request;
When the number of the access request is X, and the X is the integer greater than 1, if the single machine access times after cumulative are super
The number for crossing single machine frequency limit quota is Y, and the Y is greater than 0 and is less than or waits X, then the Y in access request described in random rejection
A access request.
Optionally, the processing module 902 is also used to be less than the single machine frequency limit in the single machine access times
After quota and the overall situation quota required for the deduction access request, the global quota in the local shared drive is greater than
Or in the case where being equal to 0, the access request is allowed to pass through.
Optionally, the global quota in the local shared drive is every time by presetting global quota in the caching component
Distribution.
Optionally, the frequency limit device further include:
Module 905 is obtained, configuration file is used for, the configuration file includes that the global frequencies limitation in preset time period is matched
Volume, the global frequencies limitation quota are generated according to prefixed time interval, and the frequency limit quota includes key value and frequency
Limits value;
The memory module 903, in the global frequencies limitation being written in caching component in preset time period
Quota.
Optionally, the caching component is the key value storage system of ckv or redis form.
Part global frequencies, which are saved, in the present embodiment, in the local shared drive of the frequency limit device limits quota, when
The frequency limit device is greater than or waits after receiving access request, in the global frequencies limitation quota of the local shared drive
In the case where preset threshold, overall situation quota required for the access request is directly deducted in the local shared drive, no longer
Direct access cache component, solves the hot issue of caching component, to improve the processing capacity of global frequencies limitation.Together
When the frequency limit device simultaneously realize global frequencies verification and single machine frequency verification, improve the disaster tolerance of frequency limit device
Rate.
Referring specifically to shown in Figure 10, another embodiment of frequency limits device in the embodiment of the present application, comprising:
Transceiver 1001 and processor 1002;The transceiver 1001 is mutually interconnected with the processor 1002 by bus 1003
It connects;
Bus 1003 can be Peripheral Component Interconnect standard (peripheral component interconnect, abbreviation
PCI) bus or expanding the industrial standard structure (extended industry standard architecture, abbreviation EISA)
Bus etc..The bus can be divided into address bus, data/address bus, control bus etc..For convenient for indicating, in Figure 10 only with one slightly
Line indicates, it is not intended that an only bus or a type of bus.
Processor 1002 can be central processing unit (central processing unit, abbreviation CPU), network processes
The combination of device (network processor, abbreviation NP) or CPU and NP.
Processor 1002 can further include hardware chip.Above-mentioned hardware chip can be specific integrated circuit
(application-specific integrated circuit, abbreviation ASIC), programmable logic device
(programmable logic device, abbreviation PLD) or combinations thereof.Above-mentioned PLD can be Complex Programmable Logic Devices
(complex programmable logic device, abbreviation CPLD), field programmable gate array (field-
Programmable gate array, abbreviation FPGA), Universal Array Logic (generic array logic, abbreviation GAL) or
Any combination thereof.
Shown in Figure 10, which can also include memory 1004;The memory 804 may include easy
The property lost memory (volatile memory), such as random access memory (random-access memory, abbreviation RAM);
Memory also may include nonvolatile memory (non-volatile memory), such as flash memory (flash
Memory), hard disk (hard disk drive, abbreviation HDD) or solid state hard disk (solid-state drive, abbreviation SSD);It deposits
Reservoir 1004 can also include the combination of the memory of mentioned kind.
Optionally, memory 1004 can be also used for storage program instruction, and processor 1002 calls in the memory 1004
The program instruction of storage can execute one or more steps in embodiment shown in Fig. 3 to Fig. 8, or in which optional real
Mode is applied, realizes the function of frequency limits device behavior in the above method.
The transceiver 1001 executes following steps:
Receive access request;
The processor 1002 executes following steps:
Deduct overall situation quota required for the access request from the first of local shared drive the global quota, described the
One global quota is after the global quota in the local shared drive deducts overall situation quota required for received access request
It generates, the global quota in the local shared drive is matched from the global frequencies limitation quota in caching component with the default overall situation
Volume distribution, the caching component are third party's caching component;
Global verification is carried out to the access request and obtains check results, and executes corresponding behaviour according to the check results
Make.
Optionally, the processor 1002 is also used to the case where the described first global quota is greater than or equal to preset threshold
Under, quota required for the access request is deducted from the described first global quota;It is less than institute in the described first global quota
In the case where stating preset threshold, the overall situation is preset described in sub-distribution again from the global frequencies limitation quota in the caching component and is matched
Volume is to the local shared drive so that the memory 1004 generates the second global quota;It is detained from the described second global quota
Except overall situation quota required for the access request.
Optionally, the processor 1002 is also used to ask when the number of the access request is 1 if deducting the access
After seeking required global quota, the global frequencies limitation quota in the caching component is equal to 0 and the local is shared interior
The global quota deposited then refuses the access request less than 0;It is N in the number of the access request, the N is whole greater than 1
When number, if after deducting overall situation quota required for the access request, the global frequencies in the caching component limit quota
Equal to 0 and the global quota of the local shared drive is M, and the M is the integer less than 0 and more than or equal to negative N, then at random
Refuse M access request in the access request.
Optionally, processor 1002, for saving single machine frequency limit quota in the local shared drive;
The processor 1002, for being added up according to the number of the access request single when receiving the access request
Machine access times;When the number of the access request is 1, if the single machine access times after cumulative are more than that single machine frequency limit is matched
The number of volume is greater than 0, then refuses the access request;
When the number of the access request is X, and the X is the integer greater than 1, if the single machine access times after cumulative are super
The number for crossing single machine frequency limit quota is Y, and the Y is greater than 0 and is less than or waits X, then the Y in access request described in random rejection
A access request.
Optionally, the processor 1002 is also used to be less than the single machine frequency limit in the single machine access times and match
Volume and after deducting overall situation quota required for the access request, the global quota in the local shared drive be greater than or
In the case where 0, the access request is allowed to pass through.
Optionally, the global quota in the local shared drive is every time by presetting global quota in the caching component
Distribution.
Optionally, the processor 1002, for obtaining configuration file, the configuration file includes complete in preset time period
Office's frequency limit quota, the global frequencies limitation quota are generated according to prefixed time interval, and the frequency limit quota includes
Key value and frequency limit value;
The processor 1002, for matching in the global frequencies limitation being written in preset time period in caching component
Volume.
Optionally, the caching component is the key value storage system of ckv or redis form.
Part global frequencies, which are saved, in the present embodiment, in the local shared drive of the frequency limit device limits quota, when
The frequency limit device directly deducts required for the access request in the local shared drive after receiving access request
Global quota, no longer direct access cache component solves the hot issue of caching component, to improve global frequencies limit
The processing capacity of system.The frequency limit device realizes global frequencies verification and single machine frequency verification simultaneously simultaneously, improves frequency
The disaster tolerance rate of limits device.
The embodiment of the invention also provides a kind of computer readable storage mediums, including instruction, when the instruction is in computer
When upper operation, which executes frequency limit method described in above-described embodiment.
The embodiment of the invention also provides a kind of computer program products comprising instruction, when the computer program product exists
When running on computer, which executes frequency limit method described in above-described embodiment.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the application
Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before
Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.
Claims (15)
1. a kind of frequency limit method characterized by comprising
Receive access request;
Overall situation quota required for the access request is deducted from the first global quota of local shared drive, described first is complete
Office's quota is that the global quota in the local shared drive deducts life after overall situation quota required for received access request
At the global quota in the local shared drive is from the global frequencies limitation quota in caching component with default global quota
Distribution, the caching component are third party's caching component;
Global verification is carried out to the access request and obtains check results, and executes corresponding operating according to the check results.
2. the method according to claim 1, wherein deducting institute from the first global quota of local shared drive
Stating overall situation quota required for access request includes:
In the case where the described first global quota is greater than or equal to preset threshold, from the described first global quota described in deduction
Quota required for access request;
In the case where the described first global quota is less than the preset threshold, from the global frequencies limitation in the caching component
Global quota is preset in quota described in sub-distribution again to the local shared drive to generate the second global quota;
Overall situation quota required for the access request is deducted from the described second global quota.
3. the method according to claim 1, wherein carrying out global verification to the access request obtains verification knot
Fruit, and execute corresponding operating according to the check results and include:
When the number of the access request is 1, if after deducting overall situation quota required for the access request, the caching
Global frequencies in component limit quota equal to 0 and the global quota of the local shared drive is less than 0, then refuse the access
Request;
When the number of the access request is N, and the N is the integer greater than 1, if deducting complete required for the access request
After office's quota, the global frequencies limitation quota in the caching component is equal to the global quota of 0 and the local shared drive
For M, the M is less than 0 and to be greater than or equal to the integer of negative N, then M access request in access request described in random rejection.
4. the method according to claim 1, wherein the method also includes:
Single machine frequency limit quota is saved in the local shared drive;
When receiving the access request, according to the cumulative single machine access times of the number of the access request;
When the number of the access request is 1, if the single machine access times after cumulative are more than the single machine frequency limit quota
Number be greater than 0, then refuse the access request;
When the number of the access request is X, and the X is the integer greater than 1, if the single machine access times after cumulative are more than single
The number that unit frequency limits quota is Y, and the Y is greater than 0 and is less than or equal to X, then the Y in access request described in random rejection
Access request.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
The single machine frequency limit quota is less than in the single machine access times and is being deducted required for the access request
After global quota, in the case that the global quota in the local shared drive is greater than or equal to 0, allow the access request
Pass through.
6. the method according to any one of claims 1 to 5, which is characterized in that the method also includes:
Configuration file is obtained, the configuration file includes the global frequencies limitation quota in preset time period, the global frequencies
Limitation quota is generated according to prefixed time interval, and the global frequencies limitation quota includes key value and frequency limit value;
The global frequencies being written in preset time period in the caching component limit quota.
7. a kind of frequency limit device characterized by comprising
Receiving module, for receiving access request;
Processing module is matched for deducting the overall situation required for the access request from the first global quota of local shared drive
Volume, the described first global quota are that the global quota in the local shared drive deducts required for received access request
Generated after global quota, it is described local shared drive in global quota from caching component global frequencies limitation quota in
Default overall situation allocation of quota, the caching component are third party's caching component;
Global verification is carried out to the access request and obtains check results, and executes corresponding operating according to the check results.
8. frequency limit device according to claim 7, which is characterized in that the processing module is also used to described
In the case that one global quota is greater than or equal to preset threshold, deducted needed for the access request from the described first global quota
The quota wanted;
In the case where the described first global quota is less than the preset threshold, from the global frequencies limitation in the caching component
Global quota is preset in quota described in sub-distribution again to the local shared drive to generate the second global quota;
Overall situation quota required for the access request is deducted from the described second global quota.
9. frequency limit device according to claim 7, which is characterized in that the processing module is also used to when the visit
When the number for asking request is 1, if the overall situation after deducting overall situation quota required for the access request, in the caching component
Frequency limit quota is equal to 0 and the global quota of the local shared drive is less than 0, then refuses the access request;
When the number of the access request is N, and the N is the integer greater than 1, if deducting complete required for the access request
After office's quota, the global frequencies limitation quota in the caching component is equal to the global quota of 0 and the local shared drive
For M, the M is less than 0 and to be greater than or equal to the integer of negative N, then M access request in access request described in random rejection.
10. frequency limit device according to claim 7, which is characterized in that the frequency limit device further include:
Memory module, for saving single machine frequency limit quota in the local shared drive;
Counting module, for being accessed according to the cumulative single machine of the number of the access request secondary when receiving the access request
Number;
When the processing module for the number in the access request is 1, if the single machine access times after cumulative are more than described
The number of single machine frequency limit quota is greater than 0, then refuses the access request;
When the number of the access request is X, and the X is the integer greater than 1, if the single machine access times after cumulative are more than institute
The number for stating single machine frequency limit quota is Y, and the Y is greater than 0 and is less than or equal to X, then in access request described in random rejection
Y access request.
11. frequency limit device according to claim 10, which is characterized in that the processing module is also used to described
Single machine access times be less than the single machine frequency limit quota and deduct overall situation quota required for the access request it
Afterwards, in the case that the global quota in the local shared drive is greater than or equal to 0, the access request is allowed to pass through.
12. frequency limit device according to any one of claims 7 to 11, which is characterized in that the frequency limit dress
It sets further include:
Module is obtained, for obtaining configuration file, the configuration file includes the global frequencies limitation quota in preset time period,
The global frequencies limitation quota is generated according to prefixed time interval, and the frequency limit quota includes key value and frequency limit
Value;
The memory module, for limiting quota in the global frequencies being written in preset time period in caching component.
13. a kind of frequency limit device characterized by comprising
Transceiver, processor and bus;
The transceiver is connected with the processor by the bus;
The transceiver executes following steps:
Receive access request;
The processor executes following steps:
Overall situation quota required for the access request is deducted from the first global quota of local shared drive, described first is complete
Office's quota is that the global quota in the local shared drive deducts life after overall situation quota required for received access request
At the global quota in the local shared drive is limited in quota by the global frequencies in caching component with default global quota
Distribution, the caching component are third party's caching component;
Global verification is carried out to the access request and obtains check results, and executes corresponding operating according to the check results.
14. a kind of computer readable storage medium, including instruction, when the instruction is run on computers, which is executed
The claims 1 are to the described in any item methods of claim 6.
15. a kind of computer program product comprising instruction, when the computer program product is run on computers, the calculating
Machine executes the claims 1 to the described in any item methods of claim 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711284975.1A CN109901923B (en) | 2017-12-07 | 2017-12-07 | Frequency limiting method, frequency limiting device and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711284975.1A CN109901923B (en) | 2017-12-07 | 2017-12-07 | Frequency limiting method, frequency limiting device and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109901923A true CN109901923A (en) | 2019-06-18 |
CN109901923B CN109901923B (en) | 2022-10-21 |
Family
ID=66939184
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711284975.1A Active CN109901923B (en) | 2017-12-07 | 2017-12-07 | Frequency limiting method, frequency limiting device and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109901923B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104750558A (en) * | 2013-12-31 | 2015-07-01 | 伊姆西公司 | Resource allocation management method and device of hierarchical quota system |
CN104980472A (en) * | 2014-04-10 | 2015-10-14 | 腾讯科技(深圳)有限公司 | Network traffic control method and device |
CN105827543A (en) * | 2015-01-04 | 2016-08-03 | 中国移动通信集团重庆有限公司 | Traffic control method and electronic device |
CN106375472A (en) * | 2016-09-29 | 2017-02-01 | 北京三快在线科技有限公司 | Access request processing method and apparatus, and server |
CN106506559A (en) * | 2016-12-29 | 2017-03-15 | 北京奇虎科技有限公司 | Access Behavior- Based control method and device |
-
2017
- 2017-12-07 CN CN201711284975.1A patent/CN109901923B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104750558A (en) * | 2013-12-31 | 2015-07-01 | 伊姆西公司 | Resource allocation management method and device of hierarchical quota system |
CN104980472A (en) * | 2014-04-10 | 2015-10-14 | 腾讯科技(深圳)有限公司 | Network traffic control method and device |
CN105827543A (en) * | 2015-01-04 | 2016-08-03 | 中国移动通信集团重庆有限公司 | Traffic control method and electronic device |
CN106375472A (en) * | 2016-09-29 | 2017-02-01 | 北京三快在线科技有限公司 | Access request processing method and apparatus, and server |
CN106506559A (en) * | 2016-12-29 | 2017-03-15 | 北京奇虎科技有限公司 | Access Behavior- Based control method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109901923B (en) | 2022-10-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108370341B (en) | Resource allocation method, virtual network function manager and network element management system | |
US9948791B2 (en) | Sharing group notification | |
CN109618002B (en) | Micro-service gateway optimization method, device and storage medium | |
CN107301093B (en) | Method and device for managing resources | |
CN110896355A (en) | Network slice selection method and device | |
US20110044353A1 (en) | Adaptive Window Size for Network Fair Usage Controls | |
CN104038439B (en) | Message flow control method and system | |
CN108121608A (en) | A kind of array dispatching method and node device | |
CN110213128B (en) | Service port detection method, electronic device and computer storage medium | |
CN110311988B (en) | Health check method, load balancing method and device for back-end server | |
CN106775936A (en) | The management method and device of a kind of virtual machine | |
CN106973377B (en) | The control method and control device and management equipment and terminal of data communication | |
CN105763616B (en) | Resource downloading method and device | |
CN108287760A (en) | Terminal equipment control method and device, terminal device and computer readable storage medium | |
CN109039694B (en) | Global network resource allocation method and device for service | |
CN109981779A (en) | Service providing method, server and computer storage medium | |
CN112260962B (en) | Bandwidth control method and device | |
CN111385328A (en) | Service request processing method and system and electronic equipment | |
CN111143033B (en) | Operation execution method and device based on scalable operation system | |
CN109308219B (en) | Task processing method and device and distributed computer system | |
CN109901923A (en) | A kind of frequency limit method, frequency limit device and readable storage medium storing program for executing | |
CN109067864A (en) | Notification message method for pushing, device and electronic equipment | |
CN108021639A (en) | Information-pushing method, device, server and storage medium | |
CN109657471B (en) | Cloud equipment management system and method | |
CN111885588A (en) | Method and device for executing electronic card management service |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |