Supercharge Your Innovation With Domain-Expert AI Agents!

Overload protection method and apparatus

An overload protection and request message technology, applied in the computer field, can solve the problems of difficult dynamic change of the threshold, difficult setting of the threshold, unsuitable for batch promotion, etc., and achieve the effect of shortening the recovery time and improving the stability

Active Publication Date: 2018-05-04
SHENZHEN LEXIN SOFTWARE TECH CO LTD
View PDF8 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, these two overload protection schemes have certain limitations: using the request volume threshold control scheme, it is difficult to set the threshold and requires a certain amount of experience. When the service processing capacity changes, the threshold is difficult to change dynamically. This scheme is not suitable for mass promotion.
Using the scheme of checking the arrival time of requests, when the service is overloaded, it is likely to cause a fixed delay in the overall service, resulting in subsequent request delays greater than the set service delay threshold, the server actively discards the request to the executable delay range, and the service Uncontrollable time for services to return to stabilization when overload occurs

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 and apparatus
  • Overload protection method and apparatus
  • Overload protection method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0022] figure 1 It is a flow chart of the overload protection method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation where the request message received by the server is overloaded. The method can be executed by an overload protection device, and specifically includes the following steps:

[0023] Step 110, acquire the request message in the communication queue.

[0024] At present, in order to efficiently process the request messages sent by the client and give timely feedback on the processing results, the server can adopt the Master / Slave architecture model. Based on the Master / Slave architecture model, the server can be built into a multi-process architecture model or multi-thread Architecture model. Among them, Master, as the main database server, is responsible for receiving the request message sent by the client and sending it to the communication queue, so that Slave can obtain the request message from the communication...

Embodiment 2

[0033] figure 2 It is a schematic flowchart of an overload protection method provided by Embodiment 2 of the present invention. This embodiment optimizes on the basis of above-mentioned embodiment, judges that current service end is in service overload high water level, has increased following steps after discarding request message: record the quantity of discarding request message of high water level; Judging whether the quantity of high water level discarding request message The preset overload recovery threshold is reached, and if so, the service overload high water mark is turned off.

[0034] Therefore, after discarding the request message, it is determined whether to close the service overload high water mark by judging whether the number of recorded high-water mark discard request messages reaches the preset overload recovery threshold, so as to restore the normal operation of the server.

[0035] Correspondingly, the method of this embodiment includes the following s...

Embodiment 3

[0048] image 3 It is a schematic flowchart of an overload protection method provided by Embodiment 3 of the present invention. This embodiment is optimized on the basis of the above embodiments. The current server is not at the high water level of service overload. According to the enqueue time of the request message in the communication queue, it is judged whether the queue waiting time of the request message is overloaded. If so, After discarding the request message, the following steps are added: record the quantity of the queue waiting time overload and continuously discard the request message; judge whether the quantity of the queue waiting time overload and continuously discard the request message reaches the overload high water mark, if so, then open the service overload high water mark.

[0049] Thus, after discarding the request message, by judging whether the recorded queue waiting time overload and the number of continuously discarding request messages reach the pr...

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 embodiment of the invention discloses an overload protection method and apparatus. The method comprises the following steps: after a request message in a communication queue is obtained, judging whether a current server is at a service overload high water level; if the current server is at the service overload high water level, discarding the request message; if the current server is not at the service overload high water level, judging whether the queue waiting time of the request message is overload according to the queue time of the request message in the communication queue, and if so,discarding the request message. By adoption of the overload protection method and apparatus, the server can continuously provides services to the outside, thereby shortening the time from overload torecovery of the service and improving the stability of a service framework.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to an overload protection method and device. Background technique [0002] Microservice is an emerging software architecture, which splits a large single application and service into multiple microservices. Each microservice in the system can be deployed independently, and each microservice is loosely coupled. However, in massive services, there will basically be an overload situation. In the initial stage of service overload, some services will be unavailable. If it is not handled properly, the service may be completely unavailable, or even lead to an avalanche. [0003] With the gradual advancement of micro-services in Lexin Group, the service overload protection of the server has become a barrier for micro-services to provide stable services to the outside world. Currently, there are two common server overload protection schemes as follows: (1) a request volume threshold contr...

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
IPC IPC(8): H04L12/823H04L12/813H04L12/801H04L12/875H04L47/32H04L47/20H04L47/56
CPCH04L47/20H04L47/29H04L47/32H04L47/562
Inventor 彭明明
Owner SHENZHEN LEXIN SOFTWARE TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More