CN117237112A - Transaction early warning method and device, storage medium and electronic equipment - Google Patents

Transaction early warning method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN117237112A
CN117237112A CN202311242162.1A CN202311242162A CN117237112A CN 117237112 A CN117237112 A CN 117237112A CN 202311242162 A CN202311242162 A CN 202311242162A CN 117237112 A CN117237112 A CN 117237112A
Authority
CN
China
Prior art keywords
transaction
node
transaction node
early warning
target
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
CN202311242162.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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202311242162.1A priority Critical patent/CN117237112A/en
Publication of CN117237112A publication Critical patent/CN117237112A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a transaction early warning method and device, a storage medium and electronic equipment, wherein after a transaction node sends transaction information to a downstream transaction node of the transaction node, transaction response information of the downstream transaction node is obtained, if the transaction response information meets a first early warning rule, early warning information is sent, forward transaction node monitoring from the upstream transaction node to the downstream transaction node is realized, and at least one target transaction node is determined from all transaction nodes included in a transaction chain; for each target transaction node, the target transaction node is controlled to send a detection packet to an upstream transaction node of the target transaction node, if the response behavior of the upstream transaction node on the detection packet meets a target second early warning rule, early warning information is sent, reverse transaction node monitoring between the downstream transaction node and the upstream transaction node is realized, and therefore, abnormal transaction nodes are quickly determined and early warning is realized through bidirectional transaction node monitoring, production is quickly restored, and loss is reduced.

Description

Transaction early warning method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a transaction early warning method and apparatus, a storage medium, and an electronic device.
Background
In the process of executing the transaction, the financial IT system inevitably generates abnormal conditions of the transaction nodes, so that how to realize abnormal early warning on the transaction nodes and discover the abnormal transaction nodes in time so as to quickly recover production, thereby reducing the loss is a technical problem which needs to be solved by the technicians in the field at present.
Disclosure of Invention
The application provides a transaction early warning method and device, a storage medium and electronic equipment, and aims to realize abnormal early warning on transaction nodes, discover abnormal transaction nodes in time and quickly recover production so as to reduce loss.
In order to achieve the above object, the present application provides the following technical solutions:
compared with the prior art, the application has the following advantages:
a transaction pre-warning method, comprising:
for each transaction node except the last transaction node in the transaction chain, after the transaction node sends transaction information to a downstream transaction node of the transaction node, acquiring transaction response information of the downstream transaction node, judging whether the transaction response information meets a first early warning rule, and if so, sending early warning information; the transaction response information comprises a result of whether the transaction response information is responded within a preset transaction duration;
determining at least one target transaction node from the transaction nodes included in the transaction chain;
for each target transaction node, controlling the target transaction node to send a detection packet to an upstream transaction node of the target transaction node, judging whether the response behavior of the upstream transaction node on the detection packet meets a target second early warning rule, and if so, sending early warning information; and the target second early warning rule is determined according to the configuration file.
The method, optionally, the determining at least one target transaction node from the transaction nodes included in the transaction chain includes:
acquiring a pre-configured configuration file, wherein the configuration file comprises at least one node identifier of a transaction node to be monitored reversely;
and determining the node identification of each transaction node included in the transaction chain and the transaction node to be monitored reversely as a target transaction node.
In the above method, optionally, the determining whether the response behavior of the upstream transaction node with respect to the probe packet meets the second early warning rule corresponding to the target node includes:
judging whether response information of the upstream transaction node about the detection packet is received within a preset time length;
if the response information of the upstream transaction node is not received within the preset time length, determining whether the response behavior of the upstream transaction node about the detection packet meets a second early warning rule corresponding to the target node;
if the response information of the upstream transaction node is received within the preset time, determining the response time of the upstream transaction node, judging whether the response time meets a preset time threshold, and if not, determining whether the response behavior of the upstream transaction node about the detection packet meets a second early warning rule corresponding to the target node.
In the above method, optionally, the determining the target second early warning rule according to the configuration file includes:
acquiring a pre-configured configuration file, wherein the configuration file comprises at least one node identifier of a transaction node to be monitored reversely and a second early warning rule corresponding to the node identifier;
acquiring a node identifier of the target transaction node;
and determining a second early warning rule corresponding to the node identifier of the target transaction node as a target second early warning rule in the second early warning rules included in the configuration file.
The method, optionally, before determining the response time of the upstream transaction node, further includes:
and sending the response information to a monitoring system.
In the above method, optionally, if the transaction response information includes a result of the response within a preset transaction duration, before determining whether the transaction response information meets the first early warning rule, the method further includes:
and sending the transaction response information to a monitoring system.
In the foregoing method, optionally, the sending early warning information includes:
and sending early warning information to an early warning receiving object through a preset communication mode.
A transaction pre-warning device, comprising:
the first early warning unit is used for aiming at each transaction node except the last transaction node in the transaction chain, acquiring transaction response information of a downstream transaction node after the transaction node sends the transaction information to the downstream transaction node of the transaction node, judging whether the transaction response information meets a first early warning rule, and sending early warning information if the transaction response information meets the first early warning rule; the transaction response information comprises a result of whether the transaction response information is responded within a preset transaction duration;
a determining unit, configured to determine at least one target transaction node from the transaction nodes included in the transaction chain;
the second early warning unit is used for controlling the target transaction node to send a detection packet to an upstream transaction node of the target transaction node aiming at each target transaction node, judging whether the response behavior of the upstream transaction node on the detection packet meets a target second early warning rule or not, and sending early warning information if the response behavior meets the target second early warning rule; and the target second early warning rule is determined according to the configuration file.
A storage medium having stored thereon a set of instructions, wherein the set of instructions, when executed by a processor, implement a transaction pre-warning method as described above.
An electronic device, comprising:
a memory for storing at least one set of instructions;
and the processor is used for executing the instruction set stored in the memory, and realizing the transaction early warning method by executing the instruction set.
The application provides a transaction early warning method and device, a storage medium and electronic equipment, wherein after a transaction node sends transaction information to a downstream transaction node of the transaction node, transaction response information of the downstream transaction node is obtained, whether the transaction response information meets a first early warning rule is judged, if yes, early warning information is sent, forward transaction node monitoring from an upstream transaction node to the downstream transaction node is realized, and at least one target transaction node is determined from all transaction nodes included in a transaction chain; for each target transaction node, the target transaction node is controlled to send a detection packet to an upstream transaction node of the target transaction node, whether the response behavior of the upstream transaction node on the detection packet meets a target second early warning rule is judged, if yes, early warning information is sent, reverse transaction node monitoring between the downstream transaction node and the upstream transaction node is realized, and according to the scheme, abnormal transaction nodes are quickly determined and early warning is realized through bidirectional transaction node monitoring, so that production is quickly recovered, loss is reduced, and transaction continuity is guaranteed.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a transaction pre-warning method provided by the application;
FIG. 2 is a flow chart of a transaction pre-warning method according to another embodiment of the present application;
FIG. 3 is a flowchart of a transaction pre-warning method according to another embodiment of the present application;
FIG. 4 is a flowchart of a transaction pre-warning method according to another embodiment of the present application;
FIG. 5 is an exemplary diagram of a transaction pre-warning method provided by the present application;
FIG. 6 is a schematic diagram of a transaction pre-warning device according to the present application;
fig. 7 is a schematic structural diagram of an electronic device according to the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used for distinguishing between different devices, modules, or units and not for limiting the order or interdependence of the functions performed by these devices, modules, or units.
It should be noted that references to "one" or "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be interpreted as "one or more" unless the context clearly indicates otherwise.
The application is operational with numerous general purpose or special purpose computing device environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet devices, multiprocessor devices, distributed computing environments that include any of the above devices or devices, and the like.
Referring to fig. 1, the embodiment of the application further provides a transaction early-warning method, which specifically includes the following steps:
s101, aiming at each transaction node except the last transaction node in a transaction chain, after the transaction node sends transaction information to a downstream transaction node of the transaction node, acquiring transaction response information of the downstream transaction node, judging whether the transaction response information meets a first early warning rule, if so, executing S102, and if not, executing S103.
In this embodiment, the transaction chain of the complex transaction includes a plurality of transaction nodes, and the transaction chain includes, for example, transaction results of an application system, a deployment cluster, an AP server (i.e., an application server), a DB server (i.e., a database server), an infrastructure, and the like.
In this embodiment, in the transaction process, each transaction node in the transaction chain sequentially performs transactions, that is, the first transaction node sends transaction information to the next transaction node, the next transaction node sends transaction information to the next transaction node, and so on.
In this embodiment, for each transaction node except the last transaction node in the transaction chain, after the transaction node sends transaction information to a downstream transaction node of the transaction node, transaction response information of the downstream transaction node is obtained, where the downstream transaction node of the transaction node is the next transaction node of the transaction node in the transaction chain; the transaction response information includes a result of whether the transaction is responded within a preset transaction duration.
In this embodiment, for each transaction node except the last transaction node in the transaction chain, it is determined whether the transaction response information meets the first early warning rule, specifically, if the transaction response information includes a result of responding within a preset transaction duration, it is determined that the transaction response information meets the first early warning rule, and if the transaction response information includes a result of not responding within the preset transaction duration, it is determined that the transaction response information does not meet the first early warning rule.
Optionally, if the transaction response information includes a result of the response within the preset transaction duration, before determining whether the transaction response information meets the first early warning rule, the method further includes: the transaction response information is sent to the monitoring system so that the monitoring system can analyze and store the transaction response information.
The response result in the preset transaction duration is the response result of the downstream transaction node in the preset transaction duration.
It should be noted that, the response of the downstream transaction node in the preset transaction duration may be a response after the transaction information of the transaction node is received, or may be a response after the transaction information is received and the transaction is executed based on the transaction information.
In this embodiment, if the transaction response information satisfies the first early warning rule, step S102 is executed, and if the transaction response information does not satisfy the first early warning rule, step S103 is executed.
S102, sending out early warning information, and executing S103.
If the transaction response information meets the first early warning rule, early warning information is sent out, specifically, the early warning information is generated based on the transaction response information, and the generated early warning information is sent out.
In this embodiment, after the early warning information is sent, step S103 is performed.
S103, determining at least one target transaction node from all transaction nodes included in the transaction chain.
In this embodiment, at least one target transaction node is determined from each transaction node included in the transaction chain, and specifically, at least one target transaction node is determined from other transaction nodes included in the transaction chain except the first transaction node.
Referring to fig. 2, the process of determining at least one target transaction node from the transaction nodes included in the transaction chain specifically includes the following steps:
s201, a pre-configured configuration file is obtained, wherein the configuration file comprises at least one node identifier of a transaction node to be monitored reversely.
In this embodiment, a pre-configured configuration file is obtained, where the configuration file includes node identifiers of at least one transaction node to be monitored in a reverse direction.
Optionally, the configuration file may further include a monitoring period, a number of consecutive times, an early warning threshold (i.e., a preset duration and a preset duration threshold), and an early warning recipient.
The node identification of the transaction node to be monitored reversely is obtained according to the service analysis, and the influence on the service continuity is determined to be greater than a preset influence threshold value through the service analysis, or the influence on the transaction sensitive to the interrupt time (namely, the interrupt time is greater than the preset threshold value, namely, the transaction causing failure) is determined to be greater than the preset influence threshold value based on the influence on the service continuity, or the node identification of the transaction node to be monitored reversely is set for the transaction sensitive to the interrupt time.
S202, determining node identification of each transaction node included in the transaction chain and the transaction node to be monitored reversely as a target transaction node.
In this embodiment, the node identifier of each transaction node included in the transaction chain and the transaction node to be monitored in the reverse direction is determined as the target transaction node.
It should be noted that the first transaction node in the transaction chain is not the target transaction node.
That is, the process of determining, as the target transaction node, the node identification of each transaction node included in the transaction chain and the transaction node to be monitored in the reverse direction specifically includes: and determining the node identification of the transaction nodes to be monitored reversely from all the transaction nodes except the first transaction node in the transaction chain as a target transaction node.
And S104, aiming at each target transaction node, controlling the target transaction node to send a detection packet to an upstream transaction node of the target transaction node, judging whether the response behavior of the upstream transaction node on the detection packet meets a target second early warning rule, if so, executing S105, and if not, ending the current flow.
For each target transaction node, controlling the target transaction node to send a probe packet to an upstream transaction node of the target transaction node, wherein the upstream transaction node of the target transaction node is the last transaction node of the target transaction node in a transaction chain.
For each target transaction node, after sending the probe packet to an upstream transaction node of the target transaction node, the upstream transaction node performs a response action based on the received probe packet, specifically, sends response information to the target transaction node, or does not send response information.
In this embodiment, for each target transaction node, after sending the probe packet to the upstream transaction node of the target transaction node, it is determined whether the response behavior of the upstream transaction node with respect to the probe packet satisfies the target second early warning rule. The target second early warning rule is determined according to the configuration file.
In this embodiment, if the response behavior of the upstream transaction node with respect to the probe packet meets the target second early warning rule, step S105 is executed, and if the response behavior of the upstream transaction node with respect to the probe packet does not meet the target second early warning rule, the current flow is ended.
Referring to fig. 3, the process of determining the target second early warning rule according to the configuration file specifically includes the following steps:
s301, acquiring a pre-configured configuration file, wherein the configuration file comprises at least one node identifier of a transaction node to be monitored reversely and a second early warning rule corresponding to the node identifier.
In this embodiment, a pre-configured configuration file is obtained, where the configuration file includes at least one node identifier of a transaction node to be monitored reversely, and a second early warning rule corresponding to the node identifier.
The second early warning rule can be changed according to the requirement.
S302, acquiring a node identification of a target transaction node.
In this embodiment, a node identifier of a target transaction node is obtained.
S303, determining a second early warning rule corresponding to the node identification of the target transaction node from the second early warning rules included in the configuration file as a target second early warning rule.
In this embodiment, the second early warning rule corresponding to the node identifier of the target transaction node in each second early warning rule included in the configuration file is determined to be the target second early warning rule, specifically, the node identifier of the target transaction node is compared with the node identifier of the transaction node to be monitored reversely included in the configuration file, the node identifier consistent with the node identifier of the target transaction node in the node identifier of the transaction node to be monitored reversely included in the configuration file is determined to be the target identifier, and the second early warning rule corresponding to the target identifier in the configuration file is determined to be the target second early warning rule, that is, the target second early warning rule of the target transaction node is determined.
Referring to fig. 4, a process for determining whether the response behavior of the upstream transaction node with respect to the probe packet meets the target second early warning rule specifically includes the following steps:
s401, judging whether response information of the upstream transaction node about the detection packet is received within a preset time period, if not, executing S402, and if yes, executing S403.
In this embodiment, after receiving the probe packet sent by the target transaction node, the upstream transaction node sends response information to the target transaction node or does not send response information based on the probe packet.
In this embodiment, it is determined whether response information of the upstream transaction node about the probe packet is received within a preset time period, if no response information of the upstream transaction node about the probe packet is received within the preset time period, step S402 is executed, and if response information of the upstream transaction node about the probe packet is received within the preset time period, step S403 is executed.
S402, determining that the response behavior of the upstream transaction node about the detection packet meets a second early warning rule corresponding to the target node.
In this embodiment, if the response information of the upstream transaction node about the probe packet is not received within the preset duration, it is determined that the response behavior of the upstream transaction node about the probe packet meets the second early warning rule corresponding to the target node.
In this embodiment, if the response information of the upstream transaction node about the probe packet is received within the preset time period, but the response time does not meet the preset time threshold, it is determined that the response behavior of the upstream transaction node about the probe packet meets the second early warning rule corresponding to the target node.
S403, determining response time of the upstream transaction node, judging whether the response time meets a preset time threshold, if not, executing S402, and if so, executing S404.
In this embodiment, if the response information of the upstream transaction node about the probe packet is received within the preset duration, the response time of the upstream transaction node is determined, specifically, the response time of the upstream transaction node is determined based on the sending time of the probe packet sent to the upstream transaction node and the receiving time of the response information of the upstream transaction node about the probe packet received.
In this embodiment, it is determined whether the response time satisfies a preset time threshold, that is, whether the response time is smaller than the preset time threshold.
It should be noted that, the preset time threshold is smaller than the preset time period.
In this embodiment, if the response time does not meet the preset time threshold, that is, the response time is not less than the preset time threshold, step S402 is performed, and if the response time meets the preset time threshold, step S403 is performed.
Optionally, before determining the response time of the upstream transaction node mentioned in step 403, it may further include: and sending the response information to the monitoring system so that the monitoring system can analyze and store the response information.
S404, determining that the response behavior of the upstream transaction node about the detection packet does not meet the second early warning rule corresponding to the target node.
If the response information of the upstream transaction node about the detection packet is received within the preset time period and the response time of the upstream transaction node does not meet the preset time threshold, determining that the response behavior of the upstream transaction node about the detection packet does not meet the second early warning rule corresponding to the target node.
S105, sending out early warning information.
In this embodiment, if the response behavior of the upstream transaction node about the probe packet meets the target second early warning rule, early warning information is sent out, specifically, early warning information is generated based on the response behavior of the upstream transaction node about the probe packet, and early warning information is sent out.
In the method provided by the embodiment of the present application, the specific implementation process of step S102 and step S105 may include the following steps:
and sending early warning information to an early warning receiving object through a preset communication mode.
In this embodiment, a communication mode is preset, and the communication mode includes, but is not limited to, a short message and a mail.
In this embodiment, the pre-warning information is sent to the pre-warning receiving object through a preset communication mode.
The application mainly solves the problems that in normal production, different period parameters are configured and key elements are generated according to the conditions of financial IT system load conditions, transaction importance, service peaks and the like, the response time of the upstream is periodically and back-moved and detected by the transaction rear end to the front end (namely from the last transaction node to the first transaction node of a transaction chain) according to the established configuration parameters according to the configuration table, and in any intermediate link (namely the middle transaction node) of the transaction chain, two upstream and downstream nodes are monitored in a bidirectional manner, and the downstream can still normally send early warning under the condition that the upstream service resource is blocked or the resource is exhausted and cannot be responded. As the general transaction has the definition of the upstream and downstream response time and the overtime time, the reverse detection has positive practical significance for early warning of the complete sending as soon as possible, and the upstream and downstream links send early warning according to the preset threshold value, so that abnormal transaction links of the transaction chain can be found as soon as possible, and the service continuity is ensured.
According to the transaction early warning method provided by the embodiment of the application, after the transaction node sends the transaction information to the downstream transaction node of the transaction node, the transaction response information of the downstream transaction node is obtained, whether the transaction response information meets the first early warning rule is judged, if yes, the early warning information is sent, forward transaction node monitoring from the upstream transaction node to the downstream transaction node is realized, and at least one target transaction node is determined from all the transaction nodes included in the transaction chain; for each target transaction node, the target transaction node is controlled to send a detection packet to an upstream transaction node of the target transaction node, whether the response behavior of the upstream transaction node on the detection packet meets a target second early warning rule is judged, if yes, early warning information is sent, reverse transaction node monitoring between the downstream transaction node and the upstream transaction node is realized, and according to the scheme, abnormal transaction nodes are quickly determined and early warning is realized through bidirectional transaction node monitoring, so that production is quickly recovered, loss is reduced, and transaction continuity is guaranteed.
Referring to fig. 5, the specific implementation process of the transaction early warning method provided by the embodiment of the present application is illustrated as follows:
the upstream system (namely, the upstream transaction node) carries out forward monitoring transaction on the downstream system (namely, the downstream transaction node), specifically, for each transaction node except the last transaction node in a transaction chain, after the transaction node sends transaction information to the downstream transaction node of the transaction node, transaction response information of the downstream transaction node is obtained, whether the transaction response information meets a first early warning rule is judged, and if so, early warning information is sent; the transaction response information includes a result of whether the transaction is responded within a preset transaction duration.
The downstream system carries out reverse monitoring transaction on the upstream system, and specifically, at least one target transaction node is determined from all transaction nodes included in a transaction chain; for each target transaction node, controlling the target transaction node to send a detection packet to an upstream transaction node of the target transaction node, judging whether the response behavior of the upstream transaction node on the detection packet meets a target second early warning rule, and if so, sending early warning information;
in the forward monitoring transaction process of the upstream system to the downstream system, data is transmitted to the monitoring system, that is, transaction response information of the downstream system is sent to the monitoring system.
In the reverse monitoring transaction process of the downstream system to the upstream system, the detection data is transmitted to the monitoring system, that is, the response information of the upstream system is sent to the monitoring system.
Wherein the monitoring data includes, but is not limited to: whether the service state is available, the processing time of the link, the response time, the number of idle threads, the availability of resources and the like.
According to the transaction early warning method provided by the embodiment of the application, the downstream transaction node extracts the values of the service state, response time, processing time and the like of the upstream transaction node, and the values are matched with the existing forward direction (from the initiating end to the receiving end, namely the related monitoring parameters of the downstream transaction node extracted by the upstream transaction node), so that the fault finding time can be reduced, and the abnormal transaction node can be timely determined.
It should be noted that although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
Corresponding to the method shown in fig. 1, the embodiment of the application further provides a transaction early warning device, which is used for implementing the method shown in fig. 1, and the structural schematic diagram of the device is shown in fig. 6, and specifically includes:
the first early warning unit 601 is configured to, for each transaction node except for the last transaction node in the transaction chain, obtain transaction response information of a downstream transaction node after the transaction node sends the transaction information to the downstream transaction node of the transaction node, determine whether the transaction response information meets a first early warning rule, and if yes, send early warning information; the transaction response information comprises a result of whether the transaction response information is responded within a preset transaction duration;
a determining unit 602, configured to determine at least one target transaction node from the transaction nodes included in the transaction chain;
the second early warning unit 603 is configured to control, for each target transaction node, the target transaction node to send a detection packet to an upstream transaction node of the target transaction node, determine whether a response behavior of the upstream transaction node with respect to the detection packet meets a target second early warning rule, and if yes, send early warning information; and the target second early warning rule is determined according to the configuration file.
According to the transaction early warning device provided by the embodiment of the application, after the transaction node sends the transaction information to the downstream transaction node of the transaction node, the transaction response information of the downstream transaction node is obtained, whether the transaction response information meets the first early warning rule is judged, if yes, the early warning information is sent, forward transaction node monitoring from the upstream transaction node to the downstream transaction node is realized, and at least one target transaction node is determined from all the transaction nodes included in the transaction chain; for each target transaction node, the target transaction node is controlled to send a detection packet to an upstream transaction node of the target transaction node, whether the response behavior of the upstream transaction node on the detection packet meets a target second early warning rule is judged, if yes, early warning information is sent, reverse transaction node monitoring between the downstream transaction node and the upstream transaction node is realized, and according to the scheme, abnormal transaction nodes are quickly determined and early warning is realized through bidirectional transaction node monitoring, so that production is quickly recovered, loss is reduced, and transaction continuity is guaranteed.
In one embodiment of the present application, based on the foregoing scheme, the determining unit 602 is specifically configured to:
acquiring a pre-configured configuration file, wherein the configuration file comprises at least one node identifier of a transaction node to be monitored reversely;
and determining the node identification of each transaction node included in the transaction chain and the transaction node to be monitored reversely as a target transaction node.
In one embodiment of the present application, based on the foregoing solution, the second early warning unit 603 is specifically configured to, when determining whether the response behavior of the upstream transaction node with respect to the probe packet meets the second early warning rule corresponding to the target node:
judging whether response information of the upstream transaction node about the detection packet is received within a preset time length;
if the response information of the upstream transaction node is not received within the preset time length, determining whether the response behavior of the upstream transaction node about the detection packet meets a second early warning rule corresponding to the target node;
if the response information of the upstream transaction node is received within the preset time, determining the response time of the upstream transaction node, judging whether the response time meets a preset time threshold, and if not, determining whether the response behavior of the upstream transaction node about the detection packet meets a second early warning rule corresponding to the target node.
In one embodiment of the present application, based on the foregoing solution, the second pre-warning unit 603 is specifically configured to:
acquiring a pre-configured configuration file, wherein the configuration file comprises at least one node identifier of a transaction node to be monitored reversely and a second early warning rule corresponding to the node identifier;
acquiring a node identifier of the target transaction node;
and determining a second early warning rule corresponding to the node identifier of the target transaction node as a target second early warning rule in the second early warning rules included in the configuration file.
In one embodiment of the present application, based on the foregoing scheme, it may be further configured to:
and the first sending unit is used for sending the response information to the monitoring system.
In one embodiment of the present application, based on the foregoing scheme, it may be further configured to:
and the second sending unit is used for sending the transaction response information to the monitoring system.
In one embodiment of the present application, based on the foregoing scheme, the first early warning unit 601 is specifically configured to:
and sending early warning information to an early warning receiving object through a preset communication mode.
The second early warning unit 603 is specifically configured to, when sending early warning information:
and sending early warning information to an early warning receiving object through a preset communication mode.
The embodiment of the application also provides a storage medium, wherein the storage medium stores an instruction set, and the transaction early warning method disclosed in any embodiment is executed when the instruction set runs.
The embodiment of the application also provides an electronic device, the structure of which is shown in fig. 7, specifically including a memory 701 for storing at least one group of instruction sets; a processor 702 for executing the instruction set stored in the memory, and implementing the transaction pre-warning method as disclosed in any of the embodiments above by executing the instruction set.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.
While several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
The above description is only illustrative of the presently disclosed preferred embodiments and of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be made by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as the above-described features, are mutually replaced with the technical features having similar functions disclosed in the disclosure (but not limited to the disclosure).

Claims (10)

1. A transaction pre-warning method, comprising:
for each transaction node except the last transaction node in the transaction chain, after the transaction node sends transaction information to a downstream transaction node of the transaction node, acquiring transaction response information of the downstream transaction node, judging whether the transaction response information meets a first early warning rule, and if so, sending early warning information; the transaction response information comprises a result of whether the transaction response information is responded within a preset transaction duration;
determining at least one target transaction node from the transaction nodes included in the transaction chain;
for each target transaction node, controlling the target transaction node to send a detection packet to an upstream transaction node of the target transaction node, judging whether the response behavior of the upstream transaction node on the detection packet meets a target second early warning rule, and if so, sending early warning information; and the target second early warning rule is determined according to the configuration file.
2. The method of claim 1, wherein the determining at least one target transaction node from each transaction node included in the transaction chain comprises:
acquiring a pre-configured configuration file, wherein the configuration file comprises at least one node identifier of a transaction node to be monitored reversely;
and determining the node identification of each transaction node included in the transaction chain and the transaction node to be monitored reversely as a target transaction node.
3. The method according to claim 1, wherein the determining whether the response behavior of the upstream transaction node with respect to the probe packet satisfies the second pre-warning rule corresponding to the target node comprises:
judging whether response information of the upstream transaction node about the detection packet is received within a preset time length;
if the response information of the upstream transaction node is not received within the preset time length, determining whether the response behavior of the upstream transaction node about the detection packet meets a second early warning rule corresponding to the target node;
if the response information of the upstream transaction node is received within the preset time, determining the response time of the upstream transaction node, judging whether the response time meets a preset time threshold, and if not, determining whether the response behavior of the upstream transaction node about the detection packet meets a second early warning rule corresponding to the target node.
4. A method according to claim 1 or 3, wherein the target second pre-warning rule is determined from a profile comprising:
acquiring a pre-configured configuration file, wherein the configuration file comprises at least one node identifier of a transaction node to be monitored reversely and a second early warning rule corresponding to the node identifier;
acquiring a node identifier of the target transaction node;
and determining a second early warning rule corresponding to the node identifier of the target transaction node as a target second early warning rule in the second early warning rules included in the configuration file.
5. The method of claim 4, wherein prior to determining the response time of the upstream transaction node, further comprising:
and sending the response information to a monitoring system.
6. The method of claim 1, wherein if the transaction response message includes a result of a response within a preset transaction duration, before determining whether the transaction response message satisfies a first pre-warning rule, further comprising:
and sending the transaction response information to a monitoring system.
7. The method of claim 1, wherein the issuing the pre-warning message comprises:
and sending early warning information to an early warning receiving object through a preset communication mode.
8. A transaction pre-warning device, comprising:
the first early warning unit is used for aiming at each transaction node except the last transaction node in the transaction chain, acquiring transaction response information of a downstream transaction node after the transaction node sends the transaction information to the downstream transaction node of the transaction node, judging whether the transaction response information meets a first early warning rule, and sending early warning information if the transaction response information meets the first early warning rule; the transaction response information comprises a result of whether the transaction response information is responded within a preset transaction duration;
a determining unit, configured to determine at least one target transaction node from the transaction nodes included in the transaction chain;
the second early warning unit is used for controlling the target transaction node to send a detection packet to an upstream transaction node of the target transaction node aiming at each target transaction node, judging whether the response behavior of the upstream transaction node on the detection packet meets a target second early warning rule or not, and sending early warning information if the response behavior meets the target second early warning rule; and the target second early warning rule is determined according to the configuration file.
9. A storage medium having stored thereon a set of instructions, wherein the set of instructions, when executed by a processor, implement the transaction pre-warning method of any one of claims 1-7.
10. An electronic device, comprising:
a memory for storing at least one set of instructions;
a processor for executing the instruction set stored in the memory, and implementing the transaction pre-warning method according to any one of claims 1-7 by executing the instruction set.
CN202311242162.1A 2023-09-25 2023-09-25 Transaction early warning method and device, storage medium and electronic equipment Pending CN117237112A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311242162.1A CN117237112A (en) 2023-09-25 2023-09-25 Transaction early warning method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311242162.1A CN117237112A (en) 2023-09-25 2023-09-25 Transaction early warning method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117237112A true CN117237112A (en) 2023-12-15

Family

ID=89085809

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311242162.1A Pending CN117237112A (en) 2023-09-25 2023-09-25 Transaction early warning method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117237112A (en)

Similar Documents

Publication Publication Date Title
CN109002031B (en) Method applied to equipment fault diagnosis and intelligent early warning of monitoring system
CN110581852A (en) Efficient mimicry defense system and method
EP2800024B1 (en) System and methods for identifying applications in mobile networks
CN110932892B (en) Block chain based information early warning method and device, related nodes and storage medium
CN107948063B (en) Method for establishing aggregation link and access equipment
CN110457176A (en) For the monitoring method of distributed system, device, storage medium and electronic equipment
CN114357495B (en) Prediction machine under-chain aggregation method, device, equipment and medium based on block chain
CN104243192B (en) Fault handling method and system
US9325629B2 (en) Data processing apparatus and program
CN114168071A (en) Distributed cluster capacity expansion method, distributed cluster capacity expansion device and medium
WO2021258696A1 (en) Communication data processing method and apparatus, computer device and storage medium
CN110198228A (en) A kind of failure monitoring method, device, server and storage medium
CN117237112A (en) Transaction early warning method and device, storage medium and electronic equipment
CN111835578B (en) Information transmission management method, information transmission management apparatus, and readable storage medium
CN103414591A (en) Method and system for fast converging when port failure is recovered
CN111367934A (en) Data consistency checking method, device, server and medium
CN109219105B (en) Route switching method and route switching system
CN114070799B (en) Processing method and processing device of priority pause frame and target network equipment
CN114090293A (en) Service providing method and electronic equipment
CN114143330A (en) Configuration method, device and system of time server
CN112134760A (en) Link state monitoring method, device, equipment and computer readable storage medium
CN116016265B (en) Message all-link monitoring method, device, system, equipment and storage medium
CN111694705A (en) Monitoring method, device, equipment and computer readable storage medium
KR102639786B1 (en) System and method for non-disruptive transmitting log using message queue
CN104104553A (en) Network element detection method and device

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