CN104219069A - Access frequency control method, device and control system - Google Patents

Access frequency control method, device and control system Download PDF

Info

Publication number
CN104219069A
CN104219069A CN201310209513.9A CN201310209513A CN104219069A CN 104219069 A CN104219069 A CN 104219069A CN 201310209513 A CN201310209513 A CN 201310209513A CN 104219069 A CN104219069 A CN 104219069A
Authority
CN
China
Prior art keywords
access
service server
imp
message processor
interface message
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
CN201310209513.9A
Other languages
Chinese (zh)
Other versions
CN104219069B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310209513.9A priority Critical patent/CN104219069B/en
Publication of CN104219069A publication Critical patent/CN104219069A/en
Application granted granted Critical
Publication of CN104219069B publication Critical patent/CN104219069B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Telephonic Communication Services (AREA)

Abstract

An access frequency control method is provided. The method includes: receiving, by a central server, actual access frequency information of a business server cluster reported by an interface machine every preset reporting duration; respectively counting total times for accessing the interface machine cluster by each business server cluster in a preset access duration according to the actual access frequency information; and according to total times for accessing the interface machine cluster by each business server cluster in the preset access duration, sending an access frequency control command to the interface machine, so that the interface machine refuses to provide business services to the corresponding business server cluster in a refusing access duration. In addition, the present invention further provides a access frequency control device and control system. The abovementioned access frequency control method, device and control system can control the access frequency of a plurality of business server clusters to the interface machine cluster more effectively, and can increase the usage efficiency of the interface machine cluster resource.

Description

Access frequency control method, device and control system
Technical field
The present invention relates to access frequency control technology, relate in particular to a kind of access frequency control method, device and control system.
Background technology
In prior art, when an interface message processor (IMP) of a service server access, the access frequency of accessed interface message processor (IMP) record statistical service server, also be that service server is accessed the number of times of accessed interface message processor (IMP) in preset duration, when above-mentioned access times surpass preset number of times, accessed interface message processor (IMP) will be refused to service server, to provide access services again, thereby realizes the control to the access frequency of service server.
But, service server still can obtain access services by accessing the mode of other interface message processor (IMP)s, the access frequency of service server is not effectively controlled in fact like this, in addition, under the applied environment of a plurality of dissimilar service server cluster access interface machine clusters, the access closeness of a plurality of interface message processor (IMP)s in dissimilar service server cluster docking port machine cluster in same duration is different, this interface message processor (IMP) that will have is very busy, and the very idle phenomenon of some interface message processor (IMP)s, thereby the significant wastage that causes interface message processor (IMP) cluster resource.Therefore how effectively to control the access frequency of a plurality of service server cluster docking port machine clusters, the service efficiency that improves interface message processor (IMP) cluster resource is current a great problem.
Summary of the invention
In view of this, the invention provides a kind of access frequency control method, device and control system, the control of the access frequency of a plurality of service server cluster docking port machine clusters is had to higher efficiency, and can improve the service efficiency of interface message processor (IMP) cluster resource.
A kind of access frequency control method, for controlling the access frequency of a plurality of service server cluster docking port machine clusters, described in each, service server cluster comprises the service server of a plurality of same types of service, described interface message processor (IMP) cluster comprises a plurality of interface message processor (IMP)s, comprise: every the preset duration that reports, central server receives the actual access frequency information of the described service server cluster that described interface message processor (IMP) reports, described actual access frequency information comprises, described preset reporting in duration, described interface message processor (IMP) was carried out to identify label and the access times of all service server clusters of access, according to described identify label and access times, add up respectively service server cluster total access times to described interface message processor (IMP) cluster in preset access duration described in each, described preset access duration is more than or equal to the described preset duration that reports, and according to the total access times to described interface message processor (IMP) cluster in described preset access duration of service server cluster described in each, to described interface message processor (IMP), send access frequency control command, described access frequency control command is included in described preset access duration, total access times are equal to or greater than identify label and the corresponding denied access duration of the service server cluster of pre-set limit access times, so that described interface message processor (IMP) in described denied access duration, is refused to provide business service to corresponding service server cluster.
A kind of access frequency control method, for controlling the access frequency of a plurality of service server cluster docking port machine clusters, described in each, service server cluster comprises the service server of a plurality of same types of service, described interface message processor (IMP) cluster comprises a plurality of interface message processor (IMP)s, comprise: described interface message processor (IMP) is every the preset duration that reports, statistics, described preset reporting in duration, was carried out the access times of each service server cluster of access to described interface message processor (IMP); To central server, send actual access frequency information, in described actual access frequency information, be included in described preset reporting in duration, described interface message processor (IMP) was carried out to identify label and the access times of all service server clusters of access; Receive the access frequency control command that described central server sends, described access frequency control command is included in described preset access duration, and total access times are equal to or greater than identify label and the corresponding denied access duration of the service server cluster of pre-set limit access times; And according to described access frequency control command, in described denied access duration, refusal provides business service to corresponding service server cluster.
A kind of access frequency control method, for controlling the access frequency of a plurality of service server cluster docking port machine clusters, described in each, service server cluster comprises the service server of a plurality of same types of service, described interface message processor (IMP) cluster comprises a plurality of interface message processor (IMP)s, comprise: described interface message processor (IMP) is every the preset duration that reports, statistics, described preset reporting in duration, was carried out the access times of each service server cluster of access to described interface message processor (IMP); Described interface message processor (IMP) sends actual access frequency information to central server, is included in described preset reporting in duration in described actual access frequency information, described interface message processor (IMP) is carried out to identify label and the access times of all service server clusters of access; Central server receives the described actual access frequency information that described interface message processor (IMP) sends, according to described identify label and the access times in described actual access frequency information, add up respectively service server cluster total access times to described interface message processor (IMP) cluster in preset access duration described in each, described preset access duration is more than or equal to the described preset duration that reports; Described central server according to statistics each described in service server cluster total access times to described interface message processor (IMP) cluster in described preset access duration, to described interface message processor (IMP), send access frequency control command, described access frequency control command is included in described preset access duration, total access times are equal to or greater than identify label and the corresponding denied access duration of the service server cluster of pre-set limit access times, so that described interface message processor (IMP) in described denied access duration, is refused to provide business service to corresponding service server cluster; And described interface message processor (IMP) receives the access frequency control command that described central server sends, according to described access frequency control command, in described denied access duration, refusal provides business service to corresponding service server cluster.
A kind of central server, comprise: actual access frequency information receiver module, be used for every the preset duration that reports, the actual access frequency information of the service server cluster that central server receiving interface machine reports, described actual access frequency information comprises, described preset reporting in duration, described interface message processor (IMP) was carried out to identify label and the access times of all service server clusters of access, total access times statistical module, for described identify label and the access times that receive according to described actual access frequency information receiver module, add up respectively service server cluster total access times to described interface message processor (IMP) cluster in preset access duration described in each, described preset access duration is more than or equal to the described preset duration that reports, and access frequency control command sending module, for according to service server cluster total access times to described interface message processor (IMP) cluster in described preset access duration described in each of described total access times statistical module counts, to described interface message processor (IMP), send access frequency control command, described access frequency control command is included in described preset access duration, total access times are equal to or greater than identify label and the corresponding denied access duration of the service server cluster of pre-set limit access times, so that described interface message processor (IMP) is in described denied access duration, refusal provides business service to corresponding service server cluster.
An interface message processor (IMP), comprising: access times statistical module, for every the preset duration that reports, add up described preset reporting in duration, and described interface message processor (IMP) was carried out to the access times of each service server cluster of access; Actual access frequency information sending module, for sending actual access frequency information to described central server, in described actual access frequency information, be included in described preset reporting in duration, described interface message processor (IMP) carried out to the identify label of all service server clusters and the access times of described access times statistical module counts of access; Access frequency control command receiver module, the access frequency control command sending for receiving described central server, described access frequency control command is included in described preset access duration, and total access times are equal to or greater than identify label and the corresponding denied access duration of the service server cluster of pre-set limit access times; And denial of service module, for the described access frequency control command receiving according to described access frequency control command receiver module, in described denied access duration, refusal provides business service to corresponding service server cluster.
A cluster access frequency control system, comprising: a plurality of service server clusters, and wherein described in each, service server cluster comprises the service server of a plurality of same types of service; Above-mentioned central server; And the interface message processor (IMP) cluster being formed by a plurality of above-mentioned interface message processor (IMP)s.
The access frequency control method that the embodiment of the present invention provides, device and control system, the actual access frequency information of the service server cluster regularly reporting according to interface message processor (IMP) by central server, add up respectively each service server cluster total access times to whole interface message processor (IMP) cluster in preset access duration, according to statistics, to interface message processor (IMP), send access frequency control command, so that interface message processor (IMP) is in denied access duration, the service server cluster that refusal surpasses preset access frequency to access frequency provides business service, realized the unified management to the access frequency of whole interface message processor (IMP) cluster to a plurality of service server clusters, thereby access frequency that can a plurality of service server cluster of more efficiently control docking port machine cluster, improve the service efficiency of interface message processor (IMP) cluster resource.
For above and other object of the present invention, feature and advantage can be become apparent, preferred embodiment cited below particularly, and coordinate appended graphicly, be described in detail below.
Accompanying drawing explanation
Fig. 1 is applied environment figure of the present invention.
The flow chart of the access frequency control method that Fig. 2 provides for first embodiment of the invention.
The flow chart of the access frequency control method that Fig. 3 provides for second embodiment of the invention.
The flow chart of the access frequency control method that Fig. 4 provides for third embodiment of the invention.
The flow chart of the access frequency control method that Fig. 5 provides for fourth embodiment of the invention.
The flow chart of the access frequency control method that Fig. 6 provides for fifth embodiment of the invention.
The structural representation of the central server that Fig. 7 provides for sixth embodiment of the invention.
The structural representation of the central server that Fig. 8 provides for seventh embodiment of the invention.
The structural representation of the interface message processor (IMP) that Fig. 9 provides for eighth embodiment of the invention.
The structural representation of the interface message processor (IMP) that Figure 10 provides for ninth embodiment of the invention.
The schematic diagram of the access frequency control system that Figure 11 provides for tenth embodiment of the invention.
Embodiment
For further setting forth the present invention, realize technological means and the effect that predetermined goal of the invention is taked, below in conjunction with accompanying drawing and preferred embodiment, to according to the specific embodiment of the present invention, structure, feature and effect thereof, be described in detail as follows.
Following each embodiment of the present invention all can be applicable in environment as shown in Figure 1 if no special instructions, as shown in Figure 1, central server 100 is connected with interface message processor (IMP) cluster 200 by the mode of wired or wireless network, and interface message processor (IMP) cluster 200 is connected with a plurality of service server clusters 300 by the mode of wired or wireless network.
A plurality of service server clusters 300 can comprise a plurality of service server clusters that client provides different kinds of business service that can be, such as mail service server cluster 300(identify label: Email300), microblogging service server cluster 300(identify label: MicroBlog300), cyberspace service server cluster 300(identify label: Qzone300) etc., corresponding can provide mail service, microblogging business and cyberspace business to client respectively.The service server that can comprise a plurality of same types of service in each service server cluster 300, for example: in microblogging service server cluster MicroBlog300, can comprise: MicroBlog300A, MicroBlog300B ... MicroBlog300300N.
In interface message processor (IMP) cluster 200, can comprise a plurality of interface message processor (IMP) 200A, 200B ... 200N.Interface message processor (IMP) can be data Platform Server, for according to the access request of service server cluster 300 each service servers, for each service server and cluster thereof provide access services, read-write or storage service data.Described a plurality of interface message processor (IMP) 200A, 200B ... 200N all can be respectively simultaneously for a plurality of service server clusters 300 provide service, can make like this resource of each interface message processor (IMP) be fully used, and can because of dissimilar service server cluster, to a plurality of interface message processor (IMP)s, the access closeness in same duration is different, but a service server restriction can only be accessed again an interface message processor (IMP), the interface message processor (IMP) having causing is very busy, some interface message processor (IMP)s are very idle phenomenon but, thereby can avoid the waste of interface message processor (IMP) cluster resource, improve the service efficiency of interface message processor (IMP) cluster resource.
The first embodiment
The flow chart of the access frequency control method that Fig. 2 provides for the first embodiment.As shown in Figure 2, the access frequency control method of the present embodiment comprises the following steps:
Step S11, every the preset duration that reports, central server receives the actual access frequency information of the described service server cluster that described interface message processor (IMP) cluster reports.
Access frequency refers to that service server cluster is at the preset number of times that reports access interface machine in duration.Actual access frequency information can at least comprise: preset, report docking port machine in duration to carry out the identify label (IDentity, ID) of all service server clusters of access, and access times.
Interface message processor (IMP), every the preset duration that reports, sends to central server by preset ID and the access times thereof of accessing all service server clusters of oneself in duration of reporting of statistics.
Step S12, according to described identify label and access times, adds up respectively service server cluster total access times to described interface message processor (IMP) cluster in preset access duration described in each.
Preset access duration is the duration standard of the access frequency of service control server cluster docking port machine cluster, the access frequency of service control server cluster docking port machine cluster is exactly that service control server cluster is in preset access duration, the access times of docking port machine cluster, can not surpass pre-set limit access times.
The preset duration that reports is set according to preset access duration, and preset access duration can be more than or equal to the described preset duration that reports, for example: suppose that preset access duration is 1 minute, the preset duration that reports can be 5 seconds.
Step S13, according to the total access times to described interface message processor (IMP) cluster in described preset access duration of service server cluster described in each, sends access frequency control command to described interface message processor (IMP).
Access frequency control command is included in preset access duration, total access times are equal to or greater than ID and the corresponding denied access duration of the service server cluster of pre-set limit access times, be used for making interface message processor (IMP) in denied access duration, refusal provides business service to corresponding service server cluster.
Be understandable that, central server also can be according to total access times of each service server cluster docking port machine cluster in preset access duration, to whole interface message processor (IMP) cluster, send access frequency control command, so that the total interface machine in whole interface message processor (IMP) cluster in denied access duration, is refused to provide business service to corresponding service server cluster.
The access frequency control method that the embodiment of the present invention provides, the actual access frequency information of the service server cluster regularly reporting according to interface message processor (IMP) by central server, add up respectively each service server cluster total access times to whole interface message processor (IMP) cluster in preset access duration, according to statistics, to interface message processor (IMP), send access frequency control command, so that interface message processor (IMP) is in denied access duration, the service server cluster that refusal surpasses preset access frequency to access frequency provides business service, realized the unified management to the access frequency of whole interface message processor (IMP) cluster to a plurality of service server clusters, thereby access frequency that can a plurality of service server cluster of more efficiently control docking port machine cluster, improve the service efficiency of interface message processor (IMP) cluster resource.
The second embodiment
The flow chart of the access frequency control method that Fig. 3 provides for the second embodiment.As shown in Figure 2, the access frequency control method of the present embodiment comprises the following steps:
Step S21, receives the access services application information that described service server sends.
Access services application information can at least comprise: under service server the identify label of service server cluster, service server cluster in preset access duration the pre-set limit access times of docking port machine cluster, the Internet protocol of service server (Internet Protocol, IP) address, with service server belong to a service server cluster other service server IP address, service server and belong to the IP address of other service server and the corresponding relation of service server cluster of a service server cluster.
Step S22, according to described access services application information, sends control frequency configuration information to described interface message processor (IMP) cluster.
Control frequency configuration information can comprise the part or all of content of the access services application information in step S21, for each interface message processor (IMP) of interface message processor (IMP) cluster according to control frequency configuration information, the access frequency of statistical service server cluster to oneself.
Step S23, according to described access services application information, creates or upgrades center server access frequency and control list.
Central server can create center server access frequency according to the access services application information receiving first and control list, and a plurality of access services application informations that send according to the service server by belonging to different business server cluster receiving thereafter, upgrade the content that center server access frequency is controlled list.
Be understandable that central server also can be respectively a plurality of service server clusters and create a plurality of center server access frequencys control lists.
In conjunction with the applied environment shown in Fig. 1, as shown in table 1 below, center server access frequency is controlled in list and can be comprised: at least one group of primary index information and secondary indexing information.Wherein, primary index information can comprise: the ID of each service server cluster; Secondary indexing information can comprise: the access times of each service server cluster preset access duration in the docking port machine cluster corresponding with ID.
Table 1
Be understandable that, as shown in table 2 below, center server access frequency is controlled in list and also can be comprised further: the information such as the preset access duration of each service server cluster, pre-set limit access times, residue statistics duration.
Table 2
Step S24, every the preset duration that reports, receives the actual access frequency information of the described service server cluster that described interface message processor (IMP) reports.
This step can, with reference to the corresponding contents in step S11 in the first embodiment, repeat no more here.
Step S25, according to the identify label of described service server cluster, controls and in list, searches and take the corresponding secondary indexing information of primary index information that the identify label of described service server cluster is content in described center server access frequency.
Step S26, by described preset reporting in duration, the service server cluster corresponding with described identify label adds up to the access times in the access times of described interface message processor (IMP) and current described secondary indexing information, according to cumulative gained, upgrades described secondary indexing information.
As with reference to property explanation, for example (example 1), shown in Fig. 1 and table 1, the preset access duration of supposing service server cluster MicroBlog300 is 1 minute, the preset duration that reports is 5 seconds, central server 100 receives respectively in second first and second actual access frequency information that interface message processor (IMP) 200A and interface message processor (IMP) 200B report for 5 seconds, wherein the first actual access frequency information comprises: in 5 seconds, service server cluster MicroBlog300 access 200 times, the second actual access frequency information comprises: in 5 seconds, service server cluster MicroBlog300 access 800 times.Central server 100 is according to first and second actual access frequency information, the corresponding secondary indexing information in updating form 1.Concrete, service server cluster MicroBlog300 access times 1000 in 5 seconds that in interface message processor (IMP) 200A is reported 5 seconds, service server cluster MicroBlog300 access times 200, interface message processor (IMP) 200B report, cumulative with the secondary indexing information (being also total access times 20 of current business server cluster MicroBlog300 docking port machine cluster 200 in 1 minute) of MicroBlog300 in table 1, then the cumulative numerical value 200+1000+20=1220 obtaining is write to this secondary indexing again, make table 1 as shown in table 3.
Table 3
The numerical value of cumulative gained be service server cluster MicroBlog300 in preset access duration, current total access times of docking port machine cluster 200.By add up respectively each service server cluster to whole interface message processor (IMP) cluster the total access times in preset access duration, can effectively prevent that each service server cluster is by the different interface message processor (IMP) of access, break at preset access duration and carry out only the restriction of the access of pre-set limit access times, thus access frequency that can a plurality of service server cluster of more efficiently control docking port machine cluster.
Step S27, the secondary indexing information according to after upgrading, sends access frequency control command to described interface message processor (IMP).
Secondary indexing information is each service server cluster total access times to described interface message processor (IMP) cluster in preset access duration.By secondary indexing information and pre-set limit access times are compared, can judge the whether super rate of access frequency of each service server cluster.
Access frequency control command can comprise: in preset access duration, total access times are equal to or greater than ID and the corresponding denied access duration of the service server cluster of pre-set limit access times, be used for making interface message processor (IMP) in denied access duration, refusal provides business service to corresponding service server cluster.
Be understandable that, if the related service server cluster of the actual access frequency information that interface message processor (IMP) reports overclocking not, central server also can using this service server cluster not the information of overclocking as access frequency control command, send to interface message processor (IMP).
As with reference to property explanation, for example, still the above-mentioned example 1 of take is example, shown in Fig. 1 and table 3, the pre-set limit access times of supposing service server cluster MicroBlog300 in 1 minute are 1000, central server 100 can will be in table 2 surpass according to statistics the ID(MicroBlog300 of the service server cluster of pre-set limit access times) and total access times (1220 times) as access frequency control command, send to interface message processor (IMP) 200A and interface message processor (IMP) 200B, so that during the access request of interface message processor (IMP) 200A and interface message processor (IMP) 200B arbitrary service server in receiving service server cluster MicroBlog300, return to exclude information, and in denied access duration, refusal provides access services to this service server.Wherein, denied access duration is that preset access duration is removed the residue access duration of adding up outside duration, also the i.e. value of the residue statistics duration of service server cluster MicroBlog300 in table 2.After denied access duration is used up, interface message processor (IMP) 200A and interface message processor (IMP) 200B can be again for service server cluster MicroBlog300 provide access services.
Be understandable that, central server 100 also can send to access frequency control command each interface message processor (IMP) 200A, the 200B in interface message processor (IMP) cluster 200 ... 200N.
Step S28, after described preset access duration is used up, empty described center server access frequency control in list, be equal to or greater than described preset access duration with described access times in the corresponding secondary indexing information of service server cluster of limiting access number of times.
Because the preset access duration of each service server cluster is different, after the preset access duration of certain service server cluster is used up, central server empty center server access frequency control in list (table 1) with this service server cluster with respect to secondary indexing information.As a reference, for example, in conjunction with Fig. 1, shown in table 2, suppose that the preset access duration of service server cluster MicroBlog300 and service server cluster Email300 uses up, central server 100 empties service server cluster MicroBlog300 and service server cluster Email300 secondary indexing value in table 2, and the residue statistics duration information of resetting the two, table 2 is become as shown in table 4 below, to be again service server cluster MicroBlog300 and service server cluster Email300 timing, again statistical service server cluster MicroBlog300 and service server cluster Email300 are in preset access duration, total access times of docking port machine cluster 200.
Table 4
The access frequency control method that the embodiment of the present invention provides, the actual access frequency information of the service server cluster regularly reporting according to interface message processor (IMP) by central server, add up respectively each service server cluster total access times to whole interface message processor (IMP) cluster in preset access duration, according to statistics, to interface message processor (IMP), send access frequency control command, so that interface message processor (IMP) is in denied access duration, the service server cluster that refusal surpasses preset access frequency to access frequency provides business service, realized the unified management to the access frequency of whole interface message processor (IMP) cluster to a plurality of service server clusters, thereby access frequency that can a plurality of service server cluster of more efficiently control docking port machine cluster, improve the service efficiency of interface message processor (IMP) cluster resource.
The 3rd embodiment
The flow chart that Fig. 4 controls for the access frequency that the 3rd embodiment provides.As shown in Figure 4, the access frequency control method of the present embodiment comprises the following steps:
Step S31, interface message processor (IMP) is every the preset duration that reports, and statistics, described preset reporting in duration, was carried out the access times of each service server cluster of access to described interface message processor (IMP).
Step S32, sends actual access frequency information to central server.
In actual access frequency information, be included in preset reporting in duration, docking port machine carried out identify label and the access times of all service server clusters of access.
Step S33, receive the access frequency control command that described central server sends, described access frequency control command is included in described preset access duration, and total access times are equal to or greater than identify label and the corresponding denied access duration of the service server cluster of pre-set limit access times.
Step S34, according to described access frequency control command, in described denied access duration, refusal provides business service to corresponding service server cluster.
The access frequency control method that the embodiment of the present invention provides, the actual access frequency information of the service server cluster regularly reporting according to interface message processor (IMP) by central server, add up respectively each service server cluster total access times to whole interface message processor (IMP) cluster in preset access duration, according to statistics, to interface message processor (IMP), send access frequency control command, so that interface message processor (IMP) is in denied access duration, the service server cluster that refusal surpasses preset access frequency to access frequency provides business service, realized the unified management to the access frequency of whole interface message processor (IMP) cluster to a plurality of service server clusters, thereby access frequency that can a plurality of service server cluster of more efficiently control docking port machine cluster, improve the service efficiency of interface message processor (IMP) cluster resource.
The 4th embodiment
The flow chart that Fig. 5 controls for the access frequency that the 4th embodiment provides.As shown in Figure 5, the access frequency control method of the present embodiment comprises the following steps:
Step S41, receives the control frequency configuration information that described central server sends.
Access services application information when applying for access services, sends to central server by service server.Central server, according to the access services application information receiving, issues control frequency configuration information to the total interface machine in interface message processor (IMP) cluster.Control frequency configuration information can comprise: access services application information comprises the ID of the affiliated service server cluster of service server, the pre-set limit access times of service server cluster docking port machine cluster in preset access duration, the IP address of service server, belong to the IP address of other service server of a service server cluster with service server, service server and the IP address of other service server and the corresponding relation of service server cluster that belong to a service server cluster.
Step S42, according to control frequency configuration information, creates or upgrades interface message processor (IMP) end access frequency and control list.
Interface message processor (IMP) creates interface message processor (IMP) end access frequency according to the access services application information receiving first and controls list, and according to a plurality of control frequency configuration informations that receive thereafter, upgrades the content that interface message processor (IMP) end access frequency is controlled list.
Be understandable that, interface message processor (IMP) also can be a plurality of service server clusters and creates a plurality of interface message processor (IMP) end access frequencys control lists.
Concrete, can, according to the ID of each service server cluster in control frequency configuration information, the IP address of each service server that belongs to a service server cluster and the IP address of each service server and the corresponding relation of each service server cluster that belongs to a service server cluster, create interface message processor (IMP) end access frequency and control list.
Interface message processor (IMP) end access frequency is controlled in list and can be comprised: at least one group of primary index information and secondary indexing information, primary index information comprises: the ID of service server cluster, secondary indexing information comprises: interface message processor (IMP) is at the preset number of times that reports the service server cluster access interface machine collecting in duration.Except above-mentioned information, also can also be further as shown in table 5, comprising: the preset information such as IP address that report duration, preset access duration, residue statistics duration, subordinate's service server.
Table 5
Step S43, is recorded in described preset reporting in duration, accesses the IP address of each service server of described interface message processor (IMP).
Step S44, according to the IP address of each service server and the corresponding relation of each service server cluster that belong to a service server cluster, the access times of each service server cluster of accumulative total to described interface message processor (IMP), and the access times that go out according to accumulative total are upgraded the secondary indexing information in described interface message processor (IMP) end access frequency control list.
Concrete, as a reference, for example (example 2), shown in Fig. 1 and table 5, in 5 seconds, when interface message processor (IMP) 200A monitors IP address and is the access to oneself of service server MicroBlog300A of 119.139.29.58, the IP address 119.139.29.58 of the service server MicroBlog300A of the current access of interface message processor (IMP) 200 record, according to IP address 119.139.29.58 find with service server MicroBlog300A under service server cluster MicroBlog300, and upgrade the secondary indexing information of service server cluster MicroBlog300, make table 5 as shown in table 6 below.
Table 6
Step S45, when described preset while reporting duration to use up, described primary index information and described secondary indexing information that described interface message processor (IMP) end access frequency is controlled in list report described central server as actual access frequency information, and after reporting, empty the described secondary indexing information in described interface message processor (IMP) end access frequency control list.
Still take example 2 as example, as shown in Fig. 1 and table 5, the preset duration that reports of supposing service server cluster MicroBlog300 is 5 seconds, interface message processor (IMP) 200A is when monitoring 5 seconds and used up, also the residue of service server cluster MicroBlog300 statistics duration is 0 o'clock in table 5, the primary index information MicroBlog300 of service server cluster MicroBlog300 and secondary indexing information 21 are reported to central server 100 as actual access frequency information, and after reporting, the secondary indexing value of service server cluster MicroBlog300 is emptied, the residue statistics duration of replacement service server cluster MicroBlog300, make table 6 as shown in table 7.
Table 7
Be understandable that, when interface message processor (IMP) is used up at the preset access duration that monitors certain service server cluster, also the secondary indexing value of can cleanout port machine end access frequency controlling this service server cluster in list, and the residue of this service server cluster of resetting statistics duration.
Step S46, receive the access frequency control command that described central server sends, described access frequency control command is included in described preset access duration, and total access times are equal to or greater than identify label and the corresponding denied access duration of the service server cluster of pre-set limit access times.
Step S47, according to described access frequency control command, in described denied access duration, refusal provides business service to corresponding service server cluster.
Interface message processor (IMP) can be controlled in list in interface message processor (IMP) end access frequency, the needs refusal relating in the instruction of mark access FREQUENCY CONTROL provides the service server cluster of access services, when receiving the access request of the service server cluster being labeled, refusal provides access services for it, and send denied access information to this service server cluster, notify this service server cluster to surpass limiting access frequency, this service server cluster, in denied access duration, cannot obtain the access services that interface message processor (IMP) provides.
The access frequency control method that the embodiment of the present invention provides, the actual access frequency information of the service server cluster regularly reporting according to interface message processor (IMP) by central server, add up respectively each service server cluster total access times to whole interface message processor (IMP) cluster in preset access duration, according to statistics, to interface message processor (IMP), send access frequency control command, so that interface message processor (IMP) is in denied access duration, the service server cluster that refusal surpasses preset access frequency to access frequency provides business service, realized the unified management to the access frequency of whole interface message processor (IMP) cluster to a plurality of service server clusters, thereby access frequency that can a plurality of service server cluster of more efficiently control docking port machine cluster, improve the service efficiency of interface message processor (IMP) cluster resource.
The 5th embodiment
The flow chart of the access frequency control method that Fig. 6 provides for the 5th embodiment.As shown in Figure 6, the access frequency control method of the present embodiment comprises the following steps:
Step S501, service server cluster sends access services application information to central server.
Service server cluster sends service request information to central server, to central server application access services.Wherein, service request information can comprise: the pre-set limit access times of the ID of service server cluster, service server cluster docking port machine cluster in preset access duration (being also the frequency that service server cluster needs docking port machine cluster to conduct interviews), the IP address of each service server of service server cluster subordinate, the IP address of each service server of service server cluster subordinate and the corresponding relation of service server cluster.
After above-mentioned access services application goes through, service server can obtain the authority of access interface machine cluster.
Step S502, central server creates according to the access services application information receiving or upgrades center server access frequency and control list.
This step can, with reference to the corresponding contents in step S23 in the second embodiment, repeat no more here.
Step S503, after access services application goes through, central server sends control frequency configuration information to described interface message processor (IMP) cluster.
Control frequency configuration information is to be sent according to access services application information by central server.Control frequency configuration information at least comprises the part or all of content in access services application information.
Step S504, interface message processor (IMP) cluster, according to the control frequency configuration information receiving, creates or upgrades interface message processor (IMP) end access frequency and control list.
Each interface message processor (IMP) in machine cluster, according to the control frequency configuration information receiving, creates or upgrades interface message processor (IMP) end access frequency and control list.
Each interface message processor (IMP) creates or upgrades the concrete steps that interface message processor (IMP) end access frequency is controlled list, can, with reference to the corresponding contents in step S42 in the 4th embodiment, repeat no more here.
Step S505, service server cluster sends access request to interface message processor (IMP) cluster for the first time.
Step S506, interface message processor (IMP) cluster notice central server is received the access request that service server cluster sends for the first time.
Step S507, central server starts the number of times timing of access interface machine cluster in preset access duration for statistical service server cluster.
Step S508, the preset duration that reports in interval, interface message processor (IMP) cluster is reported and submitted the actual access frequency information of service server cluster to central server.
Actual access frequency is that service server cluster reports in duration preset, the number of times of access interface machine cluster.
The preset duration that reports in interval, interface message processor (IMP) cluster records and adds up and reports in duration epicycle is preset, the number of times of service server cluster access oneself, and the access times of statistics are sent to central server as actual access frequency information.
Concrete steps, can, with reference to the corresponding contents in step S42-S45 in the 4th embodiment, repeat no more here.
Step S509, central server, according to the actual access frequency information of the service server cluster receiving, is added up in preset access duration total access times of service server cluster access interface machine cluster.
Concrete steps, can, with reference to the corresponding contents in step S25-S26 in the second embodiment, repeat no more here.
Step S510, central server, according to total access times of statistics, sends access frequency control command to described interface message processor (IMP).
In access frequency control command, can comprise that service server cluster is in preset access duration, whether whether total access times of docking port machine cluster be more than or equal to pre-set limit access times, need refusal that the information such as access services, denied access duration are provided to service server.
Step S511, service server cluster sends access request to interface message processor (IMP) cluster.
Step S512, in access frequency control command, comprise while refusing to provide the information of access services to service server cluster, interface message processor (IMP) cluster sends denied access information to service server cluster, and refusal, in denied access duration, provides access services to service server cluster.
The access frequency control method that the embodiment of the present invention provides, the actual access frequency information of the service server cluster regularly reporting according to interface message processor (IMP) by central server, add up respectively each service server cluster total access times to whole interface message processor (IMP) cluster in preset access duration, according to statistics, to interface message processor (IMP), send access frequency control command, so that interface message processor (IMP) is in denied access duration, the service server cluster that refusal surpasses preset access frequency to access frequency provides business service, realized the unified management to the access frequency of whole interface message processor (IMP) cluster to a plurality of service server clusters, thereby access frequency that can a plurality of service server cluster of more efficiently control docking port machine cluster, improve the service efficiency of interface message processor (IMP) cluster resource.
The 6th embodiment
The structural representation of the central server that Fig. 7 provides for sixth embodiment of the invention.The central server that the present embodiment provides can be for realizing the control of the access frequency of a plurality of service server cluster docking port machine clusters.As shown in Figure 7, central server 10 comprises: actual access frequency information receiver module 11, total access times statistical module 12, access frequency control command sending module 13.
Wherein, actual access frequency information receiver module 11 is for every the preset duration that reports, the actual access frequency information of the service server cluster that receiving interface machine reports, described actual access frequency information comprises, described preset reporting in duration, described interface message processor (IMP) was carried out to identify label and the access times of all service server clusters of access.
Described identify label and the access times of total access times statistical module 12 for receiving according to described actual access frequency information receiver module 11, add up respectively service server cluster total access times to described interface message processor (IMP) cluster in preset access duration described in each, described preset access duration is more than or equal to the described preset duration that reports.
Access frequency control command sending module 13, service server cluster total access times to described interface message processor (IMP) cluster in described preset access duration described in each that is used for adding up according to described total access times statistical module 12, to described interface message processor (IMP), send access frequency control command, described access frequency control command is included in described preset access duration, total access times are equal to or greater than identify label and the corresponding denied access duration of the service server cluster of pre-set limit access times, so that described interface message processor (IMP) is in described denied access duration, refusal provides business service to corresponding service server cluster.
Each Implement of Function Module of the present embodiment central server 10 is the detailed process of function separately, refers to above-mentioned Fig. 1 to the particular content of middle description embodiment illustrated in fig. 6, repeats no more herein.
The access frequency control device that the embodiment of the present invention provides, the actual access frequency information of the service server cluster regularly reporting according to interface message processor (IMP) by central server, add up respectively each service server cluster total access times to whole interface message processor (IMP) cluster in preset access duration, according to statistics, to interface message processor (IMP), send access frequency control command, so that interface message processor (IMP) is in denied access duration, the service server cluster that refusal surpasses preset access frequency to access frequency provides business service, realized the unified management to the access frequency of whole interface message processor (IMP) cluster to a plurality of service server clusters, thereby access frequency that can a plurality of service server cluster of more efficiently control docking port machine cluster, improve the service efficiency of interface message processor (IMP) cluster resource.
The 7th embodiment
The structural representation of the central server that Fig. 8 provides for seventh embodiment of the invention.The central server that the present embodiment provides can be for realizing the control of the access frequency of a plurality of service server cluster docking port machine clusters.As shown in Figure 8, central server 20 comprises: actual access frequency information receiver module 21, total access times statistical module 22, access frequency control command sending module 23, access services application information receiver module 24, access services application information sending module 25, center server access frequency are controlled list creating module 26, center server empties module 27.
Wherein, actual access frequency information receiver module 21 is for every the preset duration that reports, the actual access frequency information of the service server cluster that receiving interface machine reports, described actual access frequency information comprises, described preset reporting in duration, described interface message processor (IMP) was carried out to identify label and the access times of all service server clusters of access.
Described identify label and the access times of total access times statistical module 22 for receiving according to described actual access frequency information receiver module 21, add up respectively service server cluster total access times to described interface message processor (IMP) cluster in preset access duration described in each, described preset access duration is more than or equal to the described preset duration that reports.Comprise: search unit 221 and cumulative unit 222.Wherein search unit 221, for the identify label of the described service server cluster that receives according to described actual access frequency information receiver module 21, in described center server access frequency, control and in list, search and take the corresponding secondary indexing information of primary index information that the identify label of described service server cluster is content.Described preset report duration in of cumulative unit 222 for described actual access frequency information receiver module 21 is received, the access times of the service server cluster corresponding with described identify label to described interface message processor (IMP) cluster, add up with described access times of searching in the current described secondary indexing information that unit 221 finds, according to cumulative gained, upgrade described secondary indexing information.
Access frequency control command sending module 23, service server cluster total access times to described interface message processor (IMP) cluster in described preset access duration described in each that is used for adding up according to described total access times statistical module 22, to described interface message processor (IMP), send access frequency control command, described access frequency control command is included in described preset access duration, total access times are equal to or greater than identify label and the corresponding denied access duration of the service server cluster of pre-set limit access times, so that described interface message processor (IMP) is in described denied access duration, refusal provides business service to corresponding service server cluster.
The access services application information that access services application information receiver module 24 sends for receiving described service server, described access services application information comprises: the identify label of service server cluster under described service server, described service server cluster is the pre-set limit access times to described interface message processor (IMP) cluster in described preset access duration, the Internet protocol address of described service server, belong to the Internet protocol address of other service server of a service server cluster with described service server, described service server with described in belong to the Internet protocol address of other service server and the corresponding relation of described service server cluster of a service server cluster,
Access services application information sending module 25, for according to described access services application information, sends control frequency configuration information to described interface message processor (IMP) cluster.
It is described according to described access services application information for what receive according to described access services application information receiver module 24 that center server access frequency is controlled list creating module 26, create or upgrade center server access frequency and control list, described center server access frequency is controlled list and is comprised at least one group of primary index information and secondary indexing information, described primary index information comprises the identify label of each service server cluster, described secondary indexing information comprises each service server cluster access times to described interface message processor (IMP) cluster in described preset access duration.
Center server empties module 27 for after using up at described preset access duration, empty described center server access frequency control in list, be equal to or greater than described preset access duration with described access times in the corresponding secondary indexing information of service server cluster of limiting access number of times.
Each Implement of Function Module of the present embodiment central server 20 is the detailed process of function separately, refers to above-mentioned Fig. 1 to the particular content of middle description embodiment illustrated in fig. 6, repeats no more herein.
The access frequency control device that the embodiment of the present invention provides, the actual access frequency information of the service server cluster regularly reporting according to interface message processor (IMP) by central server, add up respectively each service server cluster total access times to whole interface message processor (IMP) cluster in preset access duration, according to statistics, to interface message processor (IMP), send access frequency control command, so that interface message processor (IMP) is in denied access duration, the service server cluster that refusal surpasses preset access frequency to access frequency provides business service, realized the unified management to the access frequency of whole interface message processor (IMP) cluster to a plurality of service server clusters, thereby access frequency that can a plurality of service server cluster of more efficiently control docking port machine cluster, improve the service efficiency of interface message processor (IMP) cluster resource.
The 8th embodiment
The structural representation of the interface message processor (IMP) that Fig. 9 provides for eighth embodiment of the invention.The interface message processor (IMP) 30 that the present embodiment provides can be for realizing the control of the access frequency of a plurality of service server cluster docking port machine clusters.As shown in Figure 9, interface message processor (IMP) 30 comprises: access times statistical module 31, actual access frequency information sending module 32, access frequency control command receiver module 33, denial of service module 34.
Access times statistical module 31, for every the preset duration that reports, is added up described preset reporting in duration, described interface message processor (IMP) is carried out to the access times of each service server cluster of access.
Actual access frequency information sending module 32 is for sending actual access frequency information to described central server, in described actual access frequency information, be included in described preset reporting in duration, described interface message processor (IMP) carried out to the identify label of all service server clusters and the access times of described access times statistical module counts of access.
The access frequency control command that access frequency control command receiver module 33 sends for receiving described central server, described access frequency control command is included in described preset access duration, and total access times are equal to or greater than identify label and the corresponding denied access duration of the service server cluster of pre-set limit access times.
The described access frequency control command of denial of service module 34 for receiving according to described access frequency control command receiver module 33, in described denied access duration, refusal provides business service to corresponding service server cluster.
Each Implement of Function Module of the present embodiment interface message processor (IMP) 30 is the detailed process of function separately, refers to above-mentioned Fig. 1 to the particular content of middle description embodiment illustrated in fig. 6, repeats no more herein.
The access frequency control device that the embodiment of the present invention provides, the actual access frequency information of the service server cluster regularly reporting according to interface message processor (IMP) by central server, add up respectively each service server cluster total access times to whole interface message processor (IMP) cluster in preset access duration, according to statistics, to interface message processor (IMP), send access frequency control command, so that interface message processor (IMP) is in denied access duration, the service server cluster that refusal surpasses preset access frequency to access frequency provides business service, realized the unified management to the access frequency of whole interface message processor (IMP) cluster to a plurality of service server clusters, thereby access frequency that can a plurality of service server cluster of more efficiently control docking port machine cluster, improve the service efficiency of interface message processor (IMP) cluster resource.
The 9th embodiment
The structural representation of the interface message processor (IMP) that Figure 10 provides for ninth embodiment of the invention.The interface message processor (IMP) 40 that the present embodiment provides can be for realizing the control of the access frequency of a plurality of service server cluster docking port machine clusters.As shown in figure 10, interface message processor (IMP) 40 comprises: access times statistical module 41, actual access frequency information sending module 42, access frequency control command receiver module 43, denial of service module 44, control frequency configuration information receiver module 45, interface message processor (IMP) end access frequency are controlled list creating module 46, interface message processor (IMP) end empties module 47.
Access times statistical module 41, for every the preset duration that reports, is added up described preset reporting in duration, described interface message processor (IMP) is carried out to the access times of each service server cluster of access.Access times statistical module 41 also comprises: Internet protocol address record cell 411, access times accumulative total report unit 413 with secondary indexing information updating unit 412, actual access frequency information.Wherein, Internet protocol address record cell 411, for being recorded in described preset reporting in duration, is accessed the Internet protocol address of each service server of described interface message processor (IMP).Access times accumulative total belongs to the Internet protocol address of each service server and the corresponding relation of each service server cluster of a service server cluster for basis with secondary indexing information updating unit 412, the access times of each service server cluster of accumulative total to described interface message processor (IMP), and the access times that go out according to accumulative total are upgraded the secondary indexing information in described interface message processor (IMP) access frequency control list.Actual access frequency information reports unit 413 for when described preset while reporting duration to use up, and described primary index information and described secondary indexing information that described interface message processor (IMP) end access frequency is controlled in list report described central server as actual access frequency information.
Actual access frequency information sending module 42 is for sending actual access frequency information to described central server, in described actual access frequency information, be included in described preset reporting in duration, described interface message processor (IMP) carried out to the identify label of all service server clusters and the access times of described access times statistical module counts of access.
The access frequency control command that access frequency control command receiver module 43 sends for receiving described central server, described access frequency control command is included in described preset access duration, and total access times are equal to or greater than identify label and the corresponding denied access duration of the service server cluster of pre-set limit access times.
The described access frequency control command of denial of service module 44 for receiving according to described access frequency control command receiver module 43, in described denied access duration, refusal provides business service to corresponding service server cluster.
The control frequency configuration information that control frequency configuration information receiver module 45 sends for receiving described central server, the access services application information that described control frequency configuration information is sent according to the described service server receiving by described central server when applying for access services sends, comprise: the identify label of service server cluster under described service server, described service server cluster is the pre-set limit access times to described interface message processor (IMP) cluster in described preset access duration, the Internet protocol address of described service server, belong to the Internet protocol address of other service server of a service server cluster with described service server, described service server with described in belong to the Internet protocol address of other service server and the corresponding relation of described service server cluster of a service server cluster.
Interface message processor (IMP) end access frequency is controlled the described control frequency configuration information of list creating module 46 for receiving according to described control frequency configuration information receiver module 45, create or upgrade interface message processor (IMP) end access frequency and control list, described interface message processor (IMP) end access frequency is controlled list and is comprised at least one group of primary index information and secondary indexing information, described primary index information comprises the identify label of service server cluster described in each, and described secondary indexing information comprises that described each service server cluster is in the described preset access times to described interface message processor (IMP) in duration that report.
Interface message processor (IMP) end empties module 47 for presetly reporting duration to use up or after described preset access duration uses up, empty described interface message processor (IMP) end access frequency and control the described secondary indexing information in list described.
Each Implement of Function Module of the present embodiment interface message processor (IMP) 40 is the detailed process of function separately, refers to above-mentioned Fig. 1 to the particular content of middle description embodiment illustrated in fig. 6, repeats no more herein.
The access frequency control device that the embodiment of the present invention provides, the actual access frequency information of the service server cluster regularly reporting according to interface message processor (IMP) by central server, add up respectively each service server cluster total access times to whole interface message processor (IMP) cluster in preset access duration, according to statistics, to interface message processor (IMP), send access frequency control command, so that interface message processor (IMP) is in denied access duration, the service server cluster that refusal surpasses preset access frequency to access frequency provides business service, realized the unified management to the access frequency of whole interface message processor (IMP) cluster to a plurality of service server clusters, thereby access frequency that can a plurality of service server cluster of more efficiently control docking port machine cluster, improve the service efficiency of interface message processor (IMP) cluster resource.
The embodiment of the present invention also provides a kind of access frequency control system, refers to Figure 11, and access frequency control system 50 comprises: central server 51, interface message processor (IMP) cluster 52 and a plurality of service server cluster 53.
The detailed process of respectively installing practical function in the access frequency control system in the present embodiment refers to the method for the corresponding embodiment of Fig. 1 to Fig. 6, and the device of the corresponding embodiment of Fig. 7 figure to Figure 10, repeats no more herein.
It should be noted that, each embodiment in this specification all adopts the mode of going forward one by one to describe, and each embodiment stresses is the difference with other embodiment, between each embodiment identical similar part mutually referring to.For device class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
It should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the device that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or device.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the device that comprises described key element and also have other identical element.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
The above, it is only preferred embodiment of the present invention, not the present invention is done to any pro forma restriction, although the present invention discloses as above with preferred embodiment, yet not in order to limit the present invention, any those skilled in the art, do not departing within the scope of technical solution of the present invention, when can utilizing the technology contents of above-mentioned announcement to make a little change or being modified to the equivalent embodiment of equivalent variations, in every case be not depart from technical solution of the present invention content, any simple modification of above embodiment being done according to technical spirit of the present invention, equivalent variations and modification, all still belong in the scope of technical solution of the present invention.

Claims (22)

1. an access frequency control method, for controlling the access frequency of a plurality of service server cluster docking port machine clusters, described in each, service server cluster comprises the service server of a plurality of same types of service, and described interface message processor (IMP) cluster comprises a plurality of interface message processor (IMP)s, it is characterized in that, comprising:
Every the preset duration that reports, central server receives the actual access frequency information of the described service server cluster that described interface message processor (IMP) reports, described actual access frequency information comprises, described preset reporting in duration, described interface message processor (IMP) was carried out to identify label and the access times of all service server clusters of access;
According to described identify label and access times, add up respectively service server cluster total access times to described interface message processor (IMP) cluster in preset access duration described in each, described preset access duration is more than or equal to the described preset duration that reports; And
According to the total access times to described interface message processor (IMP) cluster in described preset access duration of service server cluster described in each, to described interface message processor (IMP), send access frequency control command, described access frequency control command is included in described preset access duration, total access times are equal to or greater than identify label and the corresponding denied access duration of the service server cluster of pre-set limit access times, so that described interface message processor (IMP) in described denied access duration, is refused to provide business service to corresponding service server cluster.
2. the method for claim 1, is characterized in that, the described service server cluster that the described interface message processor (IMP) of described reception reports, before each preset step that reports the actual access frequency information in duration, also comprises:
Receive the access services application information that described service server sends, described access services application information comprises: the identify label of service server cluster under described service server, described service server cluster is the pre-set limit access times to described interface message processor (IMP) cluster in described preset access duration, the Internet protocol address of described service server, belong to the Internet protocol address of other service server of a service server cluster with described service server, described service server with described in belong to the Internet protocol address of other service server and the corresponding relation of described service server cluster of a service server cluster,
According to described access services application information, send control frequency configuration information to described interface message processor (IMP) cluster.
3. method as claimed in claim 2, is characterized in that, the described service server cluster that the described interface message processor (IMP) of described reception reports, before each preset step that reports the actual access frequency information in duration, also comprises:
According to described access services application information, create or upgrade center server access frequency and control list, described center server access frequency is controlled list and is comprised at least one group of primary index information and secondary indexing information, described primary index information comprises the identify label of each service server cluster, and described secondary indexing information comprises and described each service server cluster access times to described interface message processor (IMP) cluster in described preset access duration.
4. method as claimed in claim 3, is characterized in that, described according to described identify label and access times, adds up respectively service server cluster described in each and in preset access duration, the step of total access times of described interface message processor (IMP) cluster is comprised:
According to the identify label of described service server cluster, in described center server access frequency, control and in list, search and take the corresponding secondary indexing information of primary index information that the identify label of described service server cluster is content;
By described preset reporting in duration, the access times of the service server cluster corresponding with described identify label to described interface message processor (IMP), add up with the access times in current described secondary indexing information, according to cumulative gained, upgrade described secondary indexing information.
5. method as claimed in claim 3, it is characterized in that, described according to the total access times to described interface message processor (IMP) cluster in described preset access duration of service server cluster described in each, after described interface message processor (IMP) cluster sends the step of access frequency control command, also comprise:
After described preset access duration is used up, empty described center server access frequency control in list, be equal to or greater than described preset access duration with described access times in the corresponding secondary indexing information of service server cluster of limiting access number of times.
6. an access frequency control method, for controlling the access frequency of a plurality of service server cluster docking port machine clusters, described in each, service server cluster comprises the service server of a plurality of same types of service, and described interface message processor (IMP) cluster comprises a plurality of interface message processor (IMP)s, it is characterized in that, comprising:
Described interface message processor (IMP) is every the preset duration that reports, and statistics, described preset reporting in duration, was carried out the access times of each service server cluster of access to described interface message processor (IMP);
To central server, send actual access frequency information, in described actual access frequency information, be included in described preset reporting in duration, described interface message processor (IMP) was carried out to identify label and the access times of all service server clusters of access;
Receive the access frequency control command that described central server sends, described access frequency control command is included in described preset access duration, and total access times are equal to or greater than identify label and the corresponding denied access duration of the service server cluster of pre-set limit access times; And
According to described access frequency control command, in described denied access duration, refusal provides business service to corresponding service server cluster.
7. method as claimed in claim 6, it is characterized in that, described interface message processor (IMP) is every the preset duration that reports, and statistics is described preset reporting in duration, before described interface message processor (IMP) cluster being carried out to the step of access times of each service server cluster of access, also comprise:
Receive the control frequency configuration information that described central server sends, the access services application information that described control frequency configuration information is sent according to the described service server receiving by described central server when applying for access services sends, comprise: the identify label of service server cluster under described service server, described service server cluster is the pre-set limit access times to described interface message processor (IMP) cluster in described preset access duration, the Internet protocol address of described service server, belong to the Internet protocol address of other service server of a service server cluster with described service server, described service server with described in belong to the Internet protocol address of other service server and the corresponding relation of described service server cluster of a service server cluster.
8. method as claimed in claim 7, it is characterized in that, described interface message processor (IMP) is every the preset duration that reports, and statistics is described preset reporting in duration, before described interface message processor (IMP) cluster being carried out to the step of access times of each service server cluster of access, also comprise:
According to described control frequency configuration information, create or upgrade interface message processor (IMP) end access frequency and control list, described interface message processor (IMP) end access frequency is controlled list and is comprised at least one group of primary index information and secondary indexing information, described primary index information comprises the identify label of each service server cluster, and described secondary indexing information comprises that described each service server cluster is in the described preset access times to described interface message processor (IMP) in duration that report.
9. method as claimed in claim 8, is characterized in that, described interface message processor (IMP) is every the preset duration that reports, and statistics is described preset reporting in duration, described interface message processor (IMP) cluster is carried out to the step of access times of each service server cluster of access, comprising:
Be recorded in described preset reporting in duration, access the Internet protocol address of each service server of described interface message processor (IMP);
According to the Internet protocol address of each service server and the corresponding relation of each service server cluster that belong to a service server cluster, the access times of each service server cluster of accumulative total to described interface message processor (IMP), and the access times that go out according to accumulative total are upgraded the secondary indexing information in described interface message processor (IMP) end access frequency control list;
When described preset while reporting duration to use up, described primary index information and described secondary indexing information that described interface message processor (IMP) end access frequency is controlled in list report described central server as actual access frequency information.
10. method as claimed in claim 8, is characterized in that, also comprises:
Described, presetly report duration to use up or after described preset access duration uses up, empty described interface message processor (IMP) end access frequency and control the described secondary indexing information in list.
11. 1 kinds of access frequency control methods, for controlling the access frequency of a plurality of service server cluster docking port machine clusters, described in each, service server cluster comprises the service server of a plurality of same types of service, and described interface message processor (IMP) cluster comprises a plurality of interface message processor (IMP)s, it is characterized in that, comprising:
Described interface message processor (IMP) is every the preset duration that reports, and statistics, described preset reporting in duration, was carried out the access times of each service server cluster of access to described interface message processor (IMP);
Described interface message processor (IMP) sends actual access frequency information to central server, is included in described preset reporting in duration in described actual access frequency information, described interface message processor (IMP) is carried out to identify label and the access times of all service server clusters of access;
Central server receives the described actual access frequency information that described interface message processor (IMP) sends, according to described identify label and the access times in described actual access frequency information, add up respectively service server cluster total access times to described interface message processor (IMP) cluster in preset access duration described in each, described preset access duration is more than or equal to the described preset duration that reports;
Described central server according to statistics each described in service server cluster total access times to described interface message processor (IMP) cluster in described preset access duration, to described interface message processor (IMP), send access frequency control command, described access frequency control command is included in described preset access duration, total access times are equal to or greater than identify label and the corresponding denied access duration of the service server cluster of pre-set limit access times, so that described interface message processor (IMP) in described denied access duration, is refused to provide business service to corresponding service server cluster; And
Described interface message processor (IMP) receives the access frequency control command that described central server sends, and according to described access frequency control command, in described denied access duration, refusal provides business service to corresponding service server cluster.
12. 1 kinds of central servers, is characterized in that, comprising:
Actual access frequency information receiver module, be used for every the preset duration that reports, the actual access frequency information of the service server cluster that central server receiving interface machine reports, described actual access frequency information comprises, described preset reporting in duration, described interface message processor (IMP) was carried out to identify label and the access times of all service server clusters of access;
Total access times statistical module, for described identify label and the access times that receive according to described actual access frequency information receiver module, add up respectively service server cluster total access times to described interface message processor (IMP) cluster in preset access duration described in each, described preset access duration is more than or equal to the described preset duration that reports; And
Access frequency control command sending module, for according to service server cluster total access times to described interface message processor (IMP) cluster in described preset access duration described in each of described total access times statistical module counts, to described interface message processor (IMP), send access frequency control command, described access frequency control command is included in described preset access duration, total access times are equal to or greater than identify label and the corresponding denied access duration of the service server cluster of pre-set limit access times, so that described interface message processor (IMP) is in described denied access duration, refusal provides business service to corresponding service server cluster.
13. central servers as claimed in claim 12, is characterized in that, also comprise:
Access services application information receiver module, the access services application information sending for receiving described service server, described access services application information comprises: the identify label of service server cluster under described service server, described service server cluster is the pre-set limit access times to described interface message processor (IMP) cluster in described preset access duration, the Internet protocol address of described service server, belong to the Internet protocol address of other service server of a service server cluster with described service server, described service server with described in belong to the Internet protocol address of other service server and the corresponding relation of described service server cluster of a service server cluster,
Access services application information sending module, also, for according to described access services application information, sends control frequency configuration information to described interface message processor (IMP) cluster.
14. central servers as claimed in claim 13, is characterized in that, also comprise:
Center server access frequency is controlled list creating module, described according to described access services application information for what receive according to described access services application information receiver module, create or upgrade center server access frequency and control list, described center server access frequency is controlled list and is comprised at least one group of primary index information and secondary indexing information, described primary index information comprises the identify label of each service server cluster, and described secondary indexing information comprises each service server cluster access times to described interface message processor (IMP) cluster in described preset access duration.
15. central servers as claimed in claim 14, is characterized in that, described total access times statistical module comprises:
Search unit, for the identify label of the described service server cluster that receives according to described actual access frequency information receiver module, in described center server access frequency, control and in list, search and take the corresponding secondary indexing information of primary index information that the identify label of described service server cluster is content;
Cumulative unit, for described preset the reporting in duration that described actual access frequency information receiver module is received, the access times of the service server cluster corresponding with described identify label to described interface message processor (IMP) cluster, add up with described access times of searching in the current described secondary indexing information that unit finds, according to cumulative gained, upgrade described secondary indexing information.
16. central servers as claimed in claim 14, is characterized in that, also comprise:
Center server empties module, for after described preset access duration is used up, empty described center server access frequency control in list, be equal to or greater than described preset access duration with described access times in the corresponding secondary indexing information of service server cluster of limiting access number of times.
17. 1 kinds of interface message processor (IMP)s, is characterized in that, comprising:
Access times statistical module, for every the preset duration that reports, adds up described preset reporting in duration, described interface message processor (IMP) is carried out to the access times of each service server cluster of access;
Actual access frequency information sending module, for sending actual access frequency information to described central server, in described actual access frequency information, be included in described preset reporting in duration, described interface message processor (IMP) carried out to the identify label of all service server clusters and the access times of described access times statistical module counts of access;
Access frequency control command receiver module, the access frequency control command sending for receiving described central server, described access frequency control command is included in described preset access duration, and total access times are equal to or greater than identify label and the corresponding denied access duration of the service server cluster of pre-set limit access times; And
Denial of service module, for the described access frequency control command receiving according to described access frequency control command receiver module, in described denied access duration, refusal provides business service to corresponding service server cluster.
18. interface message processor (IMP)s as claimed in claim 17, is characterized in that, also comprise:
Control frequency configuration information receiver module, the control frequency configuration information sending for receiving described central server, the access services application information that described control frequency configuration information is sent according to the described service server receiving by described central server when applying for access services sends, comprise: the identify label of service server cluster under described service server, described service server cluster is the pre-set limit access times to described interface message processor (IMP) cluster in described preset access duration, the Internet protocol address of described service server, belong to the Internet protocol address of other service server of a service server cluster with described service server, described service server with described in belong to the Internet protocol address of other service server and the corresponding relation of described service server cluster of a service server cluster.
19. interface message processor (IMP)s as claimed in claim 18, is characterized in that, also comprise:
Interface message processor (IMP) end access frequency is controlled list creating module, for the described control frequency configuration information receiving according to described control frequency configuration information receiver module, create or upgrade interface message processor (IMP) end access frequency and control list, described interface message processor (IMP) end access frequency is controlled list and is comprised at least one group of primary index information and secondary indexing information, described primary index information comprises the identify label of service server cluster described in each, and described secondary indexing information comprises that described each service server cluster is in the described preset access times to described interface message processor (IMP) in duration that report.
20. interface message processor (IMP)s as claimed in claim 19, is characterized in that, described access times statistical module comprises:
Internet protocol address record cell, for being recorded in described preset reporting in duration, accesses the Internet protocol address of each service server of described interface message processor (IMP);
Access times accumulative total and secondary indexing information updating unit, for basis, belong to the Internet protocol address of each service server and the corresponding relation of each service server cluster of a service server cluster, the access times of each service server cluster of accumulative total to described interface message processor (IMP), and the access times that go out according to accumulative total are upgraded the secondary indexing information in described interface message processor (IMP) access frequency control list;
Actual access frequency information reports unit, for when described preset while reporting duration to use up, described primary index information and described secondary indexing information in described interface message processor (IMP) end access frequency control list are reported to described central server as actual access frequency information.
21. interface message processor (IMP)s as claimed in claim 19, is characterized in that, also comprise:
Interface message processor (IMP) end empties module, for presetly reporting duration to use up or after described preset access duration uses up, empty described interface message processor (IMP) end access frequency and control the described secondary indexing information in list described.
22. 1 kinds of cluster access frequency control system, is characterized in that, comprising:
A plurality of service server clusters, wherein described in each, service server cluster comprises the service server of a plurality of same types of service;
Central server as described in any one of claim 12 to 16; And
The interface message processor (IMP) cluster being formed by a plurality of interface message processor (IMP)s as described in any one of claim 17 to 21.
CN201310209513.9A 2013-05-30 2013-05-30 access frequency control method, device and control system Active CN104219069B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310209513.9A CN104219069B (en) 2013-05-30 2013-05-30 access frequency control method, device and control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310209513.9A CN104219069B (en) 2013-05-30 2013-05-30 access frequency control method, device and control system

Publications (2)

Publication Number Publication Date
CN104219069A true CN104219069A (en) 2014-12-17
CN104219069B CN104219069B (en) 2018-06-08

Family

ID=52100231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310209513.9A Active CN104219069B (en) 2013-05-30 2013-05-30 access frequency control method, device and control system

Country Status (1)

Country Link
CN (1) CN104219069B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105282047A (en) * 2015-09-25 2016-01-27 小米科技有限责任公司 Access request processing method and device
CN106598723A (en) * 2015-10-19 2017-04-26 北京国双科技有限公司 Configuration method and device for resources in distributed system
CN106656959A (en) * 2016-09-28 2017-05-10 腾讯科技(深圳)有限公司 Access request regulation and control method and device
WO2017101346A1 (en) * 2015-12-15 2017-06-22 乐视控股(北京)有限公司 Client data update method, client and server
CN107979580A (en) * 2016-10-24 2018-05-01 腾讯科技(深圳)有限公司 A kind of access control method, device and server
CN108270839A (en) * 2017-01-04 2018-07-10 腾讯科技(深圳)有限公司 Access frequency control system and method
CN109298939A (en) * 2018-09-26 2019-02-01 腾讯科技(深圳)有限公司 Access frequency control method, device, system and the server of distributed system
CN109669982A (en) * 2018-12-25 2019-04-23 钛马信息网络技术有限公司 The called statistical system of platform interface and method
CN109962855A (en) * 2017-12-14 2019-07-02 深圳市融汇通金科技有限公司 A kind of current-limiting method of WEB server, current-limiting apparatus and terminal device
CN110677494A (en) * 2019-10-14 2020-01-10 腾讯科技(深圳)有限公司 Access response method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1929477A (en) * 2005-09-08 2007-03-14 中兴通讯股份有限公司 Control system and method for multicast business limited access
JP2009140319A (en) * 2007-12-07 2009-06-25 Internatl Business Mach Corp <Ibm> Technique for controlling access to database
CN102118828A (en) * 2009-12-30 2011-07-06 华为技术有限公司 Method and equipment for controlling access of user equipment
CN102960029A (en) * 2011-06-21 2013-03-06 华为技术有限公司 Method, device, user equipment and system for repeated access detection and restriction

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1929477A (en) * 2005-09-08 2007-03-14 中兴通讯股份有限公司 Control system and method for multicast business limited access
JP2009140319A (en) * 2007-12-07 2009-06-25 Internatl Business Mach Corp <Ibm> Technique for controlling access to database
CN102118828A (en) * 2009-12-30 2011-07-06 华为技术有限公司 Method and equipment for controlling access of user equipment
CN102960029A (en) * 2011-06-21 2013-03-06 华为技术有限公司 Method, device, user equipment and system for repeated access detection and restriction

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105282047A (en) * 2015-09-25 2016-01-27 小米科技有限责任公司 Access request processing method and device
CN106598723A (en) * 2015-10-19 2017-04-26 北京国双科技有限公司 Configuration method and device for resources in distributed system
WO2017101346A1 (en) * 2015-12-15 2017-06-22 乐视控股(北京)有限公司 Client data update method, client and server
CN106656959A (en) * 2016-09-28 2017-05-10 腾讯科技(深圳)有限公司 Access request regulation and control method and device
CN106656959B (en) * 2016-09-28 2020-07-28 腾讯科技(深圳)有限公司 Access request regulation and control method and device
CN107979580B (en) * 2016-10-24 2019-08-13 腾讯科技(深圳)有限公司 A kind of access control method, device and server
CN107979580A (en) * 2016-10-24 2018-05-01 腾讯科技(深圳)有限公司 A kind of access control method, device and server
CN108270839A (en) * 2017-01-04 2018-07-10 腾讯科技(深圳)有限公司 Access frequency control system and method
CN108270839B (en) * 2017-01-04 2022-03-25 腾讯科技(深圳)有限公司 Access frequency control system and method
CN109962855A (en) * 2017-12-14 2019-07-02 深圳市融汇通金科技有限公司 A kind of current-limiting method of WEB server, current-limiting apparatus and terminal device
CN109298939A (en) * 2018-09-26 2019-02-01 腾讯科技(深圳)有限公司 Access frequency control method, device, system and the server of distributed system
CN109298939B (en) * 2018-09-26 2021-04-20 腾讯科技(深圳)有限公司 Access frequency control method, device and system of distributed system and server
CN109669982A (en) * 2018-12-25 2019-04-23 钛马信息网络技术有限公司 The called statistical system of platform interface and method
CN110677494A (en) * 2019-10-14 2020-01-10 腾讯科技(深圳)有限公司 Access response method and device
CN110677494B (en) * 2019-10-14 2021-06-01 腾讯科技(深圳)有限公司 Access response method and device

Also Published As

Publication number Publication date
CN104219069B (en) 2018-06-08

Similar Documents

Publication Publication Date Title
CN104219069A (en) Access frequency control method, device and control system
CN102915374B (en) A kind of method, Apparatus and system of resource access of controlling database
CN102982141B (en) A kind of method and device realizing distributed data base agency
CN101136911B (en) Method to download files using P2P technique and P2P download system
CN101493826B (en) Database system based on WEB application and data management method thereof
EP3346738B1 (en) Group communication method and system for group communication
CN106550003B (en) Load balancing control method, device and system
CN101771723A (en) Data synchronization method
WO2021258753A1 (en) Service processing method and apparatus, and electronic device and storage medium
CN104731516A (en) Method and device for accessing files and distributed storage system
CN103310087A (en) Service data statistic analysis method and device
CN104702625A (en) Method and device for scheduling access request in CDN (Content Delivery Network)
CN103581245A (en) Content delivery method and system of content delivery network
CN102917077A (en) Resource allocation method in cloud computing system
CN103338243A (en) Method and system for updating cache data of Web node
CN102624884B (en) A kind of method, device and equipment for receiving P2P resource
EP3493485A1 (en) Method, apparatus and system for notification
US11003367B2 (en) Data storage, reading, and cleansing method and device, and cloud storage system
CN101751415A (en) Metadata service system metadata synchronized method and writing server updating method
US20160286516A1 (en) Method, Node and System for Managing Resources of Machine Type Communication Application
CN110781149A (en) Method, device, equipment and storage medium for managing live broadcast room information
CN104793982A (en) Method and device for establishing virtual machine
CN102594578B (en) The processing method of information transmission service, device and system
CN101778131A (en) Data synchronization system
CN104335198A (en) Server and method for managing access of terminal to connection blocked resource and terminal

Legal Events

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