WO2017173972A1 - 流程跟踪方法及装置、存储介质 - Google Patents

流程跟踪方法及装置、存储介质 Download PDF

Info

Publication number
WO2017173972A1
WO2017173972A1 PCT/CN2017/079336 CN2017079336W WO2017173972A1 WO 2017173972 A1 WO2017173972 A1 WO 2017173972A1 CN 2017079336 W CN2017079336 W CN 2017079336W WO 2017173972 A1 WO2017173972 A1 WO 2017173972A1
Authority
WO
WIPO (PCT)
Prior art keywords
business process
service
tracking
request
log
Prior art date
Application number
PCT/CN2017/079336
Other languages
English (en)
French (fr)
Inventor
卞登奎
张晓丽
崔旭东
缪贵海
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017173972A1 publication Critical patent/WO2017173972A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording 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/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording 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/3466Performance evaluation by tracing or monitoring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording 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/3466Performance evaluation by tracing or monitoring
    • G06F11/3495Performance evaluation by tracing or monitoring for systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/875Monitoring of systems including the internet

Definitions

  • the present invention relates to a virtualized communication technology, and in particular, to a process tracking method and apparatus, and a storage medium.
  • Cloud computing refers to a new computing model that shares Internet technology (IT, Information Technology) resources through virtualization based on networks such as the Internet.
  • IT Internet technology
  • Information Technology Information Technology
  • Cloud computing involves multiple application systems. There are also business interactions between application systems. Each application system is dispersed in different locations. In the event of a failure, the faults in the positioning service are relatively cumbersome.
  • the current log tracking technology has technical problems that cannot quickly and accurately locate the analysis log.
  • the embodiment of the invention provides a process tracking method and device, and a storage medium, to solve the technical problem of quickly and accurately positioning and analyzing log faults.
  • the embodiment of the present invention adopts the following technical solutions:
  • the embodiment of the invention provides a process tracking method, including:
  • the log of the business process is recorded according to the service tracking label and stored in the log server of the service system for presentation.
  • the method after receiving the service flow request, before generating the tracking label according to the business process request, the method further includes:
  • the method further includes: setting a tracking authority for the business process request; and adding a service tracking label to the business process to track the business process according to the tracking authority requested by the business process.
  • setting the tracking authority for the service flow request specifically includes:
  • the method further includes: sending a log of the business process in the log server to another service system for log analysis, or from another business system.
  • the log of the received business process is stored in the log server for log analysis.
  • an embodiment of the present invention further provides a process tracking device, including:
  • a receiving module configured to receive a service flow request sent by a user
  • a processing module configured to add a service tracking label to a business process corresponding to the business process request
  • the storage module is configured to record a log of the business process according to the service tracking label, and store the log in the log server of the service system for display.
  • the apparatus further includes:
  • the determining module is configured to determine whether the business process corresponding to the business process request needs to perform business process tracking
  • the requesting module is configured to send a request for generating a service tracking label when the determining module determines that the business process needs to perform service tracking;
  • the generation module generates a service tracking label according to the generated service tracking label request.
  • the apparatus further includes: a setting module configured to set a tracking authority for the business process request; the processing module is further configured to add a service tracking label to the business process according to the tracking authority requested by the business process The process is tracked.
  • the setting module includes a determining sub-module and a setting sub-module, and determining that the sub-module is configured to determine whether the service flow request is a high-level business process request; and setting the sub-module to be determined according to the judgment sub-module As a result, the tracking permission of the business process corresponding to the business process request is set.
  • the apparatus further includes a transceiver module configured to send a log of the business process in the log server to another service system for log analysis, or receive a business process from another service system.
  • the logs are stored in the log server for log analysis.
  • an embodiment of the present invention further provides a process tracking device, including:
  • a memory for storing executable instructions
  • a processor configured to execute the executable instructions stored by the memory, the executable instructions comprising:
  • the log of the service process is recorded according to the service tracking label, and is stored in a log server of the service system for presentation.
  • the embodiment of the present invention further provides a storage medium, which stores executable instructions, and the executable instructions are used to execute the process tracking method provided by the embodiment of the present invention.
  • the embodiment of the invention provides a process tracking method and device, and a storage medium.
  • a service tracking label By adding a service tracking label in a business process, the entire process of the business process is tracked, so that the fault can be checked according to the service tracking label. Quickly locate the service logs and conduct targeted troubleshooting and analysis.
  • FIG. 1 is a schematic structural diagram of a full-process tracking device based on virtualization according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for tracking a full process based on virtualization according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a service flow tracking between two service systems according to an embodiment of the present invention
  • FIG. 4 is a detailed flowchart of service flow tracking between two service systems according to an embodiment of the present invention.
  • the related technology has the following two solutions for the location analysis of the fault location:
  • the problem is analyzed directly by the return code and the return prompt message.
  • the method cannot cover all the processing flows and cannot view the detailed log. Therefore, the method is not convenient for analysis. More detailed logging.
  • the log analysis system is introduced. This method requires strict requirements on the log specifications of each application system, and the introduction of the log analysis system is relatively large, which is not convenient for quickly locating faults on the emergency site.
  • the virtualization involved in the embodiment of the present invention refers to a resource management technology, which abstracts and transforms various physical resources of a computer (business system), such as a server, a network, a memory, and a storage, and breaks the physical structure.
  • a computer business system
  • the non-cuttable barriers allow users to apply these resources in a better way than the original configuration.
  • the new virtual part of these resources is not limited by the way in which existing resources are erected, geographical or physical.
  • the virtualized resources generally referred to include computing power and data storage.
  • virtualization technology is mainly used to solve the high-performance physical hardware overcapacity and the old old hardware low-capacity re-use, transparent underlying physical hardware, so as to maximize the use of physical hardware.
  • FIG. 1 is a schematic structural diagram of a virtualized-based full-process tracking device 1 according to an embodiment of the present invention, which can be applied to a service system, where the service system and other service systems can be used to deploy a virtualization service. It can be seen from FIG. 1 that the virtualization-based full-process tracking apparatus 1 provided by the embodiment of the present invention includes:
  • the receiving module 11 is configured to receive a service flow request sent by the user
  • the generating module 12 is configured to generate a service tracking label according to the service flow request
  • the processing module 13 is configured to add the service tracking label to the business process corresponding to the business process request;
  • the storage module 14 is configured to record the log of the business process according to the service tracking label, and store it in the log server of the service system for unified presentation; for example, the unified presentation herein can be understood as all the generated by the business process.
  • the service logs are sent to the log server for storage and display. This helps the maintenance personnel check the logs and troubleshoot the logs.
  • the virtualization-based full-process tracking device 1 in the above embodiment further includes a determining module 15 configured to determine whether a business process corresponding to the business process request needs to perform business process tracking. If the business process needs to be tracked, the corresponding business process tracking label request is generated by sending.
  • the virtualization-based full-process tracking device 1 in the above embodiment further includes a setting module 16, which sets a tracking authority for the business process request through the setting module 16, and the processing module 13 according to the business process The tracking permission of the request is added to the corresponding business process to add the generated business tracking label, and the business process is tracked through the service tracking label.
  • the setup module 16 when setting a service tracking label for a business process, in one embodiment, prioritizes or prioritizes the business process and the unimportant business by prioritizing the received business process request.
  • the process sets the tracking label of the service according to the set priority level or the importance of the service.
  • the authority of the business process interaction of the management layer is set to a higher authority to ensure the security of the business information in the interaction process.
  • Layer for example, the business process interaction of the company's employees. Because the important business information set by the employee is relatively small, the tracking authority of the business process request can be set according to the business relationship, and only the business process setting of the management layer in the company can be set. Tracking processing, which ensures that when the business fails or other problems, it can be set by the tracking label. The rapid positioning of the line services, targeted analysis of business faults, thereby improving the efficiency of log analysis.
  • the setting module 16 in the above embodiment further includes a determining module 161 and a setting sub-module 162, wherein:
  • the determining sub-module 161 is configured to determine whether the current business process request that needs to be operated is a high-level business process request
  • the setting sub-module 162 is configured to set the tracking authority of the corresponding business process according to the result of the judgment of the determining sub-module 161.
  • the business process request is an important business process request, and the corresponding business process is also important.
  • the service tracking label needs to be set for the business process, and is configured to track the record throughout the business process, and the obtained business process log with the tracking label is stored in the log server in the service system for unified presentation.
  • the virtualization-based full-process tracking apparatus 1 in the above embodiment further includes a transceiver module 17 configured to send a log of the business process stored in the log server to another service system.
  • the log analysis is performed, or the log of the business process received from other business systems is stored in the log server in the business system (the business system set by the full process tracking device 1) for analysis.
  • FIG. 2 is a flowchart of a full-process tracking method based on virtualization according to an embodiment of the present invention. As shown in FIG. 2, the virtualized-based full-process tracking method provided by the embodiment of the present invention includes the following steps:
  • S201 Receive a service flow request sent by the user.
  • the service process request is initiated by a user that initiates the service process, and sent to the service system to establish a service process according to the corresponding request message.
  • S204 Record a log of the service process according to the service tracking label, and store the log in the log server of the service system for unified presentation.
  • the method before step S202, after step S201, the method further includes: determining whether the business process corresponding to the business process request needs to perform business process tracking; if yes, sending a request to generate a service tracking label; requesting according to generating a service tracking label Generate a business tracking label.
  • the service tracking is set. Before the label, it is required to determine whether the service flow request needs to be tracked, generate a corresponding service tracking label according to the result determined by the judgment, and add the service tracking label to the corresponding business process, so as to avoid all business processes. Tracking is performed, thereby reducing the amount of information interaction of the business system.
  • the virtualization-based full process tracking method provided by the foregoing embodiment further includes: setting a tracking authority for the business process request; and adding a service tracking label to the business process according to the tracking authority of the business process request to track the business process.
  • the setting the tracking permission for the business process request may be specifically set according to the priority level of the business process request, determining whether the service request is a business process request of the level, and if so, setting the tracking authority for the business process request,
  • the network protocol (IP, Internet Protocol) address of the operator of the corresponding business process may be requested according to the business process to determine whether it is a high-level business process request, if the IP address is a bit in the company management layer.
  • the IP address of the leader determines that the business process requested by the business process request is a high-level business request; in addition, it can also be judged according to the length of the operation time requested by the business process.
  • the embodiment in order to perform a unified check on the fault of the log of the service process, the embodiment further provides a function that can be used to log out the log stored in the log server or import it from other systems.
  • the service system stores the log generated in the business process in the log server by using the virtualization-based full process tracking method provided in this embodiment.
  • the method further includes: sending a log of the business process in the service to the other business system for analysis and processing, or the business system receives the log of the business process from the other business system and deposits it in the business system for log analysis. deal with.
  • the method for tracking the logs of the business process in the related art can be performed only in the corresponding service system, and the troubleshooting method cannot implement the accurate positioning analysis of the fault.
  • the location of the fault problem provides a virtualized full-process tracking method.
  • the method can be used for scenarios in which business process messages are frequently exchanged between multiple systems. It is also possible to set permissions on business processes and determine whether they are needed according to permissions. Tracking business processes, you can also import and export logs between multiple systems to achieve unified log display and centralized analysis, and improve the efficiency of analysis. The following two business systems are used as examples.
  • the full process tracking method provided by the embodiment of the present invention includes:
  • the requesting party initiates a service request, sends a service flow request to the service system, and controls the service system to perform service interaction.
  • S302 setting permission control of the business process request; for example, setting the priority level in different systems according to the business process request.
  • S303 The service system 1 determines whether the service flow request needs to be tracked. If yes, the sending tracking request is sent to the log collection storage party of the service process to perform trace collection and storage of the log.
  • the service system 2 determines whether the service flow request needs to be tracked, and if yes, sends the send tracking request to the log collection storage party of the service process to perform trace collection and storage of the log.
  • the log collection storage device performs tracking, collection, and storage on the corresponding service process according to the tracking request sent by the service systems 1 and 2.
  • S306 The log of the collected service process is sent to the service system A log server for unified processing and presentation, and is imported into the service system B connected to the service system A.
  • S307 After receiving the log imported by the service system A, the service system B analyzes and processes the log. At the same time, the service system B can also export its own service process log to the service system A.
  • FIG. 4 is a detailed flowchart of a process tracking method for a business process based on the two service systems in FIG. 3, the method includes the following steps:
  • step S402 Determine whether the service request needs to perform tracking of the entire process. If yes, execute step S403. Otherwise, execute step S406. For example, determine whether tracking is required according to the priority level of the initiated service flow request, for example, by determining.
  • the IP address of the operator of the business process request is judged. If the IP address is the IP address of the management layer of the company, the service process request is judged to be a high-level business process, and the entire process needs to be tracked; The way to judge, can also be judged according to the length of the operation time requested by the business process.
  • Add a tracking label to the service flow request may be added to the request header of the business process request, and send the business process request to the business system;
  • the service system receives a service flow request sent by the user.
  • step S407 the service system A determines whether global process tracking is required. If yes, step S408 is performed. Otherwise, step S409 is performed. For example, the determination method is the same as that in step S402.
  • S408 Record the logs in all the business process processes according to the tracking label, and report the records, and store the recorded logs in the log server, and perform step S404.
  • the service system A performs service processing on the corresponding service process according to the service process request.
  • the log server displays the details according to the reported log of the tracking service flow, for example, the specific processing information of the service flow log.
  • step S411 the service system B determines whether global flow tracking is required. If yes, step S412 is performed. Otherwise, step S413 is performed. For example, the determination method is the same as that in step S402.
  • step S412 the logs in all the business process processes are recorded according to the tracking label, and the recorded status is reported, and the recorded logs are stored in the log server, and step S404 is performed.
  • the service system B processes the corresponding business process according to the business process request.
  • the embodiment of the invention provides a process tracking device, including:
  • a memory for storing executable instructions
  • a processor configured to execute the executable instructions stored by the memory, the executable instructions comprising:
  • the log of the service process is recorded according to the service tracking label, and is stored in a log server of the service system for presentation.
  • Embodiments of the present invention provide a storage medium storing executable instructions, which are used in the foregoing process tracking method, for example, the full process tracking method shown in any of FIGS. 2 to 4.
  • the storage medium of the embodiment of the present invention may be a storage medium such as an optical disk, a hard disk, or a magnetic disk, and may be a non-transitory storage medium.
  • the embodiment of the present invention provides a process tracking method and device, and a storage medium, which are mainly configured by setting a service tracking label of a global process in a service process, and performing a service flow log check by using the service tracking label.
  • the analysis can be quickly located; You can also display the logs of all the business processes in the service system in a unified manner. When you check different service logs, you can perform location analysis on the unified service system, which greatly improves the analysis efficiency when analyzing business process faults.
  • a function of importing and exporting is also provided.
  • logs can be imported and exported, that is, logs of business processes in different business systems can be Importing into the same business system for unified presentation and analysis, so that the virtualized-based full-process tracking method provided by the present invention can implement remote control to perform unified positioning analysis on logs in different service systems.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices.
  • they may be implemented by program code executable by the computing device such that they may be stored in a storage medium (ROM/RAM, diskette, optical disk) by a computing device, and in some cases
  • the steps shown or described may be performed in an order different than that herein, or they may be separately fabricated into individual integrated circuit modules, or a plurality of the modules or steps may be implemented as a single integrated circuit module. Therefore, the invention is not limited to any particular combination of hardware and software.
  • the invention discloses a process tracking method and device, and a storage medium.
  • the method includes receiving a service flow request sent by a user, generating a corresponding service tracking label according to the service flow request, and adding the service tracking label to the business process corresponding to the business process request.
  • the log of the business process is stored in the log server.
  • the user can quickly locate the log of the service process according to the service tracking label and the fault location in the log.
  • Accurate positioning analysis greatly improves the efficiency of the analysis of fault problems, and also realizes unified display control and unified tracking and positioning analysis between different business systems.

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)
  • Computer And Data Communications (AREA)

Abstract

一种流程跟踪方法及装置、存储介质,该方法包括接收用户发送的业务流程请求(S201),根据业务流程请求生成对应的业务跟踪标号(S202),将业务跟踪标号添加到与业务流程请求对应的业务流程中(S203),根据业务跟踪标号记录业务流程的日志,存储于日志服务器中(S204)。

Description

流程跟踪方法及装置、存储介质
相关申请的交叉引用
本公开基于申请号为201610211793.0、申请日为2016年4月6日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的内容在此引入本公开作为参考。
技术领域
本发明涉及虚拟化通信技术,特别是一种流程跟踪方法及装置、存储介质。
背景技术
云计算是指基于互联网等网络,通过虚拟化方式共享互联网技术(IT,Information Technology)资源的新型计算模式。其核心思想是通过网络统一管理和调度计算、存储、网络、软件等资源,实现资源整合与配置优化。
云计算会涉及到多个应用系统,各个应用系统之间也会存在业务的交互,各应用系统会分散在不同的位置,一旦发生故障,定位业务中的故障相对比较繁琐。
在传统的日志定位分析中,维护人员需要登录到各业务系统中检查相关日志,碰到多个业务系统关联的情况,检查日志比较困难,工作量也相对地增大,同时,在日志分析过程中维护人员需要通过各种主键来分析,而且还需要了解相关的业务逻辑,并且由于各业务系统是分散在不同的位置,各业务系统的日志也并没有统一的展现,因此,其对应的日志也是随着各业务系统分散在不同的位置,这时,维护人员在检查日志故障时,就需要在不同的业务系统中不断地检查,并且对于需要查询的业务日志不能 准确地定位,只能从其相关的业务日志进行逐一地排查。
目前的日志跟踪技术存在无法快速准确地定位分析日志的技术问题。
发明内容
本发明实施例提供了一种流程跟踪方法及装置、存储介质,以解决对日志故障进行快速准确地定位分析的技术问题。
为解决上述技术问题,本发明实施例采用以下技术方案:
本发明实施例提供了一种基于流程跟踪方法,包括:
接收用户发送的业务流程请求;
根据业务流程请求生成业务跟踪标号;
将业务跟踪标号添加到与业务流程请求对应的业务流程中;
根据业务跟踪标号记录业务流程的日志,并存储于业务系统的日志服务器中进行展现。
在本发明的另一实施例中,在接收业务流程请求之后,在根据业务流程请求生成跟踪标号之前,还包括:
判断业务流程请求对应的业务流程是否需要进行业务流程跟踪;
若是,则发送生成业务跟踪标号请求;
根据生成业务跟踪标号请求生成业务跟踪标号。
在本发明的另一实施例中,所述方法还包括:对业务流程请求设置跟踪权限;根据业务流程请求的跟踪权限对业务流程添加业务跟踪标号对业务流程进行跟踪。
在本发明的另一实施例中,对业务流程请求设置跟踪权限具体包括:
判断业务流程请求是否为高级别的业务流程请求;
根据判断的结果设置业务流程请求的跟踪权限。
在本发明的另一实施例中,所述方法还包括:将日志服务器中的业务流程的日志发送至其他的业务系统进行日志分析,或者从其他的业务系统 中接收业务流程的日志存到日志服务器中进行日志分析。
为了解决上述的技术问题,本发明实施例还提供了一种流程跟踪装置,包括:
接收模块,配置为接收用户发送的业务流程请求;
生成模块,配置为根据业务流程请求生成业务跟踪标号;
处理模块,配置为将业务跟踪标号添加到与业务流程请求对应的业务流程中;
存储模块,配置为根据业务跟踪标号记录业务流程的日志,并存储于业务系统的日志服务器中进行展现。
在本发明的另一实施例中,所述装置还包括:
判断模块,配置为判断业务流程请求对应的业务流程是否需要进行业务流程跟踪;
请求模块,配置为在判断模块判断业务流程需要进行业务跟踪时,发送生成业务跟踪标号请求;
生成模块根据生成业务跟踪标号请求生成业务跟踪标号。
在本发明的另一实施例中,所述装置还包括:设置模块,配置为对业务流程请求设置跟踪权限;处理模块还配置为根据业务流程请求的跟踪权限对业务流程添加业务跟踪标号对业务流程进行跟踪。
在本发明的另一实施例中,设置模块包括判断子模块和设置子模块,判断子模块配置为判断业务流程请求是否为高级别的业务流程请求;设置子模块配置为根据判断子模块的判断结果设置业务流程请求对应的业务流程的跟踪权限。
在本发明的另一实施例中,所述装置还包括收发模块,配置为将日志服务器中的业务流程的日志发送至其他的业务系统进行日志分析,或者从其他的业务系统中接收业务流程的日志存到日志服务器中进行日志分析。
为了解决上述的技术问题,本发明实施例还提供了一种流程跟踪装置,包括:
存储器,用于存储可执行指令;
处理器,配置为执行所述存储器存储的可执行指令,所述可执行指令包括:
接收用户发送的业务流程请求;
根据所述业务流程请求生成业务跟踪标号;
将所述业务跟踪标号添加到与所述业务流程请求对应的业务流程中;
根据所述业务跟踪标号记录所述业务流程的日志,并存储于业务系统的日志服务器中进行展现。
为了解决上述的技术问题,本发明实施例还提供了一种存储介质,存储有可执行指令,所述可执行指令用于执行本发明实施例提供的流程跟踪方法。
本发明实施例的有益效果:
本发明实施例提供了一种流程跟踪方法及装置、存储介质,通过在业务流程中添加一个业务跟踪标号,对业务流程的日志进行全过程跟踪,使得在进行故障检查时可以根据业务跟踪标号实现业务日志的快速定位,有针对性地进行故障的排查和分析。
附图说明
图1为本发明实施例提供的基于虚拟化的全流程跟踪装置结构示意图;
图2为本发明实施例提供的基于虚拟化的全流程跟踪方法流程图;
图3为本发明实施例提供的两个业务系统之间的业务流程跟踪流程图;
图4为本发明实施例提供的两个业务系统之间的业务流程跟踪详细流程图。
具体实施方式
下面通过具体实施方式结合附图对本发明作进一步详细说明。
相关技术对于故障位置的定位分析有如下2方案:
一,直接通过返回码和返回提示消息来分析问题,但是,当应用系统的业务比较复杂时,采用该方法不能覆盖所有的处理流程,无法查看到更详细的日志,因此,该方法不便于分析更为详细的日志记录情况。
二,引入日志分析系统,该方法需要对各应用系统的日志规范有严格的要求,并且引入日志分析系统比较庞大,不便于紧急现场的快速定位故障问题。
本发明实施例涉及的虚拟化是指一种资源管理技术,是将计算机(业务系统)的各种实体资源,如服务器、网络、内存及存储等,予以抽象、转换后呈现出来,打破实体结构间的不可切割的障碍,使用户可以比原本的组态更好的方式来应用这些资源。这些资源的新虚拟部份是不受现有资源的架设方式,地域或物理组态所限制。一般所指的虚拟化资源包括计算能力和资料存储。
在实际的生产环境中,虚拟化技术主要用来解决高性能的物理硬件产能过剩和老的旧的硬件产能过低的重组重用,透明化底层物理硬件,从而最大化的利用物理硬件。
图1为本发明实施例提供的一种基于虚拟化的全流程跟踪装置1的结构示意图,可以应用于业务系统中,该业务系统与其他业务系统可以用于部署虚拟化业务。由图1可知,本发明实施例提供的基于虚拟化的全流程跟踪装置1包括:
接收模块11,配置为接收用户发送的业务流程请求;
生成模块12,配置为根据业务流程请求生成业务跟踪标号;
处理模块13,配置为将业务跟踪标号添加到与业务流程请求对应的业务流程中;
存储模块14,配置为根据业务跟踪标号记录所述业务流程的日志,并存储于业务系统的日志服务器中进行统一的展现;例如,这里的统一的展现可以理解为是将业务流程所产生的所有业务日志统一发送至日志服务器上存储,以及进行展示出来,方便维护人员对日志的检查,排查日志中的故障问题。
在一些实施例中,如图1所示,上述实施例中的基于虚拟化的全流程跟踪装置1还包括判断模块15,配置为判断业务流程请求对应的业务流程是否需要进行业务流程跟踪,若需要对业务流程进行跟踪,则通过发送生成对应的业务流程跟踪标号请求。
在一些实施例中,如图1所示,上述实施例中的基于虚拟化的全流程跟踪装置1还包括设置模块16,通过设置模块16对业务流程请求设置跟踪权限,处理模块13根据业务流程请求设置的跟踪权限对对应的业务流程添加已生成的业务跟踪标号,通过业务跟踪标号对业务流程进行跟踪处理。
例如,在一些实施例中,设置模块16在对业务流程设置业务跟踪标号时,在一个实施例中,是通过对接收到的业务流程请求设置优先级别或者划分重要的业务流程和不重要的业务流程,根据设置的优先级别或者业务的重要程度来设置业务的跟踪标号。
例如,在一个公司或者团队中,它分为管理层和非管理层,那么一般对于管理层的业务流程交互的权限会设置较高的权限,保证交互过程中业务信息的安全性,对于非管理层,比如:公司的员工的业务流程交互,由于员工设置的重要业务信息较为少,因此,可以根据这种业务关系来设置业务流程请求的跟踪权限,只对公司中的管理层的业务流程设置跟踪处理,这样保证了在业务出现故障或者其他问题时,可以通过设置的跟踪标号进 行业务的快速定位,有针对性地对业务故障进行定位分析,从而提高日志的分析效率。
在一些实施例中,上述实施例中的设置模块16还包括判断模块161和设置子模块162,其中:
判断子模块161配置为判断当前需要操作的业务流程请求是否为高级别的业务流程请求;
设置子模块162配置为根据判断子模块161判断的结果设置对应的业务流程的跟踪权限。
在一些实施例中,当判断子模块161判断的结果是所述业务流程请求为高级别的业务流程请求时,则说明该业务流程请求是重要的业务流程请求,对应的业务流程也是重要的,这时,则需要对该业务流程设置业务跟踪标号,配置为对该业务流程全程跟踪记录,并得到的带有跟踪标号的业务流程日志存储于业务系统中的日志服务器进行统一的展现。
在一些实施例中,如图1所示,上述实施例中的基于虚拟化的全流程跟踪装置1还包括收发模块17,配置为将日志服务器中存储的业务流程的日志发送至其他的业务系统中进行日志分析,或者从其他的业务系统中接收业务流程的日志存到本业务系统(全流程跟踪装置1所设置的业务系统)中的日志服务器中进行分析。
图2为本发明实施例提供的一种基于虚拟化的全流程跟踪方法流程图,由图2可知,本发明实施例提供的基于虚拟化的全流程跟踪方法包括以下步骤:
S201,接收用户发送的业务流程请求;所述业务流程请求由发起业务流程的用户发起,并发送至业务系统根据对应的请求消息建立业务流程。
S202,根据业务流程请求生成业务跟踪标号;
S203,将业务跟踪标号添加到与业务流程请求对应的业务流程中;
S204,根据业务跟踪标号记录业务流程的日志,并存储于业务系统的日志服务器中进行统一的展现。
在一些实施例中,在步骤S202之前,在步骤S201之后,还包括:判断业务流程请求对应的业务流程是否需要进行业务流程跟踪;若是,则发送生成业务跟踪标号请求;根据生成业务跟踪标号请求生成业务跟踪标号。
例如,在一些实施例中,并不需要对所有的业务流程都进行跟踪处理,这样子会使得业务系统的业务流程信息的交互量不断的增加,因此,在本实施例中,在设置业务跟踪标号之前需要对接收到的业务流程请求判断是否需要进行跟踪,根据判断确定的结果生成一个对应的业务跟踪标号,并将该业务跟踪标号添加到对应的业务流程中,避免对所有的业务流程都进行跟踪处理,从而减低了业务系统的信息交互量。
在一些实施例中,上述实施例提供的基于虚拟化的全流程跟踪方法还包括:对业务流程请求设置跟踪权限;根据业务流程请求的跟踪权限对业务流程添加业务跟踪标号对业务流程进行跟踪。
例如,所述对业务流程请求设置跟踪权限具体可以根据业务流程请求的优先级别来进行设置,判断该业务请求是否为该级别的业务流程请求,若是,则对该业务流程请求设置跟踪权限,在一个实施例中,可以根据业务流程请求对应的业务流程的操作员的网络协议(IP,Internet Protocol)地址来判断是否为高级别的业务流程请求,若该IP地址是公司管理层中某一位领导的IP地址,则判定该业务流程请求所请求的业务流程是高级别的业务请求;其外,还可以根据业务流程请求的操作时间的长短来判断。
在一些实施例中,为了能实现对业务流程的日志进行统一的检查排查故障点,本实施例还提供了可以对存储在日志服务器中的日志进行到出,或者从其他系统中导入的功能,例如,本业务系统通过本实施例提供的基于虚拟化的全流程跟踪方法将业务流程中产生的日志存储于日志服务器之 后,还包括:将日至服务其中的业务流程的日志发送至其他的业务系统进行分析处理,或者本业务系统从其他的业务系统中接收业务流程的日志存到本业务系统中,进行日志分析处理。
现结合具体应用场景对本发明做在一些实施例中诠释说明。
针对相关技术对业务流程的日志进行跟踪处理方法,均存在只能在对应的业务系统中进行排查,而排查方式也无法实现对故障的精准定位分析的问题,本发明实施例为了提高对业务流程中的故障问题的定位,提供一种虚拟化的全流程跟踪方法,该方法可以用于多系统之间的业务流程消息频繁交互的场景,还可以对业务流程设置权限,根据权限来确定是否需要进行业务流程的跟踪,还可以在多系统之间进行日志的导入导出,从而实现日志统一展现和集中分析,提高分析的效率,下面以两个业务系统为例进行说明。
如图3所示,本发明实施例提供的全流程跟踪方法包括:
S301,请求方发起业务请求,发送业务流程请求给业务系统,控制业务系统进行业务的交互。
S302,设置业务流程请求的权限控制;例如可以根据业务流程请求在不同系统中的优先级别进行设置。
S303,业务系统1判断是否需要对业务流程请求进行跟踪,若是,则将发送跟踪请求发送至业务流程的日志采集存储方进行日志的跟踪采集存储。
S304,业务系统2判断是否需要对业务流程请求进行跟踪,若是,则将发送跟踪请求发送至业务流程的日志采集存储方进行日志的跟踪采集存储。
S305,日志采集存储方根据业务系统1和2发送的跟踪请求对对应的业务流程进行跟踪采集存储。
S306,将采集到的业务流程的日志发送至业务系统A日志服务器上进行统一的处理展现,并导入至于业务系统A连接的业务系统B中。
S307,业务系统B还接收到业务系统A导入的日志后,对日志进行分析处理;同时,业务系统B还可以将自身的业务流程日志导出给业务系统A。
请参考图4,图4为基于图3中的两业务系统之间的对业务流程的流程跟踪方法的详细流程图,其方法包括以下步骤:
S401,用户发送业务流程请求;
S402,判断该业务请求是否需要进行全流程的跟踪,若是,则执行步骤S403,否则,执行步骤S406;例如判断是否需要跟踪可以根据发起的业务流程请求的优先级别进行判断,例如,可以通过判断业务流程请求的操作员的IP地址进行判断,若其IP地址是公司的管理层的IP地址时,则判断该业务流程请求为高级别的业务流程,需要进行全流程的跟踪处理;除了通过上述的方式进行判断,还可以根据业务流程请求的操作时间的长短判断。
S403,根据判断结果生成对应的全局流程跟踪标号(即全局唯一的跟踪号),并上报跟踪标号跟踪业务流程的情况;
S404,接收与跟踪标号相关的所有业务流程的上报消息;
S405,将跟踪标号添加到业务流程请求中,例如可以添加到业务流程请求的请求头中,并将业务流程请求发送给业务系统;
S406,业务系统接收用户发送的业务流程请求;
S407,业务系统A判断是否需要进行全局流程跟踪,若是,则执行步骤S408,否则,执行步骤S409,例如,其判断方法与步骤S402中的一样。
S408,根据跟踪标号记录所有业务流程处理中的日志,并上报记录的情况,同时将记录的日志存储至日志服务器中,执行步骤S404。
S409,业务系统A根据业务流程请求对对应的业务流程进行业务处理;
S410,日志服务器根据上报的跟踪业务流程的日志进行展现详情,例如展现业务流程日志的具体处理信息。
S411,业务系统B判断是否需要进行全局流程跟踪,若是,则执行步骤S412,否则,执行步骤S413,例如,其判断方法与步骤S402中的一样。
S412,根据跟踪标号记录所有业务流程处理中的日志,并上报记录的情况,同时将记录的日志存储至日志服务器中,执行步骤S404。
S413,业务系统B根据业务流程请求对对应的业务流程进行处理。
本发明实施例提供了一种流程跟踪装置,包括:
存储器,用于存储可执行指令;
处理器,配置为执行所述存储器存储的可执行指令,所述可执行指令包括:
接收用户发送的业务流程请求;
根据所述业务流程请求生成业务跟踪标号;
将所述业务跟踪标号添加到与所述业务流程请求对应的业务流程中;
根据所述业务跟踪标号记录所述业务流程的日志,并存储于业务系统的日志服务器中进行展现。
本发明实施例提供了一种存储介质,存储有可执行指令,可执行指令用于前述的流程跟踪方法,例如,图2至图4任一附图所示的全流程跟踪方法。本发明实施例的存储介质可为光盘、硬盘或磁盘等存储介质,可选为非瞬间存储介质。
综上所述,本发明实施例提供了一种流程跟踪方法及装置、存储介质,主要是通过在业务流程中设置一个全局流程的业务跟踪标号,通过该业务跟踪标号可以实现对业务流程日志检查故障时,可以快速定位分析;另外 还可以对业务系统中的所有业务流程的日志进行统一的展现,使得在检查不同的业务日志时,可以在统一业务系统上进行定位分析,大大地提高了对业务流程分析故障时的分析效率。
在一些实施例中,在本发明实施例中,还提供了导入导出的功能,对于不同业务系统之间,可以进行日志的导入导出,也即是,不同的业务系统中的业务流程的日志可以导入到同一个业务系统中统一展现和分析,使得采用本发明提供的基于虚拟化的全流程跟踪方法,可以实现远程的控制对不同业务系统中的日志进行统一的定位分析。
显然,本领域的技术人员应该明白,上述本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储介质(ROM/RAM、磁碟、光盘)中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。所以,本发明不限制于任何特定的硬件和软件结合。
以上内容是结合具体的实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。
工业实用性
本发明公开一种流程跟踪方法及装置、存储介质,该方法包括接收用户发送的业务流程请求,根据业务流程请求生成对应的业务跟踪标号,将业务跟踪标号添加到与业务流程请求对应的业务流程中,根据业务跟踪标 号记录业务流程的日志,存储于日志服务器中;通过本发明的实施,用户在进行业务流程故障检查时,可以根据业务跟踪标号进行快速对业务流程的日志进行定位,以及日志中的故障位置进行精确的定位分析,从而大大地提高了子啊故障问题分析的效率,也实现了不同业务系统之间的统一展现控制和统一跟踪定位分析处理。

Claims (12)

  1. 一种流程跟踪方法,包括:
    接收用户发送的业务流程请求;
    根据所述业务流程请求生成业务跟踪标号;
    将所述业务跟踪标号添加到与所述业务流程请求对应的业务流程中;
    根据所述业务跟踪标号记录所述业务流程的日志,并存储于业务系统的日志服务器中进行展现。
  2. 根据权利要求1所述的流程跟踪方法,其中,在接收业务流程请求之后,在根据所述业务流程请求生成跟踪标号之前,还包括:
    判断所述业务流程请求对应的业务流程是否需要进行业务流程跟踪;
    若是,则发送生成业务跟踪标号请求;
    根据所述生成业务跟踪标号请求生成业务跟踪标号。
  3. 根据权利要求2所述的流程跟踪方法,其中,还包括:对所述业务流程请求设置跟踪权限;根据所述业务流程请求的跟踪权限对所述业务流程添加业务跟踪标号对所述业务流程进行跟踪。
  4. 根据权利要求3所述的流程跟踪方法,其中,对所述业务流程请求设置跟踪权限具体包括:
    判断所述业务流程请求是否为高级别的业务流程请求;
    根据判断的结果设置所述业务流程请求的跟踪权限。
  5. 根据权利要求1至4任一项所述的流程跟踪方法,其中,还包括:将所述日志服务器中的业务流程的日志发送至其他的业务系统进行日志分析,或者从其他的业务系统中接收业务流程的日志存到所述日志服务器中进行日志分析。
  6. 一种流程跟踪装置,包括:
    接收模块,配置为接收用户发送的业务流程请求;
    生成模块,配置为根据所述业务流程请求生成业务跟踪标号;
    处理模块,配置为将所述业务跟踪标号添加到与所述业务流程请求对应的业务流程中;
    存储模块,配置为根据所述业务跟踪标号记录所述业务流程的日志,并存储于业务系统的日志服务器中进行统一的展现。
  7. 根据权利要求6所述的流程跟踪装置,其中,所述装置还包括:
    判断模块,配置为判断所述业务流程请求对应的业务流程是否需要进行业务流程跟踪;
    请求模块,配置为在所述判断模块判断所述业务流程需要进行业务跟踪时,发送生成业务跟踪标号请求;
    所述生成模块,还配置为根据所述生成业务跟踪标号请求生成业务跟踪标号。
  8. 根据权利要求7所述的流程跟踪装置,其中,还包括:
    设置模块,配置为对所述业务流程请求设置跟踪权限;
    所述处理模块还配置为根据所述业务流程请求的跟踪权限对所述业务流程添加业务跟踪标号对所述业务流程进行跟踪。
  9. 根据权利要求8所述的流程跟踪装置,其中,
    所述设置模块包括:
    判断子模块,配置为判断所述业务流程请求是否为高级别的业务流程请求;
    设置子模块,配置为根据所述判断子模块的判断结果设置所述业务流程请求对应的业务流程的跟踪权限。
  10. 根据权利要求6至9任一项所述的流程跟踪装置,其中,
    还包括收发模块,配置为将所述日志服务器中的业务流程的日志发送至其他的业务系统进行日志分析,或者从其他的业务系统中接收业务流程 的日志存到所述日志服务器中进行日志分析。
  11. 一种流程跟踪装置,包括:
    存储器,用于存储可执行指令;
    处理器,配置为执行所述存储器存储的可执行指令,所述可执行指令包括:
    接收用户发送的业务流程请求;
    根据所述业务流程请求生成业务跟踪标号;
    将所述业务跟踪标号添加到与所述业务流程请求对应的业务流程中;
    根据所述业务跟踪标号记录所述业务流程的日志,并存储于业务系统的日志服务器中进行展现。
  12. 一种存储介质,存储有可执行指令,所述可执行指令用于执行权利要求1至5任一项所述的流程跟踪方法。
PCT/CN2017/079336 2016-04-06 2017-04-01 流程跟踪方法及装置、存储介质 WO2017173972A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610211793.0 2016-04-06
CN201610211793.0A CN107273276A (zh) 2016-04-06 2016-04-06 一种基于虚拟化的全流程跟踪方法及装置

Publications (1)

Publication Number Publication Date
WO2017173972A1 true WO2017173972A1 (zh) 2017-10-12

Family

ID=60000262

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/079336 WO2017173972A1 (zh) 2016-04-06 2017-04-01 流程跟踪方法及装置、存储介质

Country Status (2)

Country Link
CN (1) CN107273276A (zh)
WO (1) WO2017173972A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111447465A (zh) * 2018-12-29 2020-07-24 北京奇虎科技有限公司 业务流状态可视化处理方法、装置及计算设备
CN112486786A (zh) * 2020-11-12 2021-03-12 贝壳技术有限公司 一种调用链路追踪方法及装置
CN114816680A (zh) * 2022-03-09 2022-07-29 华北电力大学 一种基于cpu-gpu架构的业务流程模型发现方法

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108121910B (zh) * 2017-12-26 2022-02-08 江苏中科云控智能工业装备有限公司 一种安全的虚拟化业务流程跟踪方法
CN110515800A (zh) * 2019-08-16 2019-11-29 北京浪潮数据技术有限公司 一种操作信息的处理方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662821A (zh) * 2012-03-22 2012-09-12 华为技术有限公司 虚拟机故障的辅助诊断方法、装置和系统
CN103617287A (zh) * 2013-12-12 2014-03-05 用友软件股份有限公司 一种分布式环境下的日志管理方法和装置
CN103684898A (zh) * 2012-09-14 2014-03-26 阿里巴巴集团控股有限公司 一种监测用户请求在分布式系统中运行的方法及装置
CN104253737A (zh) * 2013-06-26 2014-12-31 腾讯科技(深圳)有限公司 一种衡量社交渠道传播效果的方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662821A (zh) * 2012-03-22 2012-09-12 华为技术有限公司 虚拟机故障的辅助诊断方法、装置和系统
CN103684898A (zh) * 2012-09-14 2014-03-26 阿里巴巴集团控股有限公司 一种监测用户请求在分布式系统中运行的方法及装置
CN104253737A (zh) * 2013-06-26 2014-12-31 腾讯科技(深圳)有限公司 一种衡量社交渠道传播效果的方法及装置
CN103617287A (zh) * 2013-12-12 2014-03-05 用友软件股份有限公司 一种分布式环境下的日志管理方法和装置

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111447465A (zh) * 2018-12-29 2020-07-24 北京奇虎科技有限公司 业务流状态可视化处理方法、装置及计算设备
CN112486786A (zh) * 2020-11-12 2021-03-12 贝壳技术有限公司 一种调用链路追踪方法及装置
CN112486786B (zh) * 2020-11-12 2022-08-09 贝壳技术有限公司 一种调用链路追踪方法及装置
CN114816680A (zh) * 2022-03-09 2022-07-29 华北电力大学 一种基于cpu-gpu架构的业务流程模型发现方法

Also Published As

Publication number Publication date
CN107273276A (zh) 2017-10-20

Similar Documents

Publication Publication Date Title
WO2017173972A1 (zh) 流程跟踪方法及装置、存储介质
US10567227B2 (en) Production software application performance and resiliency testing
US20180176088A1 (en) Virtualized network function monitoring
US10339039B2 (en) Virtual service interface
CN105917690A (zh) 基于网络功能虚拟化(nfv)在网络中模块间通信的系统、方法和计算机程序
WO2021203979A1 (zh) 运维处理方法、装置及计算机设备
US11392873B2 (en) Systems and methods for simulating orders and workflows in an order entry and management system to test order scenarios
WO2015154455A1 (zh) 告警处理方法、装置、nms、oss及ems
US9948524B2 (en) Network element diagnostic evaluation
US10313441B2 (en) Data processing system with machine learning engine to provide enterprise monitoring functions
US10135913B2 (en) Impact analysis system and method
US10454787B2 (en) Timeline zoom and service level agreement validation
CN112738230B (zh) 一种自动化网闸测试系统及其工作方法
WO2019180523A1 (en) Using blockchain for flexible application licensing
CN113127307A (zh) 溯源请求的处理方法、相关装置、系统及存储介质
EP4182788A1 (en) Methods for software development and operation process analytics and devices thereof
CN114237853A (zh) 应用于异构系统的任务执行方法、装置、设备、介质和程序产品
Patel et al. An approach to introduce basics of Salesforce. com: A cloud service provider
CN111526028B (zh) 数据处理方法、装置及设备
Al-Khafaji et al. Secured environment for cloud integrated fog and mist architecture
US11785115B2 (en) Request tracing
CN115567596A (zh) 云服务资源部署方法、装置、设备及存储介质
CN113778709A (zh) 接口调用方法、装置、服务器及存储介质
US11360823B2 (en) Predicting and Scheduling a frequency of scanning areas where occurrences of an actual state of a cloud environment departing from a desired state are high
WO2022119929A1 (en) Systems and methods for administrating a federated learning network

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17778636

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17778636

Country of ref document: EP

Kind code of ref document: A1