Movatterモバイル変換


[0]ホーム

URL:


CN118227200B - Multilink tracking method - Google Patents

Multilink tracking method
Download PDF

Info

Publication number
CN118227200B
CN118227200BCN202410650580.2ACN202410650580ACN118227200BCN 118227200 BCN118227200 BCN 118227200BCN 202410650580 ACN202410650580 ACN 202410650580ACN 118227200 BCN118227200 BCN 118227200B
Authority
CN
China
Prior art keywords
link
application program
preset
performance
refinement
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.)
Active
Application number
CN202410650580.2A
Other languages
Chinese (zh)
Other versions
CN118227200A (en
Inventor
赵树春
李华军
胡雁冬
郑怀国
李春生
郑康乐
范振兴
王炳成
尹志伟
魏玉婷
李红霞
赵德清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huaeng International Power Co ltd Henan Clean Energy Branch
Huaneng Information Technology Co Ltd
Original Assignee
Huaeng International Power Co ltd Henan Clean Energy Branch
Huaneng Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huaeng International Power Co ltd Henan Clean Energy Branch, Huaneng Information Technology Co LtdfiledCriticalHuaeng International Power Co ltd Henan Clean Energy Branch
Priority to CN202410650580.2ApriorityCriticalpatent/CN118227200B/en
Publication of CN118227200ApublicationCriticalpatent/CN118227200A/en
Application grantedgrantedCritical
Publication of CN118227200BpublicationCriticalpatent/CN118227200B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The invention provides a multilink tracking method, which belongs to the technical field of data tracking and comprises the following steps: step 1: acquiring a tracked architecture feature matrix of the application program, and determining an APM frame corresponding to each link of the application program based on the architecture feature matrix of the application program; step 2: determining agent programs corresponding to each language type based on the development language type of the application program to be tracked, and carrying out parameter configuration on each agent program based on the type of the APM framework; step 3: collecting link information of an application program based on an APM framework and all agent programs; step 4: and processing and analyzing the collected link information, acquiring a link tracking graph and generating a performance report. The accuracy of link tracking is improved and the complexity of system maintenance is reduced.

Description

Multilink tracking method
Technical Field
The invention relates to the technical field of data tracking, in particular to a multilink tracking method.
Background
With the popularity of micro-service architecture and cloud computing, applications become more complex, involving multiple programming languages and multiple frameworks makes link tracking technology particularly important.
Currently, prior art solutions rely primarily on a single APM tool or framework for link tracking, which is typically optimized for a particular programming language or framework, requiring manual integration and configuration of multiple APM tools for multi-language, multi-framework complex applications. They suffer from two major technical drawbacks: firstly, when processing cross-language and cross-frame application programs, the accuracy is low, and it is difficult to completely track a complete link of each request; secondly, the complexity of configuring and maintaining a plurality of APM tools is high, especially in a large-scale and changeable micro-service environment, which greatly increases the difficulty of operation and maintenance work and the probability of error.
The present invention therefore introduces a multilink tracking method.
Disclosure of Invention
The invention provides a multilink tracking method, which is used for greatly improving the accuracy of cross-language and cross-frame application program link tracking by introducing a unified architecture feature matrix and determining a proper APM framework and agent program configuration method based on the matrix, and simultaneously simplifying the configuration and maintenance work of a link tracking system by generating a link tracking graph, thereby providing effective technical support for the performance management and fault detection of complex application programs.
The invention provides a multilink tracking method, which comprises the following steps:
Step 1: acquiring a tracked architecture feature matrix of the application program, and determining an APM frame corresponding to each link of the application program based on the architecture feature matrix of the application program;
Step 2: determining agent programs corresponding to each language type based on the development language type of the application program to be tracked, and carrying out parameter configuration on each agent program based on the type of the APM framework;
Step 3: collecting link information of an application program based on an APM framework and all agent programs;
step 4: and processing and analyzing the collected link information, acquiring a link tracking graph and generating a performance report.
The invention provides a multilink tracking method, which acquires a tracked application program architecture feature matrix and comprises the following steps:
extracting first features from a code base of an application program based on a preset automatic feature extraction tool, and extracting second features from a preset document of the application program;
classifying the first features and the second features according to preset feature types;
and generating an application program architecture feature matrix based on the feature classification result, wherein each row of the architecture feature matrix of the application program corresponds to one feature classification result.
The invention provides a multilink tracking method, which is used for extracting a second characteristic of a preset document of an application program and comprises the following steps:
acquiring a business process of an application program based on a preset document, determining a key process in the business process based on a preset calibration rule, and calibrating;
mapping the calibrated business processes to the technical architecture of the application program based on a preset process-function-architecture component mapping table, and determining the components and the functions of the processes contained in each business process;
and carrying out feature extraction on the components and the functions of each business process based on a preset feature extraction model, and obtaining the component features and the functional features of each business process.
The invention provides a multilink tracking method, wherein the characteristic types comprise: functional features, performance features, reliability features, maintainability features, extensibility features, and security features.
The invention provides a multilink tracking method, which is used for determining an APM framework corresponding to each link of an application program based on an architecture feature matrix of the application program, and comprises the following steps:
Determining a stability index of each link related to the application program based on the architecture feature matrix of the application program;
An APM frame for each link is determined based on the stability index for each link and the index-frame type library.
The invention provides a multi-link tracking method, which is used for determining the stability index of each link related to an application program based on the architecture characteristic matrix of the application program, and comprises the following steps:
analyzing the dependency relationship among the components under each business process according to the application program architecture feature matrix, and constructing a link diagram;
analyzing the request frequencies of users for different functions under the same business flow based on a preset monitoring tool, and further determining the critical path of each link in the link diagram based on the request frequencies;
Determining a refinement link of each critical path based on a preset refinement rule;
the performance value of each refined link is calculated and a stability indicator for each link is determined.
The invention provides a multilink tracking method, which calculates the performance value of each refined link and comprises the following steps:
Calculating the coefficient of performance of each refinement link:
; wherein,Is to refine the coefficient of performance of link i,Is to refine the error rate of link i, andIs to refine the operation time of link i,Is to refine the resource consumption of link i,Is a coefficient of preset resource consumption of refinement link i,Indicating the time of operationThe corresponding preset weight is used for the control of the display device,Representing the preset weight corresponding to the resource consumption of the refinement link i,Is to refine the extra resource consumption of link i,Is a preset coefficient of additional resource consumption of refinement link i,Representing a preset basic additional resource consumption constant; is a preset base operating time for refining link i,Is to refine the operation change time of link i,Is the coefficient of variation corresponding to the operating change time of the refinement link i,Is the adjustment coefficient of the refinement link i;
determining coefficient relations between the performance coefficient of each refinement link and all other refinement links respectively, and determining the performance value of each refinement link:
; wherein,Is the performance value of the refined link i for the kth critical path of the p-th link,Is the number of refinement links in the kth critical path of the p-th link; the importance weight of refinement link i relative to refinement link j for the kth critical path of the p-th link,Is the coefficient of performance of the refinement link i of the kth critical path of the p-th link,Is the coefficient of performance of the refined link j of the kth critical path of the p-th link,Link correlation coefficient between refined link i and refined link j, which are the kth critical path of the kth linkFor a pair ofIs used as a function of the performance impact of (a),
Wherein,; Wherein ln represents a logarithmic function symbol; Representing the performance tuning factor.
The invention provides a multi-link tracking method, which processes and analyzes the collected link information to obtain a link tracking graph, and comprises the following steps:
processing the collected link information to obtain the performance index of each component;
performing a first dependency analysis on the collected link information to determine a call chain of the single component;
Constructing a dependency graph based on the information of the call chain of each single component, wherein nodes in the dependency graph represent components, and edges in the dependency graph represent association relations among the components;
performing second dependency analysis on call chains of all the single components to determine the association relationship between each call chain;
Generating an initial link diagram based on all the dependency diagrams and the association relation between each call chain;
Performing first addition on the attribute of each node and each edge in the initial link diagram based on a preset diagram setting rule and the performance index of each component;
and generating a link tracking graph based on the first added result.
The invention provides a multilink tracking method, which is used for greatly improving the accuracy of cross-language and cross-frame application program link tracking by introducing a unified architecture feature matrix and determining a proper APM framework and agent program configuration method based on the matrix, and simultaneously simplifying the configuration and maintenance work of a link tracking system by generating a link tracking graph, thereby providing effective technical support for the performance management and fault detection of complex application programs.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a multi-link tracking method according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
As shown in fig. 1, a multi-link tracking method provided by an embodiment of the present invention includes:
Step 1: acquiring a tracked architecture feature matrix of the application program, and determining an APM frame corresponding to each link of the application program based on the architecture feature matrix of the application program;
Step 2: determining agent programs corresponding to each language type based on the development language type of the application program to be tracked, and carrying out parameter configuration on each agent program based on the type of the APM framework;
Step 3: collecting link information of an application program based on an APM framework and all agent programs;
step 4: and processing and analyzing the collected link information, acquiring a link tracking graph and generating a performance report.
In this embodiment, the architecture feature matrix is a structured data format, which is used to describe architecture characteristics of an application program, including information such as service components, dependency relationships between services, and types of development languages used, for example: an architecture feature matrix contains information such as service name, service type (e.g., database, web service, etc.), development language (e.g., java, python, etc.), dependent services, etc., where each row of the architecture feature matrix represents features under each feature class, and each column represents a service item;
In this embodiment, the APM framework is a tool for monitoring, managing and optimizing applications, providing link tracking functions, for example: new Relic, DYNATRACE and APPDYNAMICS.
In this embodiment, the development language type refers to a programming language used in application development, such as Java, python, go, etc., for example, an application is mainly written in Java, and then the agent and APM framework should support JVM (Java virtual machine) environment;
In this embodiment, the agent is software integrated into the application for collecting performance data and link information, e.g., for Java applications, java agents are used to monitor the JVM's performance and link calls, and for Python applications, python agents are needed to collect runtime information;
In this embodiment, parameter configuration refers to adjusting the APM framework and agent settings according to the specific requirements and environment of the application program, including configuring data collection frequency, log level, performance threshold, etc., for example: a high-traffic Web application needs to tune up the data acquisition frequency to monitor performance fluctuations more carefully.
In this embodiment, the link information refers to data of calling relations between service components from an entrance to an exit in a request processing process, so as to help identify and analyze a request path and a performance bottleneck, for example: the link information may show a complete path for a user request to start from the front-end Web server, go through the caching service, the database service, and finally return the response.
In this embodiment, the link trace is used to show the transmission path of the request between the services and components in the application program, and represents the flow of each request, including the nodes (such as micro services, databases, etc.) through which the request passes, and the calling relationship between the nodes, for example, an e-commerce platform application, where the request of the user ordering may reach the front-end service first, then call the user service, inventory service and payment service in turn, and the link trace will show the sequence of the call of the series of services, and the time of each service processing the request;
In this embodiment, the performance report is a comprehensive document summarizing the performance indicators and analysis results of the application program, and includes statistical data of Key Performance Indicators (KPIs) such as response time, throughput, error rate, and the like, and analysis interpretation of these data.
The working principle and the beneficial effects of the technical scheme are as follows: by introducing a unified architecture feature matrix and determining a proper APM framework and agent program configuration method based on the matrix, the accuracy of cross-language and cross-framework application program link tracking is greatly improved, meanwhile, the configuration and maintenance work of a link tracking system are simplified by generating a link tracking graph, and effective technical support is provided for performance management and fault detection of complex application programs.
Example 2
The embodiment of the invention provides a multilink tracking method, which acquires a tracked application program architecture feature matrix, and comprises the following steps:
extracting first features from a code base of an application program based on a preset automatic feature extraction tool, and extracting second features from a preset document of the application program;
classifying the first features and the second features according to preset feature types;
and generating an application program architecture feature matrix based on the feature classification result, wherein each row of the architecture feature matrix of the application program corresponds to one feature classification result.
In this embodiment, the preset automatic feature extraction tool is a software tool for automatically extracting specific feature information from a code library and related documents of an application program, and can automatically analyze codes and documents, thereby reducing the need for manual operation and improving the efficiency and accuracy of feature extraction, for example: the automated feature extraction tool includes a code analyzer for traversing source code of an application program, identifying and classifying particular patterns (e.g., service calls, dependencies, etc.) in a code structure. Also included is a document analyzer for extracting descriptive information from the design document or configuration file;
In this embodiment, the first feature comprises: static characteristics and dynamic characteristics, wherein the static characteristics concern the structure and composition of the application program, such as calling and dependency relationship among services and the number of interfaces of the services, reflect the design and architecture of the application program, and the dynamic characteristics concern the behavior of the application program, such as service response time, request frequency and the like, and reflect the performance and behavior mode of the application program during running;
In this embodiment, the second feature includes: descriptive features are extracted mainly by analyzing preset documents (such as design documents, user manuals and the like) of application programs, including service responsibilities, descriptions of interaction modes and the like, and cannot be directly extracted from codes through automation tools, and are required to be obtained by combining document content analysis;
in this embodiment, the generation of the architecture feature matrix is to sort the first feature obtained by the automated feature extraction tool and the second feature obtained by analyzing the document, and then generate the architecture feature matrix according to the preset feature type, where each row corresponds to a result of one feature classification, so as to form a matrix that fully describes the application architecture.
The working principle and the beneficial effects of the technical scheme are as follows: by using a preset automatic feature extraction tool, key features are automatically extracted from a code library and a preset document of an application program, so that human intervention is reduced, the efficiency and accuracy of feature extraction are improved, the extracted first features and second features are classified according to preset feature types, structured data support is provided for subsequent analysis, an application program architecture feature matrix is formed based on classification results, and each row corresponds to one feature classification. The relation between the features is clearer, and the analysis is convenient. The method and the system can accurately understand and analyze the application program architecture, locate problems and analyze links more quickly, and improve tracking efficiency and effect.
Example 3
The method for multi-link tracking provided by the embodiment of the invention is used for extracting the second characteristics of the preset document of the application program and comprises the following steps:
acquiring a business process of an application program based on a preset document, determining a key process in the business process based on a preset calibration rule, and calibrating;
mapping the calibrated business processes to the technical architecture of the application program based on a preset process-function-architecture component mapping table, and determining the components and the functions of the processes contained in each business process;
and carrying out feature extraction on the components and the functions of each business process based on a preset feature extraction model, and obtaining the component features and the functional features of each business process.
In this embodiment, the business process of an application refers to a series of operations and steps performed within the application to achieve a specific business objective. For example, business processes for e-commerce applications include steps of user login, merchandise search, joining shopping carts, checkout, and payment;
In this embodiment, the preset calibration rules are a set of predefined criteria or rules for identifying and determining key steps or links in the business process. For example, the step of "user completed payment" is taken as a key flow calibration rule for online shopping applications, as it directly relates to revenue for the business;
In this embodiment, the critical flow refers to a flow critical to complete the overall business objective. These flows are critical to the success of the business. For example, in a logistics distribution application, the package delivery process is a critical process.
In this embodiment, the preset flow-function-architecture component mapping table is a defined framework that corresponds business flows, their functions, and the technical architecture components that support these functions to each other. For example, customer data processing flows in a CRM system may map to database components, back-end logic processing components, and front-end display components.
In this embodiment, mapping the calibrated business process to the technical architecture of the application program based on the preset process-function-architecture component mapping table involves associating the business process and its key functions to specific technical architecture components according to preset mapping rules. For example, order processing flows of an e-commerce platform are mapped onto database services, payment gateways, and user interfaces, among other components.
In this embodiment, the functions of the components and processes refer to the specific tasks each technical component performs and the roles they take throughout the business process. For example, the payment gateway component is responsible for processing payment transactions in the purchasing flow of an e-commerce application.
In this embodiment, component features describe the properties of each component in the application, such as performance parameters, fault tolerance, and dependencies. For example, features of a Web server component include its response time, the number of requests that can be processed per second, etc.;
in this embodiment, functional characteristics refer to characteristics that a business process or component exhibits in performing its function, such as execution speed, efficiency, and reliability. For example, the functional characteristics of the order processing flow may include average time and success rate of order processing.
The working principle and the beneficial effects of the technical scheme are as follows: through feature extraction and mapping of the business process, the business process and technical components where the problem is located can be tracked more accurately, tracking precision and efficiency are improved, and references are provided for architecture optimization and performance improvement through analysis of component features and functional features of the business process. The business flow is mapped to the technical architecture, so that the dependency relationship among all components is acquired, the architecture design is optimized, and the processing of multiple links is realized.
Example 4
The embodiment of the invention provides a multilink tracking method, wherein the characteristic types comprise: functional features, performance features, reliability features, maintainability features, extensibility features, and security features.
In this embodiment, the functional features describe the functions of the system and the relationships between the functions. In the multilink tracking method, the functional features can be used for tracking a function call chain of a system to help developers know call flows and dependency relations of the system functions, and the method comprises the following steps: service responsibilities, number of APIs, and dependencies between services;
In this embodiment, the performance characteristics describe the performance of the system, such as response time, throughput, etc. By tracking performance characteristics, a developer can identify performance bottlenecks in the system and perform performance optimization, including: service response time, database access type, request frequency;
In this embodiment, the reliability feature describes the reliability and stability of the system. By tracking the reliability features, a developer can know the fault tolerance of the system, and timely discover and solve the problems possibly causing the system to fail, including: error rate, retry mechanism, service backup and redundancy;
In this embodiment, the maintainability feature describes the ease of maintenance and maintainability of the system. By tracking maintainability features, a developer can evaluate the code quality, readability, and maintainability of a system, thereby improving maintainability of the system, including: code complexity, code modification history, document integrity;
In this embodiment, the extensibility feature describes the extensibility and extensibility of the system. By tracking extensibility features, a developer can evaluate the system's ability to extend in the face of increasing demands, including: horizontal/vertical expansion capability, resource allocation;
In this embodiment, the security features describe the security and safety measures of the system. By tracking security features, developers can evaluate the security of the system, discover potential security vulnerabilities and take corresponding security measures to protect the security of the system and data, including: authentication and authorization mechanisms, data encryption;
In this embodiment, when the multi-link tracing method is applied to monitor a distributed system, the implementation of the function call chain, performance of each service, fault tolerance capability of the system, readability and maintainability of codes, expansion capability of the system and security measures of the system can be traced at the same time. Thus, the comprehensive tracking of different types of characteristics can help developers to comprehensively know the running condition of the system, discover problems in time and optimize and improve the problems.
The working principle and the beneficial effects of the technical scheme are as follows: by classifying the features, the system can be more clearly understood about the performances of the system in different aspects, different types of features describe the different aspects of the system, and the performance, reliability, maintainability and other aspects of the system can be more pertinently improved.
Example 5
The multi-link tracking method provided by the embodiment of the invention determines the APM frame corresponding to each link of the application program based on the architecture feature matrix of the application program, and comprises the following steps:
Determining a stability index of each link related to the application program based on the architecture feature matrix of the application program;
An APM frame for each link is determined based on the stability index for each link and the index-frame type library.
In this embodiment, the stability index of each link refers to an index that measures the stability of each link (or each functional module or service) in the application, such as response time, error rate, availability, etc. For example, stability metrics for an order processing link in an e-commerce application include order processing time and order processing success rate.
In this embodiment, the index-frame type library is a database, which records the mapping relation between different stability indexes and applicable APM (application performance management) frame types, for example, links with higher response time and error rate use APM frames of a certain type;
In this embodiment, the APM frame for each link is determined from the stability index and index-frame type library for that link, and the particular APM frame used to monitor and manage the link performance. For example, if the stability index of a certain link indicates that real-time monitoring and alarming are needed, an APM framework with a real-time monitoring function is selected.
The working principle and the beneficial effects of the technical scheme are as follows: by determining the stability index of each link based on the architecture feature matrix of the application program and determining the APM frame of each link according to the index-frame type library, the accurate monitoring and management of each link of the application program can be realized, the cross-language and cross-system frame matching is realized, and effective data support is provided for realizing multi-link tracking, so that the link tracking efficiency is improved.
Example 6
The method for tracking multiple links provided by the embodiment of the invention determines the stability index of each link related to the application program based on the architecture feature matrix of the application program, and comprises the following steps:
analyzing the dependency relationship among the components under each business process according to the application program architecture feature matrix, and constructing a link diagram;
analyzing the request frequencies of users for different functions under the same business flow based on a preset monitoring tool, and further determining the critical path of each link in the link diagram based on the request frequencies;
Determining a refinement link of each critical path based on a preset refinement rule;
the performance value of each refined link is calculated and a stability indicator for each link is determined.
In this embodiment, the dependency relationship between components refers to the correlation and dependency degree between different components, including data flow, calling relationship, and the like. For example, in an e-commerce application, the order processing component may rely on a user authentication component and an inventory management component;
In this embodiment, the link graph is obtained by analyzing the application architecture feature matrix, and shows the dependency relationship and execution sequence between each component in the business process. For example, a link diagram of an order processing business process may show the relationship between components of a user order, inventory checking, payment, etc.
In this embodiment, the predetermined monitoring tool is a predetermined tool or system for monitoring the performance of the application. For example, the monitoring tools include application performance management systems, log analysis tools, and the like;
In this embodiment, different functions in the same business process represent different operations or functions in the same business process. For example, in order processing flow of e-commerce application, different functions such as order placing, payment, shipping and the like are included.
In this embodiment, the request frequency refers to the number or frequency of requests of the user for different functions in the same service flow. For example, the frequency of requests for user orders may be higher than the frequency of requests for user payments.
In this embodiment, the preset refinement rules are defined rules or criteria for determining how to refine and split the critical path. For example, the refinement rules include splitting the critical path into smaller sub-links in execution order;
in this embodiment, the refined links for each critical path are more detailed links that split the critical path according to the refinement rules. For example, the critical path of the order processing business process may include refined links for order placement, payment, shipping, and the like.
In this embodiment, the stability index of each link is an index that measures the performance and stability of each link, such as response time, error rate, and the like. For example, the stability indicator of the payment link may include an average response time and a success rate.
The working principle and the beneficial effects of the technical scheme are as follows: by analyzing the dependency relationship among the components, determining the critical path and refining the link, the system architecture is comprehensively understood, resources can be more effectively allocated after the critical path and the refined link are determined, the components on the critical path are emphasized and optimized, the problem can be more accurately positioned by refining the link, and the influence of the system fault on the service is reduced by calculating the stability index. The comprehensive monitoring and performance evaluation of each link of the application program are provided, and the system stability and the link tracking efficiency are improved.
Example 7
The multi-link tracking method provided by the embodiment of the invention calculates the performance value of each refined link, and comprises the following steps:
Calculating the coefficient of performance of each refinement link:
; wherein,Is to refine the coefficient of performance of link i,Is to refine the error rate of link i, andIs to refine the operation time of link i,Is to refine the resource consumption of link i,Is a coefficient of preset resource consumption of refinement link i,Indicating the time of operationThe corresponding preset weight is used for the control of the display device,Representing the preset weight corresponding to the resource consumption of the refinement link i,Is to refine the extra resource consumption of link i,Is a preset coefficient of additional resource consumption of refinement link i,Representing a preset basic additional resource consumption constant; is a preset base operating time for refining link i,Is to refine the operation change time of link i,Is the coefficient of variation corresponding to the operating change time of the refinement link i,Is the adjustment coefficient of the refinement link i;
determining coefficient relations between the performance coefficient of each refinement link and all other refinement links respectively, and determining the performance value of each refinement link:
; wherein,Is the performance value of the refined link i for the kth critical path of the p-th link,Is the number of refinement links in the kth critical path of the p-th link; the importance weight of refinement link i relative to refinement link j for the kth critical path of the p-th link,Is the coefficient of performance of the refinement link i of the kth critical path of the p-th link,Is the coefficient of performance of the refined link j of the kth critical path of the p-th link,Link correlation coefficient between refined link i and refined link j, which are the kth critical path of the kth linkFor a pair ofIs used as a function of the performance impact of (a),
Wherein,; Wherein ln represents a logarithmic function symbol; Representing the performance tuning factor.
In the embodiment, the performance coefficient of each refinement link is a parameter for measuring the performance of the refinement link, and factors such as error rate, operation time, resource consumption and the like are considered;
in this embodiment, the performance value of each refinement link is an overall performance evaluation value determined from the coefficient relation between the performance coefficient and other refinement links;
In this embodiment, the operation change time of the refinement link refers to the change amount of the operation execution time of the refinement link, and represents the fluctuation condition of the operation execution time under different loads;
in this embodiment, the performance impact function is a function for describing a performance impact relationship between refined links, taking into account the link correlation coefficient and the performance adjustment factor. For example, a performance impact function may model performance transfer and scaling effects between links by way of link correlation coefficients and performance scaling factors.
The working principle and the beneficial effects of the technical scheme are as follows: by calculating the coefficient of performance and the performance value, and considering the correlation and the influence function between links, the performance of each refined link can be more accurately evaluated, and a more reliable link tracking scheme is provided, thereby improving the system stability and performance.
Example 8
The method for multi-link tracking provided by the embodiment of the invention processes and analyzes the collected link information to obtain a link tracking graph, and comprises the following steps:
processing the collected link information to obtain the performance index of each component;
performing a first dependency analysis on the collected link information to determine a call chain of the single component;
Constructing a dependency graph based on the information of the call chain of each single component, wherein nodes in the dependency graph represent components, and edges in the dependency graph represent association relations among the components;
performing second dependency analysis on call chains of all the single components to determine the association relationship between each call chain;
Generating an initial link diagram based on all the dependency diagrams and the association relation between each call chain;
Performing first addition on the attribute of each node and each edge in the initial link diagram based on a preset diagram setting rule and the performance index of each component;
and generating a link tracking graph based on the first added result.
In this embodiment, processing the link information includes: and (3) sorting, screening, converting or calculating the collected link information to obtain the performance index of each component. For example, extracting performance indexes such as response time, error rate and the like of the components from the log data;
In this embodiment, the performance index of each component refers to a quantization index describing the performance characteristics of the component, such as response time, throughput, and the like. For example, the performance index of component a may be that its average response time is 100 milliseconds.
In this embodiment, the first dependency analysis determines a direct call chain of each component, that is, a direct call sequence and a relationship between components by analyzing a dependency relationship between components in a system, for example, in the system, component a calls component B and component C, and component B calls component D, so that a call chain of component a is formed as a→b→d and a→c;
In this embodiment, the call chain of individual components, i.e., the call order and relationship between components. For example, component A invokes component B and component C, forming a call chain.
In this embodiment, a dependency graph is a built graph structure in which nodes represent components and edges represent calls or dependencies between components. For example, there is an edge between node A and node B that represents component A dependent on component B;
in this embodiment, the association relationship between components refers to the interaction and dependency relationship between different components, and may be a calling relationship, a data transfer relationship, and the like. For example, in the dependency graph, an edge between node A and node B represents component A dependent component B, and an edge between node C and node D represents component C dependent component D.
In this embodiment, the second dependency analysis is to analyze the relationships between the individual call chains to determine the dependencies or associations between them. For example, some components may be shared between call chain 1 and call chain 2, indicating that there is some association between them;
in this embodiment, the association relationship between each call chain refers to an association relationship that may exist between different call chains, such as sharing a component a, data transfer, etc., for example, call chain 1 and call chain 2 share a component a, which indicates that there is a certain association relationship between them, which may affect each other or share resources.
In this embodiment, the preset graphic setting rule refers to a rule set according to an actual requirement or specification, and is used to guide the graphic construction and attribute adding process. For example, a pattern of a certain node, a color of an edge, and the like are specified.
The working principle and the beneficial effects of the technical scheme are as follows: through the first dependency analysis and the second dependency analysis, a detailed link tracking graph is constructed by combining the performance indexes and the dependency relations of the components, so that the relation between the system architecture and the components can be better understood, the problems can be quickly positioned, and the performance can be optimized. Meanwhile, through analyzing the association relation between the call chains, maintainability and stability of the system can be improved, and evaluation and improvement of system design are facilitated. The method provides visual technical support for realizing multi-link tracking, and improves the efficiency and accuracy of link tracking.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (4)

; wherein,Is to refine the coefficient of performance of link i,Is to refine the error rate of link i, andIs to refine the operation time of link i,Is to refine the resource consumption of link i,Is a coefficient of preset resource consumption of refinement link i,Indicating the time of operationThe corresponding preset weight is used for the control of the display device,Representing the preset weight corresponding to the resource consumption of the refinement link i,Is to refine the extra resource consumption of link i,Is a preset coefficient of additional resource consumption of refinement link i,Representing a preset basic additional resource consumption constant; is a preset base operating time for refining link i,Is to refine the operation change time of link i,Is the coefficient of variation corresponding to the operating change time of the refinement link i,Is the adjustment coefficient of the refinement link i;
CN202410650580.2A2024-05-242024-05-24Multilink tracking methodActiveCN118227200B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202410650580.2ACN118227200B (en)2024-05-242024-05-24Multilink tracking method

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202410650580.2ACN118227200B (en)2024-05-242024-05-24Multilink tracking method

Publications (2)

Publication NumberPublication Date
CN118227200A CN118227200A (en)2024-06-21
CN118227200Btrue CN118227200B (en)2024-09-03

Family

ID=91509572

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202410650580.2AActiveCN118227200B (en)2024-05-242024-05-24Multilink tracking method

Country Status (1)

CountryLink
CN (1)CN118227200B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116192621A (en)*2022-12-272023-05-30上海轻维软件有限公司 Method of Tracing Service Call Chain Based on Opentracing Link
CN117194154A (en)*2023-09-052023-12-08南方电网数字电网集团信息通信科技有限公司APM full-link monitoring system and method based on micro-service

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109873717A (en)*2019-01-182019-06-11深圳壹账通智能科技有限公司 Monitoring method, device, computer equipment and storage medium
CN110245035A (en)*2019-05-202019-09-17平安普惠企业管理有限公司A kind of link trace method and device
CN116708558B (en)*2022-09-302024-06-18腾讯云计算(北京)有限责任公司Full-link tracking system proxy method, device, computer equipment and storage medium
CN117278390A (en)*2023-09-152023-12-22长春嘉诚信息技术股份有限公司Micro-service fault positioning and analyzing system and method based on log and link tracking
CN117891560A (en)*2024-01-162024-04-16上海得帆信息技术有限公司K8 s-based application full-link monitoring system and method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116192621A (en)*2022-12-272023-05-30上海轻维软件有限公司 Method of Tracing Service Call Chain Based on Opentracing Link
CN117194154A (en)*2023-09-052023-12-08南方电网数字电网集团信息通信科技有限公司APM full-link monitoring system and method based on micro-service

Also Published As

Publication numberPublication date
CN118227200A (en)2024-06-21

Similar Documents

PublicationPublication DateTitle
CN111259040B (en)SQL statement auditing method and system
US8984485B2 (en)Analysis of source code changes
US8584100B2 (en)Bridging code changes and testing
Castellanos et al.ibom: A platform for intelligent business operation management
CN108764808A (en)Data Analysis Services system and its on-time model dispositions method
Musa et al.Software reliability models: concepts, classification, comparisons, and practice
US20180046956A1 (en)Warning About Steps That Lead to an Unsuccessful Execution of a Business Process
CN112579273A (en)Task scheduling method and device and computer readable storage medium
CN105868956A (en)Data processing method and device
CN119292924A (en) Innovative application software testing system based on artificial intelligence
CN116188025A (en)Screening method, device, equipment and medium of E-commerce platform provider
Grohmann et al.Detecting parametric dependencies for performance models using feature selection techniques
CN118227200B (en)Multilink tracking method
US20040267704A1 (en)System and method to retrieve and analyze data
US20140372386A1 (en)Detecting wasteful data collection
KR20200123891A (en)Method and apparatus for providing quality information of application
CN115168509A (en)Processing method and device of wind control data, storage medium and computer equipment
CN111784503B (en)Operation rendering method, system and storage medium of communication credit investigation data
CN120579788B (en) A store allocation system and customer portrait generation method
CN117951027A (en)Method and device for detecting full-quantity project codes, storage medium and electronic equipment
CN116303672A (en)Data processing method and device, equipment and computer readable storage medium
Santana et al.Method for the Assessment of Semantic Accuracy Using Rules Identified by Conditional Functional Dependencies
Saluja et al.Classification and Analysis of Static Metric Based Antipattern Detection in Service Computing
CN120561010A (en)Batch generation method for test cases
CN119938534A (en) Change testing method and related equipment for risk control accountability data

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp