Distributed big data log link tracking method and system under micro-service architecture
A link tracking and micro-service technology, applied in the field of distributed big data log link tracking methods and systems, can solve the problem that operation and maintenance personnel cannot quickly identify and locate, log query efficiency and accuracy are not high, and micro-service chains cannot be realized To improve the efficiency of storage and retrieval query, improve the efficiency of development and operation and maintenance, and save hardware costs
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] Microservice link tracking technology generally generates the traceID identifier of this call request through the request source and initiates the request. The target microservice that receives the request parses the traceID and generates the spanID corresponding to the calling method and additional information (such as the name of the called method , upper-level SpanID, node IP address, etc.), through these link ID information, the entire microservice call dependency can be constructed. For example, the Spring Cloud Sleuth framework is implemented using this technical solution, such as figure 2 shown.
[0043] 1) This technical solution relies on the abstract traceID to generate trace link information between services. When the system has a performance or functional failure, the operation and maintenance or developer often finds the traceID in the exception log by searching the log file first, and then Then use traceID to retrieve the complete operation log, the efficie...
Embodiment 2
[0080] This embodiment provides a distributed big data log link tracking system under the microservice architecture, which includes:
[0081] The service module calls the judgment module, which is used to judge whether the current microservice module is called for the first time after the microservice module receives the call request, and if so, generate the unique identifier traceID of the link, and then generate the unique identifier spanID of the business method; otherwise , directly generate spanID, and mark the corresponding traceID and start timestamp information at the same time;
[0082] The business method calls judgment module, which is used to judge whether the current business method is the business method called for the first time according to whether there is a parentSpanID uniquely identified by the parent business method in the request, and update the spanID relationship in the call chain;
[0083] The cache module is used to cache the IP address of the server ...
Embodiment 3
[0092] This embodiment provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps in the distributed big data log link tracking method under the micro-service architecture as described above are implemented .
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com