Micro-service system-oriented call chain tracking and analyzing method

An analysis method and service invocation technology, which is applied in the field of call chain tracking and analysis for microservice systems, and can solve problems such as lack of solutions and service exceptions.

Pending Publication Date: 2020-07-28
STATE GRID ZHEJIANG ELECTRIC POWER +2
View PDF15 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, only knowing the call chain structure is not enough to accurately pinpoint the service location of the root cause exception. For example, there may be multiple instances of the same service deployed on different machines, and the service exception will be propagated to nearby related services, causing the service calling the service to fail. An exception has occurred, and a more comprehensive solution is still lacking

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
  • Micro-service system-oriented call chain tracking and analyzing method
  • Micro-service system-oriented call chain tracking and analyzing method
  • Micro-service system-oriented call chain tracking and analyzing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The present invention will be further described below in conjunction with accompanying drawing:

[0030] In this embodiment, a method for tracking and analyzing call chains oriented to a microservice system includes the following steps:

[0031] S1: Build a complete call chain tracking system, the specific steps are as follows:

[0032] (1) Every time the microservice system initiates a business request, it will generate a globally unique TraceID, which is transparently transmitted along with the request to identify a complete call chain; at the same time, the SpanID is used to identify the call sequence between services to build a call chain Tracking tree diagram.

[0033] Specifically, TraceID can generate an ID number with a globally unique identifier based on information such as the request start timestamp, random number, and process number. The SpanID can be generated according to the rules of hierarchical traversal. The SpanID of the service A that initially ini...

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 a micro-service system-oriented call chain tracking and analyzing method, which comprises the following steps of: (1) constructing a perfect call chain tracking system, namelyconstructing a tree structure of call chain tracking according to a Trace ID generated by a service request initiated by a micro-service system; then injecting the service request call chain information into system execution log information; collecting and storing log information executed by the system; and (2) carrying out aggregation analysis on the log information by using the call chain dimension: sending the log information with the same Trace ID to the same KafkaPation by using the Trace ID as a reference, and carrying out structured processing and analysis on the log information by using the call chain dimension. According to the method, aggregation analysis can be carried out on the log information through the call chain dimension, and a corresponding analysis strategy is given incombination with the actual situation, so that service abnormal fault positioning of the micro-service system is more accurate.

Description

technical field [0001] The invention belongs to the technical field of microservice system calls, and in particular relates to a method for tracking and analyzing call chains oriented to microservice systems. Background technique [0002] In recent years, the microservice architecture has been favored due to its loose coupling between services, the ability to be developed by different teams in different languages, and rapid independent deployment. Service transformation. The microservice architecture meets the needs of enterprises for agile development, efficient operation, and strong scalability of software systems, but the problems brought about by the microservice architecture cannot be ignored. After the system is micro-serviced, the service components are refined, the number of services increases sharply, and the dependencies between services are intricate. This not only increases the incidence of failures, but also makes it difficult for operation and maintenance pers...

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/30G06F16/18
CPCG06F11/3065G06F16/1815
Inventor 何东王红凯徐海洋冯珺夏同飞李志高文俊闵星陈今
Owner STATE GRID ZHEJIANG ELECTRIC POWER
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