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

Service fusing method based on sliding time window

A technology of sliding time window and time window, which is applied in the direction of fault handling not based on redundancy, generation of response error, instrument, etc., can solve problems such as excessive resource consumption and low statistical efficiency, and achieve timely and effective statistics and control, Statistics and control for smooth, resource-saving effects

Inactive Publication Date: 2020-08-18
武汉众邦银行股份有限公司
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method is accurate in statistics, but there are problems of low statistical efficiency and excessive resource consumption

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
  • Service fusing method based on sliding time window
  • Service fusing method based on sliding time window
  • Service fusing method based on sliding time window

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0078] It also includes the implementation steps of the circuit breaker service call entry:

[0079] Step B1: Define time window T, sliding scale k, fuse type t, fuse start time t1, fuse duration n, define service name and service fuse instance mapping map, abnormal service call times threshold p, abnormal service call ratio threshold q0;

[0080] Step B2: Set the service fuse function fuseProcess to enter the service name a. The specific steps are as follows:

[0081] Step B2.1: Obtain the service fuse instance fuseService of the service from the map according to a;

[0082] Step B2.2: If the fuseService does not exist, read the fuse configuration of the current service a from the configuration table, which includes: time window T, sliding scale k, fuse type t, abnormal service call times threshold p, and abnormal service call ratio Threshold, and then call the S2 fuse service constructor init; the input parameters are (T, k.t, p, q, n), instantiate a fuse service fuseServic...

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 field of flow control, provides a service fusing method based on a sliding time window, and aims at solving the problems that an existing fusing mechanism is generally based on a database or a cache, and the mode is low in statistical efficiency and overlarge in resource consumption. According to the main scheme, the method comprises the following steps: constructing aservice exception call frequency registration ring queue and a service total call frequency registration ring queue which contain n elements and are dynamically subscribed as index according to the size T of a time window and a time sliding scale k, wherein each element is used for storing the service request frequency in the corresponding sliding scale k; when the server receives a service request, judging whether the service request is fused or not by judging whether a function shouldFuse needs to be fused or not, if so, directly returning the service call and not processing the service, otherwise, registering the total number of service calls, and if the service logic service is called abnormally or overtime, registering the total number of abnormal service calls; returning traffic logic processing results.

Description

technical field [0001] The invention relates to the field of flow control for application servers in the Internet industry, and provides a service fusing method based on a sliding time window. Background technique [0002] Many of today's applications are Internet-oriented, and the servers behind them face the problem of high concurrency. Since the resources of the server are limited, the concept of flow control has been proposed to ensure the stability of system services. Service fusing is one of the flow control methods. Service fusing refers to that within a certain time window, some service call abnormal indicators (failure rate / number or timeout rate / number) reach the pre-designed threshold, then the service will be broken (stop external services) for a period of time , and then provide external services after the fuse time has passed. [0003] The current circuit breaker mechanism is generally based on the database or cache. The status of each service call is saved i...

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): G06F11/07
CPCG06F11/073G06F11/0775G06F11/0793
Inventor 张路路李耀田骏彭磊杨志文
Owner 武汉众邦银行股份有限公司
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