Interface processing method and device, storage medium and processor

A technology of interface processing and storage media, which is applied in the field of data processing, can solve problems such as easy avalanche effects, and achieve the effect of avoiding avalanche effects

Inactive Publication Date: 2018-02-02
BEIJING QUNAR SOFTWARE TECH
View PDF8 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The main purpose of the present invention is to provide an interface processing method, device, stora

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
  • Interface processing method and device, storage medium and processor
  • Interface processing method and device, storage medium and processor
  • Interface processing method and device, storage medium and processor

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] The embodiment of the present invention provides an interface processing method.

[0032] figure 1 It is a flowchart of an interface processing method according to an embodiment of the present invention. Such as figure 1 As shown, the method includes the following steps:

[0033] Step S102, collecting monitoring data obtained by monitoring the target interface.

[0034] In the technical solution provided in the above step S102 of the present application, the monitoring data obtained by monitoring the target interface is collected.

[0035] In production, there are many kinds of monitoring data, such as host temperature, processor (CPU) operating data, memory usage, disk space size, network IO throughput, etc. In this embodiment, the target interface is also a service interface. For example, the target interface is an Http interface, a DUBBO interface, etc., and the target interface is monitored to obtain monitoring data. The monitoring data can include different ind...

Embodiment 2

[0070] The technical solution of the present invention will be described below in conjunction with preferred embodiments, specifically taking the target interface as the service interface for illustration

[0071] In this embodiment, at least the following monitoring data are collected for the service interface:

[0072] (1) Interface time-consuming, that is, the time of interface request;

[0073] (2) The number of requests, that is, the total number of requests made to the target interface;

[0074] (3) The number of exceptions, that is, the number of times when an exception occurs when a request is made to the target interface;

[0075] (4) Error code, that is, interface error code.

[0076] The above monitoring data is pushed to the graphite database for storage, and the monitoring data is taken as a time period of one minute. For these monitoring data, aggregate functions such as summation or average value are used to output graphs, and alarms are added.

[0077] fig...

Embodiment 3

[0112] The embodiment of the present invention also provides a flowchart of an interface processing device. It should be noted that the interface processing apparatus in this embodiment can be used to execute the interface processing method in the embodiment of the present invention.

[0113] Figure 7 is a schematic diagram of an interface processing device according to an embodiment of the present invention. Such as Figure 7 As shown, the device may include: an acquisition unit 10 , a processing unit 20 , an execution unit 30 and a control unit 40 .

[0114] The collection unit 10 is configured to collect monitoring data obtained by monitoring the target interface.

[0115] The processing unit 20 is configured to process the monitoring data to obtain target parameters, wherein the target parameters are used to detect whether the target interface generates a target event, and the target event is used to make the service corresponding to the target interface be in the firs...

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 interface processing method, an interface processing device, a storage medium and a processor. The method comprises the steps of collecting monitored data acquired by monitoring a target interface; processing the monitored data to acquire a target parameter, wherein the target parameter is used for detecting whether the target interface generates a target event, whereinthe target event is used for controlling a service corresponding to the target interface to be in a first state; executing target operation when the condition that the target interface generates the target event is detected via the target parameter; controlling the service corresponding to the target interface to be in a second state after the target operation is performed on the target interface.According to the method and the device provided by the invention, the effect of effectively avoiding an avalanche effect generated based on interface monitoring is achieved.

Description

technical field [0001] The present invention relates to the field of data processing, in particular to an interface processing method, device, storage medium and processor. Background technique [0002] At present, during the operation and maintenance of the interface, the interface is often monitored to obtain monitoring data, such as the error code of the monitoring interface, the interface request time, and so on. However, these monitoring data are not used to proactively discover problems with the interface, so as to avoid the avalanche effect. [0003] In addition, usually when there is a problem with some interfaces with high access frequency, it will often occupy a large amount of thread pool resources, and even run out of threads, resulting in unavailable services. Since business logic often relies on multiple external service interfaces, when one or more of the service interfaces frequently times out, reports errors, or even services are unavailable, it may cause c...

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/24H04L12/26H04L12/819H04L47/21
CPCH04L41/0681H04L41/5012H04L41/5025H04L43/0817H04L47/215
Inventor 闻雄曾子剑邓亮叶礼伟
Owner BEIJING QUNAR SOFTWARE TECH
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