CN116010194A - Method, system, storage medium and processor for determining transaction run data - Google Patents

Method, system, storage medium and processor for determining transaction run data Download PDF

Info

Publication number
CN116010194A
CN116010194A CN202211574300.1A CN202211574300A CN116010194A CN 116010194 A CN116010194 A CN 116010194A CN 202211574300 A CN202211574300 A CN 202211574300A CN 116010194 A CN116010194 A CN 116010194A
Authority
CN
China
Prior art keywords
data
module
transaction
index
index data
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
CN202211574300.1A
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.)
Zhongke Yungu Technology Co Ltd
Original Assignee
Zhongke Yungu Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhongke Yungu Technology Co Ltd filed Critical Zhongke Yungu Technology Co Ltd
Priority to CN202211574300.1A priority Critical patent/CN116010194A/en
Publication of CN116010194A publication Critical patent/CN116010194A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Embodiments of the present application provide a method, system, storage medium, and processor for determining transaction run data. Comprising the following steps: invoking TC service; under the condition that the task processing state of at least one transaction in the data subscription module is updated, the data subscription module sends an update notification to the index acquisition module; the index acquisition module determines first index data corresponding to the updated task processing state and sends the first index data to the registration module; the registration module performs persistence processing on the first index data to obtain second index data; the second index data is sent to a data storage module, and the data storage module judges whether the second index data is target index data or not; and under the condition that the second index data is the target index data, the target index data is sent to the data monitoring module, and the running data of the transaction is determined. By the technical scheme, the consistency of the data can be improved, the data is ensured not to be lost, and the execution condition of the transaction is accurately determined.

Description

Method, system, storage medium and processor for determining transaction run data
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, a system, a storage medium, and a processor for determining transaction operation data.
Background
SEATA1.3.0 in the case of cluster deployment, each node independently calculates the execution conditions of transactions of all items under each node, and cannot distinguish the execution conditions of respective transactions of each item. And the transaction cannot be persisted to the local, and the acquired execution data of the transaction is lost. In the prior art, the calculation of the data index data automatically clears the previous index data, the execution condition of the transaction cannot be checked by recycling the index data, a visual monitoring system is lacked, and the execution state of the transaction in the project cannot be displayed in real time.
Disclosure of Invention
An object of an embodiment of the present application is to provide a method, a system, a storage medium, and a processor for determining transaction operation data.
To achieve the above object, a first aspect of the present application provides a method for determining transaction operation data, applied to an apparatus, the apparatus including a TC service and a data monitoring module, including:
the method comprises the steps of calling TC service, wherein the TC service comprises a data subscription module, an index acquisition module, a registration module and a data storage module;
under the condition that the task processing state of at least one transaction in the data subscription module is updated, the data subscription module sends an update notification to the index acquisition module, wherein the update notification carries the task processing state after the transaction is updated;
the index acquisition module determines first index data corresponding to the updated task processing state according to the update notification and sends the first index data to the registration module;
performing persistence processing on the first index data through a registration module to obtain second index data;
the second index data is sent to a data storage module, and whether the second index data is target index data or not is judged through the data storage module;
and under the condition that the second index data is the target index data, the data storage module sends the target index data to the data monitoring module, and the data monitoring module determines the operation data of the transaction according to the target index data.
In the embodiment of the present application, the TC service further includes an index management module, a core processing module, and a transaction coordination module, and the method further includes: after the TC service is called, initializing an index management module and a registration module, and starting the index management module after the initialization is finished; and detecting whether the task processing state of the transaction in the data subscription module is updated or not through the core processing module and the transaction coordination module.
In the embodiment of the application, the running data comprises a task processing state and a task processing time point of a transaction, wherein the task processing state comprises a starting state, an abnormal state and a normal state.
In an embodiment of the present application, the data monitoring module includes a first monitoring sub-module and a second monitoring sub-module, and the method further includes: the first monitoring sub-module determines a first transaction number in each task processing state within a first preset duration according to the operation data; the second monitoring sub-module determines a second transaction number at any task processing time point within a second preset time period according to the operation data, and determines a ratio of the second transaction number to a third transaction number, wherein the third transaction number refers to all transaction numbers within the second preset time period.
In this embodiment of the present application, the data monitoring module further includes a searching sub-module, and the method further includes: after a first search instruction of a user for the transaction is acquired, searching and displaying operation data of the transaction corresponding to the first search instruction through a search submodule.
In an embodiment of the present application, the method further includes: under the condition that the second index data is the target index data, the data storage module sends the target index data to the data monitoring module; after the data monitoring module determines the operation data of the transaction according to the target index data, adding an identifier to the target index data through the data monitoring module, wherein the identifier is determined according to the transaction information of the target transaction corresponding to the target index data; determining target index data with the same identification as item index data belonging to the same item; the data monitoring module determines the execution state of the project according to the project index data of the same project.
In an embodiment of the present application, the method further includes: after a second search instruction of the user for the items is acquired, searching and displaying the execution state of the items corresponding to the second search instruction through a search submodule.
A second aspect of the present application provides a system for determining transaction operational data, for application to a device, the device including a TC service and a data monitoring module, comprising:
the calling module is used for calling TC service, and the TC service comprises a data subscription module, an index acquisition module, a registration module and a data storage module;
the first data processing module is used for sending an update notification to the index acquisition module under the condition that the task processing state of at least one transaction in the data subscription module is updated, wherein the update notification carries the task processing state after the transaction is updated;
the second data processing module is used for determining first index data corresponding to the updated task processing state according to the update notification by the index acquisition module and sending the first index data to the registration module;
the third data processing module is used for performing persistence processing on the first index data through the registration module so as to obtain second index data;
the judging module is used for sending the second index data to the data storage module and judging whether the second index data is target index data or not through the data storage module;
and the fourth data processing module is used for sending the target index data to the data monitoring module by the data storage module under the condition that the second index data is the target index data, and determining the operation data of the transaction by the data monitoring module according to the target index data.
A third aspect of the present application provides a processor configured to perform the above-described method for determining transactional operational data.
A fourth aspect of the present application provides a machine-readable storage medium having instructions stored thereon, which when executed by a processor, cause the processor to be configured to perform the above-described method for determining transaction execution data.
According to the technical scheme, the TC service is invoked and comprises a data subscription module, an index acquisition module, a registration module, a data monitoring module and a data storage module; under the condition that the task processing state of at least one transaction in the data subscription module is updated, the data subscription module sends an update notification to the index acquisition module, wherein the update notification carries the task processing state after the transaction is updated; the index acquisition module determines first index data corresponding to the updated task processing state according to the update notification and sends the first index data to the registration module; performing persistence processing on the first index data through a registration module to obtain second index data; the second index data is sent to a data storage module, and whether the second index data is target index data or not is judged through the data storage module; and under the condition that the second index data is the target index data, the data storage module sends the target index data to the data monitoring module, and the data monitoring module determines the operation data of the transaction according to the target index data. By the technical scheme, the consistency of the data can be improved, the data is ensured not to be lost, and the execution condition of the transaction is accurately determined.
Additional features and advantages of embodiments of the present application will be set forth in the detailed description that follows.
Drawings
The accompanying drawings are included to provide a further understanding of embodiments of the present application and are incorporated in and constitute a part of this specification, illustrate embodiments of the present application and together with the description serve to explain, without limitation, the embodiments of the present application. In the drawings:
FIG. 1 schematically illustrates a flow diagram of a method for determining transactional operational data in accordance with an embodiment of the present application;
FIG. 2 schematically illustrates another flow diagram of a method for determining transactional operational data in accordance with embodiments of the application;
FIG. 3 schematically illustrates a block diagram of a system for determining transactional operational data in accordance with an embodiment of the application;
fig. 4 schematically shows an internal structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the specific implementations described herein are only for illustrating and explaining the embodiments of the present application, and are not intended to limit the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present application based on the embodiments herein.
FIG. 1 schematically illustrates a flow diagram of a method for determining transactional operational data in accordance with an embodiment of the present application. As shown in fig. 1, in an embodiment of the present application, there is provided a method for determining transaction operation data, applied to an apparatus, the apparatus including a TC service and a data monitoring module, including the steps of:
step 101, calling a TC service, wherein the TC service comprises a data subscription module, an index acquisition module, a registration module and a data storage module.
Step 102, under the condition that it is determined that at least one task processing state of the transaction in the data subscription module is updated, the data subscription module sends an update notification to the index acquisition module, wherein the update notification carries the task processing state after the transaction is updated.
Step 103, the index collection module determines first index data corresponding to the updated task processing state according to the update notification, and sends the first index data to the registration module.
And 104, performing persistence processing on the first index data through the registration module to obtain second index data.
Step 105, the second index data is sent to the data storage module, and whether the second index data is the target index data is judged by the data storage module.
And step 106, under the condition that the second index data is the target index data, the data storage module sends the target index data to the data monitoring module, and the data monitoring module determines the operation data of the transaction according to the target index data.
The TC service refers to a transaction coordination service for maintaining the state of global and branch transactions, driving global transaction commit or rollback. The TC service may include a data subscription module, an index collection module, a registration module, and a data storage module. The data subscription module may send an update notification to the index collection module when the task processing state of the transaction in the data subscription module is updated. Where a transaction is a transaction in which a database maps operations on data in the real world into a database and performs operations on one or more data, i.e., a single execution unit of a program. The task processing state of a transaction refers to the state that the transaction is in at a certain point in time. The index collection module may receive the update notification sent by the data subscription module, determine first index data corresponding to the updated task processing state according to the update notification, and send the first index data to the registration module. The update notification carries the task processing state after the transaction update; the index data is data formed by quantifying the change of the task processing state of the transaction, and can be used for measuring the change condition of the task processing state of the transaction. The registration module is a module for storing device information of the system and the application program, and the first index data may be subjected to persistence processing by the registration module to obtain second index data. The persistence processing refers to converting program data into a persistence state and an instant state, namely, persisting the instant data into persistence data. The second index data is sent to the data storage module, and whether the second index data is target index data or not can be judged through the data storage module; in the case that the second index data is the target index data, the data storage module sends the target index data to the data monitoring module, and the data monitoring module can determine the operation data of the transaction according to the target index data.
For example, the processor invokes the TC service, and after determining that the task processing state of the transaction a in the data subscription module is updated, the data subscription module sends an update notification to the metrics collection module. The index acquisition module determines the updated transaction A according to the update notificationFirst index data X corresponding to task processing state of (2) 1 And the first index data X 1 And sending the message to a registration module. The registration module registers the first index data X 1 Performing persistence processing to obtain second index data X 2 . Will second index data X 2 The second index data X is sent to the data storage module, and the second index data X can be judged through the data storage module 2 Whether or not it is target index data X a . In the second index data X 2 For target index data X a In the case of (a), the data storage module may store target index data X a The target index data X is sent to a data monitoring module which can be used for monitoring the target index data X a The operational data for transaction a is determined.
In one embodiment, the TC service may further include an metrics management module, a core processing module, and a transaction coordination module. After the TC service is called, the processor can initialize the index management module and the registration module, and after the initialization is finished, the index management module is started; and detecting whether the task processing state of the transaction in the data subscription module is updated or not through the core processing module and the transaction coordination module. For example, the processor may call the function metricsmanager · get (). Init () to initialize the index management module, and call the SPI mechanism to initialize the registration module; and starting the index management module after the initialization of the index management module and the registration module is completed. And detecting whether the task processing state of the transaction A in the data subscription module is updated or not through the core data module and the transaction coordination module. After the task processing state of the transaction A in the data subscription module is updated, the data subscription module sends an update notification to the index acquisition module. The index acquisition module determines first index data X corresponding to the task processing state updated by the transaction A according to the update notification 1 And the first index data X 1 And sending the message to a registration module. The registration module registers the first index data X 1 Performing persistence processing to obtain second index data X 2 . Will second index data X 2 The second index data X is sent to the data storage module, and the second index data X can be judged through the data storage module 2 Whether or not it is target index data X a . In the second index data X 2 For target index data X a In the case of (a), the data storage module may store target index data X a The target index data X is sent to a data monitoring module which can be used for monitoring the target index data X a The operational data for transaction a is determined.
In one embodiment, the operational data may include task processing states and task processing points in time of the transaction, where the task processing states may include a startup state, an abnormal state, and a normal state. For example, after the processor invokes the TC service, the index management module is initialized by the function metricsmanager. Get (). Init (), and the registration module is initialized by the SPI mechanism; and starting the index management module after the initialization of the index management module and the registration module is completed. And determining that the task processing state of the transaction A in the data subscription module is updated through the core processing module and the transaction coordination module, wherein the updated state is an abnormal state. The data subscription module sends the update notification to the index collection module, and the index collection module can determine first index data X corresponding to the abnormal state of the transaction A according to the update notification 1 And the first index data X 1 And sending the message to a registration module. First index data X through registration module 1 Performing persistence processing to obtain second index data X 2 . Will second index data X 2 The second index data X is sent to the data storage module, and the data storage module judges the second index data X 2 For target index data X a And target index data X a Sending the target index data X to a data monitoring module a Determining that transaction A is at t 1 The moment is an abnormal state.
In one embodiment, the data monitoring module may include a first monitoring sub-module and a second monitoring sub-module. The first monitoring sub-module may determine a first number of transactions in each of the task processing states for a first predetermined duration based on the operational data. The second monitoring submodule can determine a second transaction number at any task processing time point in a second preset time period according to the operation data, and determine a ratio of the second transaction number to a third transaction number, wherein the third transaction number refers to all transaction numbers in the second preset time period.
For example, the data monitoring module is based on the target index data X 1 、X 2 、X 3 ……X 10 Determining transaction A separately 1 、A 2 、A 3 ……A 10 Is the operation data Y of (2) 1 、Y 2 、Y 3 ……Y 10 . The first monitoring submodule is used for monitoring the operation data Y 1 、Y 2 、Y 3 ……Y 10 Determining that a transaction in an active state within one day is Y 1 、Y 2 、Y 3 I.e. 3 transactions in total are in the start state in one day; the transaction in the abnormal state is Y 7 、Y 9 I.e. 2 transactions in total are in an abnormal state in one day; the transaction in the normal state is Y 4 、Y 5 、Y 6 、Y 8 、Y 10 I.e. a total of 5 transactions in a day are in a normal state. The second monitoring sub-module is used for controlling the operation data Y 1 、Y 2 、Y 3 ……Y 10 Determination of t within 0.5 day 1 The number of transactions at the moment is 2, the number of all transactions within 0.5 day is 7, according to t 1 The number of transactions at time 2 and all transactions within 0.5 day 7 can determine t 1 The ratio of the number of transactions at the moment in time to the number of all transactions in 0.5 day is 2/7.
In one embodiment, the data monitoring sub-module further comprises a search sub-module. After a first search instruction of a user for the transaction is acquired, searching and displaying operation data of the transaction corresponding to the first search instruction through a search submodule. For example, after the first search instruction of the user for the transaction a is acquired, the running data of the transaction a can be searched and displayed through the search submodule, so that the transaction a is shown at t 1 The time is in a normal state.
In one embodiment, in the case that the second index data is the target index data, the data storage module sends the target index data to the data monitoring module; after the data monitoring module determines the operation data of the transaction according to the target index data, adding an identifier to the target index data through the data monitoring module, wherein the identifier is determined according to the transaction information of the target transaction corresponding to the target index data; determining target index data with the same identification as item index data belonging to the same item; the data monitoring module determines the execution state of the project according to the project index data of the same project.
For example, the data monitoring module is based on the index data X 1 、X 2 、X 3 、X 4 、X 5 Determining transaction A separately 1 、A 2 、A 3 、A 4 、A 4 Is the operation data Y of (2) 1 、Y 2 、Y 3 、Y 4 、Y 5 Then, the target index data X is monitored by the data monitoring module 1 、X 2 、X 3 、X 4 、X 5 Adding a mark, wherein the target index data after adding the mark is X a1 、X a2 、X b3 、X b4 、X b5 . Target index data X a1 、X a2 Item index data determined as item a, target index data X b3 、X b4 、X b5 Item index data determined as item b. The data monitoring module can be based on X a1 、X a2 Determining the execution state of item a according to X b3 、X b4 、X b5 The execution state of item b is determined.
In one embodiment, after the second search instruction of the user for the item is acquired, the execution state of the item corresponding to the second search instruction is searched and displayed through the search sub-module. For example, after the second search instruction for the item b by the user is acquired, the execution state of the item b may be searched and displayed through the search sub-module.
In one embodiment, as shown in FIG. 2, a device is started, which includes a TC service and monitoring system (i.e., a data monitoring module). The TC service is called, and comprises a Core (i.e. a Core processing module), a Coordinator (i.e. a transaction coordination module), an EventBus (i.e. a data subscription module), a MetricsSubscriber (i.e. an index acquisition module), an Rdgistiy (registration module) and a MySQL (data storage module). The processor may call MetricManager. Get (). Init () to initialize Metrics (i.e., the index management module), and may call SPI mechanism to initialize Registry. After Metrics and Registry initialization, metrics is started. And registering MetricsSubscriber with EventBus, detecting a change in status event of Transaction (i.e., task processing status of the Transaction) by Core and Coordinator.
After determining the state event change of the Transaction, the state event change (i.e., update notification) is notified to the MetricsSubscriber by EventBus. The MetricsSubscriber determines corresponding Metric data (i.e., first index data) according to the state event change, and writes the Metric data to the Registry. Registry persists metadata to MySQL. MySQL judges the received persistence-processed Metric data (namely, the second target data), and when determining that the persistence-processed Metric data is any one of the Metric data corresponding to the starting state or the Metric data corresponding to the abnormal state or the Metric data corresponding to the normal state (namely, the target index data), sends the persistence-processed Metric data to a main monitoring system so as to determine the state after the transition corresponding to the persistence-processed Metric data through the monitoring system.
Through the technical scheme, the TC service is invoked and comprises a data subscription module, an index acquisition module, a registration module and a data storage module; under the condition that the task processing state of at least one transaction in the data subscription module is updated, the data subscription module sends an update notification to the index acquisition module, wherein the update notification carries the task processing state after the transaction is updated; the index acquisition module determines first index data corresponding to the updated task processing state according to the update notification and sends the first index data to the registration module; performing persistence processing on the first index data through a registration module to obtain second index data; the second index data is sent to a data storage module, and whether the second index data is target index data or not is judged through the data storage module; and under the condition that the second index data is the target index data, the data storage module sends the target index data to the data monitoring module, and the data monitoring module determines the operation data of the transaction according to the target index data. By the technical scheme, the consistency of the data can be improved, the data is ensured not to be lost, and the execution condition of the transaction is accurately determined.
FIGS. 1 and 2 are flow diagrams of a method for determining transactional operational data in one embodiment. It should be understood that, although the steps in the flowcharts of fig. 1 and 2 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 1 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of other steps or sub-steps of other steps.
In one embodiment, as shown in fig. 3, a system 300 for determining transaction execution data is provided, applied to a device, the device including a TC service and data monitoring module including a calling module 301, a first data processing module 302, a second data processing module 303, a third data processing module 304, a judging module 305, and a fourth data processing module 306, wherein:
the calling module 301 is configured to call a TC service, where the TC service includes a data subscription module, an index collection module, a registration module, and a data storage module.
The first data processing module 302 is configured to send an update notification to the index collection module when it is determined that at least one task processing state of the transaction in the data subscription module is updated, where the update notification carries the task processing state after the transaction is updated.
The second data processing module 303 is configured to determine, according to the update notification, first index data corresponding to the updated task processing state, and send the first index data to the registration module.
The third data processing module 304 is configured to perform persistence processing on the first index data through the registration module to obtain second index data.
The judging module 305 is configured to send the second index data to the data storage module, and judge whether the second index data is the target index data through the data storage module.
And the fourth data processing module 306 is configured to send the target index data to the data monitoring module when the second index data is the target index data, and the data monitoring module determines the operation data of the transaction according to the target index data.
The embodiment of the application provides a processor for running a program, wherein the program runs to execute the method for determining transaction running data.
The embodiment of the application provides a storage medium, on which a program is stored, which when executed by a processor, implements the above-described method for determining transaction operation data.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 4. The computer device includes a processor a01, a network interface a02, a memory (not shown) and a data storage module (not shown) connected by a system bus. Wherein the processor a01 of the computer device is adapted to provide computing and control capabilities. The memory of the computer device includes internal memory a03 and nonvolatile storage medium a04. The nonvolatile storage medium a04 stores an operating system B01, a computer program B02, and a data storage module (not shown in the figure). The internal memory a03 provides an environment for the operation of the operating system B01 and the computer program B02 in the nonvolatile storage medium a04. The data storage module of the computer device is used for storing index data and task processing state data. The network interface a02 of the computer device is used for communication with an external terminal through a network connection. The computer program B02, when executed by the processor a01, implements a method for determining transaction execution data.
Those skilled in the art will appreciate that the structures shown in FIG. 4 are block diagrams only and do not constitute a limitation of the computer device on which the present aspects apply, and that a particular computer device may include more or less components than those shown, or may combine some of the components, or have a different arrangement of components.
The embodiment of the application provides equipment, which comprises a processor, a memory and a program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the following steps: the method comprises the steps of calling TC service, wherein the TC service comprises a data subscription module, an index acquisition module, a registration module and a data storage module; under the condition that the task processing state of at least one transaction in the data subscription module is updated, the data subscription module sends an update notification to the index acquisition module, wherein the update notification carries the task processing state after the transaction is updated; the index acquisition module determines first index data corresponding to the updated task processing state according to the update notification and sends the first index data to the registration module; performing persistence processing on the first index data through a registration module to obtain second index data; the second index data is sent to a data storage module, and whether the second index data is target index data or not is judged through the data storage module; and under the condition that the second index data is the target index data, the data storage module sends the target index data to the data monitoring module, and the data monitoring module determines the operation data of the transaction according to the target index data.
In one embodiment, the TC service further includes an metrics management module, a core processing module, and a transaction coordination module, the method further comprising: after the TC service is called, initializing an index management module and a registration module, and starting the index management module after the initialization is finished; and detecting whether the task processing state of the transaction in the data subscription module is updated or not through the core processing module and the transaction coordination module.
In one embodiment, the operational data includes task processing states and task processing points in time of the transaction, wherein the task processing states include a startup state, an exception state, and a normal state.
In one embodiment, the data monitoring module includes a first monitoring sub-module and a second monitoring sub-module, the method further comprising: the first monitoring sub-module determines a first transaction number in each task processing state within a first preset duration according to the operation data; the second monitoring sub-module determines a second transaction number at any task processing time point within a second preset time period according to the operation data, and determines a ratio of the second transaction number to a third transaction number, wherein the third transaction number refers to all transaction numbers within the second preset time period.
In one embodiment, the data monitoring module further comprises a search sub-module, the method further comprising: after a first search instruction of a user for the transaction is acquired, searching and displaying operation data of the transaction corresponding to the first search instruction through a search submodule.
In one embodiment, the method further comprises: under the condition that the second index data is the target index data, the data storage module sends the target index data to the data monitoring module; after the data monitoring module determines the operation data of the transaction according to the target index data, adding an identifier to the target index data through the data monitoring module, wherein the identifier is determined according to the transaction information of the target transaction corresponding to the target index data; determining target index data with the same identification as item index data belonging to the same item; the data monitoring module determines the execution state of the project according to the project index data of the same project.
In one embodiment, the method further comprises: after a second search instruction of the user for the items is acquired, searching and displaying the execution state of the items corresponding to the second search instruction through a search submodule.
The present application also provides a computer program product adapted to perform a program initialized with method steps for determining transaction run data as follows when executed on a data processing device.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (10)

1. A method for determining transaction operational data, characterized by being applied to a device comprising a TC service and a data monitoring module, the method comprising:
invoking TC service, wherein the TC service comprises a data subscription module, an index acquisition module, a registration module and a data storage module;
under the condition that the task processing state of at least one transaction in the data subscription module is updated, the data subscription module sends an update notification to the index acquisition module, wherein the update notification carries the task processing state after the transaction is updated;
the index acquisition module determines first index data corresponding to the updated task processing state according to the update notification and sends the first index data to the registration module;
performing persistence processing on the first index data through the registration module to obtain second index data;
the second index data is sent to the data storage module, and whether the second index data is target index data or not is judged through the data storage module;
and under the condition that the second index data is the target index data, the data storage module sends the target index data to the data monitoring module, and the data monitoring module determines the operation data of the transaction according to the target index data.
2. The method for determining transaction run data of claim 1, wherein the TC service further comprises an metrics management module, a core processing module, and a transaction coordination module, the method further comprising:
initializing the index management module and the registration module after the TC service is called, and starting the index management module after the initialization is completed;
and detecting whether the task processing state of the transaction in the data subscription module is updated or not through the core processing module and the transaction coordination module.
3. The method for determining transaction execution data according to claim 1, wherein the execution data includes a task processing state and a task processing time point of the transaction, wherein the task processing state includes a start-up state, an abnormal state, and a normal state.
4. A method for determining transactional operational data as in claim 3, wherein said data monitoring module comprises a first monitoring sub-module and a second monitoring sub-module, said method further comprising:
the first monitoring sub-module determines a first transaction number in each task processing state within a first preset duration according to the operation data;
the second monitoring sub-module determines a second transaction number at any task processing time point within a second preset duration according to the operation data, and determines a ratio of the second transaction number to a third transaction number, wherein the third transaction number refers to all transaction numbers within the second preset duration.
5. A method for determining transactional operational data as in claim 3, wherein said data monitoring module further comprises a search sub-module, said method further comprising:
after a first search instruction of a user for the transaction is acquired, searching and displaying operation data of the transaction corresponding to the first search instruction through the search submodule.
6. The method for determining transactional operational data of claim 1, further comprising:
the data storage module sends the target index data to the data monitoring module under the condition that the second index data is the target index data;
after the data monitoring module determines the operation data of the transaction according to the target index data, adding an identifier to the target index data through the data monitoring module, wherein the identifier is determined according to the transaction information of the target transaction corresponding to the target index data;
determining the target index data with the same identification as item index data belonging to the same item;
the data monitoring module determines the execution state of the project according to project index data of the same project.
7. The method for determining transactional operational data of claim 6, further comprising:
after a second search instruction of the user for the item is acquired, searching and displaying the execution state of the item corresponding to the second search instruction through the search submodule.
8. A system for determining transaction operational data, characterized by being applied to a device including a TC service and a data monitoring module, the system comprising:
the system comprises a calling module, a data subscribing module, an index acquisition module, a registration module and a data storage module, wherein the calling module is used for calling TC service;
the first data processing module is used for sending an update notification to the index acquisition module under the condition that the task processing state of at least one transaction is updated in the data subscription module, wherein the update notification carries the task processing state after the transaction is updated;
the second data processing module is used for determining first index data corresponding to the updated task processing state according to the update notification by the index acquisition module and sending the first index data to the registration module;
the third data processing module is used for performing persistence processing on the first index data through the registration module so as to obtain second index data;
the judging module is used for sending the second index data to the data storage module and judging whether the second index data is target index data or not through the data storage module;
and the fourth data processing module is used for sending the target index data to the data monitoring module by the data storage module under the condition that the second index data is the target index data, and determining the operation data of the transaction according to the target index data by the data monitoring module.
9. A processor configured to perform the method for determining transaction run data according to any of claims 1 to 7.
10. A machine-readable storage medium having instructions stored thereon, which when executed by a processor cause the processor to be configured to perform the method for determining transaction run data according to any of claims 1 to 7.
CN202211574300.1A 2022-12-08 2022-12-08 Method, system, storage medium and processor for determining transaction run data Pending CN116010194A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211574300.1A CN116010194A (en) 2022-12-08 2022-12-08 Method, system, storage medium and processor for determining transaction run data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211574300.1A CN116010194A (en) 2022-12-08 2022-12-08 Method, system, storage medium and processor for determining transaction run data

Publications (1)

Publication Number Publication Date
CN116010194A true CN116010194A (en) 2023-04-25

Family

ID=86023902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211574300.1A Pending CN116010194A (en) 2022-12-08 2022-12-08 Method, system, storage medium and processor for determining transaction run data

Country Status (1)

Country Link
CN (1) CN116010194A (en)

Similar Documents

Publication Publication Date Title
US10439937B2 (en) Service addressing in distributed environment
CN110992188B (en) Transaction processing method, device and equipment
CN115248826B (en) Method and system for large-scale distributed graph database cluster operation and maintenance management
CN111569431A (en) Game engine resource processing method, electronic device and computer readable storage medium
CN115185755A (en) Abnormity detection method and device, storage medium and electronic equipment
CN114820187A (en) Data processing method and device, electronic equipment and storage medium
CN113643030B (en) Transaction processing method, device and equipment
CN116010194A (en) Method, system, storage medium and processor for determining transaction run data
CN109582386B (en) Service starting processing method and device, electronic equipment and readable storage medium
CN113869989B (en) Information processing method and device
CN114968422A (en) Method and device for automatically executing contracts based on variable state
CN111339117B (en) Data processing method, device and equipment
CN111435320B (en) Data processing method and device
CN114691309A (en) Batch business processing system, method and device
CN112130900A (en) User information management method, system, equipment and medium for BMC
CN117041980B (en) Network element management method and device, storage medium and electronic equipment
CN116088887A (en) Upgrading method for moment limiter, processor and moment limiter
EP4346191A1 (en) Data processing method, and apparatus
CN114510495B (en) Database service data consistency processing method and system
CN116842100A (en) Block chain-based data management method and device and block chain node
CN107038077B (en) Message flood storage method and device
CN116760715A (en) Abnormal root cause topological graph generation method, device, equipment and medium thereof
CN114896638A (en) Data processing method and device, electronic equipment and storage medium
CN115017167A (en) Block chain system and information updating method and device
CN117493875A (en) Method and processor for determining label change condition and user label

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