Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for defending micro-service avalanche effect

An avalanche effect, micro-service technology, applied in digital transmission systems, electrical components, transmission systems, etc., can solve problems such as platform crashes, system bottlenecks, consumption of system threads, etc., to achieve the effect of improving the success rate of calls

Inactive Publication Date: 2018-09-28
G CLOUD TECH
View PDF5 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since the microservice programs of many virtual machines may be cross-called, if a microservice has an abnormal timeout at this time, the request will consume system threads, IO and other resources
When there are more and more requests of this type, more and more computer resources will be occupied; it will lead to system bottlenecks, causing requests from other microservices to be unavailable as well; eventually causing the entire platform to crash

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
  • Method for defending micro-service avalanche effect
  • Method for defending micro-service avalanche effect
  • Method for defending micro-service avalanche effect

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] There are many implementations of the present invention, here we take the cloud platform as an example to illustrate one of the implementation methods, the flow chart is as follows figure 1 As shown, the specific implementation process is as follows

[0022] 1. Set the load balancing weight scheduling rules, the code is as follows:

[0023]

[0024]

[0025] Load balancing means that user requests are allocated to multiple microservices for execution, so as to jointly complete work tasks and quickly respond to user requests; the default scheduling rule is the best response time rule.

[0026] The weight scheduling rule means that the priority of the microservice whose number of failures exceeds the threshold per unit time is reduced to the lowest, and then other microservices with higher priority are selected according to the best response time rule; the unit time can be set, and the default is 5 minutes. The default threshold is 20 times;

[0027] The best resp...

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 relates to the technical field of the cloud platform micro-service, especially a method for defending micro-service avalanche effect. The method comprises the following steps: 1, settinga load balancing weight scheduling rule, and supporting the promotion and the demotion of the micro-service priority; 2, setting a circuit breaker; 3, starting the circuit breaker when the micro-service is abnormal; 4, starting the load balancing weight scheduling rule when the micro-service is failed; 5, turning off the circuit breaker when the micro-service is recovered; and 6, starting a loadbalancing default scheduling rule when the micro-service is recovered. Through the method disclosed by the invention, the problems of the system bottleneck and even the collapse of the whole platformcaused by the micro-service avalanche effect are solved, and the method can be applied to the micro-service management of a cloud platform.

Description

technical field [0001] The invention relates to the technical field of cloud platform microservices, in particular to a method for defending against the avalanche effect of microservices. Background technique [0002] There are a large number of service programs on a general cloud computing platform, and there may be multiple running microservice programs on each computing node or control node; and the computing nodes are also running multiple virtual machines. One or more microservice programs may also be running on each virtual machine. Since the microservice programs of many virtual machines may be cross-called, if a microservice has an abnormal timeout at this time, the request will consume system threads, IO and other resources. When there are more and more requests of this type, more and more computer resources will be occupied; it will lead to system bottlenecks, making requests from other microservices also unavailable; and eventually lead to the collapse of the ent...

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 Applications(China)
IPC IPC(8): H04L12/24H04L29/08
CPCH04L41/0663H04L67/1001
Inventor 马桂成季统凯
Owner G CLOUD TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products