Overload protection method, device and server

An overload protection and server technology, which is applied in the field of Internet communication, can solve problems such as inability to effectively alleviate server overload, and achieve the effect of alleviating server overload

Active Publication Date: 2018-03-02
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to solve the problem that the existing overload protection method only focuses on the cumulative number of the current time interval and cannot effectively alleviate the server overload during the peak period, the embodiment of the present invention provides an overload protection method, device and server

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Overload protection method, device and server
  • Overload protection method, device and server
  • Overload protection method, device and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] Please refer to figure 1 , which shows a method flowchart of the overload protection method provided by Embodiment 1 of the present invention. This embodiment is mainly described by taking the overload protection method applied to a server as an example. The overload protection method includes:

[0034] Step 102, respectively accumulating the number of requests received in the consecutive m time intervals;

[0035] The server respectively accumulates the number of requests received in consecutive m time intervals. The m time intervals may be consecutive m time intervals with the same interval length or different interval lengths, usually the same interval length. For each time interval, the server separately accumulates the number of requests sent by clients received during that time interval. The consecutive m time intervals include the time interval to which the current time belongs.

[0036] Step 104, extracting n time intervals from the m time intervals, and ac...

Embodiment 2

[0042] Please refer to figure 2 , which shows a flow chart of the overload protection method provided by Embodiment 2 of the present invention. This embodiment is mainly described by taking the overload protection method applied to a server as an example. The overload protection method includes:

[0043] Step 202, respectively accumulating the number of requests received in each of the consecutive m time intervals;

[0044] The server respectively accumulates the number of requests received in consecutive m time intervals. The m time intervals may be consecutive m time intervals with the same interval length or different interval lengths, preferably the same interval length. For each time interval, the server separately accumulates the number of requests sent by clients received during that time interval. The consecutive m time intervals include the time interval to which the current time belongs.

[0045] exist Figure 3A In a specific example shown, the server respect...

Embodiment 3

[0063] Please refer to Figure 5 , which shows a structural block diagram of the overload protection device provided by the third embodiment of the present invention. The overload protection device can be implemented as a server or a part of the server. The overload protection device includes a request accumulation module 520 , a window accumulation module 540 and a request rejection module 560 .

[0064] The request accumulation module 520 is used to respectively accumulate the number of requests received respectively in consecutive m time intervals;

[0065] The window accumulation module 540 is used to extract n time intervals from the m time intervals respectively accumulated by the request accumulation module 520, and accumulate the sum of the number of requests received in each of the n time intervals. time interval contains the time interval to which the current time belongs;

[0066] A request rejection module 560, configured to reject requests received after exceed...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an overload protection method, device and server, belonging to the field of Internet communication. The method includes: separately accumulating the number of requests received in consecutive m time intervals; extracting n time intervals from the m time intervals, and accumulating the number of requests received in each of the n time intervals The sum of the n time intervals includes the time interval to which the current time belongs; if the sum of the cumulative number of requests exceeds the predetermined threshold, reject receiving requests after exceeding the predetermined threshold in the time interval to which the current time belongs The request received; wherein, m and n are integers greater than or equal to 2, and m is greater than or equal to n. The present invention solves the problem that the existing overload protection method cannot effectively relieve the server overload during the peak period; realizes overload protection by comprehensively accumulating the accumulated numbers in multiple time intervals, thereby effectively alleviating the server overload during the peak period Effect.

Description

technical field [0001] The invention relates to the field of Internet communication, in particular to an overload protection method, device and server. Background technique [0002] Client / server network is a very widely used network mode. Among them, the client communicates with the server through requests to complete various data interactions. [0003] In order to solve the situation that the server cannot effectively handle when it receives too many requests, an overload protection method often applied to the server in the prior art is as follows: first, the server accumulates the requests received by one or more clients within a period of time Number of requests sent; Second, the server judges whether the accumulated number of requests in the current time interval exceeds the predetermined threshold, and if so, rejects requests received after exceeding the predetermined threshold in the current time interval. For example, if the time interval is 1 second and the predet...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/08
Inventor 唐孟松
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products