CN116258479A - Problem positioning method and related equipment - Google Patents

Problem positioning method and related equipment Download PDF

Info

Publication number
CN116258479A
CN116258479A CN202310256074.0A CN202310256074A CN116258479A CN 116258479 A CN116258479 A CN 116258479A CN 202310256074 A CN202310256074 A CN 202310256074A CN 116258479 A CN116258479 A CN 116258479A
Authority
CN
China
Prior art keywords
event
service
search engine
target
process state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310256074.0A
Other languages
Chinese (zh)
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202310256074.0A priority Critical patent/CN116258479A/en
Publication of CN116258479A publication Critical patent/CN116258479A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/20Administration of product repair or maintenance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • G06F11/3612Software analysis for verifying properties of programs by runtime analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a problem positioning method and related equipment; when detecting operation triggering operation of a user on a preset service event, executing service processing logic of at least one event node in the service event to obtain a logic processing result of the service event; positioning an event node with flow termination in the execution process of the business event to obtain a target event node; determining process state data corresponding to the target event node according to the logic processing result; writing the process state data into a search engine to inquire service information through the search engine; when the target business event corresponding to the query result is abnormal in processing, locating an event node of the abnormal problem of the target business event in the execution process according to the process state data corresponding to the target business event. The method and the device can improve the efficiency and accuracy of service problem positioning.

Description

Problem positioning method and related equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a problem positioning method and related devices.
Background
As business grows, the business functions of some systems of banks become more and more complex. Along with that, the problem positioning in the customer complaint processing and business processing process is more and more complicated, sometimes an abnormal problem occurring in the execution process of a business event needs to be positioned, a large amount of logs need to be queried, and even the logs are possibly not positioned, so that the efficiency and the accuracy of the positioning of the business problem are not improved.
Disclosure of Invention
The embodiment of the application provides a problem positioning method and related equipment, wherein the related equipment can comprise a problem positioning device, electronic equipment, a computer readable storage medium and a computer program product, and the efficiency and the accuracy of service problem positioning can be improved.
The embodiment of the application provides a problem positioning method, which comprises the following steps:
when detecting operation triggering operation of a user on a preset service event, executing service processing logic of at least one event node in the service event to obtain a logic processing result of the service event;
positioning an event node with flow termination in the execution process of the business event to obtain a target event node;
determining process state data corresponding to the target event node according to the logic processing result;
Writing the process state data into a search engine to inquire service information through the search engine;
when the target business event corresponding to the query result is abnormal in processing, locating an event node of the abnormal problem of the target business event in the execution process according to the process state data corresponding to the target business event.
Accordingly, an embodiment of the present application provides a problem positioning device, including:
the execution unit is used for executing the business processing logic of at least one event node in the business event when detecting the operation triggering operation of a user on a preset business event, and obtaining the logic processing result of the business event;
the first positioning unit is used for positioning the event node with the flow termination in the execution process of the business event to obtain a target event node;
the determining unit is used for determining the process state data corresponding to the target event node according to the logic processing result;
the writing unit is used for writing the process state data into a search engine so as to inquire service information through the search engine;
and the second positioning unit is used for positioning an event node with an abnormal problem in the execution process of the target business event according to the process state data corresponding to the target business event when the target business event corresponding to the query result is abnormal in processing.
The electronic device provided by the embodiment of the application comprises a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the steps in the problem locating method provided by the embodiment of the application.
The embodiment of the application also provides a computer readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps in the problem locating method provided by the embodiment of the application.
In addition, the embodiment of the application further provides a computer program product, which comprises a computer program or instructions, and the computer program or instructions implement the steps in the problem positioning method provided by the embodiment of the application when being executed by a processor.
The embodiment of the application provides a problem positioning method and related equipment, which can execute service processing logic of at least one event node in a service event when detecting operation triggering operation of a user on a preset service event, so as to obtain a logic processing result of the service event; positioning an event node with flow termination in the execution process of the business event to obtain a target event node; determining process state data corresponding to the target event node according to the logic processing result; writing the process state data into a search engine to inquire service information through the search engine; when the target business event corresponding to the query result is abnormal in processing, locating an event node of the abnormal problem of the target business event in the execution process according to the process state data corresponding to the target business event. According to the method and the device, the event node with flow termination in the execution process of the service event can be positioned, the process state data of the event node can be obtained, and the service processing condition of the service event, such as the occurrence position of an abnormal problem, can be known through the process state data, so that the efficiency and the accuracy of service problem positioning can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1a is a schematic view of a scenario of a problem localization method provided in an embodiment of the present application;
FIG. 1b is a flow chart of a problem localization method provided by an embodiment of the present application;
FIG. 1c is another flow chart of a problem localization method provided by an embodiment of the present application;
FIG. 1d is another flow chart of a problem localization method provided by an embodiment of the present application;
FIG. 2 is another flow chart of a problem localization method provided by an embodiment of the present application;
FIG. 3 is a schematic structural diagram of a problem positioning device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
Embodiments of the present application provide a problem location method and related devices, which may include a problem location apparatus, an electronic device, a computer-readable storage medium, and a computer program product. The problem locating device can be integrated in an electronic device, which can be a terminal or a server.
It will be appreciated that the problem locating method of the present embodiment may be executed on the terminal, may be executed on the server, or may be executed by both the terminal and the server. The above examples should not be construed as limiting the present application.
As shown in fig. 1a, an example is a method for jointly executing a problem location by a terminal and a server. The problem positioning system provided by the embodiment of the application comprises a terminal 10, a server 11 and the like; the terminal 10 and the server 11 are connected via a network, e.g. a wired or wireless network connection, etc., wherein the problem-localization means may be integrated in the server.
Wherein, the server 11 can be used for: when detecting operation triggering operation of a user on a preset service event, executing service processing logic of at least one event node in the service event to obtain a logic processing result of the service event; positioning an event node with flow termination in the execution process of the business event to obtain a target event node; determining process state data corresponding to the target event node according to the logic processing result; writing the process state data into a search engine to inquire service information through the search engine; when the target business event corresponding to the query result is abnormal in processing, locating an event node of the abnormal problem of the target business event in the execution process according to the process state data corresponding to the target business event. The server 11 may be a single server, or may be a server cluster or cloud server composed of a plurality of servers.
Wherein, terminal 10 can be used for: and performing operation triggering operation on a preset service event to trigger the server 11 to execute service processing logic of at least one event node in the service event, and positioning the event node with an abnormal problem in the execution process of the target service event. The terminal 10 may include a mobile phone, a smart tv, a tablet computer, a notebook computer, or a personal computer (PC, personal Computer), among others. A client may also be provided on the terminal 10, which may be an application client or a browser client, etc.
The following will describe in detail. The following description of the embodiments is not intended to limit the preferred embodiments.
The present embodiment will be described from the perspective of a problem positioning apparatus, which may be integrated in an electronic device, which may be a server or a terminal, or the like.
As shown in fig. 1b, the specific flow of the problem location method may be as follows:
101. when detecting operation triggering operation of a user on a preset business event, executing business processing logic of at least one event node in the business event to obtain a logic processing result of the business event.
Wherein the business event may comprise at least one event node ordered in a predetermined order, each event node may correspond to an event processing component, each event processing component corresponding to a business processing logic. The predetermined sequence may be set according to a specific practical situation. The transaction component may be packaged with its corresponding data and methods.
In particular, the total business event processing logic corresponding to a business event may be subdivided into at least one business processing logic, and one business processing logic may be used to implement one business function. For example, the overall business event processing logic corresponding to a business event may be modularized, where the functional modularization is to divide a program into a plurality of functional modules, each of which corresponds to an event node, and each of the event nodes may implement a business function corresponding to a separate functional module.
The operation triggering operation of the preset service event may specifically be a triggering operation of an operation control of the service event, such as a clicking operation or a sliding operation, which is not limited in this embodiment.
In this embodiment, each event node may be sequentially scheduled according to the sequence corresponding to each event node in the service event, and the service processing logic of the scheduled event node is executed, so as to obtain the logic processing result of the service event.
102. And positioning the event node with the flow termination in the execution process of the business event to obtain a target event node.
Specifically, the target event node may be an event node in which a flow is terminated, among event nodes involved in the execution process of the service event.
103. And determining the process state data corresponding to the target event node according to the logic processing result.
Optionally, in this embodiment, the step of determining, according to the logic processing result, process state data corresponding to the target event node may include:
analyzing the logic processing result to obtain an analysis result;
when the analysis result is that the business event is abnormal, determining that the process state data of the target event node is an abnormal process state;
and when the analysis result is that the business event processing is normal, determining that the process state data of the target event node is a non-abnormal process state.
The logic processing result may include logic processing results corresponding to each event node in the service event.
The logic processing result is analyzed, specifically, whether the logic processing result accords with a preset standard logic processing result or not is analyzed, and the preset standard logic processing result is a corresponding logic processing result under the condition that the business event is normally processed.
If the logic processing result accords with the preset standard logic processing result, the business event processing is normal, and the process state data of the target event node can be determined to be a non-abnormal process state. If the logic processing result does not accord with the preset standard logic processing result, the business event processing abnormality is indicated, and the process state data of the target event node can be determined to be an abnormal process state.
According to the process state data, whether the corresponding event node has an abnormal problem in the execution process or not can be determined.
In a specific scenario, the abnormal process state may include the following relevant fields:
Figure BDA0004130520270000061
among them, the abnormal problems that appear are: the interface call fails and no activity exists.
The non-abnormal process state may include the following relevant fields:
Figure BDA0004130520270000062
Figure BDA0004130520270000071
104. and writing the process state data into a search engine to inquire service information through the search engine.
The search engine may specifically be an open source search framework (ES, elasticSearch). The open source search framework is a search server which provides a distributed multi-user capable full text search engine, and can conveniently enable a large amount of data to have the capabilities of searching, analyzing and exploring.
Optionally, in this embodiment, the step of writing the process state data into a search engine to perform a query of service information by the search engine may include:
constructing a service operation instance corresponding to the service event according to the process state data and the event information of the service event;
and writing the service running instance corresponding to the service event into a search engine so as to inquire service information through the search engine.
The event information of the service event may include a client number, an event UUID, an event code, a service party code, an event time, etc. corresponding to the service event, which is not limited in this embodiment. UUID is an abbreviation for universal unique identification code (Universally Unique Identifier), which is a standard for software construction; the UUID may enable all elements in the distributed system to have unique identification information. The event time may include a creation time of a business event, etc.
The service operation instance corresponding to the service event can include process state data and event information thereof.
Optionally, in this embodiment, the step of writing the service running instance corresponding to the service event into a search engine to perform query on service information by using the search engine may include:
Determining a preset message queue for storing service operation examples;
asynchronously pushing the service operation instance corresponding to the service event to the preset message queue;
and writing the service running examples in the preset message queue into a search engine in batches so as to inquire service information through the search engine.
The preset message queue may include a plurality of service operation instances. The service operation examples in the preset message queue are written into the search engine in batches, specifically, the preset number of service operation examples can be written into the search engine in batches, and the preset number can be set according to actual conditions.
The Message Queue (MQ) is specifically a container for storing messages during the transmission process of the messages, and is essentially a Queue. Specifically, the message queue is a first-in first-out queue type data structure, which is actually an internal linked list in the system kernel.
Optionally, in this embodiment, the step of "writing the service running instances in the preset message queue into the search engine in batch to perform the query of the service information by using the search engine" may include:
The service operation examples in the preset message queue are written into a search engine in batches;
when a service query request aiming at the search engine is received, triggering the search engine to determine a target service operation instance from service operation instances of the search engine as a query result according to query content contained in the service query request.
Optionally, in this embodiment, the step of "triggering the search engine to determine, according to query content included in the service query request, a target service operation instance from service operation instances of the search engine as a query result" may include:
triggering the search engine to carry out matching calculation on query contents contained in the service query request and each service operation instance of the search engine;
and according to the matching calculation result, determining a target service operation instance from the service operation instances of the search engine as a query result.
The query content included in the service query request may be event information of a certain service event, such as a client number, an event code, etc. of the service event, and the query content included in the service query request may also be process state data corresponding to the certain service event, which is not limited in this embodiment.
In some embodiments, the service operation instance including the query content may be searched, and if a certain service operation instance includes the query content, the service operation instance may be used as a target service operation instance, where the target service operation instance is a query result.
105. When the target business event corresponding to the query result is abnormal in processing, locating an event node of the abnormal problem of the target business event in the execution process according to the process state data corresponding to the target business event.
In a specific scenario, as shown in fig. 1c, each event node is a certain service event, where the service event may include: data analysis, association relation, subscription relation, black and white list filtering, ES storage, data distribution process, subscription data storage, subscription data issuing, backup data, channel execution data pushing MQ, interface calling, failure retry mechanism, redis strategy pushing, ES strategy pushing and other event nodes. The event node may further comprise a plurality of event sub-nodes, for example, for event nodes of an association relationship, it may comprise event sub-nodes of an association function, frequency control. Redis is a high-performance key-value database, which is a memory storage system. It is commonly called a data structure server, and supports more types of stored values (values), which may be strings (strings), hashes (Hash), lists (lists), collections (sets), ordered sets (zset), and the like.
When a user triggers a certain service event, for example, clicking a certain page on an Application program (APP) triggers a service event, triggered data is pushed to an event center to be processed, and the triggered data is finally sent to a service system to be used after passing through a process corresponding to each event node shown in fig. 1 c.
Specifically, key nodes can be carded first, and event nodes with flow termination can be carded out; and defining the process state of the event node which is combed, wherein the process state data not only can comprise state enumeration, but also can contain specific abnormal error reporting information. Optionally, in some embodiments, a service operation instance corresponding to the service event may also be constructed according to the process status data and event information of the service event. The event information of the service event may include service related data and user identification data, the service related data may facilitate query of subsequent data and location of a problem, the user identification data may facilitate subsequent query, and the user identification data may include a client number, an event code, and an event UUID.
In this embodiment, in order not to affect the main flow of the client data processing, the process state data may be asynchronously pushed to the MQ in real time; then, the process state data in the MQ is consumed in batches, the process state data is landed on the ES, and a corresponding interface is provided for service inquiry.
The definition of the process state data corresponding to different event nodes is specifically different, as follows:
for the event node of data analysis, the abnormal process state of the event node can be parse_extraction, which represents the data analysis abnormality;
for an event node of an association, its abnormal process state may specifically include related_output_value_null (indicating that the association result field is parsed to be empty), related_extract_update (indicating that the association is transmitting an EXCEPTION), and its non-abnormal process state may specifically include related_filter_same_current (indicating the SAME client number to which filtering is associated), related_filter_m_hit_n (indicating that filtering is performed N times per M HITs), related_filter_frequency (indicating FREQUENCY filtering), and the like;
for event nodes of a subscription relationship, the abnormal process state of the event nodes can specifically include NOT_SUBSCRIBE, which indicates that the event nodes are NOT subscribed;
for event nodes of BLACK and WHITE list filtering, the process state data may specifically include filter_black_white_extraction (indicating BLACK and WHITE list filtering anomaly), filter_modem_black (indicating template BLACK list filtering), filter_modem_white (indicating template WHITE list filtering), filter_label_black (indicating LABEL BLACK list filtering), and filter_label_white (indicating LABEL WHITE list filtering), etc.
For event nodes of ES store, the abnormal process state may include, in particular, STORAGE_ES_FAILURE_TO_DISK (indicating a STORAGE ES FAILURE: message STORAGE local DISK), STORAGE_ES_FAILURE (indicating a STORAGE ES FAILURE), etc.
For an event node of the data distribution process, the abnormal process state may specifically include a discard_handle_error (indicating that the distribution process fails), a discard_asy_handle_error (indicating that the distribution process fails), a discard_bar_handle_error (indicating that the bulk distribution process fails), a discard_asy_handle_service_null (indicating that the asynchronous forwarding processor is empty), a discard_handle_service_null (indicating that the forwarding processor is empty), and the like.
For event nodes pushing MQs, the abnormal process states may include mq_send_bus_error (indicating MQ bulk transmission FAILURE), mq_send_config_error (indicating MQ transmission parameter ERROR), and mq_send_failure (indicating MQ transmission FAILURE), among others.
For the event node of the CHANNEL execution data, the abnormal process state may specifically include channel_action_response_code_error (indicating CHANNEL ACTION interface state CODE abnormality), channel_action_action_node_error (indicating interface call abnormality), channel_action_mode_null (indicating CHANNEL ACTION MODEL is NULL), and the like.
For failover, the abnormal process states may include ZY_REDIS_TO_MQ_OVER_MAX_RETRY_TIMES_ERROR (indicating that the transfer TO the REDIS data push MQ exceeded the maximum RETRY count), ZY_REDIS_ERROR (indicating that the transfer REDIS failed: the storage REDIS failed), ZY_ES_ERROR (indicating that the transfer ES failed: the storage ES failed), ZY_ES_DELEE_ID_ERROR (indicating that the ES DELETE ID failed), ZY_REDIS_OVER_MAX_LEN_ERROR (indicating that the transfer REDIS failed: the redis_ES_ERROR failed) and ZY_REDIS_ES_ERROR (indicating that the transfer REDIS failed)
In one embodiment, as shown in FIG. 1d, the process state data for an event node may be stored after it is obtained. The process state data may include, among other things, failure to parse, failure to store ES, or success in processing. Since the event center processes billions of data each day, corresponding process state data is billions, and in order not to affect service performance, MQ asynchronous push can be used to reduce the impact on the main flow, while batch writing is used to reduce the performance impact on ES. Optionally, the process state data may be written into the RocketMQ asynchronously, and then the data in the MQ is consumed through the consumption MQ service, and the data is written into the ES in batches, so that the service information is queried according to the query service provided by the ES, specifically, the client number, the event UUID, the event code, the service party code and the event time of the service operation instance may be used as query contents, and the corresponding service operation instance is searched based on the query contents.
The RocketMQ is a low-delay, high-concurrency, high-availability and high-reliability distributed message middleware.
The method and the device can provide a design scheme for problem location through process state data, specifically, the state data of the key nodes of a user can be landed in a database and provided for service inquiry. Therefore, the time for analyzing and positioning the problems of the system developer is reduced, and the business can analyze and position the problems by itself through the tool, so that the period for processing the problems of the clients and the complaints of the clients is greatly shortened.
As can be seen from the foregoing, in this embodiment, when detecting that a user triggers a preset operation of a service event, service processing logic of at least one event node in the service event is executed, so as to obtain a logic processing result of the service event; positioning an event node with flow termination in the execution process of the business event to obtain a target event node; determining process state data corresponding to the target event node according to the logic processing result; writing the process state data into a search engine to inquire service information through the search engine; when the target business event corresponding to the query result is abnormal in processing, locating an event node of the abnormal problem of the target business event in the execution process according to the process state data corresponding to the target business event. According to the method and the device, the event node with flow termination in the execution process of the service event can be positioned, the process state data of the event node can be obtained, and the service processing condition of the service event, such as the occurrence position of an abnormal problem, can be known through the process state data, so that the efficiency and the accuracy of service problem positioning can be improved.
The method according to the previous embodiment will be described in further detail below with the specific integration of the problem location device in a server.
The embodiment of the application provides a problem positioning method, as shown in fig. 2, the specific flow of the problem positioning method may be as follows:
201. when detecting operation triggering operation of a user on a preset service event, a server executes service processing logic of at least one event node in the service event to obtain a logic processing result of the service event.
Wherein the business event may comprise at least one event node ordered in a predetermined order, each event node may correspond to an event processing component, each event processing component corresponding to a business processing logic. The predetermined sequence may be set according to a specific practical situation. The transaction component may be packaged with its corresponding data and methods.
In this embodiment, each event node may be sequentially scheduled according to the sequence corresponding to each event node in the service event, and the service processing logic of the scheduled event node is executed, so as to obtain the logic processing result of the service event.
202. And the server locates the event node with the flow termination in the execution process of the business event to obtain a target event node.
Specifically, the target event node may be an event node in which a flow is terminated, among event nodes involved in the execution process of the service event.
203. And the server determines the process state data corresponding to the target event node according to the logic processing result.
Optionally, in this embodiment, the step of determining, according to the logic processing result, process state data corresponding to the target event node may include:
analyzing the logic processing result to obtain an analysis result;
when the analysis result is that the business event is abnormal, determining that the process state data of the target event node is an abnormal process state;
and when the analysis result is that the business event processing is normal, determining that the process state data of the target event node is a non-abnormal process state.
The logic processing result is analyzed, specifically, whether the logic processing result accords with a preset standard logic processing result or not is analyzed, and the preset standard logic processing result is a corresponding logic processing result under the condition that the business event is normally processed.
204. And the server constructs a service operation instance corresponding to the service event according to the process state data and the event information of the service event.
The event information of the service event may include a client number, an event UUID, an event code, a service party code, an event time, etc. corresponding to the service event, which is not limited in this embodiment. UUID is an abbreviation for universal unique identification code (Universally Unique Identifier), which is a standard for software construction; the UUID may enable all elements in the distributed system to have unique identification information. The event time may include a creation time of a business event, etc.
The service operation instance corresponding to the service event can include process state data and event information thereof.
205. And the server writes the service running instance corresponding to the service event into a search engine so as to inquire service information through the search engine.
The search engine may specifically be an open source search framework (ES, elasticSearch). The open source search framework is a search server which provides a distributed multi-user capable full text search engine, and can conveniently enable a large amount of data to have the capabilities of searching, analyzing and exploring.
Optionally, in this embodiment, the step of writing the service running instance corresponding to the service event into a search engine to perform query on service information by using the search engine may include:
Determining a preset message queue for storing service operation examples;
asynchronously pushing the service operation instance corresponding to the service event to the preset message queue;
and writing the service running examples in the preset message queue into a search engine in batches so as to inquire service information through the search engine.
The preset message queue may include a plurality of service operation instances. The service operation examples in the preset message queue are written into the search engine in batches, specifically, the preset number of service operation examples can be written into the search engine in batches, and the preset number can be set according to actual conditions.
Optionally, in this embodiment, the step of "writing the service running instances in the preset message queue into the search engine in batch to perform the query of the service information by using the search engine" may include:
the service operation examples in the preset message queue are written into a search engine in batches;
when a service query request aiming at the search engine is received, triggering the search engine to carry out matching calculation on query contents contained in the service query request and each service operation instance of the search engine;
And according to the matching calculation result, determining a target service operation instance from the service operation instances of the search engine as a query result.
The query content included in the service query request may be event information of a certain service event, such as a client number, an event code, etc. of the service event, and the query content included in the service query request may also be process state data corresponding to the certain service event, which is not limited in this embodiment.
206. When the target business event corresponding to the query result is abnormal, the server locates the event node with abnormal problem in the execution process of the target business event according to the process state data corresponding to the target business event.
As can be seen from the foregoing, in this embodiment, when detecting that a user triggers a preset operation of a service event, a server may execute service processing logic of at least one event node in the service event to obtain a logic processing result of the service event; positioning an event node with flow termination in the execution process of the business event to obtain a target event node; determining process state data corresponding to the target event node according to the logic processing result; constructing a service operation instance corresponding to the service event according to the process state data and the event information of the service event; writing the service running instance corresponding to the service event into a search engine so as to inquire service information through the search engine; when the target business event corresponding to the query result is abnormal in processing, locating an event node of the abnormal problem of the target business event in the execution process according to the process state data corresponding to the target business event. According to the method and the device, the event node with flow termination in the execution process of the service event can be positioned, the process state data of the event node can be obtained, and the service processing condition of the service event, such as the occurrence position of an abnormal problem, can be known through the process state data, so that the efficiency and the accuracy of service problem positioning can be improved.
In order to better implement the above method, the embodiment of the present application further provides a problem positioning device, as shown in fig. 3, where the problem positioning device may include an execution unit 301, a first positioning unit 302, a determination unit 303, a writing unit 304, and a second positioning unit 305, as follows:
(1) An execution unit 301;
and the execution unit is used for executing the business processing logic of at least one event node in the business event when detecting the operation triggering operation of the user on the preset business event, and obtaining the logic processing result of the business event.
(2) A first positioning unit 302;
and the first positioning unit is used for positioning the event node with the flow termination in the execution process of the business event to obtain a target event node.
(3) A determination unit 303;
and the determining unit is used for determining the process state data corresponding to the target event node according to the logic processing result.
Optionally, in some embodiments of the present application, the determining unit may include an analyzing subunit, a first determining subunit, and a second determining subunit, as follows:
the analysis subunit is used for analyzing the logic processing result to obtain an analysis result;
A first determining subunit, configured to determine, when the analysis result is that the service event is abnormal, that process state data of the target event node is an abnormal process state;
and the second determining subunit is used for determining that the process state data of the target event node is a non-abnormal process state when the analysis result is that the business event processing is normal.
(4) A writing unit 304;
and the writing unit is used for writing the process state data into a search engine so as to inquire service information through the search engine.
Optionally, in some embodiments of the present application, the writing unit may include a building subunit and a writing subunit, as follows:
the construction subunit is used for constructing a service operation instance corresponding to the service event according to the process state data and the event information of the service event;
and the writing subunit is used for writing the service running instance corresponding to the service event into a search engine so as to inquire service information through the search engine.
Optionally, in some embodiments of the present application, the writing subunit may specifically be configured to determine a preset message queue for storing service running instances; asynchronously pushing the service operation instance corresponding to the service event to the preset message queue; and writing the service running examples in the preset message queue into a search engine in batches so as to inquire service information through the search engine.
Optionally, in some embodiments of the present application, the step of "writing the service running instance in the preset message queue in batch to a search engine to perform query of service information by the search engine" may include:
the service operation examples in the preset message queue are written into a search engine in batches;
when a service query request aiming at the search engine is received, triggering the search engine to determine a target service operation instance from service operation instances of the search engine as a query result according to query content contained in the service query request.
Optionally, in some embodiments of the present application, the step of "triggering the search engine to determine, as a query result, a target service operation instance from service operation instances of the search engine according to query content included in the service query request" may include:
triggering the search engine to carry out matching calculation on query contents contained in the service query request and each service operation instance of the search engine;
and according to the matching calculation result, determining a target service operation instance from the service operation instances of the search engine as a query result.
(5) A second positioning unit 305;
and the second positioning unit is used for positioning an event node with an abnormal problem in the execution process of the target business event according to the process state data corresponding to the target business event when the target business event corresponding to the query result is abnormal in processing.
As can be seen from the foregoing, in this embodiment, when detecting that a user triggers a preset operation of a service event, the execution unit 301 executes service processing logic of at least one event node in the service event to obtain a logic processing result of the service event; positioning an event node with flow termination in the execution process of the service event through a first positioning unit 302 to obtain a target event node; determining, by the determining unit 303, process state data corresponding to the target event node according to the logic processing result; writing the process state data into a search engine by a writing unit 304 to inquire service information through the search engine; when the target business event corresponding to the query result is abnormal, the event node of the abnormal problem of the target business event in the execution process is positioned by the second positioning unit 305 according to the process state data corresponding to the target business event. According to the method and the device, the event node with flow termination in the execution process of the service event can be positioned, the process state data of the event node can be obtained, and the service processing condition of the service event, such as the occurrence position of an abnormal problem, can be known through the process state data, so that the efficiency and the accuracy of service problem positioning can be improved.
The embodiment of the application further provides an electronic device, as shown in fig. 4, which shows a schematic structural diagram of the electronic device according to the embodiment of the application, where the electronic device may be a terminal or a server, specifically:
the electronic device may include one or more processing cores 'processors 401, one or more computer-readable storage media's memory 402, power supply 403, and input unit 404, among other components. Those skilled in the art will appreciate that the electronic device structure shown in fig. 4 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or may be arranged in different components. Wherein:
the processor 401 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 402, and calling data stored in the memory 402. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, etc., and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 may execute various functional applications and problem localization by executing the software programs and modules stored in the memory 402. The memory 402 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the electronic device, etc. In addition, memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
The electronic device further comprises a power supply 403 for supplying power to the various components, preferably the power supply 403 may be logically connected to the processor 401 by a power management system, so that functions of managing charging, discharging, and power consumption are performed by the power management system. The power supply 403 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The electronic device may further comprise an input unit 404, which input unit 404 may be used for receiving input digital or character information and generating keyboard, mouse, joystick, optical or trackball signal inputs in connection with user settings and function control.
Although not shown, the electronic device may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 401 in the electronic device loads executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 executes the application programs stored in the memory 402, so as to implement various functions as follows:
when detecting operation triggering operation of a user on a preset service event, executing service processing logic of at least one event node in the service event to obtain a logic processing result of the service event; positioning an event node with flow termination in the execution process of the business event to obtain a target event node; determining process state data corresponding to the target event node according to the logic processing result; writing the process state data into a search engine to inquire service information through the search engine; when the target business event corresponding to the query result is abnormal in processing, locating an event node of the abnormal problem of the target business event in the execution process according to the process state data corresponding to the target business event.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
As can be seen from the foregoing, in this embodiment, when detecting that a user triggers a preset operation of a service event, service processing logic of at least one event node in the service event is executed, so as to obtain a logic processing result of the service event; positioning an event node with flow termination in the execution process of the business event to obtain a target event node; determining process state data corresponding to the target event node according to the logic processing result; writing the process state data into a search engine to inquire service information through the search engine; when the target business event corresponding to the query result is abnormal in processing, locating an event node of the abnormal problem of the target business event in the execution process according to the process state data corresponding to the target business event. According to the method and the device, the event node with flow termination in the execution process of the service event can be positioned, the process state data of the event node can be obtained, and the service processing condition of the service event, such as the occurrence position of an abnormal problem, can be known through the process state data, so that the efficiency and the accuracy of service problem positioning can be improved.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a computer readable storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform the steps of any of the problem localization methods provided by the embodiments of the present application. For example, the instructions may perform the steps of:
when detecting operation triggering operation of a user on a preset service event, executing service processing logic of at least one event node in the service event to obtain a logic processing result of the service event; positioning an event node with flow termination in the execution process of the business event to obtain a target event node; determining process state data corresponding to the target event node according to the logic processing result; writing the process state data into a search engine to inquire service information through the search engine; when the target business event corresponding to the query result is abnormal in processing, locating an event node of the abnormal problem of the target business event in the execution process according to the process state data corresponding to the target business event.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the computer-readable storage medium may comprise: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Because the instructions stored in the computer readable storage medium may execute the steps in any of the problem locating methods provided in the embodiments of the present application, the beneficial effects that any of the problem locating methods provided in the embodiments of the present application can be achieved, which are detailed in the previous embodiments and are not described herein.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The computer instructions are read from a computer-readable storage medium by a processor of a computer device, which executes the computer instructions, causing the computer device to perform the methods provided in various alternative implementations of the problem location aspect described above.
The foregoing has outlined some of the more detailed description of a method for locating a problem and associated apparatus for use in the examples of the present application, wherein specific examples are provided herein to illustrate the principles and embodiments of the present application, and the above examples are provided to assist in understanding the method and core concepts of the present application; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. A problem location method, comprising:
when detecting operation triggering operation of a user on a preset service event, executing service processing logic of at least one event node in the service event to obtain a logic processing result of the service event;
positioning an event node with flow termination in the execution process of the business event to obtain a target event node;
determining process state data corresponding to the target event node according to the logic processing result;
writing the process state data into a search engine to inquire service information through the search engine;
when the target business event corresponding to the query result is abnormal in processing, locating an event node of the abnormal problem of the target business event in the execution process according to the process state data corresponding to the target business event.
2. The method of claim 1, wherein determining process state data corresponding to the target event node based on the logical processing result comprises:
analyzing the logic processing result to obtain an analysis result;
when the analysis result is that the business event is abnormal, determining that the process state data of the target event node is an abnormal process state;
And when the analysis result is that the business event processing is normal, determining that the process state data of the target event node is a non-abnormal process state.
3. The method of claim 1, wherein writing the process state data into a search engine to query for business information by the search engine comprises:
constructing a service operation instance corresponding to the service event according to the process state data and the event information of the service event;
and writing the service running instance corresponding to the service event into a search engine so as to inquire service information through the search engine.
4. The method of claim 3, wherein writing the service running instance corresponding to the service event into a search engine to perform the query of the service information by the search engine comprises:
determining a preset message queue for storing service operation examples;
asynchronously pushing the service operation instance corresponding to the service event to the preset message queue;
and writing the service running examples in the preset message queue into a search engine in batches so as to inquire service information through the search engine.
5. The method of claim 4, wherein the batch writing the service running instances in the preset message queue to a search engine to query service information by the search engine comprises:
the service operation examples in the preset message queue are written into a search engine in batches;
when a service query request aiming at the search engine is received, triggering the search engine to determine a target service operation instance from service operation instances of the search engine as a query result according to query content contained in the service query request.
6. The method of claim 5, wherein triggering the search engine to determine a target service execution instance from service execution instances of the search engine as a query result according to query content included in the service query request comprises:
triggering the search engine to carry out matching calculation on query contents contained in the service query request and each service operation instance of the search engine;
and according to the matching calculation result, determining a target service operation instance from the service operation instances of the search engine as a query result.
7. A problem location apparatus, comprising:
the execution unit is used for executing the business processing logic of at least one event node in the business event when detecting the operation triggering operation of a user on a preset business event, and obtaining the logic processing result of the business event;
the first positioning unit is used for positioning the event node with the flow termination in the execution process of the business event to obtain a target event node;
the determining unit is used for determining the process state data corresponding to the target event node according to the logic processing result;
the writing unit is used for writing the process state data into a search engine so as to inquire service information through the search engine;
and the second positioning unit is used for positioning an event node with an abnormal problem in the execution process of the target business event according to the process state data corresponding to the target business event when the target business event corresponding to the query result is abnormal in processing.
8. An electronic device comprising a memory and a processor; the memory stores an application program, and the processor is configured to execute the application program in the memory to perform the operations in the problem localization method as claimed in any one of claims 1 to 6.
9. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the problem localization method of any one of claims 1 to 6.
10. A computer program product comprising a computer program or instructions which, when executed by a processor, carries out the steps of the problem localization method as claimed in any one of claims 1 to 6.
CN202310256074.0A 2023-03-07 2023-03-07 Problem positioning method and related equipment Pending CN116258479A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310256074.0A CN116258479A (en) 2023-03-07 2023-03-07 Problem positioning method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310256074.0A CN116258479A (en) 2023-03-07 2023-03-07 Problem positioning method and related equipment

Publications (1)

Publication Number Publication Date
CN116258479A true CN116258479A (en) 2023-06-13

Family

ID=86687883

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310256074.0A Pending CN116258479A (en) 2023-03-07 2023-03-07 Problem positioning method and related equipment

Country Status (1)

Country Link
CN (1) CN116258479A (en)

Similar Documents

Publication Publication Date Title
US11586692B2 (en) Streaming data processing
US9787706B1 (en) Modular architecture for analysis database
US11481396B2 (en) Executing untrusted commands from a distributed execution model
US20230144450A1 (en) Multi-partitioning data for combination operations
US11281706B2 (en) Multi-layer partition allocation for query execution
CN107506451B (en) Abnormal information monitoring method and device for data interaction
US11775501B2 (en) Trace and span sampling and analysis for instrumented software
US8903925B2 (en) Scheduled messages in a scalable messaging system
US20190095488A1 (en) Executing a distributed execution model with untrusted commands
US11474990B2 (en) Priority queue for exclusive locks
CN111881011A (en) Log management method, platform, server and storage medium
CN109842621A (en) A kind of method and terminal reducing token storage quantity
US20210373945A1 (en) Method and device for processing distributed data solving problem of manual intervention by data analysts
CN112084206A (en) Database transaction request processing method, related device and storage medium
CN112416991A (en) Data processing method and device and storage medium
CN111061802A (en) Power data management processing method and device and storage medium
CN111159300A (en) Data processing method and device based on block chain
CN113238815B (en) Interface access control method, device, equipment and storage medium
CN106940710B (en) Information pushing method and device
US11243979B1 (en) Asynchronous propagation of database events
CN116842090A (en) Accounting system, method, equipment and storage medium
CN115658745A (en) Data processing method, data processing device, computer equipment and computer readable storage medium
CN110727666A (en) Cache assembly, method, equipment and storage medium for industrial internet platform
CN116258479A (en) Problem positioning method and related equipment
US9659041B2 (en) Model for capturing audit trail data with reduced probability of loss of critical data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination