CN107465627A - Overload protection method, device, electronic equipment and flow processing system - Google Patents

Overload protection method, device, electronic equipment and flow processing system Download PDF

Info

Publication number
CN107465627A
CN107465627A CN201710684978.8A CN201710684978A CN107465627A CN 107465627 A CN107465627 A CN 107465627A CN 201710684978 A CN201710684978 A CN 201710684978A CN 107465627 A CN107465627 A CN 107465627A
Authority
CN
China
Prior art keywords
server
overload protection
overload
achievement data
flow
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.)
Pending
Application number
CN201710684978.8A
Other languages
Chinese (zh)
Inventor
李大帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaodu Information Technology Co Ltd
Original Assignee
Beijing Xiaodu Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaodu Information Technology Co Ltd filed Critical Beijing Xiaodu Information Technology Co Ltd
Priority to CN201710684978.8A priority Critical patent/CN107465627A/en
Publication of CN107465627A publication Critical patent/CN107465627A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers

Abstract

The embodiment of the present invention provides a kind of overload protection method, device, electronic equipment and flow processing system, is related to load balancing field.Wherein, the overload protection method includes:The achievement data of server is obtained, the achievement data includes service status data;Judge whether the server overloads according to the achievement data of the server and metrics-thresholds;If it is determined that the server overload, then perform overload protection processing.Technical scheme provided in an embodiment of the present invention can take into account free state up and down and carry out overload protection processing, improve the accuracy for performing overload protection processing in terms of opportunity, be advantageous to make full use of the resource of server while avoiding server resource from wasting.

Description

Overload protection method, device, electronic equipment and flow processing system
Technical field
The present embodiments relate to load balancing field, more particularly to a kind of overload protection method, device, electronic equipment and Flow processing system.
Background technology
In load balancing field, by taking seven layers of conventional load balancing framework as an example, using seven layers of front end load balancing as logical With unified entrance, the request of business cluster then carries out access forwarding based on being uniformly accessed into layer.
Existing load-balancing technique generally only carries out load balance process, this side according to the state of business cluster itself Formula have ignored the environment where business cluster, the less effective of load balance process.
The content of the invention
The embodiment of the present invention provides a kind of overload protection method, device, electronic equipment and flow processing system, to solve The problem of prior art load equilibrium treatment less effective.
In a first aspect, a kind of overload protection method is provided in the embodiment of the present invention, including:
The achievement data of server is obtained, the achievement data includes service status data;
Judge whether the server overloads according to the achievement data of the server and metrics-thresholds;
If it is determined that the server overload, then perform overload protection processing.
With reference in a first aspect, of the invention in the first implementation of first aspect, the achievement data also includes strong Health status data.
With reference in a first aspect, of the invention in second of implementation of first aspect, the service status data includes It is any one or more below:
Cycle takes ratio, error rate, overtime ratio.
With reference to the first implementation of first aspect, first aspect or second of implementation of first aspect, this hair It is bright that described is that the server performs overload protection processing in the third implementation of first aspect, including:
For assignment of traffic random number to be sent;
Contrasted according to the random number and the flow of setting refusal parameter, judge whether to forward institute to the server State flow to be sent;
According to the forwarding or discarding of judged result traffic.
Second aspect, the embodiments of the invention provide a kind of overload protection arrangement, including:
Data acquisition module, for obtaining the achievement data of server, the achievement data includes service status data;
Judge module is overloaded, whether judges the server for the achievement data according to the server and metrics-thresholds Overload;
Overload protection module, for determining the judged result of the server overload in response to the overload judge module, Overload protection processing is performed for the server.
With reference to second aspect, in the first implementation of second aspect, the achievement data also includes strong the present invention Health status data.
With reference to second aspect, in second of implementation of second aspect, the service status data includes the present invention It is any one or more below:
Cycle takes ratio, error rate, overtime ratio.
With reference to the first implementation of second aspect, second aspect or second of implementation of second aspect, this hair It is bright in the third implementation of second aspect, the overload protection module includes:
Random number submodule, for for assignment of traffic random number to be sent;
Judging submodule, for being contrasted according to the random number and the flow of setting refusal parameter, it is determined whether to The server forwards the flow to be sent;
Handle submodule, forwarding or discarding for the judged result traffic according to the judging submodule.
The third aspect, the embodiments of the invention provide a kind of electronic equipment, including:
Memory and controller;Wherein,
The memory is used to store one or more computer instruction, described in one or more computer instruction supplies Processor, which calls, to be performed;
The processor is used to perform one or more computer instruction to realize following processing:
The achievement data of server is obtained, the achievement data includes service status data;
Judge whether the server overloads according to the achievement data of the server and metrics-thresholds;
If it is determined that the server overload, then perform overload protection processing.
With reference to the third aspect, in the first implementation of the third aspect, the achievement data also includes strong the present invention Health status data.
With reference to the third aspect, in second of implementation of the third aspect, the service status data includes the present invention It is any one or more below:
Cycle takes ratio, error rate, overtime ratio.
With reference to the first implementation of the third aspect, the third aspect or second of implementation of the third aspect, this hair It is bright in the third implementation of the third aspect, in order to perform overload protection processing for the server, the processor holds The computer instruction go to realize following processing:
For assignment of traffic random number to be sent;
Contrasted according to the random number and the flow of setting refusal parameter, judge whether to forward institute to the server State flow to be sent;
According to the forwarding or discarding of judged result traffic.
Fourth aspect, the embodiments of the invention provide a kind of computer-readable storage medium, the computer-readable storage medium is used for One or more computer instruction is stored, one or more computer instruction realizes foregoing first party when being performed Face or its various implementation.
5th aspect, the embodiment of the present invention provide a kind of flow processing system, including:
Load-balancing device, there is Access Layer;
With the server cluster of Access Layer communication connection;Wherein,
The overload that foregoing second aspect or its various implementation are provided is installed in the Access Layer to protect Protection unit.
Wherein, the overload protection arrangement is obtained in the server cluster at least partly by the load-balancing device The achievement data of server, and perform such as various realization sides of first aspect or first aspect at least part server The overload protection method of formula.
The embodiment of the present invention can relatively accurately carry out overload protection.
The aspects of the invention or other aspects can more straightforwards in the following description.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are this hairs Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with root Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 shows the schematic flow sheet of overload protection method according to an embodiment of the invention;
Fig. 2 shows the schematic flow sheet of overload protection method in accordance with another embodiment of the present invention;
Fig. 3 shows the block diagram of overload protection arrangement according to an embodiment of the invention;
Fig. 4 shows the block diagram of the overload protection module of overload protection arrangement shown in Fig. 3;
Fig. 5 shows the block diagram of electronic equipment according to an embodiment of the invention;
Fig. 6 shows the block diagram of flow processing system according to an embodiment of the invention;
Fig. 7 shows the block diagram of flow processing system in accordance with another embodiment of the present invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described.
In some flows of description in description and claims of this specification and above-mentioned accompanying drawing, contain according to Particular order occur multiple operations, but it should be clearly understood that these operation can not occur herein according to it is suitable Sequence is performed or performed parallel, the sequence number such as 101,102 etc. of operation, is only used for distinguishing each different operation, sequence number Any execution sequence is not represented for itself.In addition, these flows can include more or less operations, and these operations can To perform or perform parallel in order.It should be noted that the description such as " first " herein, " second ", is to be used to distinguish not Message together, equipment, module etc., do not represent sequencing, it is different types also not limit " first " and " second ".
First, the noun that is related to various embodiments of the present invention or may relate to explains, and those skilled in the art should Understand, these explanations are intended to explain various embodiments of the invention, rather than the protection to the present invention with the mode readily appreciated Scope is construed as limiting.
Rear end:Upstream is can be understood as, under some scenes, upstream discussed herein is referred to by proxy server (i.e., Load-balancing device) destination server that is gone to of request that accesses user.
Overload protection:Also referred to as fused mechanism, and for the purpose of protection back-end services, such as refusal etc. is carried out to request Reason, to protect back-end server to avoid triggering avalanche effect.
Access Layer:In seven layers of load-balancing device, the unified entrance of all service traffics, it is responsible for the scheduling of flow, turns The functions such as hair, load balancing.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, the every other implementation that those skilled in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
Fig. 1 is a kind of schematic flow sheet of overload protection method according to embodiments of the present invention, reference picture 1, methods described Including:
100:Obtain the achievement data of server.Wherein, the achievement data includes service status data.
Alternatively, in a kind of implementation of the present embodiment, by installing, configuring in proxy server or proxy server Specific device (for example, the service server of upstream and the proxy server in downstream), periodically from the server obtain Its achievement data.
Alternatively, in a kind of implementation of the present embodiment, the server is the server in server cluster.Change Yan Zhi, the method that the present embodiment provides can apply under the scene of server cluster, obtain the index number of each server According to and perform subsequent treatment.
102:Judge whether server overloads.Specifically, sentenced according to the achievement data of the server and metrics-thresholds Whether the server that breaks overloads.If it is determined that the server overload, then perform processing 104.
Alternatively, in a kind of implementation of the present embodiment, as shown in dotted line frame in Fig. 1, if it is determined that not overloading, then By normal flow to server converting flow.
Alternatively, in a kind of implementation of the present embodiment, by installing, configuring in proxy server or proxy server Specific device (for example, electronic equipment mentioned below or overload protection arrangement) read pre-configured configuration file, so as to obtain The metrics-thresholds are taken, for example, the cycle mentioned below takes ratio and interface error rate.
Alternatively, in a kind of implementation of the present embodiment, the index for calculating and determining is obtained in each cycle Threshold value (for example, overtime ratio described below).
Alternatively, in a kind of implementation of the present embodiment, by installing, configuring in proxy server or proxy server Specific device (for example, electronic equipment mentioned below or overload protection arrangement) judge whether server overloads.
104:Perform overload protection processing.
Alternatively, in a kind of implementation of the present embodiment, by installing, configuring in proxy server or proxy server Specific device (for example, electronic equipment mentioned below or overload protection arrangement), for the server carry out overload protection Processing.
The overload protection method provided using the present embodiment, can be more accurately by obtaining the service state of server Reflect the time of day of upstream and downstream system (for example, the service server of upstream and the proxy server in downstream), so as to more Overload protection processing is performed exactly.And then be advantageous to make full use of server while avoiding server resource from wasting Resource.
Alternatively, in a kind of practical application of the present embodiment, the server is the server in server cluster, is schemed Overload protection method shown in 1 then performs on proxy server.For example, the Access Layer in seven layers of load balancing framework realizes figure Overload protection method shown in 1.
Alternatively, in a kind of implementation of the present embodiment, the achievement data is except service state (also referred to as industry It is engaged in health degree index) outside data, in addition to health status (be also referred to as system resource index) data.Wherein, it is exemplary Ground, the service status data include following any one or more:Cycle takes ratio, error rate, overtime ratio, and these refer to Mark can not only reflect server state, moreover it is possible to reflect the state of upstream and downstream;The state of health data includes following any one It is or multinomial:Cpu utilization rates, memory usage, disk I/O (input and output) utilization rate, network I/O utilization rate.
Wherein, the cycle takes ratio and referred in each cycle beyond the percentage number of time-consuming threshold values.Calculation is as follows:Week Phase takes ratio=(cycle integrally takes duration-cycle averagely time-consuming duration)/cycle averagely time-consuming duration.The system of time-consuming ratio Meter can become more meticulous to the interface of each business, the time-consuming ratio increase of interface, trigger threshold values, then start overload protection.
Wherein, total request amount of wrong sum/cycle inner joint of interface error rate=cycle inner joint
The amount of error * number of machines of wrong sum=Cycles Interface of cycle inner joint
The request amount * number of machines of total request amount=interface of cycle inner joint
The index of error rate (that is, the error rate of interface) is the rule defined, is caught using different state code labelings Obtain calculating.The statistics of error rate is also interface level, if triggering can equally start overload protection.
Wherein, total request amount of overtime ratio=interface time-out total amount/cycle inner joint
The overtime total amount of interface=(time-consuming-interface overtime threshold of interface) * number of machines
The request amount * number of machines of total request amount=interface of cycle inner joint
The threshold values of overtime ratio can be calculated within each cycle, and is matched according to threshold values, it is determined whether is started Overload protection pattern.
At the same time using in state of health data and the implementation of service status data, can more comprehensively take into account Downstream condition carries out overload protection.
Alternatively,, can be to be forwarded using directly abandoning in processing 104 in a kind of implementation of the present embodiment Flow, flow to be forwarded is forwarded to other environment (for example, server), jumps to the multi task process mode such as wrong page.Together When, can set flow control ratio.Such as only allowing refusal 30%, then 70% flow is then cleared.
Alternatively, it is assignment of traffic random number to be sent in processing 104 in a kind of implementation of the present embodiment; Contrasted, judged whether described to be sent to server forwarding according to the random number and the flow of setting refusal parameter Flow;According to the forwarding of judged result traffic or discarding (that is, not forwarding).
Using the implementation so that even if server overload, can also partly undertake flow, be unlikely to refuse completely Service.
Fig. 2 is a kind of schematic flow sheet of overload protection method according to embodiments of the present invention.Reference picture 2, methods described Including:
200:Perform pretreatment.The pretreatment includes:Start Access Layer work;Configuration file is read, wherein being configured with Metrics-thresholds, overcurrent protection switch;Open up memory headroom storage configuration information;Internal memory initialization.
202:Judge whether to open overload protection function.Specifically, judge whether that opening overload protects according to configuration information Protective function.If do not opened, flow passes through, i.e. performs forward process for flow (for example, request).If opened, hold Row processing 204.
204:Achievement data is obtained, writes internal memory.Wherein, the achievement data includes service status data.
Alternatively, in a kind of implementation of the present embodiment, the service status data include following any one or It is multinomial:Cycle takes ratio, error rate, overtime ratio.
Alternatively, in a kind of implementation of the present embodiment, the achievement data also includes state of health data, described State of health data includes following any one or more:Cpu utilization rates, memory usage, disk I/O (input and output) use Rate, network I/O utilization rate.
206:Judge whether to overload.If do not overloaded, flow passes through;If overload, perform processing 208.
Alternatively, in a kind of implementation of the present embodiment, by process opening timing task, within each cycle, generation Server is managed by interface active probe to obtain achievement data, returns data to Access Layer, and index is contrasted in Access Layer Data and the threshold value in configuration file, to judge whether to overload.
208:Open overcurrent protection switch, obtain flow refusal parameter (for example, flow refusal percentage), and overload is protected Shield switches on state, flow refusal parameter read-in internal memory.
210:Generate random number.
212:Traffic processing.Specifically, the random number and the flow are refused into parameter comparison, if at random Number is more than flow refusal parameter, then otherwise flow is by, refusing flow.
Using the present embodiment provide overload protection method, in addition to the effect with embodiment illustrated in fig. 1, by Random number and flow refusal parameter are introduced in the scene whether flow forwards, can take into account server load leads to partial discharge Cross.In random number and flow refusal parameter experiment is used for several times, 1000 request for test are initiated in experiment, and error rate only has 2% or so.
Alternatively, in a kind of implementation of the present embodiment, the code that flow processing is carried out using random number is as follows:
Fig. 3 is a kind of block diagram of overload protection arrangement according to embodiments of the present invention.Reference picture 3, overload protection arrangement bag Data acquisition module 30, overload judge module 32 and overload protection module 34 are included, is illustrated separately below.
In the present embodiment, data acquisition module 30 is used for the achievement data for obtaining server, and the achievement data includes Service status data.
Alternatively, in a kind of implementation of the present embodiment, the service status data include following any one or It is multinomial:Cycle takes ratio, error rate, overtime ratio.
Alternatively, in a kind of implementation of the present embodiment, the achievement data also includes state of health data, described State of health data includes following any one or more:Cpu utilization rates, memory usage, disk I/O (input and output) use Rate, network I/O utilization rate.
In the present embodiment, judge module 32 is overloaded to be used to be judged according to the achievement data and metrics-thresholds of the server Whether the server overloads.
Alternatively, in a kind of implementation of the present embodiment, overload judge module 32 reads configuration file and obtains index Threshold value.
In the present embodiment, overload protection module 34 is used to determine the server mistake in response to the overload judge module The judged result of load, overload protection processing is performed for the server.
Alternatively, in a kind of implementation of the present embodiment, overload protection processing include it is following any one:Lose Flow to be forwarded is abandoned, flow to be forwarded is forwarded to other environment (for example, server), jumps to the wrong page.
Alternatively, in a kind of implementation of the present embodiment, as shown in figure 4, overload protection module 34 includes:Random number Submodule 342, for for assignment of traffic random number to be sent;Judging submodule 344, for according to the random number and setting Flow refusal parameter is contrasted, it is determined whether forwards the flow to be sent to the server;Submodule 346 is handled, is used In the forwarding or discarding (that is, not forwarding) of the judged result traffic according to the judging submodule 344.
The overload protection arrangement provided using the present embodiment, can be more accurately by obtaining the service state of server Reflect the time of day of upstream and downstream system (for example, the service server of upstream and the proxy server in downstream), so as to more Overload protection processing is performed exactly.
Fig. 5 is the block diagram of a kind of electronic equipment according to embodiments of the present invention.Reference picture 5, the electronic equipment include depositing Reservoir 50 and controller 52.Wherein, the memory 50 be used for store one or more computer instruction, described one or more Computer instruction is called for the processor 52 and performed.The processor 52 then refers to for performing one or more computer Make to realize the overload protection method provided such as earlier figures 1 or embodiment illustrated in fig. 2.Alternatively, in one kind of the present embodiment In implementation, as shown in dotted line frame in Fig. 5, electronic equipment also includes input/output interface, for being communicated, data acquisition Deng processing.
One embodiment of the present of invention also provides a kind of computer-readable storage medium, refers to wherein storing one or more computer Order, the overload protection side that embodiment is provided as shown in Figure 1 or 2 is realized when one or more computer instruction is performed Method.
Fig. 6 is a kind of block diagram of flow processing system according to embodiments of the present invention.Reference picture 6, the flow processing system System includes the overload protection arrangement (or electronic equipment of embodiment illustrated in fig. 5 offer) and server of embodiment illustrated in fig. 3 offer.
Fig. 7 is a kind of block diagram of flow processing system according to embodiments of the present invention.Reference picture 7, the flow processing system System includes load-balancing device and server cluster.Wherein, it is provided with the Access Layer of the load-balancing device shown in Fig. 3 in fact The overload protection arrangement of example offer or the electronic equipment of embodiment illustrated in fig. 5 offer are provided.
Alternatively, in a kind of implementation of the present embodiment, flow processing procedure is as follows:
Step 1:User initiates browse request, the request by Access Layer processing forward first to upstream business cluster, together Shi Jinhang detecting periodicallies are to obtain achievement data;
Step 2:Agent (agency) real-time collectings of service logic feed back to the access in downstream to achievement data itself Layer cluster.
Step 3:Access Layer cluster receives the information of foregoing agent collections, starts to judge the health status of upstream machines, If the index obtained does not meet expection, Access Layer starts to start overload protection, starts discarding or converting flow, ensures rear end Business cluster return to monitor state.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
Device embodiment described above is only schematical, wherein the unit illustrated as separating component can To be or may not be physically separate, it can be as the part that unit is shown or may not be physics list Member, you can with positioned at a place, or can also be distributed on multiple NEs.It can be selected according to the actual needs In some or all of module realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying creativeness Work in the case of, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can Realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on such understanding, on The part that technical scheme substantially in other words contributes to prior art is stated to embody in the form of software product, should Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some fingers Make to cause a computer equipment (can be personal computer, server, or network equipment etc.) to perform each implementation Method described in some parts of example or embodiment.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic; And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and Scope.
The present invention discloses A1, a kind of overload protection method, including:
The achievement data of server is obtained, the achievement data includes service status data;
Judge whether the server overloads according to the achievement data of the server and metrics-thresholds;
If it is determined that the server overload, then perform overload protection processing.
A2, the method according to A1, the achievement data also include state of health data.
A3, the method according to A1, the service status data include following any one or more:
Cycle takes ratio, error rate, overtime ratio.
A4, the method according to any one of A1-A3, it is described to perform overload protection processing for the server, including:
For assignment of traffic random number to be sent;
Contrasted according to the random number and the flow of setting refusal parameter, judge whether to forward institute to the server State flow to be sent;
According to the forwarding or discarding of judged result traffic.
Invention additionally discloses B5, a kind of overload protection arrangement, described device includes:
Data acquisition module, for obtaining the achievement data of server, the achievement data includes service status data;
Judge module is overloaded, whether judges the server for the achievement data according to the server and metrics-thresholds Overload;
Overload protection module, for determining the judged result of the server overload in response to the overload judge module, Overload protection processing is performed for the server.
B6, the device according to B5, the achievement data also include state of health data.
B7, the device according to B5, the service status data include following any one or more:
Cycle takes ratio, error rate, overtime ratio.
B8, the device according to any one of B5-B7, the overload protection module include:
Random number submodule, for for assignment of traffic random number to be sent;
Judging submodule, for being contrasted according to the random number and the flow of setting refusal parameter, it is determined whether to The server forwards the flow to be sent;
Handle submodule, forwarding or discarding for the judged result traffic according to the judging submodule.
Invention additionally discloses C9, a kind of electronic equipment,
The electronic equipment includes memory and controller;Wherein,
The memory is used to store one or more computer instruction, described in one or more computer instruction supplies Processor, which calls, to be performed;
The processor is used to perform one or more computer instruction to realize following processing:
The achievement data of server is obtained, the achievement data includes service status data;
Judge whether the server overloads according to the achievement data of the server and metrics-thresholds;
If it is determined that the server overload, then perform overload protection processing.
C10, the electronic equipment as described in C9, the achievement data also include state of health data.
C11, the electronic equipment as described in C9, the service status data include following any one or more:
Cycle takes ratio, error rate, overtime ratio.
Electronic equipments of the C12 as any one of C9-C11, in order to perform overload protection processing, institute for the server Computer instruction described in computing device is stated to realize following processing:
For assignment of traffic random number to be sent;
Contrasted according to the random number and the flow of setting refusal parameter, judge whether to forward institute to the server State flow to be sent;
According to the forwarding or discarding of judged result traffic.
Invention additionally discloses D13, a kind of computer-readable storage medium, the computer-readable storage medium is used to store one or more Bar computer instruction, the method as any one of A1-A5 is realized when one or more computer instruction is performed.
D14, the computer-readable storage medium as described in D13, the achievement data also include state of health data.
D15, the computer-readable storage medium as described in D13, the service status data include following any one or more:
Cycle takes ratio, error rate, overtime ratio.
D16, the computer-readable storage medium as any one of D13-D15, protected to perform overload for the server Shield processing, following handle is realized when the computer instruction is performed:
For assignment of traffic random number to be sent;
Contrasted according to the random number and the flow of setting refusal parameter, judge whether to forward institute to the server State flow to be sent;
According to the forwarding or discarding of judged result traffic.
Invention additionally discloses E17, a kind of flow processing system, the system includes:
Load-balancing device, there is Access Layer;
With the server cluster of Access Layer communication connection;Wherein,
Installed in the Access Layer just like the overload protection arrangement any one of B5-B8.

Claims (10)

  1. A kind of 1. overload protection method, it is characterised in that including:
    The achievement data of server is obtained, the achievement data includes service status data;
    Judge whether the server overloads according to the achievement data of the server and metrics-thresholds;
    If it is determined that the server overload, then perform overload protection processing.
  2. 2. according to the method for claim 1, it is characterised in that
    The achievement data also includes state of health data.
  3. 3. according to the method for claim 1, it is characterised in that the service status data includes following any one or more :
    Cycle takes ratio, error rate, overtime ratio.
  4. 4. according to the method any one of claim 1-3, it is characterised in that described to perform overload guarantor for the server Shield processing, including:
    For assignment of traffic random number to be sent;
    Contrasted according to the random number and the flow of setting refusal parameter, judge whether to treat to described in server forwarding Transmitted traffic;
    According to the forwarding or discarding of judged result traffic.
  5. 5. a kind of overload protection arrangement, it is characterised in that described device includes:
    Data acquisition module, for obtaining the achievement data of server, the achievement data includes service status data;
    Overload judge module, for the achievement data according to the server and metrics-thresholds judge the server whether mistake Carry;
    Overload protection module, for determining the judged result of the server overload in response to the overload judge module, for institute State server and perform overload protection processing.
  6. 6. device according to claim 5, it is characterised in that
    The achievement data also includes state of health data.
  7. 7. device according to claim 5, it is characterised in that the service status data includes following any one or more :
    Cycle takes ratio, error rate, overtime ratio.
  8. 8. according to the device any one of claim 5-7, it is characterised in that the overload protection module includes:
    Random number submodule, for for assignment of traffic random number to be sent;
    Judging submodule, for being contrasted according to the random number and the flow of setting refusal parameter, it is determined whether to described Server forwards the flow to be sent;
    Handle submodule, forwarding or discarding for the judged result traffic according to the judging submodule.
  9. 9. a kind of electronic equipment, it is characterised in that
    The electronic equipment includes memory and controller;Wherein,
    The memory is used to store one or more computer instruction, and one or more computer instruction supplies the processing Device, which calls, to be performed;
    The processor is used to perform one or more computer instruction to realize as any one of claim 1-4 Method.
  10. 10. a kind of flow processing system, it is characterised in that the system includes:
    Load-balancing device, there is Access Layer;
    With the server cluster of Access Layer communication connection;Wherein,
    The Access Layer install just like claim 5-8 any one of overload protection arrangement.
CN201710684978.8A 2017-08-11 2017-08-11 Overload protection method, device, electronic equipment and flow processing system Pending CN107465627A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710684978.8A CN107465627A (en) 2017-08-11 2017-08-11 Overload protection method, device, electronic equipment and flow processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710684978.8A CN107465627A (en) 2017-08-11 2017-08-11 Overload protection method, device, electronic equipment and flow processing system

Publications (1)

Publication Number Publication Date
CN107465627A true CN107465627A (en) 2017-12-12

Family

ID=60548870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710684978.8A Pending CN107465627A (en) 2017-08-11 2017-08-11 Overload protection method, device, electronic equipment and flow processing system

Country Status (1)

Country Link
CN (1) CN107465627A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274547A (en) * 2018-08-17 2019-01-25 中国平安人寿保险股份有限公司 Service blowout method, device, equipment and storage medium based on network security
CN110460639A (en) * 2019-07-12 2019-11-15 口碑(上海)信息技术有限公司 The fusing processing method of server cluster, apparatus and system
CN110519388A (en) * 2019-08-30 2019-11-29 北京东软望海科技有限公司 Processing method, device, electronic equipment and the readable storage medium storing program for executing of block chain request
CN110780989A (en) * 2019-08-29 2020-02-11 腾讯科技(深圳)有限公司 Overload protection method, device, equipment and medium
CN111447272A (en) * 2020-03-26 2020-07-24 支付宝(杭州)信息技术有限公司 Load balancing method and device
CN112242915A (en) * 2019-07-19 2021-01-19 诺基亚通信公司 Method and device for carrying out overload control on ONU (optical network Unit) equipment
CN112988546A (en) * 2021-04-21 2021-06-18 福建天晴在线互动科技有限公司 Fusing scheme and system for preventing service avalanche of payment system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1039720A2 (en) * 1999-03-19 2000-09-27 Hitachi, Ltd. Service provision system and method
CN104142862A (en) * 2013-12-16 2014-11-12 腾讯科技(深圳)有限公司 Overload protection method and device for server
CN104182282A (en) * 2014-09-12 2014-12-03 五八同城信息技术有限公司 Overload protection system and method for server
CN105471614A (en) * 2014-09-11 2016-04-06 腾讯科技(深圳)有限公司 Overload protection method and device and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1039720A2 (en) * 1999-03-19 2000-09-27 Hitachi, Ltd. Service provision system and method
CN104142862A (en) * 2013-12-16 2014-11-12 腾讯科技(深圳)有限公司 Overload protection method and device for server
CN105471614A (en) * 2014-09-11 2016-04-06 腾讯科技(深圳)有限公司 Overload protection method and device and server
CN104182282A (en) * 2014-09-12 2014-12-03 五八同城信息技术有限公司 Overload protection system and method for server

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274547A (en) * 2018-08-17 2019-01-25 中国平安人寿保险股份有限公司 Service blowout method, device, equipment and storage medium based on network security
CN110460639A (en) * 2019-07-12 2019-11-15 口碑(上海)信息技术有限公司 The fusing processing method of server cluster, apparatus and system
CN112242915A (en) * 2019-07-19 2021-01-19 诺基亚通信公司 Method and device for carrying out overload control on ONU (optical network Unit) equipment
CN112242915B (en) * 2019-07-19 2023-12-15 诺基亚通信公司 Method and device for overload control of ONU (optical network Unit) equipment
CN110780989A (en) * 2019-08-29 2020-02-11 腾讯科技(深圳)有限公司 Overload protection method, device, equipment and medium
CN110780989B (en) * 2019-08-29 2023-03-24 腾讯科技(深圳)有限公司 Overload protection method, device, equipment and medium
CN110519388A (en) * 2019-08-30 2019-11-29 北京东软望海科技有限公司 Processing method, device, electronic equipment and the readable storage medium storing program for executing of block chain request
CN110519388B (en) * 2019-08-30 2022-04-19 望海康信(北京)科技股份公司 Processing method and device for block chain request, electronic equipment and readable storage medium
CN111447272A (en) * 2020-03-26 2020-07-24 支付宝(杭州)信息技术有限公司 Load balancing method and device
CN112988546A (en) * 2021-04-21 2021-06-18 福建天晴在线互动科技有限公司 Fusing scheme and system for preventing service avalanche of payment system

Similar Documents

Publication Publication Date Title
CN107465627A (en) Overload protection method, device, electronic equipment and flow processing system
US10447594B2 (en) Ensuring predictable and quantifiable networking performance
Xu et al. Small is better: Avoiding latency traps in virtualized data centers
US8751415B2 (en) Visualization for resource capacity management
US20030046396A1 (en) Systems and methods for managing resource utilization in information management environments
US9825869B2 (en) Traffic shaping based on request resource usage
Reumann et al. Adaptive packet filters
US20050111489A1 (en) Adaptive bandwidth throttling for network services
CN105306622B (en) A kind of cloud net fusion domain name analysis system and its DNS service method
CN107888706B (en) Cloud product fault processing method, device, equipment and computer readable storage medium
Urgaonkar et al. Cataclysm: Handling extreme overloads in internet services
CN105183431B (en) A kind of cpu busy percentage control method and device
US20170187790A1 (en) Ranking system
US8780723B2 (en) Communication system and communication apparatus
CN110855741B (en) Service self-adaptive access method and device, storage medium and electronic device
US20200228451A1 (en) Enhanced network stack
US10243988B2 (en) Configurable network security
CN108512673B (en) Cloud service quality monitoring method and device and server
US20030091031A1 (en) Variable pricing structure for transmitting packets across a communications link
US11870707B2 (en) Bandwidth management and configuration method for cloud service, and related apparatus
CN109714269A (en) A kind of data processing method and the network equipment
CN111193760A (en) Information sending method, device and storage medium
Ali et al. On the optimality of virtualized security function placement in multi-tenant data centers
Chenine et al. Factors in assessing performance of wide area communication networks for distributed control of power systems
Castillo et al. Predictive and distributed routing balancing, an application-aware approach

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171212