CN113946499A - Micro-service link tracking and performance analysis method, system, equipment and application - Google Patents
Micro-service link tracking and performance analysis method, system, equipment and application Download PDFInfo
- Publication number
- CN113946499A CN113946499A CN202111237797.3A CN202111237797A CN113946499A CN 113946499 A CN113946499 A CN 113946499A CN 202111237797 A CN202111237797 A CN 202111237797A CN 113946499 A CN113946499 A CN 113946499A
- Authority
- CN
- China
- Prior art keywords
- service
- micro
- link
- request
- microservice
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3409—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention belongs to the technical field of network monitoring services, and discloses a method, a system, equipment and application for tracking and analyzing the performance of a micro-service link, wherein the method for tracking and analyzing the performance of the micro-service link is based on a micro-service architecture and provides various integration modes for micro-services, and the micro-services can integrate the system according to the actual environment and hardware conditions; the method has no invasion to the micro-service, and the micro-service can combine with a service log and a probe to analyze the complete link of the request and the response in real time and perform comprehensive evaluation on the link. The invention supports three integration modes, and has no invasion to the microservice during integration; in the process of monitoring the link information, user experience is not influenced, the link information analysis meeting the service can be ensured, and system resources are not excessively occupied; the overall operation and maintenance capacity of the system is improved, and the operation and maintenance cost and the operation cost are saved for enterprises. And services, endpoints and functions with lower performance are automatically displayed without manual intervention in the whole process.
Description
Technical Field
The invention belongs to the technical field of network monitoring services, and particularly relates to a method, a system, equipment and application for micro-service link tracking and performance analysis.
Background
At present, in fault analysis or performance optimization of a traditional micro-service architecture, operation and maintenance personnel generally analyze the performances of a memory, a network and a disk of a server to achieve an expected target, and such a way needs manual intervention to increase the probability of analysis errors, and influences service requests during analysis, so that user requests during the analysis fail to influence service execution.
With the continuous development of information technology, the internet has become an indispensable tool in life and work. With the increasing of internet services, how to effectively and reasonably monitor and optimize various complex network services is a problem, and a micro-service architecture is a software service architecture which is widely applied at present. The interface specification of the micro-service is good, and the service management method is convenient, so that the software development efficiency and the use efficiency are improved.
The first prior art is as follows: CN202010347906.6 is a software continuous integration method based on micro service architecture. The invention discloses a software continuous integration method based on a micro-service architecture, which belongs to the field of Internet software development, is used for delivering software from software development to software testing, and solves the problems that the software continuous integration efficiency is poor, compiling failure is easy to occur before project delivery testing, and no automatic testing function is available in the existing software project development process, so that project version release deployment is influenced; the method comprises the following steps: firstly, a Jenkins CI platform is built and configured, then a micro-service engineering package Job1 is built on the Jenkins CI platform, an identification label is printed on the packaged micro-service installation package and uploaded to an installation package warehouse, then the micro-service installation package is arranged and stored according to the dimension of a project version, digital verification is carried out through an MD5 algorithm, then a package taking and deploying test environment Job2 is built on the Jenkins CI platform with parameters, and finally a test environment version list is output; the high continuous integration can be achieved during project delivery testing, and therefore the working efficiency of software development and testing is improved.
The second prior art is: a software authorization checking method, a terminal and a software authorization system under a CN201911000437.4 micro service architecture are provided. The application discloses a software authorization checking method under a micro-service architecture, a terminal and a software authorization system, wherein the method is applied to any one terminal in a plurality of terminals connected with the software authorization system, the plurality of terminals are respectively used for realizing different functions of software based on the micro-service architecture, and the method comprises the following steps: when a function calling instruction is received, calling a software authorization system to verify the stored authorization information; if the software authorization system passes the verification of the authorization information, the legal authorization is confirmed; and executing the operation indicated by the function calling instruction. The method and the device can solve the problem that the distributed software authorization verification is difficult to realize by the current single machine authorization verification method.
The prior art is three: service discovery and service reliability study based on micro-service architecture — xucongming. The system designed based on the microservice architecture consists of a plurality of small services which are mutually communicated through a network, each service has a separate software development life cycle, and the services are mutually dependent. Although there are many current studies on microservice architectures, there are still some problems. The service discovery is over-delayed and has insufficient accuracy; the description of the quality of service for a single service is not comprehensive enough; the problems that the service has more errors in the running process of a dynamic environment, cannot be adjusted in real time and the like are solved. In the modeling research of a micro-service architecture, the current generation scheme of the dependency graph has the problems of insufficient convenience and low accuracy; the problems of error tolerance and system real implementation are not considered in the current service fault tree model. In the research of service risks, the existing service risk calculation model does not consider the influence of different system execution path probabilities on the final calculation result.
The method mainly researches the problems of service reliability, service discovery, system reliability modeling, system service risk, service recovery and the like in the micro-service architecture. The results are summarized as follows:
(1) the problem of service operational reliability in micro-service architectures is studied. A QoS calculation model of custom parameters is provided for calculating the service quality, and can be used for evaluating the service operation state. A self-adaptive service model is designed based on the service running state, and the aims of service error tolerance and throughput improvement in the service running process are achieved. In the experimental environment, the QoS calculation model and the self-adaptive service model provided by the method improve the success rate of service operation by 3.87% and improve the throughput by 18.7%.
(2) The service discovery problem in the micro-service architecture, how to model the dependency between applications, and how to use these models to analyze the reliability of the micro-service architecture system were studied. The method proposes a scheme for automatically generating the dependency graph, improves a service fault tree model, and simultaneously uses the dependency graph model for reliability analysis of a system. The experimental result shows that the service fault tree model can effectively analyze the reliability of the micro-service architecture system. When the improved fault tree model is used for analyzing the fault rate of the system, the accuracy rate is improved to a certain extent, and the accuracy rate is improved by 4.53% in an experimental environment.
(3) Services in the micro-service architecture have the characteristic of independent deployment, and how to efficiently monitor and manage the services is an important problem. The prediction and recovery of service failures is equally important, as resolving service failures only at deployment or runtime would result in the generation of a large number of failed tasks. The method improves an error recovery scheme based on service risk, and through application of the improved scheme, removal of risk service can be completed before a large number of faults occur, so that continuous errors are avoided. The experimental result shows that the improved service risk calculation model and the error recovery scheme can improve the robustness of the system and reduce the waste of system resources caused by the error recovery scheme. .
However, the software system based on the micro-service architecture has the following problems:
(1) the link which can not dynamically monitor the service needs manual participation, which easily causes the instability of the system and improves the complexity of the operation and maintenance work of the system.
(2) Visualization is poor, and information of service invocation is often required to be checked through a log.
(3) The number of instances required to be operated when each micro-service reaches the bottom cannot be determined, so that some service loads are too high to influence the maximum number of concurrent requests of users, and some service loads are low to still occupy resources, thereby increasing the IT cost.
(4) When a lower-layer fault or performance problem occurs in the service, manual analysis is needed, the consumed cost is high, long time is needed for recovering the service to a normal state, the business is affected, a client cannot trade, and economic loss is caused.
Through the above analysis, the problems and defects of the prior art are as follows:
(1) the existing software system based on the micro-service architecture cannot dynamically monitor the service link, needs manual participation, is easy to cause system instability, and improves the complexity of system operation and maintenance work.
(2) The existing software system based on the micro-service architecture has poor visualization.
(3) The existing software system based on the micro-service architecture can not determine how many instances of each micro-service need to be operated to the bottom, so that some service loads are too high to influence the maximum number of concurrent requests of users, some service loads are low to still occupy resources, and the IT cost is improved.
(4) When a lower-layer fault or performance problem occurs in a service, an existing software system based on a micro-service architecture needs to be manually analyzed, the cost is high, long time is needed for recovering the service to a normal state, the service is affected, a client cannot trade, and economic loss is caused.
The difficulty in solving the above problems and defects is: higher.
The significance of solving the problems and the defects is as follows: on the premise of not influencing normal business transaction application, complete link information can be displayed in time, a requested complete link is visually displayed, faults and problems occurring in the link can be found in time, a client can be helped to estimate how many hardware resources are needed for application service at all or give an alarm to the client when the resources are in short supply, the problem that business application is suspended due to the fact that the faults occur in normal operation of the business can be greatly reduced, and the business service can be stably operated for a long time.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a method, a system, equipment and application for micro-service link tracking and performance analysis.
The invention is realized in this way, a micro-service link tracking and performance analysis method, the micro-service link tracking and performance analysis method is based on micro-service architecture, provides multiple integration modes for micro-service, and micro-service can integrate the system according to actual environment and hardware condition; the method has no invasion to the micro-service, and the micro-service can combine with a service log and a probe to analyze the complete link of the request and the response in real time and perform comprehensive evaluation on the link.
Further, the method for implementing the microservice in combination with the service log comprises the following steps:
by analyzing the information output in the log, the following information can be output in the log: the method is a section-oriented programming idea, records complete link information according to execution time or sequence marks output in logs, and analyzes other indexes to record the monitoring of the completed performance.
Further, the method for realizing the micro-service bindable probe comprises the following steps:
a javaAgent technology is introduced after jdk1.5, the javaAgent is an interceptor before the operation method, the javaAgent and ASM byte code technology are utilized, when the JVM loads a class binary file, the ASM dynamically modifies the loaded class file, timer functions are added before and after the monitoring method for calculating the time consumption of the monitoring method, meanwhile, the time consumption of the method and the internal calling condition are put into a processor, the processor processes the method calling sequence by utilizing the characteristic that a stack is put in first and then put out, when one request processing is finished, a time consumption method track and a reference map are output into the file, and then time consumption services to be captured by the method are distinguished according to corresponding parameters in the map or key codes in the time consumption method track. And finally, taking down the corresponding time-consuming track file, converting the time-consuming track file into an xml format, analyzing the time-consuming track file, and displaying the code hierarchical structure through a browser, so that time-consuming analysis is facilitated.
Furthermore, the method for tracking and analyzing the performance of the micro-service link analyzes the performance of the service, and can push index data of the micro-service to the server side in real time through the probe, so that the request and the response of the link are analyzed in real time, the state of the micro-service is tracked in real time, and the link is comprehensively evaluated.
Further, the method for tracking and analyzing the performance of the microservice link specifically comprises the following steps:
monitoring the running state of the micro-service and relevant index data of the running environment;
secondly, monitoring the complete request link of the microservice and performing record analysis;
and thirdly, judging the analysis result, and if the analysis result is not in accordance with the set threshold range, alarming through an alarm micro-service.
Furthermore, there are three modes for monitoring the complete request link of the micro service and performing record analysis to perform complete link monitoring on the micro service: a log analysis mode, a jar packet introduction mode and an Http mode; sending the link information to a microservice monitoring module end; and the micro-service monitoring module end performs real-time evaluation scoring on the complete link according to the information, performs real-time quality grade division on the index of the link, performs interface display on the Top5 with slow response, and notifies the alarm micro-service of the index which is not in the threshold range to alarm.
Further, when a log analysis mode is used, a user selects a log of a service to be analyzed through a management interface, so that complete link information is restored.
Further, when using the Http mode, all requests for microservices are recorded by the probe and complete link information is recovered.
Further, the jar packet mode can be used for improving and extending performance or problem monitoring of the function level.
Further, the algorithm of the evaluation score is as follows: index information related to a request of a micro service instance needs to be acquired; on the premise that the response state is 200, the request with the response time within 100 milliseconds is a satisfactory request; the request with the response time of more than 100 milliseconds and 3 seconds is a tolerable request, the request with the response time of more than 3 seconds is an unsatisfied request, and the request with the response state of not 200 is uniformly classified as the unsatisfied request;
the evaluation score calculation model is as follows:
an evaluation score of (number of satisfied requests + (number of unsatisfied requests/2))/total number of requests of 100;
quality grade division: dividing the quality grade into A, B, C, D four response grades based on the stock data of the last day;
the grade A is as follows: the final calculation result of the total time consumption of all the satisfactory responses/the number of all the satisfactory requests of one endpoint in one minute is one response time; the response time equal to or less than the response value is classified into a class. Marking the grade as green on a visual interface;
the B grade is: the value of the total elapsed time of the tolerable responsive Top 30/the total number of tolerable requested Top30 for an endpoint in one minute is finally calculated as a response time. The response time equal to or less than the response value is classified into B class. Marking the grade blue on a visual interface;
the C grade is: the value of the total time consumption of the tolerable responsive Top 70/the total number of tolerable requested Top70 of an endpoint in one minute is finally calculated as a response time; the response time equal to or less than the response value is classified into C class. Marking the grade as light red on a visual interface;
grade D: recording response time consumption greater than the C level as a D level; the rating is marked red on the visual interface.
Another object of the present invention is to provide a microservice processing apparatus comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of: based on a micro-service architecture, a plurality of integration modes are provided for micro-services, and the micro-services can integrate the system according to the actual environment and hardware conditions; the method has no invasion to the micro-service, and the micro-service can combine with a service log and a probe to analyze the complete link of the request and the response in real time and perform comprehensive evaluation on the link.
Another objective of the present invention is to provide a microservice link tracking and performance analyzing system for implementing the microservice link tracking and performance analyzing method, wherein the microservice link tracking and performance analyzing method comprises:
the micro-service operation module is used for monitoring the operation state of the micro-service and the related index data of the operation environment;
the micro-service monitoring module is used for monitoring the complete request link of the micro-service and performing record analysis;
and the micro-service warning module is used for judging the analysis result and warning through the warning micro-service if the analysis result is not in accordance with the set threshold range.
Another objective of the present invention is to provide an application of the method for tracking and analyzing performance of a microservice link in a microservice architecture.
By combining all the technical schemes, the invention has the advantages and positive effects that: the invention is based on the micro-service architecture, and provides various integration modes for micro-services; the micro-service can integrate the system according to the actual environment and hardware condition, has no invasion to the micro-service, can combine the service log and the probe, analyze the complete link of the request and the response in real time, and carry out comprehensive evaluation to the link. The invention provides development, operation and maintenance personnel for reference and micro service optimization, provides function-level execution performance analysis, and can make the micro service perform rapid performance analysis and fault removal under the condition of zero influence on the service in the production environment.
The system provides a complete method for tracking and analyzing performance of the on-line environmental service link, supports three integration modes, has no invasion to micro-services during integration, does not influence user experience in the process of monitoring link information, can ensure that the link information analysis of the services is met, does not occupy too much system resources, improves the overall operation and maintenance capacity of the system, and saves IT cost for enterprises.
Meanwhile, the system supports the performance analysis function of the online environment service, automatically displays the service, the end point and the function with lower performance, does not need manual intervention in the whole process, and has no obvious influence on the system performance in the whole upgrading process.
The micro-service expansion capacity and the micro-service upgrading of the system are zero-invasive to the micro-service development, micro-service developers do not need to care about the service expansion capacity and the service upgrading, and all links do not need to add new codes or new configuration parameters for the functions. Is friendly to software developers.
Compared with the prior art, the invention has the following advantages:
(1) service zero failure: all requests and responses to services can be monitored.
(2) Zero invasion: all links are zero-invasive to developers, the developers do not need to care about micro-service scaling and micro-service upgrading implementation details, and any code logic related to the functions does not need to be introduced into code development.
(3) The real-time performance is high: all links of the system consider real-time performance, and complete link information, performance analysis results, scores and other information can be seen on a page of the micro service management module within a few seconds.
(4) High concurrency support: all links of the system consider performance bottlenecks possibly generated in practical application, and technologies such as a time admission database, micro-service, containerization and the like are adopted to smoothly and elastically expand a large amount of data generated by large concurrency, so that the TPS service performance support of hundred thousand level concurrency scale is realized.
Drawings
Fig. 1 is a flowchart of a method for tracking and analyzing performance of a microservice link according to an embodiment of the present invention.
FIG. 2 is a schematic structural diagram of a microservice link tracking and performance analysis system according to an embodiment of the present invention;
in fig. 2: 1. a microservice operation module; 2. a micro-service monitoring module; 3. and a micro-service alarm module.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to the following embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In view of the problems in the prior art, the present invention provides a method and a system for tracking and analyzing performance of a micro service link, which are described in detail below with reference to the accompanying drawings.
As shown in fig. 1, the method for tracking and analyzing performance of a micro service link provided by the present invention includes the following steps:
s101: monitoring the running state of the micro service and related index data of the running environment;
s102: monitoring the complete request link of the microservice and performing record analysis;
s103: and judging the analysis result, and if the analysis result does not accord with the set threshold range, alarming through an alarm micro-service.
Based on the log: by analyzing the information output in the log, the following information can be output in the log: the method is a section-oriented programming idea, records complete link information according to execution time or sequence marks output in logs, and analyzes other indexes to record the monitoring of the completed performance.
Based on the probe: jdk1.5 later introduced the javaAgent technology, javaAgent was the interceptor before the method was run. According to the method, a java agent and an ASM byte code technology are utilized, when a class binary file is loaded by a JVM, the loaded class file is dynamically modified by the ASM, timer functions are added before and after a monitoring method for calculating the time consumption of the monitoring method, the time consumption of the method and the internal calling condition are put into a processor, the processor processes the method calling sequence by utilizing the characteristic that a stack is firstly put in and then put out, after one request is processed, a time consumption method track and a reference map are output into the file, and then time consumption services to be captured are distinguished according to corresponding parameters in the map or key codes in the time consumption method track. And finally, taking down the corresponding time-consuming track file, converting the time-consuming track file into an xml format, analyzing the time-consuming track file, and displaying the code hierarchical structure through a browser, so that time-consuming analysis is facilitated
Java probe tool function points:
the method comprises the steps of firstly, executing time-consuming range grabbing setting, and grabbing a code running track appearing in a time-consuming range according to the time-consuming range when a system runs.
And secondly, capturing specific code configuration is supported, capturing the configured specific method is facilitated, and the time-consuming situation of code execution of the relation is filtered out.
And thirdly, filtering the APP layer entrance method, configuring a method before entrance operation for monitoring, and performing method thematic analysis, wherein the method is equivalent to the time consumption of a special monitoring method.
And fourthly, an entry method parameter output function is supported, and corresponding entry parameters with high time consumption are conveniently tracked.
And fifthly, providing functions of displaying time consumption of the WEB page display interface, displaying a code calling relation graph, displaying the percentage of time consumption of the method and highlighting the suspicious method.
The performance of the service is analyzed, index data of the micro-service can be pushed to the server side in real time through the probe, so that the request and the response of the link are analyzed in real time, the state of the micro-service is tracked in real time, such as JVM information, link time consumption, link abnormal state, the state of other nodes under the same service and the like, and the link is comprehensively evaluated.
Those skilled in the art can also implement the method for tracking and analyzing performance of micro service links according to the present invention by using other steps, and the method for tracking and analyzing performance of micro service links according to the present invention shown in fig. 1 is only one specific embodiment.
As shown in fig. 2, the micro service link tracking and performance analysis provided by the present invention includes:
and the micro-service operation module 1 is used for monitoring the operation state of the micro-service and the related index data of the operation environment.
And the micro-service monitoring module 2 is used for monitoring the complete request link of the micro-service and performing record analysis.
And the micro-service warning module 3 is used for judging the analysis result and giving a warning through a warning micro-service if the analysis result does not accord with the set threshold range.
The technical solution of the present invention is further described below with reference to the accompanying drawings.
The micro-service monitoring module of the invention has three modes to carry out complete link monitoring on the micro-service: a log analysis mode, a jar packet introduction mode and an Http mode. When the log analysis mode is used, the user selects the log of the service to be analyzed through the management interface, and therefore the complete link information is restored. When using the Http mode, all requests for microservices are recorded by the probe and complete link information is recovered. If the jar packet mode is used, the performance or problem monitoring of the function level can be promoted and expanded. The three modes all send the link information to the microservice monitoring module end. The microservice monitoring module end carries out real-time evaluation scoring on the complete link according to the information, carries out real-time quality grade division on the index of the link, carries out interface display on the Top5 with slow response, and informs the alarm microservice of the index which is not in the threshold range.
The evaluation scoring algorithm in the invention is as follows: index information related to a request of a certain micro-service instance, such as response time, response state and number of TPS, needs to be acquired. On the premise that the response state is 200, a request with a response time within 100 milliseconds is a satisfactory request, a request with a response time within 100 milliseconds to 3 seconds is a tolerable request, and a request with a response time above 3 seconds is an unsatisfactory request. The response state is not 200, and the requests are uniformly classified as unsatisfied.
The evaluation score calculation model is as follows:
evaluation score ═ number of satisfied requests + (number of unsatisfied requests/2))/total number of requests 100
Quality grade division: the quality level was divided into A, B, C, D four response levels based on the stock data up to the last day.
The grade A is as follows: the final calculation result of the total time consumed by all the satisfied responses/the number of all the satisfied requests of one endpoint in one minute is one response time. The response time equal to or less than the response value is classified into a class. The rating is marked green on the visual interface.
The B grade is: the value of the total elapsed time of the tolerable responsive Top 30/the total number of tolerable requested Top30 for an endpoint in one minute is finally calculated as a response time. The response time equal to or less than the response value is classified into B class. The scale is marked blue on the visual interface.
The C grade is: the value of the total elapsed time of the tolerable responsive Top 70/the total number of tolerable requested Top70 for an endpoint in one minute is finally calculated as a response time. The response time equal to or less than the response value is classified into C class. The level is marked as light red on the visual interface.
Grade D: the response time consumption of more than C level is recorded as D level. The rating is marked red on the visual interface.
The quality grade needs to be recalculated every day, and the grade value is continuously corrected, so that the grading is more accurate under mass data.
Performance analysis: for the index triggering the alarm threshold, the index is displayed on a visual interface in a card form, the background color of the card is displayed in light red, and the card is clicked to display the request information of each node in the link on the interface, such as: service name, end point name, response time, and display the index data of the A-level standard under the same index. For a more elaborate performance analysis at the function level, the row of code in the function that takes the longest time is marked.
And analyzing the full link information and the service performance in real time, and continuously and automatically optimizing the grade. And providing a high-quality optimization reference scheme for operation, maintenance and developers.
Micro-service: a microservice is an architectural style, with a large complex software application consisting of one or more microservices. Each microservice in the system can be deployed independently, with loose coupling between each microservice. Each microservice is only concerned with completing one task and well completing the task. In all cases, each task represents a small business capability.
Micro-service instances: each micro-service may be provided by one or more applications, each referred to as an instance of the micro-service, which are combined together and provided by multiple instances through polling.
TPS: the query Per Second means "query rate Per Second", which is the number of Queries a server can respond to Per Second, and is a measure of how much traffic a particular query server processes within a specified time. TPS is an abbreviation for TransactionsPerSecond, i.e., number of transactions/second. It is the unit of measure of the software test results.
It should be noted that embodiments of the present invention may be implemented by software. The hardware portion may be implemented using dedicated logic; the software portions may be stored in a memory and executed by a suitable instruction execution system, such as a microprocessor or specially designed hardware. Those skilled in the art will appreciate that the apparatus and methods described above may be implemented using computer executable instructions and/or embodied in processor control code, such code being provided on a carrier medium such as a disk, CD-or DVD-ROM, programmable memory such as read only memory (firmware), or a data carrier such as an optical or electronic signal carrier, for example. The apparatus and its modules of the present invention may be implemented by hardware circuits such as very large scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., or by software executed by various types of processors, or by a combination of hardware circuits and software, e.g., firmware.
The above description is only for the purpose of illustrating the present invention and the appended claims are not to be construed as limiting the scope of the invention, which is intended to cover all modifications, equivalents and improvements that are within the spirit and scope of the invention as defined by the appended claims.
Claims (10)
1. A micro-service link tracking and performance analysis method is characterized in that the micro-service link tracking and performance analysis method is based on a micro-service architecture, provides multiple integration modes for micro-services, and the micro-services can integrate the system according to actual environment and hardware conditions; the method has no invasion to the micro-service, and the micro-service can combine with a service log and a probe to analyze the complete link of the request and the response in real time and perform comprehensive evaluation on the link.
2. The method for microservice link tracking and performance analysis according to claim 1, wherein the method for implementing microservice in conjunction with service logs comprises:
by analyzing the information output in the log, the following information can be output in the log: the method is a section-oriented programming idea, records complete link information according to execution time or sequence marks output in logs, and analyzes other indexes to record the monitoring of the completed performance.
3. The method of microservice link tracking and performance analysis of claim 1, wherein the method of implementing microservice bindable probes comprises:
a javaAgent technology is introduced after jdk1.5, the javaAgent is an interceptor before the operation method, the javaAgent and ASM byte code technology are utilized, when the JVM loads a class binary file, the ASM dynamically modifies the loaded class file, timer functions are added before and after the monitoring method for calculating the time consumption of the monitoring method, meanwhile, the time consumption of the method and the internal calling condition are put into a processor, the processor processes the method calling sequence by utilizing the characteristic that a stack is put in first and then put out, when one request processing is finished, a time consumption method track and a reference map are output into the file, and then time consumption services to be captured by the method are distinguished according to corresponding parameters in the map or key codes in the time consumption method track. And finally, taking down the corresponding time-consuming track file, converting the time-consuming track file into an xml format, analyzing the time-consuming track file, and displaying the code hierarchical structure through a browser, so that time-consuming analysis is facilitated.
4. The method for tracking and analyzing the performance of the micro-service link according to claim 1, wherein the method for tracking and analyzing the performance of the micro-service link analyzes the performance of the service, and the probe can push index data of the micro-service to the server in real time, so as to analyze the request and response of the link in real time, track the state of the micro-service in real time, and comprehensively evaluate the link.
5. The method of claim 1, wherein the method specifically comprises:
monitoring the running state of the micro-service and relevant index data of the running environment;
secondly, monitoring the complete request link of the microservice and performing record analysis;
and thirdly, judging the analysis result, and if the analysis result is not in accordance with the set threshold range, alarming through an alarm micro-service.
6. The method for microservice link tracking and performance analysis according to claim 5, wherein there are three modes for monitoring the microservice complete request link and performing log analysis for complete link monitoring of microservice: a log analysis mode, a jar packet introduction mode and an Http mode; sending the link information to a microservice monitoring module end; the micro-service monitoring module end carries out real-time evaluation scoring on the complete link according to the information, carries out real-time quality grade division on the index of the link, carries out interface display on Top5 with slow response and carries out alarm on the index which is not in the threshold value range to inform the alarm micro-service; when a log analysis mode is used, a user selects a log of a service to be analyzed through a management interface, so that complete link information is recovered; when the Http mode is used, all requests of the micro service are recorded through the probe and complete link information is recovered; by using the jar packet mode, the performance or problem monitoring of the function level can be promoted and expanded.
7. The method of microservice link tracking and performance analysis of claim 6, wherein the algorithm at the evaluation score is: index information related to a request of a micro service instance needs to be acquired; on the premise that the response state is 200, the request with the response time within 100 milliseconds is a satisfactory request; the request with the response time of more than 100 milliseconds and 3 seconds is a tolerable request, the request with the response time of more than 3 seconds is an unsatisfied request, and the request with the response state of not 200 is uniformly classified as the unsatisfied request;
the evaluation score calculation model is as follows:
an evaluation score of (number of satisfied requests + (number of unsatisfied requests/2))/total number of requests of 100;
quality grade division: dividing the quality grade into A, B, C, D four response grades based on the stock data of the last day;
the grade A is as follows: the final calculation result of the total time consumption of all the satisfactory responses/the number of all the satisfactory requests of one endpoint in one minute is one response time; dividing the response time less than or equal to the response value into A grades; marking the grade as green on a visual interface;
the B grade is: the value of the total time consumption of the tolerable responsive Top 30/the total number of tolerable requested Top30 of an endpoint in one minute is finally calculated as a response time; dividing the response time less than or equal to the response value into B grades; marking the grade blue on a visual interface;
the C grade is: the value of the total time consumption of the tolerable responsive Top 70/the total number of tolerable requested Top70 of an endpoint in one minute is finally calculated as a response time; dividing the response time less than or equal to the response value into C grades; marking the grade as light red on a visual interface;
grade D: recording response time consumption greater than the C level as a D level; the rating is marked red on the visual interface.
8. A microservice processing device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of: based on a micro-service architecture, a plurality of integration modes are provided for micro-services, and the micro-services can integrate the system according to the actual environment and hardware conditions; the method has no invasion to the micro-service, and the micro-service can combine with a service log and a probe to analyze the complete link of the request and the response in real time and perform comprehensive evaluation on the link.
9. A microservice link tracking and performance analysis system implementing the microservice link tracking and performance analysis method of any of claims 1 to 7, the microservice link tracking and performance analysis system comprising:
the micro-service operation module is used for monitoring the operation state of the micro-service and the related index data of the operation environment;
the micro-service monitoring module is used for monitoring the complete request link of the micro-service and performing record analysis;
and the micro-service warning module is used for judging the analysis result and warning through the warning micro-service if the analysis result is not in accordance with the set threshold range.
10. Use of the microservice link tracking and performance analysis method of any of claims 1 to 7 in microservice architecture.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111237797.3A CN113946499A (en) | 2021-10-22 | 2021-10-22 | Micro-service link tracking and performance analysis method, system, equipment and application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111237797.3A CN113946499A (en) | 2021-10-22 | 2021-10-22 | Micro-service link tracking and performance analysis method, system, equipment and application |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113946499A true CN113946499A (en) | 2022-01-18 |
Family
ID=79332657
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111237797.3A Pending CN113946499A (en) | 2021-10-22 | 2021-10-22 | Micro-service link tracking and performance analysis method, system, equipment and application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113946499A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114422386A (en) * | 2022-01-20 | 2022-04-29 | 南方电网数字电网研究院有限公司 | Monitoring method and device for micro-service gateway |
CN114553724A (en) * | 2022-03-01 | 2022-05-27 | 启明信息技术股份有限公司 | Method and system for solving operation and maintenance problems of distributed micro-service architecture platform |
CN114978940A (en) * | 2022-03-28 | 2022-08-30 | 天工信创(广州)信息科技有限公司 | Link monitoring and alarming method, device, computer equipment and storage medium |
CN115129491A (en) * | 2022-07-08 | 2022-09-30 | 盐城金堤科技有限公司 | Micro service request message tracking method, generating method, device, medium and equipment |
CN116775440A (en) * | 2023-08-21 | 2023-09-19 | 青岛民航凯亚系统集成有限公司 | Log-level link tracking method and system based on airport production operation system |
CN117130870A (en) * | 2023-10-26 | 2023-11-28 | 成都乐超人科技有限公司 | Transparent request tracking and sampling method and device for Java architecture micro-service system |
-
2021
- 2021-10-22 CN CN202111237797.3A patent/CN113946499A/en active Pending
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114422386A (en) * | 2022-01-20 | 2022-04-29 | 南方电网数字电网研究院有限公司 | Monitoring method and device for micro-service gateway |
CN114422386B (en) * | 2022-01-20 | 2023-08-11 | 南方电网数字电网研究院有限公司 | Monitoring method and device for micro-service gateway |
CN114553724A (en) * | 2022-03-01 | 2022-05-27 | 启明信息技术股份有限公司 | Method and system for solving operation and maintenance problems of distributed micro-service architecture platform |
CN114553724B (en) * | 2022-03-01 | 2024-03-26 | 启明信息技术股份有限公司 | Method and system for solving operation and maintenance problems of distributed micro-service architecture platform |
CN114978940A (en) * | 2022-03-28 | 2022-08-30 | 天工信创(广州)信息科技有限公司 | Link monitoring and alarming method, device, computer equipment and storage medium |
CN114978940B (en) * | 2022-03-28 | 2024-03-29 | 广州鑫景信息科技服务有限公司 | Link monitoring and alarming method, device, computer equipment and storage medium |
CN115129491A (en) * | 2022-07-08 | 2022-09-30 | 盐城金堤科技有限公司 | Micro service request message tracking method, generating method, device, medium and equipment |
CN115129491B (en) * | 2022-07-08 | 2024-03-05 | 盐城天眼察微科技有限公司 | Micro-service request message tracking method, micro-service request message generating method, micro-service request message tracking device, micro-service request message generating medium and micro-service request message tracking equipment |
CN116775440A (en) * | 2023-08-21 | 2023-09-19 | 青岛民航凯亚系统集成有限公司 | Log-level link tracking method and system based on airport production operation system |
CN116775440B (en) * | 2023-08-21 | 2023-12-01 | 青岛民航凯亚系统集成有限公司 | Log-level link tracking method and system based on airport production operation system |
CN117130870A (en) * | 2023-10-26 | 2023-11-28 | 成都乐超人科技有限公司 | Transparent request tracking and sampling method and device for Java architecture micro-service system |
CN117130870B (en) * | 2023-10-26 | 2024-01-26 | 成都乐超人科技有限公司 | Transparent request tracking and sampling method and device for Java architecture micro-service system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113946499A (en) | Micro-service link tracking and performance analysis method, system, equipment and application | |
US11775416B2 (en) | System and method for continuous testing and delivery of software | |
US10901727B2 (en) | Monitoring code sensitivity to cause software build breaks during software project development | |
CN111209131B (en) | Method and system for determining faults of heterogeneous system based on machine learning | |
CN110287052B (en) | Root cause task determination method and device for abnormal task | |
US10102113B2 (en) | Software test automation systems and methods | |
US20180129483A1 (en) | Developing software project plans based on developer sensitivity ratings detected from monitoring developer error patterns | |
CN111881014B (en) | System test method, device, storage medium and electronic equipment | |
CN107992410B (en) | Software quality monitoring method and device, computer equipment and storage medium | |
CN112650688A (en) | Automated regression testing method, associated device and computer program product | |
WO2016178661A1 (en) | Determining idle testing periods | |
Dhanalaxmi et al. | A review on software fault detection and prevention mechanism in software development activities | |
CN115114064B (en) | Micro-service fault analysis method, system, equipment and storage medium | |
Yan et al. | Aegis: Attribution of control plane change impact across layers and components for cloud systems | |
CN111913824A (en) | Method for determining data link fault reason and related equipment | |
JP5240709B2 (en) | Computer system, method and computer program for evaluating symptom | |
CN112527568A (en) | Data flow testing method and device, electronic equipment and storage medium | |
CN114090382B (en) | Health inspection method and device for super-converged cluster | |
CN116560893A (en) | Computer application program operation data fault processing system | |
CN115904698A (en) | Method for managing OPC UA architecture by using YAML format file | |
CN113934595A (en) | Data analysis method and system, storage medium and electronic terminal | |
CN113626288A (en) | Fault processing method, system, device, storage medium and electronic equipment | |
CN110908918A (en) | Unit testing method and device for multiple interdependent node | |
Khan | Time-Series Trend-Based Multi-Level Adaptive Execution Tracing | |
CN115202968A (en) | Problem positioning method and device for transaction system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |