Event log recording method applicable to distributed system

A distributed system and recording method technology, applied in the field of distributed computing, can solve the problems of scattered logs, difficult management, inconsistent formats, etc., and achieve the effect of easy management and reduced workload

Active Publication Date: 2015-04-29
G CLOUD TECH
View PDF3 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The technical problem solved by the present invention is to provide a log recording method suitable for distributed transactions, which

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
  • Event log recording method applicable to distributed system
  • Event log recording method applicable to distributed system
  • Event log recording method applicable to distributed system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] See figure 1 Shown, flow process of the present invention is:

[0026] Step 1: Identify the transactions that need to be logged in all transaction logics in the distributed system, and also identify the transaction logic that returns responses asynchronously;

[0027] Step 2: Before each distributed transaction starts, assign a unique identifier to each transaction;

[0028] Step 3: At the beginning of all transactions, intercept them and judge whether they are transactions that return responses asynchronously. If not, prove that this transaction is a simple transaction that does not require the cooperation of multiple components, then directly execute the transaction logic; then according to The execution result of the transaction logic is written into the transaction log record; if it is, it proves that the transaction is a long transaction and the execution result needs to be returned asynchronously, then perform step 4;

[0029] Step 4: Write the information of th...

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 distributed calculation, in particular to an event log recording method applicable to a distributed system. The event log recording method comprises the following steps of indentifying event logics needing event log recording and event logics needing asynchronous return response in all event logics in the distributed system first; before an event begins, distributing a unique identifier to the event; when the event begins, judging whether the event is an event needing asynchronous return response, and if not, directly executing the event logic and writing the event log into an event log record according to the result; if so, writing the event formation into a temporary table as one record, and then continuously executing the event; finally, intercepting all the received responses, taking the corresponding record out in the temporary table if an identifier in the response is consistent with the identifier of certain record in the temporary table, upgrading an event execution result in the response to the record, and then writing into the event log record. According to the event log recording method disclosed by the invention, the problems of dispersed logs, nonuniform formats and difficulty in management when a traditional distributed system executes events are solved; the event log recording method disclosed by the invention can be used for event log recording of the distributed system.

Description

technical field [0001] The invention relates to the technical field of distributed computing, in particular to a transaction log recording method suitable for distributed systems. Background technique [0002] In a distributed system, a transaction may require multiple components to cooperate to complete it. In addition, there is uncertainty in the execution time of the transaction, so it will bring great difficulties to the log record of the transaction. First, transactions may be initiated by users, and then distributed to lower-level components in sequence. It may also be initiated by one of the components and distributed to other components, such as scheduled transactions or processing transactions initiated based on alarm events. Secondly, the executed transaction may be a long task, and the distributed system adopts asynchronous return method, which cannot obtain the result of transaction execution synchronously, nor can it determine the time point when the transacti...

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): G06F11/34G06F9/46
Inventor 莫展鹏杨松季统凯
Owner G CLOUD 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