Remote procedure call tracking method and device

A remote procedure call and tracking device technology, which is applied in the field of remote procedure call tracking methods and devices, can solve the problems of inaccurate and convenient RPC call tracking, non-uniform print log format, and large intrusive business code, so as to facilitate further processing and The effect of the analysis

Inactive Publication Date: 2017-03-08
LETV HLDG BEIJING CO LTD +1
View PDF0 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides a remote procedure call tracking method and device, aiming to solve the problem of inaccurate and convenient RPC call tracking existing in the existing remote procedure call tracking method, high intrusiveness to business codes, and non-uniform print log format technical problem

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
  • Remote procedure call tracking method and device
  • Remote procedure call tracking method and device
  • Remote procedure call tracking method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0034] see figure 1 , is a flow chart of the remote procedure call tracing method according to the first embodiment of the present invention. The remote procedure call tracking method of the first embodiment of the present invention includes the following steps:

[0035] Step 100: initiate an RPC call to the current application;

[0036] Step 110: Automatically generate the unique request identifier ReqID and the RPC call identifier RpcID of the current RPC call;

[0037] In step 110, when Thrift is used for network RPC calls, the embodiment of the present invention automatically transparently embeds the request identifier ReqID and the call identifier RpcID of the current RPC call in the API call interface through the Thrift framework, which is completely transparent to upper-layer service-related calls. No intrusion into business code.

[0038] Step 120: Transmitting the request identifier ReqID and the call identifier RpcID of the current RPC call to the next RPC call; ...

Embodiment 2

[0042] see figure 2 and image 3 , figure 2 is a flow chart of the remote procedure call tracking method according to the second embodiment of the present invention, image 3 It is a macro logic diagram of RPC call tracking in the embodiment of the present invention. The remote procedure call tracking method of the second embodiment of the present invention includes the following steps:

[0043] Step 200: the user initiates an RPC call to the current application;

[0044] Step 210: The client stub code of the Thrift framework automatically generates the globally unique request identifier ReqID for the current RPC call, and at the same time passes the RpcID (ie ParentRpcID) of the upper-layer RPC call to the current RPC call, and generates an RPC call identifier RpcID for the current RPC call ;At the same time, the Thrift framework automatically records the start time and end time of the current RPC call, as well as the parameter sampling data of the current RPC call;

...

Embodiment 3

[0050] see Figure 5 , is a schematic structural diagram of the remote procedure call tracking device according to the first embodiment of the present invention. The remote procedure call tracking device according to the first embodiment of the present invention includes:

[0051] Call initiation module 10: for initiating an RPC call to the current application;

[0052] Code generation module 20: used to automatically generate the unique request identifier ReqID and RPC call identifier RpcID of the current RPC call, and transmit the request identifier ReqID and call identifier RpcID of the current RPC call to the next RPC call; wherein, when using Thrift for network When RPC calls, the embodiment of the present invention automatically and transparently embeds the request identifier ReqID and the call identifier RpcID of the current RPC call in the API call interface, which is completely transparent to the call related to the upper layer business and has no intrusion to the bu...

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 remote procedure call, and in particular relates to a remote procedure call tracking method and device. The remote procedure call tracking method comprises the following steps: initiating the remote procedure call to the current application; automatically generating a unique request identifier and a call identifier of the current remote procedure call; transmitting the unique request identifier and the call identifier of the current remote procedure call to the next remote procedure call. Through the adoption of the remote procedure call tracking method and device disclosed by the embodiment of the invention, the unique request identifier and the call identifier of the remote procedure call are automatically generated, the unique request identifier and the call identifier of the current remote procedure call are transmitted to the next remote procedure call, so that the remote procedure call can be conveniently and accurately tracked, and upper business related call is completely transparent, and the business code is free from invasion.

Description

technical field [0001] Embodiments of the present invention relate to the technical field of RPC communication, and in particular, to a remote procedure call tracking method and device. Background technique [0002] With the in-depth promotion of the software microservice architecture, RPC (Remote Procedure Call, remote procedure call) communication based on the Thrift framework (the Thrift framework is an open source cross-language RPC service framework) is widely used. RPC refers to a process on computer A that calls a process on another computer B. The calling process on computer A is suspended, and the called process on computer B starts to execute. When the value is returned to computer A, the computer Process A continues to execute. In the process of RPC communication, how to track RPC calls between microservices to analyze the performance of microservices has always been a difficult problem in the industry. [0003] In the prior art, the tracking method for the remo...

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): H04L29/06
CPCH04L67/133
Inventor 郭瑞骆树萌
Owner LETV HLDG BEIJING CO LTD
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