CN109697110B - Transaction coordination processing system, method and device and electronic equipment - Google Patents
Transaction coordination processing system, method and device and electronic equipment Download PDFInfo
- Publication number
- CN109697110B CN109697110B CN201710983195.XA CN201710983195A CN109697110B CN 109697110 B CN109697110 B CN 109697110B CN 201710983195 A CN201710983195 A CN 201710983195A CN 109697110 B CN109697110 B CN 109697110B
- Authority
- CN
- China
- Prior art keywords
- node
- transaction coordinator
- coordinator node
- transaction
- backup
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/466—Transaction processing
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1464—Management of the backup or restore process for networked environments
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Quality & Reliability (AREA)
- Hardware Redundancy (AREA)
Abstract
The embodiment of the invention provides a transaction coordination processing system, a method, a device and electronic equipment, wherein the system comprises: the system comprises a main machine room, a standby machine room and a node control module, wherein a first transaction coordinator node and a third transaction coordinator node are arranged in the main machine room, a second transaction coordinator node is arranged in the standby machine room, the first transaction coordinator node, the second transaction coordinator node and the third transaction coordinator node are sequentially a main node and a backup node, and when a current transaction coordinator node in a transaction coordination processing state fails or network connection between the current transaction coordinator node and the backup node is interrupted, the node control module controls the second transaction coordinator node to execute the transaction coordination processing instead of the current transaction coordinator node according to backup log data of the second transaction coordinator node. The scheme of the embodiment of the invention can ensure that the system can continuously work when the standby machine room fails or the network connection between the main machine room and the standby machine room is disconnected, thereby ensuring the availability of the system.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a system, a method, a device, and an electronic device for transaction coordination processing.
Background
A distributed transaction system typically includes several roles, namely a client, a resource manager, and a transaction coordinator. The transaction coordinator is responsible for coordinating all related processing flows of a distributed transaction from beginning to completion and is the core role of the system. In order to enhance the system availability, the same-city disaster recovery is realized aiming at key application requirements in response to unavailable machine room (power failure, optical fiber digging and the like) and regional disasters (natural disasters, terrorist attacks and the like).
In the prior art, a scheme for distributed transaction same-city disaster recovery is to deploy services in two physical machine rooms in the same city, and provide services in the two machine rooms simultaneously, and a transaction coordinator is also deployed in the two physical machine rooms, so that the same-city disaster recovery is achieved. As shown in fig. 1, in the prior art, two transaction coordinators, a master and a slave, are respectively deployed in two rooms in the same city. When the nodes A and B of the main and standby transaction coordinators can normally access, the service application can only access the node A to invoke the service, namely, all transactions are initiated from the node A of the main computer room, and the node B of the standby computer room only makes backup. When the node B is unavailable, the node A solely provides service, the log data generated in the period of time only has one copy of data on the node A, and the node B does not have backup. After the node B is available, the node A synchronizes the incremental data thereof to the node B, and then the node A continues to provide services normally in the active-standby mode. When the node A is unavailable, the main and standby nodes need to be manually switched, so that the split brain problem is prevented. When the node B is switched to the main node and provides service independently, the log data generated in the period of time only has one copy of data on the node B, and A has no backup.
However, the prior art solutions, in some cases, may render the system unusable:
for example, when the network between node a and node B in the main and standby rooms is disconnected and node B is unavailable to node a, node a provides services by itself and node B has no backup. If the node a goes down before the network between the node a and the node B is restored to normal, the system cannot provide the service normally. At this time, node B, although accessible, cannot provide service because of the lack of data in node B during which node a alone provides service. Although node B is normal, the network is normal, but it must wait for node a to recover before continuing to provide service.
For another example, node a is down, and the recovery process usually requires manual intervention, and the service recovery time is long, which reduces the availability of the system.
For another example, when a network connection between node a and node B is in trouble or one node goes down, the other node alone provides service, and if the host hard disk of the node is damaged, data is permanently lost. To prevent data loss, it is often necessary to use a disk array, which increases hardware costs and reduces IO speed.
Disclosure of Invention
The invention provides a transaction coordination processing system, a method, a device and electronic equipment, which can enable the system to continuously work when a standby machine room fails or network connection between the standby machine room and the main machine room is disconnected, and ensure the availability of the system.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, a transaction coordination processing system is provided, which includes: the system comprises a main machine room, a standby machine room and a node control module, wherein a first transaction coordinator node and a third transaction coordinator node are arranged in the main machine room, a second transaction coordinator node is arranged in the standby machine room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, the first transaction coordinator node is a backup node of the third transaction coordinator node, and the backup node is used for backing up log data of a node serving as a backup object of the backup node in a transaction coordination processing state,
the node control module is configured to, when a first transaction coordinator node in a transaction coordination processing state fails or a network connection between the first transaction coordinator node and the second transaction coordinator node is interrupted, control the second transaction coordinator node to perform transaction coordination processing instead of the first transaction coordinator node according to the backup log data of the second transaction coordinator node.
In a second aspect, a transaction coordination processing method is provided, where the processing method involves a main room and a standby room, a first transaction coordinator node and a third transaction coordinator node are disposed in the main room, a second transaction coordinator node is disposed in the standby room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is configured to backup log data of a node serving as a backup object of the backup node in a transaction coordination processing state, and the method includes:
when a first transaction coordinator node in a transaction coordination processing state fails or network connection between the first transaction coordinator node and a second transaction coordinator node is interrupted, the second transaction coordinator node replaces the first transaction coordinator node to execute transaction coordination processing according to the backup log data of the second transaction coordinator node.
In a third aspect, another transaction coordination processing method is provided, where the processing method involves a main room and a standby room, a first transaction coordinator node and a third transaction coordinator node are disposed in the main room, a second transaction coordinator node is disposed in the standby room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is configured to backup log data of a node serving as a backup object of the backup node in a transaction coordination processing state, and the method includes:
and when a second transaction coordinator node in a transaction coordination processing state fails or network connection between the second transaction coordinator node and a third transaction coordinator node is interrupted, the third transaction coordinator node replaces the second transaction coordinator node to execute transaction coordination processing according to the backup log data.
In a fourth aspect, another transaction coordination processing method is provided, where the processing method involves a primary room and a standby room, a first transaction coordinator node and a third transaction coordinator node are disposed in the primary room, a second transaction coordinator node is disposed in the standby room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is configured to backup log data of a node serving as a backup object of the backup node in a transaction coordination processing state, and the method includes:
and when a third transaction coordinator node in a transaction coordination processing state fails or network connection between the third transaction coordinator node and the first transaction coordinator node is interrupted, the first transaction coordinator node replaces the third transaction coordinator node to execute transaction coordination processing according to the backup log data of the first transaction coordinator node.
In a fifth aspect, another transaction coordination processing method is provided, where the processing method involves a main room and a standby room, a first transaction coordinator node is disposed in the main room, a second transaction coordinator node and a third transaction coordinator node are disposed in the standby room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is configured to backup log data of a node serving as a backup object of the backup node in a transaction coordination processing state, and the method includes:
when a first transaction coordinator node in a transaction coordination processing state fails or network connection between the first transaction coordinator node and a second transaction coordinator node is interrupted, the second transaction coordinator node performs transaction coordination processing instead of the first transaction coordinator node according to the backup log data.
In a sixth aspect, a transaction coordination processing device is provided, where the processing device relates to a main machine room and a standby machine room, and the processing device includes: a first transaction coordinator node and a third transaction coordinator node that are disposed in the main computer room, and a second transaction coordinator node that is disposed in the standby computer room, where the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is configured to backup log data of a node that is a backup object of the backup node in a transaction coordination state, and the processing apparatus further includes:
and the first node control module is used for controlling the second transaction coordinator node to replace the first transaction coordinator node to execute transaction coordination processing according to the backup log data when the first transaction coordinator node in the transaction coordination processing state fails or the network connection between the first transaction coordinator node and the second transaction coordinator node is interrupted.
In a seventh aspect, there is provided another transaction coordination processing apparatus, where the processing apparatus involves a primary machine room and a standby machine room, the processing apparatus includes: a first transaction coordinator node and a third transaction coordinator node which are arranged in the main machine room, and a second transaction coordinator node which is arranged in the standby machine room, wherein the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, and the backup node is used for backing up log data of a node which is a backup object of the backup node in a transaction coordination processing state, and the processing apparatus further includes:
and the second node control module is used for controlling the third transaction coordinator node to replace the second transaction coordinator node to execute transaction coordination processing according to the backup log data when the second transaction coordinator node in the transaction coordination processing state fails or the network connection between the second transaction coordinator node and the third transaction coordinator node is interrupted.
In an eighth aspect, another transaction coordination processing apparatus is provided, where the processing apparatus relates to a main machine room and a standby machine room, and the processing apparatus includes: a first transaction coordinator node and a third transaction coordinator node which are arranged in the main machine room, and a second transaction coordinator node which is arranged in the standby machine room, wherein the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, and the backup node is used for backing up log data of a node which is a backup object of the backup node in a transaction coordination processing state, and the processing apparatus further includes:
and the third node control module is used for controlling the first transaction coordinator node to replace the third transaction coordinator node to execute transaction coordination processing according to the backup log data when the third transaction coordinator node in the transaction coordination processing state fails or the network connection between the third transaction coordinator node and the first transaction coordinator node is interrupted.
In a ninth aspect, there is provided another transaction coordination processing device, the processing device involving a main machine room and a standby machine room, the processing device comprising: the processing apparatus further includes a first transaction coordinator node disposed in the main machine room, and a second transaction coordinator node and a third transaction coordinator node disposed in the standby machine room, where the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is configured to backup log data of a node serving as a backup object of the backup node in a transaction coordination processing state, and the processing apparatus further includes:
and the fourth node control module is used for controlling the second transaction coordinator node to replace the first transaction coordinator node to execute transaction coordination processing according to the backup log data when the first transaction coordinator node in the transaction coordination processing state fails or the network connection between the first transaction coordinator node and the second transaction coordinator node is interrupted.
In a tenth aspect, there is provided an electronic device comprising:
a memory for storing a program;
a processor, coupled to the memory, configured to execute the program, where the program relates to a main room and a standby room, a first transaction coordinator node and a third transaction coordinator node are disposed in the main room, a second transaction coordinator node is disposed in the standby room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is configured to backup log data of a node serving as a backup target of the backup node in a transaction coordination processing state; for:
when a first transaction coordinator node in a transaction coordination processing state fails or network connection between the first transaction coordinator node and a second transaction coordinator node is interrupted, the second transaction coordinator node performs transaction coordination processing instead of the first transaction coordinator node according to the backup log data.
In an eleventh aspect, another electronic device is provided, including:
a memory for storing a program;
a processor, coupled to the memory, configured to execute the program, where the program involves a main room and a standby room, a first transaction coordinator node and a third transaction coordinator node are disposed in the main room, a second transaction coordinator node is disposed in the standby room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is configured to backup log data of a node serving as a backup target of the backup node in a transaction coordination processing state; for:
and when a second transaction coordinator node in a transaction coordination processing state fails or network connection between the second transaction coordinator node and a third transaction coordinator node is interrupted, the third transaction coordinator node replaces the second transaction coordinator node to execute transaction coordination processing according to the backup log data of the third transaction coordinator node.
In a twelfth aspect, another electronic device is provided, including:
a memory for storing a program;
a processor, coupled to the memory, configured to execute the program, where the program involves a main room and a standby room, a first transaction coordinator node and a third transaction coordinator node are disposed in the main room, a second transaction coordinator node is disposed in the standby room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is configured to backup log data of a node serving as a backup target of the backup node in a transaction coordination processing state; for:
and when a third transaction coordinator node in a transaction coordination processing state fails or network connection between the third transaction coordinator node and the first transaction coordinator node is interrupted, the first transaction coordinator node replaces the third transaction coordinator node to execute transaction coordination processing according to the backup log data of the first transaction coordinator node.
In a thirteenth aspect, another electronic device is provided, including:
a memory for storing a program;
a processor, coupled to the memory, configured to execute the program, where the program involves a main room and a standby room, a first transaction coordinator node is disposed in the main room, a second transaction coordinator node and a third transaction coordinator node are disposed in the standby room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is configured to backup log data of a node serving as a backup target of the backup node in a transaction coordination processing state; for:
when a first transaction coordinator node in a transaction coordination processing state fails or network connection between the first transaction coordinator node and a second transaction coordinator node is interrupted, the second transaction coordinator node performs transaction coordination processing instead of the first transaction coordinator node according to the backup log data.
The invention provides a transaction coordination processing system, a method, a device and an electronic device, wherein a first transaction coordinator node and a third transaction coordinator node are arranged in a main machine room, a second transaction coordinator node is arranged in a standby machine room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator, the first transaction coordinator node is a backup node of the third transaction coordinator node, and the backup node is used for backing up log data of a node as a backup object in a transaction coordination processing state. When the current transaction coordinator node in the transaction coordination processing state fails or the network connection between the current transaction coordinator node and the backup node is interrupted, the backup node replaces the current transaction coordinator node to execute the transaction coordination processing according to the backup log data, so that the availability of the system is ensured.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a system architecture diagram of a prior art transaction coordination process;
FIG. 2a is a diagram of a first transaction coordination processing system according to an embodiment of the present invention;
FIG. 2b is a schematic diagram of transaction coordination processing logic in an embodiment of the invention;
FIG. 3 is a diagram of a second transaction coordination processing system according to an embodiment of the present invention;
FIG. 4 is a flowchart of a transaction coordination processing method according to an embodiment of the present invention;
FIG. 5 is a flowchart of a transaction coordination processing method according to an embodiment of the present invention;
FIG. 6 is a flow chart of a transaction coordination processing method according to the embodiment of the present invention;
FIG. 7 is a first block diagram of a transaction coordination processing apparatus according to an embodiment of the present invention;
FIG. 8 is a block diagram of a transaction coordination processing device according to an embodiment of the present invention;
FIG. 9 is a block diagram of a transaction coordination processing device according to an embodiment of the present invention;
FIG. 10 is a block diagram of a transaction coordination processing device according to a fourth embodiment of the present invention;
FIG. 11 is a first schematic structural diagram of an electronic device according to an embodiment of the present invention;
FIG. 12 is a first schematic structural diagram of an electronic device according to an embodiment of the present invention;
FIG. 13 is a third schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 14 is a fourth schematic structural diagram of the electronic device according to the embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In the prior art, a master transaction coordinator node and a backup transaction coordinator node are sequentially arranged in a master machine room and a backup machine room, the master node provides service for business application, and a backup node in the backup machine room is only used for backing up log data of the master node. When the backup node fails or the network connection between the main node and the backup node is interrupted, only one copy of data is stored in the generated log data. If the primary node fails before the backup node is restored to be usable, even if the backup node can provide a service to the business application, the service cannot be provided in reality because there is no log data generated when the primary node provides the service alone. Similarly, when the main node fails, the backup computer room is manually switched to serve as the main computer room, the backup node continues to provide service for the service application, and only one copy of data exists on the backup node in the log data generated later. When the backup node fails, even if the failure of the primary node is eliminated at this time, recovery is available, but since there is no log data generated when the backup node provides the service alone, the service cannot be provided really.
At the very least, the prior art is poor in usability because when one node fails or a network connection between two nodes is broken and only one node actually provides service to a business application, since data generated during service provision only has one copy of data on the current node and no backup data on any other node, once the current node goes down, the service can be stopped, and the system cannot actually provide service to the business application until the current node is available again.
The scheme improves the defect that in the prior art, under some conditions, due to the fact that the log data generated by the nodes which really provide services are only stored in the nodes of the nodes, and no backup is provided for any other node, once the current node goes down, the whole system can only be enabled to really provide services for business application after the current node is recovered and available, and the core idea is that on the basis of continuing to use the existing transaction coordination processing system, a transaction coordinator node is added in a main computer room in the processing system architecture shown in figure 1, and the node and the other two nodes sequentially form a ring topology structure with each other as main and standby nodes. When one node fails or the network connection between the other node or two nodes is interrupted, at least one other node can back up the generated log data to the backup node when the other node actually provides service for the service application. When the node providing the service is delayed again, the backup node can also continue to provide the service temporarily, the condition that the system is unavailable is temporarily relieved, and the time is won for other nodes to recover the availability.
Based on the above improved idea, as shown in fig. 2a, a structure diagram of a transaction coordination processing system provided by an embodiment of the present invention is shown. The system comprises a main machine room, a standby machine room and a node control module; the main machine room and the standby machine room can be respectively arranged in two different places of the same city. The method comprises the steps that a main machine room and a standby machine room are respectively provided with a service application (in a distributed transaction model, the service application comprises a client, a resource manager and a transaction coordinator, the client and the resource manager are arranged on a service application side, the transaction coordinator is independently arranged, the service application can call the service of the transaction coordinator to realize a distributed transaction process), a first transaction coordinator node (node A) and a third transaction coordinator node (node C) are arranged in the main machine room, a second transaction coordinator node (node B) is arranged in the standby machine room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, so that an annular backup relation topological structure is formed.
The backup node is used for backing up log data of the node which is a backup object of the backup node in a transaction coordination processing state. For example, the node B not only contains the log data of the node but also backs up the log data stored in the node a; the node C not only contains the log data of the node, but also backups the log data stored with the node B; the node A not only contains the log data of the node, but also backups the log data stored with the node C.
The working state of each node in each computer room can be controlled and adjusted through a node control module, which can be set separately from the main computer room or the standby computer room, or set in the main computer room or the standby computer room, or can be an independent module virtualized by a function unit dispersedly deployed on each node after abstraction.
As shown in fig. 2b, a logic diagram of the transaction coordination process provided in the embodiment of the present invention may be applied to the system structure shown in fig. 2 a. As shown in fig. 2B, when any node in the system, for example, node a goes down, or any node in node a and node B or node C goes down, the node control module controls at least one available node in node B or node C to actually provide service to the service application. When the node B provides real service to the service application, it should be ensured that the network connection between the node B and the backup node C is normal, and the node C can work normally; when the node C provides real service to the service application, it should be ensured that the network connection between the node C and its backup node a is normal, and the node a can work normally.
It should be noted that when a transaction coordinator node goes down, its connection to other networks is necessarily interrupted. However, if the network connection between one transaction coordinator node and other nodes is interrupted, the transaction coordinator node is not necessarily down, and the node itself can still work normally only because of the network problem, so that the service can be provided for the service application. When the network connection between two machine rooms is interrupted, the network connection may be interrupted due to a network problem, but the machine rooms can still work normally, or a certain machine room fails and is broken down integrally.
In fig. 2a, the first transaction coordinator node, the second transaction coordinator node, the third transaction coordinator node and the node control module in each machine room form a complete transaction coordination processing apparatus, which is configured to execute the transaction coordination processing logic shown in fig. 2 b.
The technical solution of the present application is further illustrated by a plurality of examples.
Example one
Based on the above concept of the solution of setting a ring backup topology, as shown in fig. 3, it is a second structure diagram of the transaction coordination processing system shown in the embodiment of the present invention, and the second structure diagram includes:
the system comprises a main machine room 310, a standby machine room 320 and a node control module 330, wherein the main machine room 310 is provided with a first transaction coordinator node and a third transaction coordinator node, the standby machine room is provided with a second transaction coordinator node, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, the first transaction coordinator node is a backup node of the third transaction coordinator node, wherein the backup node is used for backing up log data of a node as a backup object in a transaction coordination processing state,
the node control module 330 is configured to, when a failure occurs in the first transaction coordinator node in the transaction coordination processing state or a network connection between the first transaction coordinator node and the second transaction coordinator node is interrupted, control the second transaction coordinator node to perform transaction coordination processing instead of the first transaction coordinator node according to the backup log data of the second transaction coordinator node.
Specifically, the first transaction coordinator node may be the node a in fig. 2a or fig. 2B, correspondingly, the second transaction coordinator node is the node B, the third transaction coordinator node is the node C, and the node control module 330 is the node control module. The processing of the three nodes can be seen from the above.
In the transaction coordination processing system of the embodiment of the invention, when the first transaction coordinator node in the transaction coordination processing state fails or the network connection between the first transaction coordinator node and the second transaction coordinator node is interrupted, the node control module controls the second transaction coordinator node to execute the transaction coordination processing instead of the first transaction coordinator node according to the backup log data of the second transaction coordinator node, so that the availability of the system is ensured.
Example two
Based on the above idea of the solution of setting the ring backup topology, as shown in fig. 4, it is a flowchart of a first transaction coordination processing method according to an embodiment of the present invention, and an execution subject of the method may be the transaction coordination processing apparatus shown in fig. 2 a. The transaction coordination processing method relates to a main machine room and a standby machine room, wherein a first transaction coordinator node and a third transaction coordinator node are arranged in the main machine room, a second transaction coordinator node is arranged in the standby machine room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, wherein the backup node is used for backing up log data of a node serving as a backup object of the backup node in a transaction coordination processing state, and as shown in fig. 4, the transaction coordination processing method comprises the following steps:
s410, when the first transaction coordinator node in the transaction coordination processing state fails or the network connection between the first transaction coordinator node and the second transaction coordinator node is interrupted, the second transaction coordinator node performs the transaction coordination processing instead of the first transaction coordinator node according to the backup log data.
As shown in fig. 2B, when the two computer room networks are connected normally and all the transaction coordinator nodes are working normally, the node a, the node B, and the node C can provide services to the service application at the same time. At this time, a node providing a real service to the service application can be flexibly selected by setting a weight of a processing traffic of each node. For example, the traffic weight value of node a is set to 100, the traffic weight value of node B is set to 100, and the traffic weight value of node C is set to 0.
Because the traffic weight value of the node C is 0, the traffic weight values of the node a and the node B are both 100, all the nodes C have no actual traffic, and the node a and the node B respectively bear 50% of the traffic. The purpose of this is to have both rooms with the full amount of data, i.e. transactions initiated through node a have all backups at node B, and transactions initiated through node B have all backups at node C. Node B has the full amount of data and node a + C also has the full amount of data.
It should be noted here that the weighted traffic of each node has practical significance only when two or more nodes exist in the system to provide services to the service application. In this embodiment, the condition that a node can provide service to a service application is that the node and its backup node can both work normally (no fault occurs), and the network connection between the node and its backup node is normal (the backup node can normally backup log data generated on the node). If only one node in the system can provide service to the business application, the node control module will only use the node as a transaction coordinator node for performing transaction coordination processing.
When the node a in the transaction coordination processing state fails or the network connection between the node a and the node B is interrupted, it may be determined that the current node a can no longer provide services to the service application. The backup node B as the node a may continue to perform the transaction coordination process in place of the node a according to the log data of the node a backed up on its node. The business application may implement the distributed transaction operation by invoking the service of the node B.
According to the above-mentioned setting of the traffic weight value of each node, if node B and node C can both provide services to the service application, it is decided by their weighted traffic values who really provides the services. Obviously, since the traffic weight value of node B is 100 and the traffic weight value of node C is 0, node B provides all services to the service, and node C is only used as a backup node.
Further, a fourth transaction coordinator node can be further included in the standby machine room. If the third transaction coordinator node fails or the network connection between the second transaction coordinator node and the third transaction coordinator node is disconnected, a fourth transaction coordinator node located in the standby machine room can be started to serve as a backup node of the second transaction coordinator node, and the second transaction coordinator node replaces the first transaction coordinator node to execute transaction coordination processing according to the backup log data of the second transaction coordinator node.
Specifically, if the node B cannot provide service to the service application at the same time that the node a cannot provide service to the service application, which is caused by a network connection interruption between the node B and the node C, or a failure of the node C (which may be caused by a failure or a damage of the main computer room as a whole), a transaction coordinator node (a fourth transaction coordinator node) may be added in the standby computer room as another backup node of the node B, so as to ensure that the node B can provide service to the service application.
In an actual application scenario, the added fourth transaction coordinator node may also serve as a part of the transaction coordination processing apparatus, and may serve as a cold node (which is started only in a characteristic case), and is only used to backup the log data of the node B, and does not provide services to the service application.
When the node a, the node B and the node C in the main and standby rooms are unable to provide service for the service application, but the node B still can work normally (no downtime occurs), the standby room can be switched to the main room at this time, and a fourth transaction coordinator node in the original standby room is started as a backup node of the second transaction coordinator node (node B), at this time, the node B has an available backup node, and can continue to perform transaction coordination processing instead of the node a according to the backup log data (log data of the node a) of the node B. The business application may implement the distributed transaction operation by invoking a service of the node B.
And when the host computer room is available, switching the original host computer room to the current host computer room, closing the fourth transaction coordinator node, and entering a cold equipment state.
Further, if the first transaction coordinator node works normally and the network connection with the third transaction coordinator node working normally is normal; meanwhile, when the second transaction coordinator node fails or the network connection between the second transaction coordinator node and the third transaction coordinator node is disconnected, the third transaction coordinator node replaces the second transaction coordinator node to execute transaction coordination processing according to the backup log data of the third transaction coordinator node.
In particular, if only node C can provide service to the traffic application (possibly due to an overall failure or destruction of the standby equipment room) while node a cannot provide service to the traffic application as described above. At this time, in terms of data backup relationship, the backup node B, which is the node a, in principle, continues to perform the transaction coordination process in place of the node a according to the log data of the node a backed up on its node. However, because the node B is unavailable, the backup node C of the node B continues to perform the transaction coordination process instead of the node B according to the log data of the node B backed up on the node thereof according to the data backup relationship. The node business application may implement the distributed transaction operation by invoking the service of node C.
It should be noted that, in an actual application scenario, if the node a cannot provide service for the service application because the network connection between the node a and the node B is interrupted (but the node a still can work normally), after the network connection is interrupted, the node control module may control the node a to continue to perform the incomplete transactions, and continue to perform the new distributed transactions by the node B (instead of the node a performing the actual content of the transaction coordination process), or control the node B to continue to perform the incomplete transactions. However, if node B fails to execute the outstanding transactions and fails, and node C does not back up the log data of the outstanding transactions on the original node A, the entire system will be unable to provide the available services. To deal with this problem, the only solution is to control node a to continue completing the transaction operations that are not completed on that node.
Of course, if the node B has already performed the transaction coordination processing flow instead of the node a and cannot provide service to the service application after starting to perform the new transaction operation received by its own node, then the node C may also back up the log data at this time, so that the node C may still be considered to perform the transaction coordination processing instead of the node B according to the backed-up log data.
In the transaction coordination processing method of the embodiment of the present invention, a first transaction coordinator node and a third transaction coordinator node are set in a main machine room, a second transaction coordinator node is set in a standby machine room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is used to backup log data of a node as a backup object in a transaction coordination processing state. When the first transaction coordinator node in the transaction coordination processing state fails or the network connection between the first transaction coordinator node and the second transaction coordinator node is interrupted, the second transaction coordinator node replaces the first transaction coordinator node to execute the transaction coordination processing according to the backup log data, so that the availability of the system is ensured.
Further, if the second transaction coordinator node cannot provide services for the business application, the fourth transaction coordinator node can be added in the standby machine room as a backup node of the second transaction coordinator node to realize the possibility of providing services for the business application, or the third transaction coordinator node replaces the second transaction coordinator node to provide services for the business application, so that the availability of the system is improved.
EXAMPLE III
Based on the above idea of the solution of setting the ring backup topology, as shown in fig. 5, it is a flowchart of a transaction coordination processing method shown in the embodiment of the present invention, and an execution subject of the method may be the transaction coordination processing apparatus shown in fig. 2 a. The transaction coordination processing method relates to a main machine room and a standby machine room, wherein a first transaction coordinator node and a third transaction coordinator node are arranged in the main machine room, a second transaction coordinator node is arranged in the standby machine room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, wherein the backup node is used for backing up log data of a node serving as a backup object of the backup node in a transaction coordination processing state, and as shown in fig. 5, the transaction coordination processing method comprises the following steps:
s510, when the second transaction coordinator node in the transaction coordination processing state fails or the network connection between the second transaction coordinator node and the third transaction coordinator node is interrupted, the third transaction coordinator node executes the transaction coordination processing instead of the second transaction coordinator node according to the backup log data.
As shown in fig. 2B, when the two computer room networks are connected normally and all the transaction coordinator nodes are working normally, the node a, the node B, and the node C can provide services to the service application at the same time. At this time, a node providing a real service to the service application can be flexibly selected by setting a weight of a processing traffic of each node. For example, the traffic weight value of node a is set to 100, the traffic weight value of node B is set to 100, and the traffic weight value of node C is set to 0.
Because the traffic weight value of the node C is 0, the traffic weight values of the node a and the node B are both 100, all the nodes C have no actual traffic, and the node a and the node B respectively bear 50% of the traffic. The purpose of this is to have both rooms with the full amount of data, i.e. transactions initiated by node a all have a backup at node B, and transactions initiated by node B all have a backup at node C. Node B has the full amount of data and node a + C also has the full amount of data.
It should be noted here that the weighted traffic of each node has practical significance only when two or more nodes exist in the system to provide services to the service application. In this embodiment, the condition that a node can provide service to a service application is that the node and its backup node can both work normally (no fault occurs), and the network connection between the node and its backup node is normal (the backup node can normally backup log data generated on the node). If only one node in the system can provide service to the business application, the node control module will only use the node as a transaction coordinator node for performing transaction coordination processing.
When the node B in the transaction coordination processing state fails or the network connection between the node B and the node C is interrupted, it may be determined that the current node B can no longer provide service to the service application. The backup node C as the node B may continue to perform the transaction coordination process in place of the node B according to the log data of the node B backed up on its node. The business application may implement the distributed transaction operation by invoking the services of node C.
According to the above-mentioned setting of the traffic weight value of each node, if node C and node a can both provide services to the service application, it is decided by their weighted traffic values who really provides the services. Obviously, since the traffic weight value of the node a is 100 and the traffic weight value of the node C is 0, the node a provides all services to the service, and the node C is only used as a backup node.
Further, a fourth transaction coordinator node can be further included in the standby machine room. If the second transaction coordinator node works normally, a fourth transaction coordinator node in the standby machine room can be started to serve as a backup node of the second transaction coordinator node, and the second transaction coordinator node replaces the first transaction coordinator node to execute transaction coordination processing according to the backup log data of the second transaction coordinator node.
Specifically, if the node B cannot provide services to the service application but the node B can still work normally, a transaction coordinator node (a fourth transaction coordinator node) may be added in the standby computer room as another backup node of the node B, so as to ensure that the node B can provide services to the service application.
In an actual application scenario, the added fourth transaction coordinator node may also serve as a part of the transaction coordination processing apparatus, and may serve as a cold node (which is started only in a characteristic case), and is only used to backup the log data of the node B, and does not provide services to the service application.
When the node a, the node B and the node C in the main and standby rooms are unable to provide service for the service application (the case of failure of the main room), but the node B still can work normally (no downtime occurs), the standby room can be switched to the main room at this time, and the fourth transaction coordinator node in the original standby room is started as the backup node of the second transaction coordinator node (node B), and at this time, the node B can continue to execute the transaction coordination processing according to the backup log data (log data of the node a) of the node B because of having an available backup node. The business application may implement the distributed transaction operation by invoking a service of the node B.
And when the host computer room is available, switching the original host computer room to the current host computer room, closing the fourth transaction coordinator node, and entering a cold equipment state.
Further, if the second transaction coordinator node works normally and the network connection with the first transaction coordinator node working normally is normal; meanwhile, when the third transaction coordinator node fails or the network connection between the third transaction coordinator node and the first transaction coordinator node is disconnected, the first transaction coordinator node replaces the third transaction coordinator node to execute transaction coordination processing according to the backup log data of the first transaction coordinator node.
Specifically, if only node a can provide service to the service application while the above-mentioned node B cannot provide service to the service application. At this time, in terms of data backup relationship, the backup node C, which is basically the node B, continues to perform the transaction coordination process in place of the node B according to the log data of the node B backed up on its node. However, because the node C is unavailable, the backup node a of the node C continues to perform the transaction coordination processing instead of the node C according to the log data of the node C backed up on the node thereof according to the data backup relationship. The business application may implement the distributed transaction operation by invoking the services of node a.
It should be noted that, in an actual application scenario, if the node B cannot provide service to the service application only because the network connection between the node B and the node C is interrupted (but the node B still can work normally), after the network connection is interrupted, the node control module may control the node B to continue to complete the incomplete transactions, and continue to execute by the node C for the newly established distributed transactions (instead of the node B executing the actual content of the transaction coordination process), or control the node C to continue to complete the incomplete transactions. However, if node C fails to execute the outstanding transactions and fails, and node A does not back up the log data of the outstanding transactions on the original node B, the entire system will be unable to provide available services. In response to this problem, the only solution is to control node B to continue completing the transaction operations that are not completed at that node.
Of course, if the node C has already performed the transaction coordination processing flow instead of the node B and cannot provide service to the service application after starting to perform the new transaction operation received by its own node, the node a may also back up the log data at this time, so that the node a may still be considered to perform the transaction coordination processing instead of the node C according to the backed-up log data.
In the transaction coordination processing method of the embodiment of the present invention, a first transaction coordinator node and a third transaction coordinator node are set in a main machine room, a second transaction coordinator node is set in a standby machine room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is used to backup log data of a node as a backup object in a transaction coordination processing state. When the second transaction coordinator node in the transaction coordination processing state fails or the network connection between the second transaction coordinator node and the third transaction coordinator node is interrupted, the third transaction coordinator node replaces the second transaction coordinator node to execute the transaction coordination processing according to the backup log data thereof, thereby ensuring the availability of the system.
Furthermore, the possibility that the second transaction coordinator node provides service for the business application can be realized by adding a fourth transaction coordinator node in the standby computer room as a backup node of the second transaction coordinator node, or the service is provided for the business application through the first transaction coordinator node, so that the availability of the system is improved.
Example four
Based on the above concept of the scheme of setting the ring backup topology, as shown in fig. 6, it is a flowchart of a transaction coordination processing method shown in the embodiment of the present invention, and an execution main body of the method may be the transaction coordination processing apparatus shown in fig. 2 a. The transaction coordination processing method relates to a main machine room and a standby machine room, wherein a first transaction coordinator node and a third transaction coordinator node are arranged in the main machine room, a second transaction coordinator node is arranged in the standby machine room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, wherein the backup node is used for backing up log data of a node serving as a backup object of the backup node in a transaction coordination processing state, and as shown in fig. 6, the transaction coordination processing method comprises the following steps:
s610, when the third transaction coordinator node in the transaction coordination processing state fails or the network connection between the third transaction coordinator node and the first transaction coordinator node is interrupted, the first transaction coordinator node executes the transaction coordination processing instead of the third transaction coordinator node according to the backup log data.
As shown in fig. 2B, when the two computer room networks are connected normally and all the transaction coordinator nodes are working normally, the node a, the node B, and the node C can provide services to the service application at the same time. At this time, a node providing a real service to the service application can be flexibly selected by setting a weight of a processing traffic of each node. For example, the traffic weight value of node a is set to 100, the traffic weight value of node B is set to 100, and the traffic weight value of node C is set to 0.
Because the traffic weight value of the node C is 0, the traffic weight values of the node a and the node B are both 100, all the nodes C have no actual traffic, and the node a and the node B respectively bear 50% of the traffic. The purpose of this is to have both rooms with the full amount of data, i.e. transactions initiated through node a have all backups at node B, and transactions initiated through node B have all backups at node C. Node B has the full amount of data and node a + C also has the full amount of data.
It should be noted here that the weighted traffic of each node has practical significance only when two or more nodes exist in the system to provide services for the service application. In this embodiment, the condition that a node can provide service to a service application is that the node and its backup node can both work normally (no fault occurs), and the network connection between the node and its backup node is normal (the backup node can normally backup log data generated on the node). If only one node in the system can provide service to the business application, the node control module will only use that node as the transaction coordinator node performing the transaction coordination process.
When the node C in the transaction coordination processing state fails or the network connection between the node C and the node a is interrupted, it may be determined that the current node C cannot continue to provide services to the service application. The backup node a as the node C may continue to perform the transaction coordination process in place of the node C according to the log data of the node C backed up on its node. The business application may implement the distributed transaction operation by invoking the service of node a.
According to the above-mentioned setting of the traffic weight value of each node, if node a and node B can both provide services to the service application, it is decided by their weighted traffic values who really provides the services. Obviously, since the traffic weight value of node a is 100 and the traffic weight value of node B is 100, node a and node B each undertake 50% of the total traffic to provide service to the service.
Further, a fourth transaction coordinator node can be further included in the standby machine room. If the first transaction coordinator node fails or the network connection between the first transaction coordinator node and the second transaction coordinator node is disconnected, the network connection between the second transaction coordinator node and the third transaction coordinator node is disconnected, and the second transaction coordinator node works normally, a fourth transaction coordinator node located in the standby machine room can be started to serve as a backup node of the second transaction coordinator node, and the second transaction coordinator node performs transaction coordination processing instead of the first transaction coordinator node according to the backup log data of the second transaction coordinator node.
Specifically, if the node a and the node B cannot provide services to the service application while the node C cannot provide services to the service application, but the node B works normally, a transaction coordinator node (a fourth transaction coordinator node) may be added in the standby computer room as another backup node of the node B, so as to ensure that the node B can provide services to the service application.
In an actual application scenario, the added fourth transaction coordinator node may also serve as a part of the transaction coordination processing apparatus, and may serve as a cold node (which is started only in a characteristic case), and is only used to backup the log data of the node B, and does not provide services to the service application.
When the node a, the node B and the node C in the main and standby machine rooms are unable to provide service for the service application but the node B still can work normally (no downtime occurs), the standby machine room can be switched to the main machine room at this time, and a fourth transaction coordinator node located in the original standby machine room is started to serve as a backup node of the second transaction coordinator node (node B), and at this time, the node B can continue to execute transaction coordination processing according to the backup log data (log data of the node a) of the node B because of having an available backup node. The business application may implement the distributed transaction operation by invoking a service of the node B.
And when the host computer room is available, switching the original host computer room to the current host computer room, closing the fourth transaction coordinator node, and entering a cold equipment state.
Further, if the third transaction coordinator node works normally and the network connection with the second transaction coordinator node working normally is normal; meanwhile, when the first transaction coordinator node fails or the network connection between the first transaction coordinator node and the second transaction coordinator node is disconnected, the second transaction coordinator node replaces the first transaction coordinator node to execute transaction coordination processing according to the backup log data of the second transaction coordinator node.
Specifically, if only the node B can provide a service to the service application while the above-described node C cannot provide the service to the service application. At this time, in terms of data backup, the backup node a as the node C should continue to perform the transaction coordination process instead of the node C in principle according to the log data of the node C backed up on its node. But because the node A is unavailable, the backup node B of the node A continuously executes the transaction coordination processing instead of the node A according to the log data of the node A backed up on the node B according to the data backup relation. The node business application may implement the distributed transaction operation by invoking the service of the node B.
It should be noted that, in an actual application scenario, if the node C cannot provide service to the service application only because the network connection between the node C and the node a is interrupted (but the node C still can work normally), after the network connection is interrupted, the node control module may control the node C to continue to complete the uncompleted transactions, and continue to execute by the node a for the newly established distributed transactions (instead of the node C executing the actual content of the transaction coordination process), or control the node a to continue to complete the uncompleted transactions. However, if node A fails to execute the outstanding transactions, and node B does not back up the log data of the outstanding transactions on the original node C, the entire system will be unable to provide the available service. In response to this problem, the only solution is to control node C to continue completing the transaction operations that are not completed on that node.
Of course, if the node a has already performed the transaction coordination processing flow instead of the node C and cannot provide service to the service application after starting to perform the new transaction operation received by its own node, the node B will also back up the log data at this time, and therefore the node B can still be considered to perform the transaction coordination processing instead of the node a according to the backed-up log data.
In the transaction coordination processing method of the embodiment of the present invention, a first transaction coordinator node and a third transaction coordinator node are set in a primary computer room, a second transaction coordinator node is set in a secondary computer room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is configured to backup log data of a node serving as a backup object of the backup node in a transaction coordination processing state. When the third transaction coordinator node in the transaction coordination processing state fails or the network connection between the third transaction coordinator node and the first transaction coordinator node is interrupted, the first transaction coordinator node replaces the third transaction coordinator node to execute the transaction coordination processing according to the backup log data of the first transaction coordinator node, so that the availability of the system is ensured.
Further, if the first transaction coordinator node is not capable of providing service to the business application, the service may be provided to the business application by the second transaction coordinator node in place of the first transaction coordinator node; if the second transaction coordinator node can not provide service for the service application, but the second transaction coordinator node works normally, a fourth transaction coordinator node in the standby machine room can be started to serve as a backup node of the second transaction coordinator node, so that the fourth transaction coordinator node can provide service for the application normally, and the availability of the system is improved.
EXAMPLE five
Based on the above concept of the scheme of setting the ring backup topology, an embodiment of the present invention provides another transaction coordination processing method, and an execution subject of the method may be the transaction coordination processing apparatus shown in fig. 2 a. The processing method relates to a main machine room and a standby machine room, wherein a first transaction coordinator node is arranged in the main machine room, a second transaction coordinator node and a third transaction coordinator node are arranged in the standby machine room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, the first transaction coordinator node is a backup node of the third transaction coordinator node, and the backup node is used for backing up log data of a node serving as a backup object of the backup node in a transaction coordination processing state. The transaction coordination processing method has the same content as the method shown in fig. 4, and is only different in applicable application scenarios, and the specific method includes:
s410, when the first transaction coordinator node in the transaction coordination processing state fails or the network connection between the first transaction coordinator node and the second transaction coordinator node is interrupted, the second transaction coordinator node performs the transaction coordination processing instead of the first transaction coordinator node according to the backup log data.
Referring to fig. 2b, an application scenario shown in this embodiment is based on the overall scenario shown in fig. 2b, in which a node C (a third transaction coordinator node) is migrated from a host computer room to a standby computer room, but the original connection relationship between the nodes is still maintained. When the two computer room networks are connected normally and all the transaction coordinator nodes work normally, the node A, the node B and the node C can provide service for business application at the same time. At this time, a node providing a real service to the service application can be flexibly selected by setting a weight of a processing traffic of each node. For example, the traffic weight value of node a is set to 100, the traffic weight value of node B is set to 100, and the traffic weight value of node C is set to 0.
Since the traffic weight of the node C is 0, the traffic weight of both the node a and the node B is 100, all the nodes C have no actual traffic, and the node a and the node B respectively bear 50% of the traffic. The purpose of this is to have both rooms with the full amount of data, i.e. transactions initiated through node a have all backups at node B, and transactions initiated through node B have all backups at node C. Node a has the full amount of data and node B + C also has the full amount of data.
It should be noted here that the weighted traffic of each node has practical significance only when two or more nodes exist in the system to provide services for the service application. In this embodiment, the condition that a node can provide service to a service application is that the node and its backup node can both work normally (no fault occurs), and the network connection between the node and its backup node is normal (the backup node can normally backup log data generated on the node). If only one node in the system can provide service to the business application, the node control module will only use the node as a transaction coordinator node for performing transaction coordination processing.
When the node B in the transaction coordination processing state fails or the network connection between the node B and the node C is interrupted, it may be determined that the current node B can no longer provide service to the service application. The backup node C as the node B may continue to perform the transaction coordination process in place of the node B according to the log data of the node B backed up on its node. The business application may implement the distributed transaction operation by invoking the services of node C.
According to the above-mentioned setting of the traffic weight value of each node, if node C and node a can both provide services to the service application, it is decided by their weighted traffic values who really provides the services. Obviously, since the traffic weight value of the node a is 100 and the traffic weight value of the node C is 0, the node a provides all services to the service, and the node C is only used as a backup node.
Further, a fourth transaction coordinator node may also be included in the primary room. If the first transaction coordinator node works normally, a fourth transaction coordinator node in the main computer room can be started to serve as a backup node of the first transaction coordinator node, and therefore when the second transaction coordinator node fails, the first transaction coordinator node can serve as the backup node through the fourth transaction coordinator node to continue to execute transaction coordination processing.
Specifically, if the node a cannot provide services to the service application but the node a can still work normally, a transaction coordinator node (fourth transaction coordinator node) may be added in the main computer room as another backup node of the node a, so as to ensure that the node a can provide services to the service application.
In an actual application scenario, the added fourth transaction coordinator node may also serve as a part of the transaction coordination processing apparatus, may serve as a cold node (which is started only in a characteristic case), and is only used to backup the log data of the node a, and does not provide services to the business application.
When the node a, the node B, and the node C in the main and standby rooms are unable to provide service for the service application (in the case of a failure of the standby room), but the node a still can work normally (without downtime), the fourth transaction coordinator node in the main room may be started up as a backup node of the first transaction coordinator node (node a), and at this time, the node a may continue to perform the transaction coordination process because of having an available backup node. The business application may implement the distributed transaction operation by invoking the services of node a.
And after the standby machine room is available for recovery, the node B in the standby machine room can be restarted to be used as a backup node of the node A, the fourth transaction coordinator node is closed, and the state of the cold equipment is entered.
Further, if the second transaction coordinator node works normally and the network connection with the first transaction coordinator node working normally is normal; meanwhile, when the third transaction coordinator node fails or the network connection between the third transaction coordinator node and the first transaction coordinator node is disconnected, the first transaction coordinator node replaces the third transaction coordinator node to execute transaction coordination processing according to the backup log data of the first transaction coordinator node.
Specifically, if only node a can provide service to the service application while the above-mentioned node B cannot provide service to the service application. At this time, in terms of data backup relationship, the backup node C, which is basically the node B, continues to perform the transaction coordination process in place of the node B according to the log data of the node B backed up on its node. But because the node C is unavailable, the backup node A of the node C continuously replaces the node C to execute the transaction coordination processing according to the data backup relation and the log data of the node C backed up on the node C. The business application may implement the distributed transaction operation by invoking the service of node a.
It should be noted that, in an actual application scenario, if the node B cannot provide service for the service application because the network connection between the node B and the node C is interrupted (but the node B still can work normally), after the network connection is interrupted, the node control module may control the node B to continue to perform the incomplete transactions, and continue to perform the new distributed transactions by the node C (instead of the node B performing the actual content of the transaction coordination process), or control the node C to continue to perform the incomplete transactions. However, if node C fails to execute the outstanding transactions and fails, and node A does not back up the log data of the outstanding transactions on the original node B, the entire system will be unable to provide available services. In response to this problem, the only solution is to control node B to continue to complete the transaction operations that are not completed at that node.
Of course, if the node C has already performed the transaction coordination processing flow instead of the node B and cannot provide service to the service application after starting to perform the new transaction operation received by its own node, the node a may also back up the log data at this time, so that the node a may still be considered to perform the transaction coordination processing instead of the node C according to the backed-up log data.
In the transaction coordination processing method of the embodiment of the present invention, a first transaction coordinator node is set in a main machine room, a second transaction coordinator node and a third transaction coordinator node are set in a standby machine room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is used to backup log data of a node as a backup object in a transaction coordination processing state. When the second transaction coordinator node in the transaction coordination processing state fails or the network connection between the second transaction coordinator node and the third transaction coordinator node is interrupted, the third transaction coordinator node replaces the second transaction coordinator node to execute the transaction coordination processing according to the backup log data, so that the availability of the system is ensured.
Further, the possibility that the first transaction coordinator node provides service to the business application can be realized by adding a fourth transaction coordinator node in the main computer room as a backup node of the first transaction coordinator node, so as to improve the availability of the system.
EXAMPLE six
Fig. 7 is a block diagram of a transaction coordination processing device according to an embodiment of the present invention, which is capable of executing the method steps shown in fig. 4, the processing device relates to a main machine room and a standby machine room, and the processing device includes: a first transaction coordinator node 710 and a third transaction coordinator node 730 arranged in a main machine room, a second transaction coordinator node 720 arranged in a standby machine room, the second transaction coordinator node 720 being a backup node of the first transaction coordinator node 710, the third transaction coordinator node 730 being a backup node of the second transaction coordinator node 720, and the first transaction coordinator node 710 being a backup node of the third transaction coordinator node 730, wherein the backup node is configured to backup log data of a node as a backup object thereof in a transaction coordination processing state, and the processing apparatus further includes:
a first node control module 740, configured to control the second transaction coordinator node 720 to perform the transaction coordination process instead of the first transaction coordinator node 710 according to the log data backed up by the second transaction coordinator node 720 when the first transaction coordinator node 710 in the transaction coordination process state fails or the network connection between the first transaction coordinator node 710 and the second transaction coordinator node 720 is interrupted.
Further, the above apparatus further comprises: the fourth transaction coordinator node, which is disposed in the standby machine room, the first node control module 740 is further configured to,
if the third transaction coordinator node 730 fails or the network connection between the second transaction coordinator node 720 and the third transaction coordinator node 730 is disconnected, a fourth transaction coordinator node located in the standby machine room is started to serve as a backup node of the second transaction coordinator node 720, and the second transaction coordinator node 720 is controlled to perform transaction coordination processing instead of the first transaction coordinator node 710 according to the backup log data of the second transaction coordinator node 720.
Further, the first node control module 740 may be further configured to,
if the first transaction coordinator node 710 is working properly and the network connection with the third transaction coordinator node 730 working properly is normal; meanwhile, when the second transaction coordinator node 720 fails or the network connection with the third transaction coordinator node 730 is disconnected, the third transaction coordinator node 730 is controlled to perform the transaction coordination process instead of the second transaction coordinator node 720 according to the backup log data.
In the transaction coordination processing device of the embodiment of the present invention, a first transaction coordinator node and a third transaction coordinator node are set in a main computer room, a second transaction coordinator node is set in a standby computer room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is configured to backup log data of a node serving as a backup object of the backup node in a transaction coordination processing state. When the first transaction coordinator node in the transaction coordination processing state fails or the network connection between the first transaction coordinator node and the second transaction coordinator node is interrupted, the second transaction coordinator node replaces the first transaction coordinator node to execute the transaction coordination processing according to the backup log data, so that the availability of the system is ensured.
Further, if the second transaction coordinator node cannot provide services for the business application, the fourth transaction coordinator node can be added in the standby machine room as a backup node of the second transaction coordinator node to realize the possibility of providing services for the business application, or the third transaction coordinator node replaces the second transaction coordinator node to provide services for the business application, so that the availability of the system is improved.
EXAMPLE seven
Fig. 8 is a block diagram of a transaction coordination processing device according to an embodiment of the present invention, which is capable of executing the method steps shown in fig. 5, the processing device relates to a main machine room and a standby machine room, and the processing device includes: the processing apparatus further includes a first transaction coordinator node 710 and a third transaction coordinator node 730 disposed in the main machine room, a second transaction coordinator node 720 disposed in the standby machine room, the second transaction coordinator node 720 being a backup node of the first transaction coordinator node 710, the third transaction coordinator node 730 being a backup node of the second transaction coordinator node 720, and the first transaction coordinator node 710 being a backup node of the third transaction coordinator node 730, where the backup node is configured to backup log data of a node as a backup target thereof in a transaction coordination processing state, and the processing apparatus further includes:
a second node control module 750, configured to, when the second transaction coordinator node 720 in the transaction coordination processing state fails or a network connection between the second transaction coordinator node 720 and the third transaction coordinator node 730 is interrupted, control the third transaction coordinator node 730 to perform transaction coordination processing instead of the second transaction coordinator node 720 according to the log data backed up by the third transaction coordinator node 730.
Further, the above apparatus further comprises: a fourth transaction coordinator node disposed in the standby machine room, the second node control module 750 is further configured to,
if the second transaction coordinator node works normally, a fourth transaction coordinator node located in the standby machine room is started to serve as a backup node of the second transaction coordinator node 720, and the second transaction coordinator node 720 is controlled to perform transaction coordination processing instead of the first transaction coordinator node 710 according to the backup log data.
Further, the second node control module 750 may also be configured to,
if the second transaction coordinator node 720 is functioning properly and the network connection with the first transaction coordinator node 710 functioning properly is normal; meanwhile, when the third transaction coordinator node 730 fails or the network connection with the first transaction coordinator node 710 is disconnected, the first transaction coordinator node 710 is controlled to perform the transaction coordination process instead of the third transaction coordinator node 730 according to the backed-up log data of the first transaction coordinator node 710
In the transaction coordination processing device of the embodiment of the present invention, a first transaction coordinator node and a third transaction coordinator node are set in a main computer room, a second transaction coordinator node is set in a standby computer room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is configured to backup log data of a node serving as a backup object of the backup node in a transaction coordination processing state. When the second transaction coordinator node in the transaction coordination processing state fails or the network connection between the second transaction coordinator node and the third transaction coordinator node is interrupted, the third transaction coordinator node replaces the second transaction coordinator node to execute the transaction coordination processing according to the backup log data, so that the availability of the system is ensured.
Furthermore, the possibility that the second transaction coordinator node provides service for the business application can be realized by adding a fourth transaction coordinator node in the standby machine room as a backup node of the second transaction coordinator node, or the service is provided for the business application through the first transaction coordinator node, so that the availability of the system is improved.
Example eight
Fig. 9 is a block diagram of a transaction coordination processing device according to a third embodiment of the present invention, which is capable of executing the method steps shown in fig. 6, and relates to a main machine room and a standby machine room, the processing device includes: the processing apparatus further includes a first transaction coordinator node 710 and a third transaction coordinator node 730 disposed in the main machine room, a second transaction coordinator node 720 disposed in the standby machine room, the second transaction coordinator node 720 being a backup node of the first transaction coordinator node 710, the third transaction coordinator node 730 being a backup node of the second transaction coordinator node 720, and the first transaction coordinator node 710 being a backup node of the third transaction coordinator node 730, where the backup node is configured to backup log data of a node as a backup target thereof in a transaction coordination processing state, and the processing apparatus further includes:
and a third node control module 760, configured to control the first transaction coordinator node 710 to perform the transaction coordination process instead of the third transaction coordinator node 730 according to the backed-up log data when the third transaction coordinator node 730 in the transaction coordination process state fails or the network connection between the third transaction coordinator node 730 and the first transaction coordinator node 710 is interrupted.
Further, the above apparatus further comprises: a fourth transaction coordinator node, disposed in the standby room, the third node control module 760 may also be configured to,
if the first transaction coordinator node 710 fails or the network connection with the second transaction coordinator node 720 is disconnected, the network connection between the second transaction coordinator node 720 and the third transaction coordinator node 730 is disconnected, and the second transaction coordinator node 720 is working normally, a fourth transaction coordinator node located in the standby room is started as a backup node of the second transaction coordinator node 720, and the second transaction coordinator node 720 is controlled to perform a transaction coordination process in place of the first transaction coordinator node 710 according to the backup log data thereof.
Further, the third node control module 760 may be further configured to,
if the third transaction coordinator node 730 is working normally and the network connection with the second transaction coordinator node 720 working normally is normal; meanwhile, when the first transaction coordinator node 710 fails or the network connection with the second transaction coordinator node 720 is disconnected, the first transaction coordinator node 710 is controlled to perform a transaction coordination process instead of the third transaction coordinator node 730 according to the backed-up log data thereof
In the transaction coordination processing device of the embodiment of the present invention, a first transaction coordinator node and a third transaction coordinator node are set in a main computer room, a second transaction coordinator node is set in a standby computer room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is configured to backup log data of a node serving as a backup object of the backup node in a transaction coordination processing state. When the third transaction coordinator node in the transaction coordination processing state fails or the network connection between the third transaction coordinator node and the first transaction coordinator node is interrupted, the first transaction coordinator node replaces the third transaction coordinator node to execute the transaction coordination processing according to the backup log data of the first transaction coordinator node, so that the availability of the system is ensured.
Further, if the first transaction coordinator node is not capable of providing service to the business application, the service may be provided to the business application by the second transaction coordinator node in place of the first transaction coordinator node; if the second transaction coordinator node can not provide service for the service application, but the second transaction coordinator node works normally, a fourth transaction coordinator node in the standby machine room can be started to serve as a backup node of the second transaction coordinator node, so that the fourth transaction coordinator node can provide service for the application normally, and the availability of the system is improved.
Example nine
As shown in fig. 10, a fourth block diagram of a transaction coordination processing device according to an embodiment of the present invention is a processing device, which can be used to execute the method steps shown in the fourth block diagram of the above embodiment, the processing device relates to a main machine room and a standby machine room, and the processing device includes: the processing apparatus includes a first transaction coordinator node 710 disposed in a primary computer room, a second transaction coordinator node 720 and a third transaction coordinator node 730 disposed in a backup computer room, where the second transaction coordinator node 720 is a backup node of the first transaction coordinator node 710, the third transaction coordinator node 730 is a backup node of the second transaction coordinator node 720, and the first transaction coordinator node 710 is a backup node of the third transaction coordinator node 730, where the backup node is configured to backup log data of a node as a backup target thereof in a transaction coordination processing state, and the processing apparatus further includes:
a fourth node control module 770, configured to control the second transaction coordinator node 720 to perform the transaction coordination process instead of the first transaction coordinator node 710 according to the log data backed up by the second transaction coordinator node 720 when the first transaction coordinator node 710 in the transaction coordination process state fails or the network connection between the first transaction coordinator node 710 and the second transaction coordinator node 720 is interrupted.
Further, a fourth transaction coordinator node may be included in the main computer room, and the fourth node control module 770 is further configured to,
if the first transaction coordinator node is working properly, a fourth transaction coordinator node located in the main room may be started as a backup node for the first transaction coordinator node 710; thus, when the second transaction coordinator node 720 fails, the first transaction coordinator node 710 may continue to perform transaction coordination processing with the fourth transaction coordinator as a backup node.
Further, the fourth node control module 770 is also configured to,
if the second transaction coordinator node 720 is working properly and the network connection with the first transaction coordinator node 710 is working properly; meanwhile, when the third transaction coordinator node 730 fails or the network connection with the first transaction coordinator node is disconnected, the first transaction coordinator node is controlled to perform transaction coordination processing instead of the third transaction coordinator node according to the backup log data.
In the transaction coordination processing apparatus according to the embodiment of the present invention, a first transaction coordinator node is set in a main machine room, a second transaction coordinator node and a third transaction coordinator node are set in a standby machine room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is configured to backup log data of a node serving as a backup object in a transaction coordination processing state. When the first transaction coordinator node in the transaction coordination processing state fails or the network connection between the first transaction coordinator node and the second transaction coordinator node is interrupted, the second transaction coordinator node replaces the first transaction coordinator node to execute the transaction coordination processing according to the backup log data of the second transaction coordinator node, and therefore the availability of the system is guaranteed.
Furthermore, the possibility that the first transaction coordinator node provides service for the business application can be realized by adding a fourth transaction coordinator node in the main computer room as a backup node of the first transaction coordinator node, so that the availability of the system is improved.
EXAMPLE ten
The foregoing describes an overall architecture of the transaction coordination processing apparatus, and the functions of the apparatus can be implemented by an electronic device, as shown in fig. 11, which is a schematic structural diagram of the electronic device according to the embodiment of the present invention, and specifically includes: a memory 111 and a processor 112.
The memory 111 stores programs.
In addition to the above-described programs, the memory 111 may also be configured to store other various data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phonebook data, messages, pictures, videos, and so forth.
The memory 111 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A processor 112, coupled to the memory 111, configured to execute a program in the memory 111, where the program relates to a main room and a standby room, a first transaction coordinator node and a third transaction coordinator node are disposed in the main room, a second transaction coordinator node is disposed in the standby room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is used to backup log data of a node serving as a backup object in a transaction coordination state; for:
when the first transaction coordinator node in the transaction coordination processing state fails or the network connection between the first transaction coordinator node and the second transaction coordinator node is interrupted, the second transaction coordinator node replaces the first transaction coordinator node to execute the transaction coordination processing according to the backup log data.
The above specific processing operations have been described in detail in the foregoing embodiments, and are not described in detail here.
Further, as shown in fig. 11, the electronic device may further include: communication component 113, power component 114, audio component 115, display 116, and the like. Only some of the components are schematically shown in fig. 11, and it is not meant that the electronic device includes only the components shown in fig. 11.
The communication component 113 is configured to facilitate wired or wireless communication between the electronic device and other devices. The electronic device may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 113 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 113 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
A power supply component 114 that provides power to the various components of the electronic device. The power components 114 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for an electronic device.
The display 116 includes a screen, which may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
EXAMPLE eleven
The foregoing describes an overall architecture of the transaction coordination processing apparatus, and the functions of the apparatus can be implemented by an electronic device, as shown in fig. 12, which is a schematic structural diagram of the electronic device according to an embodiment of the present invention, and specifically includes: a memory 121 and a processor 122.
The memory 121 stores programs.
In addition to the above-described programs, the memory 121 may also be configured to store other various data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phonebook data, messages, pictures, videos, and so forth.
The memory 121 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A processor 122, coupled to the memory 121, configured to execute a program in the memory 121, where the program relates to a main room and a standby room, a first transaction coordinator node and a third transaction coordinator node are disposed in the main room, a second transaction coordinator node is disposed in the standby room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is used to backup log data of a node serving as a backup object of the backup node in a transaction coordination state; for:
and when the second transaction coordinator node in the transaction coordination processing state fails or the network connection between the second transaction coordinator node and the third transaction coordinator node is interrupted, the third transaction coordinator node replaces the second transaction coordinator node to execute the transaction coordination processing according to the backup log data.
The above specific processing operations have been described in detail in the foregoing embodiments, and are not described in detail here.
Further, as shown in fig. 12, the electronic device may further include: communication components 123, power components 124, audio components 125, display 126, and other components. Only some of the components are schematically shown in fig. 12, and the electronic device is not meant to include only the components shown in fig. 12.
The communication component 123 is configured to facilitate wired or wireless communication between the electronic device and other devices. The electronic device may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 123 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 123 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
A power supply component 124 that provides power to the various components of the electronic device. The power components 124 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for an electronic device.
The display 126 includes a screen, which may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
Example twelve
The foregoing describes an overall architecture of the transaction coordination processing apparatus, and the functions of the apparatus can be implemented by an electronic device, as shown in fig. 13, which is a schematic structural diagram of the electronic device according to the embodiment of the present invention, and specifically includes: a memory 131 and a processor 132.
The memory 131 stores programs.
In addition to the above programs, the memory 131 may be configured to store other various data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phonebook data, messages, pictures, videos, and so forth.
The memory 131 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A processor 132, coupled to the memory 131, for executing a program in the memory 131, where the program relates to a main machine room and a standby machine room, a first transaction coordinator node and a third transaction coordinator node are disposed in the main machine room, a second transaction coordinator node is disposed in the standby machine room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is used for backing up log data of a node as a backup object in a transaction coordination state; for:
when the third transaction coordinator node in the transaction coordination processing state fails or the network connection between the third transaction coordinator node and the first transaction coordinator node is interrupted, the first transaction coordinator node performs the transaction coordination processing instead of the third transaction coordinator node according to the backup log data.
The above specific processing operations have been described in detail in the foregoing embodiments, and are not described again here.
Further, as shown in fig. 13, the electronic device may further include: communication components 133, power components 134, audio components 135, a display 136, and the like. Only some of the components are schematically shown in fig. 13, and the electronic device is not meant to include only the components shown in fig. 13.
The communication component 133 is configured to facilitate wired or wireless communication between the electronic device and other devices. The electronic device may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 133 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 133 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
A power supply component 134 provides power to the various components of the electronic device. The power components 134 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for an electronic device.
The audio component 135 is configured to output and/or input audio signals. For example, the audio component 135 includes a Microphone (MIC) configured to receive external audio signals when the electronic device is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 131 or transmitted via the communication component 133. In some embodiments, audio component 135 also includes a speaker for outputting audio signals.
The display 136 includes a screen, which may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
Example fourteen
The foregoing describes an overall architecture of the transaction coordination processing apparatus, and the functions of the apparatus can be implemented by an electronic device, as shown in fig. 14, which is a schematic structural diagram of the electronic device according to the embodiment of the present invention, and specifically includes: a memory 141 and a processor 142.
The memory 141 stores programs.
In addition to the above programs, the memory 141 may also be configured to store other various data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phonebook data, messages, pictures, videos, and the like.
The memory 141 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A processor 142, coupled to the memory 141, for executing a program in the memory 141, where the program relates to a main room and a standby room, a first transaction coordinator node is disposed in the main room, a second transaction coordinator node and a third transaction coordinator node are disposed in the standby room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is used to backup log data of a node as a backup object in a transaction coordination state; for:
when the first transaction coordinator node in the transaction coordination processing state fails or the network connection between the first transaction coordinator node and the second transaction coordinator node is interrupted, the second transaction coordinator node performs the transaction coordination processing instead of the first transaction coordinator node according to the backup log data.
The above specific processing operations have been described in detail in the foregoing embodiments, and are not described in detail here.
Further, as shown in fig. 14, the electronic device may further include: communications component 143, power component 144, audio component 145, display 146, and the like. Only some of the components are schematically shown in fig. 14, and it is not meant that the electronic device includes only the components shown in fig. 14.
The communication component 143 is configured to facilitate wired or wireless communication between the electronic device and other devices. The electronic device may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 143 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 143 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
A power supply component 144 provides power to the various components of the electronic device. The power components 144 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for an electronic device.
The audio component 145 is configured to output and/or input audio signals. For example, the audio component 145 includes a Microphone (MIC) configured to receive external audio signals when the electronic device is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 141 or transmitted via the communication component 143. In some embodiments, audio component 145 also includes a speaker for outputting audio signals.
The display 146 includes a screen, which may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.
Claims (15)
1. A transaction coordination processing system, comprising: the system comprises a main machine room, a standby machine room and a node control module, wherein a first transaction coordinator node and a third transaction coordinator node are arranged in the main machine room, a second transaction coordinator node is arranged in the standby machine room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, the first transaction coordinator node is a backup node of the third transaction coordinator node, and the backup node is used for backing up log data of a node serving as a backup object of the backup node in a transaction coordination processing state,
the node control module is used for controlling the second transaction coordinator node to replace the first transaction coordinator node to execute transaction coordination processing according to the backup log data when the first transaction coordinator node in the transaction coordination processing state fails or the network connection between the first transaction coordinator node and the second transaction coordinator node is interrupted,
the system is characterized in that the standby computer room further comprises a fourth transaction coordinator node, and the node control module is further configured to:
and if the third transaction coordinator node fails or the network connection between the second transaction coordinator node and the third transaction coordinator node is disconnected, starting the fourth transaction coordinator node located in the standby machine room as a backup node of the second transaction coordinator node, and executing transaction coordination processing by the second transaction coordinator node instead of the first transaction coordinator node according to the backup log data of the second transaction coordinator node.
2. A transaction coordination processing method relates to a main machine room and a standby machine room, wherein a first transaction coordinator node and a third transaction coordinator node are arranged in the main machine room, a second transaction coordinator node is arranged in the standby machine room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, wherein the backup node is used for backing up log data of a node as a backup object of the backup node in a transaction coordination processing state, and the method comprises the following steps:
when a first transaction coordinator node in a transaction coordination processing state fails or network connection between the first transaction coordinator node and the second transaction coordinator node is interrupted, the second transaction coordinator node performs transaction coordination processing instead of the first transaction coordinator node according to the backup log data thereof,
the method is characterized in that the standby computer room further comprises a fourth transaction coordinator node, and the method further comprises the following steps:
and if the third transaction coordinator node fails or the network connection between the second transaction coordinator node and the third transaction coordinator node is disconnected, starting the fourth transaction coordinator node located in the standby machine room as a backup node of the second transaction coordinator node, and executing transaction coordination processing by the second transaction coordinator node instead of the first transaction coordinator node according to the backup log data of the second transaction coordinator node.
3. The method of claim 2, further comprising:
if the first transaction coordinator node works normally and the network connection with the third transaction coordinator node which works normally is normal; meanwhile, when the second transaction coordinator node fails or the network connection with the third transaction coordinator node is disconnected, the third transaction coordinator node performs transaction coordination processing instead of the second transaction coordinator node according to the backup log data.
4. A transaction coordination processing method relates to a main machine room and a standby machine room, wherein a first transaction coordinator node and a third transaction coordinator node are arranged in the main machine room, a second transaction coordinator node is arranged in the standby machine room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, wherein the backup node is used for backing up log data of a node as a backup object of the backup node in a transaction coordination processing state, and the method comprises the following steps:
when a second transaction coordinator node in a transaction coordination processing state fails or network connection between the second transaction coordinator node and a third transaction coordinator node is interrupted, the third transaction coordinator node performs transaction coordination processing instead of the second transaction coordinator node according to the backup log data,
the method is characterized in that the standby computer room further comprises a fourth transaction coordinator node, and the method further comprises the following steps:
and if the third transaction coordinator node fails or the network connection between the second transaction coordinator node and the third transaction coordinator node is disconnected, starting the fourth transaction coordinator node located in the standby machine room as a backup node of the second transaction coordinator node, and executing transaction coordination processing by the second transaction coordinator node instead of the first transaction coordinator node according to the backup log data of the second transaction coordinator node.
5. A transaction coordination processing method relates to a main machine room and a standby machine room, wherein a first transaction coordinator node and a third transaction coordinator node are arranged in the main machine room, a second transaction coordinator node is arranged in the standby machine room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, wherein the backup node is used for backing up log data of a node as a backup object of the backup node in a transaction coordination processing state, and the method comprises the following steps:
when a third transaction coordinator node in a transaction coordination processing state fails or network connection between the third transaction coordinator node and the first transaction coordinator node is interrupted, the first transaction coordinator node performs transaction coordination processing instead of the third transaction coordinator node according to the backup log data of the first transaction coordinator node,
the method is characterized in that the standby computer room further comprises a fourth transaction coordinator node, and the method further comprises the following steps:
and if the third transaction coordinator node fails or the network connection between the second transaction coordinator node and the third transaction coordinator node is disconnected, starting the fourth transaction coordinator node located in the standby machine room as a backup node of the second transaction coordinator node, and executing transaction coordination processing by the second transaction coordinator node instead of the first transaction coordinator node according to the backup log data of the second transaction coordinator node.
6. A transaction coordination processing method relates to a main machine room and a standby machine room, wherein a first transaction coordinator node is arranged in the main machine room, a second transaction coordinator node and a third transaction coordinator node are arranged in the standby machine room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, wherein the backup node is used for backing up log data of a node as a backup object of the backup node in a transaction coordination processing state, and the method comprises the following steps:
when a first transaction coordinator node in a transaction coordination processing state fails or network connection between the first transaction coordinator node and the second transaction coordinator node is interrupted, the second transaction coordinator node performs transaction coordination processing instead of the first transaction coordinator node according to the backup log data,
the method is characterized in that the standby computer room further comprises a fourth transaction coordinator node, and the method further comprises the following steps:
and if the third transaction coordinator node fails or the network connection between the second transaction coordinator node and the third transaction coordinator node is disconnected, starting the fourth transaction coordinator node located in the standby machine room as a backup node of the second transaction coordinator node, and executing transaction coordination processing by the second transaction coordinator node instead of the first transaction coordinator node according to the backup log data of the second transaction coordinator node.
7. A transaction coordination processing apparatus, the processing apparatus involving a primary machine room and a standby machine room, the processing apparatus comprising: a first transaction coordinator node and a third transaction coordinator node that are disposed in the main computer room, and a second transaction coordinator node that is disposed in the standby computer room, where the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is configured to backup log data of a node that is a backup object of the backup node in a transaction coordination state, and the processing apparatus further includes:
a first node control module, configured to control the second transaction coordinator node to perform transaction coordination processing instead of the first transaction coordinator node according to the backup log data when the first transaction coordinator node in a transaction coordination processing state fails or a network connection between the first transaction coordinator node and the second transaction coordinator node is interrupted,
characterized in that the device further comprises: a fourth transaction coordinator node arranged in the standby machine room, wherein the first node control module is further configured to,
and if the third transaction coordinator node fails or the network connection between the second transaction coordinator node and the third transaction coordinator node is disconnected, starting the fourth transaction coordinator node in the standby machine room as a backup node of the second transaction coordinator node, and controlling the second transaction coordinator node to replace the first transaction coordinator node to execute transaction coordination processing according to the backup log data of the second transaction coordinator node.
8. The apparatus of claim 7, wherein the first node control module is further configured to,
if the first transaction coordinator node works normally and the network connection with the third transaction coordinator node which works normally is normal; and meanwhile, when the second transaction coordinator node fails or the network connection with the third transaction coordinator node is disconnected, controlling the third transaction coordinator node to execute transaction coordination processing instead of the second transaction coordinator node according to the backup log data of the third transaction coordinator node.
9. A transaction coordination processing apparatus, the processing apparatus involving a primary machine room and a standby machine room, the processing apparatus comprising: a first transaction coordinator node and a third transaction coordinator node which are arranged in the main machine room, and a second transaction coordinator node which is arranged in the standby machine room, wherein the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, and the backup node is used for backing up log data of a node which is a backup object of the backup node in a transaction coordination processing state, and the processing apparatus further includes:
a second node control module, configured to control the third transaction coordinator node to perform transaction coordination processing instead of the second transaction coordinator node according to the backup log data when the second transaction coordinator node in the transaction coordination processing state fails or a network connection between the second transaction coordinator node and the third transaction coordinator node is interrupted,
characterized in that the device further comprises: a fourth transaction coordinator node arranged in the standby machine room, wherein the second node control module is further configured to,
and if the third transaction coordinator node fails or the network connection between the second transaction coordinator node and the third transaction coordinator node is disconnected, starting the fourth transaction coordinator node located in the standby machine room as a backup node of the second transaction coordinator node, and controlling the second transaction coordinator node to replace the first transaction coordinator node to execute transaction coordination processing according to the backup log data of the second transaction coordinator node.
10. A processing apparatus of log data, the processing apparatus involving a main machine room and a standby machine room, the processing apparatus comprising: a first transaction coordinator node and a third transaction coordinator node that are disposed in the main computer room, and a second transaction coordinator node that is disposed in the standby computer room, where the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is configured to backup log data of a node that is a backup object of the backup node in a transaction coordination state, and the processing apparatus further includes:
a third node control module, configured to control the first transaction coordinator node to perform transaction coordination processing instead of the third transaction coordinator node according to the backup log data when a third transaction coordinator node in a transaction coordination processing state fails or a network connection between the third transaction coordinator node and the first transaction coordinator node is interrupted,
characterized in that, the device still includes: a fourth transaction coordinator node arranged in the standby machine room, wherein the third node control module is further configured to,
and if the third transaction coordinator node fails or the network connection between the second transaction coordinator node and the third transaction coordinator node is disconnected, starting the fourth transaction coordinator node located in the standby machine room as a backup node of the second transaction coordinator node, and controlling the second transaction coordinator node to replace the first transaction coordinator node to execute transaction coordination processing according to the backup log data of the second transaction coordinator node.
11. A processing apparatus of log data, the processing apparatus involving a main machine room and a standby machine room, the processing apparatus comprising: the processing apparatus further includes a first transaction coordinator node disposed in the main machine room, and a second transaction coordinator node and a third transaction coordinator node disposed in the standby machine room, where the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is configured to backup log data of a node serving as a backup object of the backup node in a transaction coordination processing state, and the processing apparatus further includes:
a fourth node control module, configured to, when a first transaction coordinator node in a transaction coordination processing state fails or a network connection between the first transaction coordinator node and the second transaction coordinator node is interrupted, control the second transaction coordinator node to perform transaction coordination processing instead of the first transaction coordinator node according to the backup log data of the second transaction coordinator node,
characterized in that the device further comprises: a fourth transaction coordinator node arranged in the standby machine room, wherein the fourth node control module is further configured to,
and if the third transaction coordinator node fails or the network connection between the second transaction coordinator node and the third transaction coordinator node is disconnected, starting the fourth transaction coordinator node located in the standby machine room as a backup node of the second transaction coordinator node, and controlling the second transaction coordinator node to replace the first transaction coordinator node to execute transaction coordination processing according to the backup log data of the second transaction coordinator node.
12. An electronic device, comprising:
a memory for storing a program;
a processor, coupled to the memory, configured to execute the program, where the program relates to a main room and a standby room, a first transaction coordinator node and a third transaction coordinator node are disposed in the main room, a second transaction coordinator node is disposed in the standby room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is configured to backup log data of a node serving as a backup target of the backup node in a transaction coordination processing state; for:
when a first transaction coordinator node in a transaction coordination processing state fails or network connection between the first transaction coordinator node and the second transaction coordinator node is interrupted, the second transaction coordinator node performs transaction coordination processing instead of the first transaction coordinator node according to the backup log data thereof,
wherein the standby computer room further includes a fourth transaction coordinator node, and the program is further configured to:
and if the third transaction coordinator node fails or the network connection between the second transaction coordinator node and the third transaction coordinator node is disconnected, starting the fourth transaction coordinator node located in the standby machine room as a backup node of the second transaction coordinator node, and executing transaction coordination processing by the second transaction coordinator node instead of the first transaction coordinator node according to the backup log data of the second transaction coordinator node.
13. An electronic device, comprising:
a memory for storing a program;
a processor, coupled to the memory, configured to execute the program, where the program involves a main room and a standby room, a first transaction coordinator node and a third transaction coordinator node are disposed in the main room, a second transaction coordinator node is disposed in the standby room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is configured to backup log data of a node serving as a backup target of the backup node in a transaction coordination processing state; for:
when a second transaction coordinator node in a transaction coordination processing state fails or network connection between the second transaction coordinator node and a third transaction coordinator node is interrupted, the third transaction coordinator node performs transaction coordination processing instead of the second transaction coordinator node according to the backup log data,
characterized in that, the standby computer room further includes a fourth transaction coordinator node, and the program is further configured to:
and if the third transaction coordinator node fails or the network connection between the second transaction coordinator node and the third transaction coordinator node is disconnected, starting the fourth transaction coordinator node located in the standby machine room as a backup node of the second transaction coordinator node, and executing transaction coordination processing by the second transaction coordinator node instead of the first transaction coordinator node according to the backup log data of the second transaction coordinator node.
14. An electronic device, comprising:
a memory for storing a program;
a processor, coupled to the memory, configured to execute the program, where the program involves a main room and a standby room, a first transaction coordinator node and a third transaction coordinator node are disposed in the main room, a second transaction coordinator node is disposed in the standby room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is configured to backup log data of a node serving as a backup target of the backup node in a transaction coordination processing state; for:
when a third transaction coordinator node in a transaction coordination processing state fails or network connection between the third transaction coordinator node and the first transaction coordinator node is interrupted, the first transaction coordinator node performs transaction coordination processing instead of the third transaction coordinator node according to the backup log data of the first transaction coordinator node,
characterized in that, the standby computer room further includes a fourth transaction coordinator node, and the program is further configured to:
and if the third transaction coordinator node fails or the network connection between the second transaction coordinator node and the third transaction coordinator node is disconnected, starting the fourth transaction coordinator node located in the standby machine room as a backup node of the second transaction coordinator node, and executing transaction coordination processing by the second transaction coordinator node instead of the first transaction coordinator node according to the backup log data of the second transaction coordinator node.
15. An electronic device, comprising:
a memory for storing a program;
a processor, coupled to the memory, configured to execute the program, where the program involves a main room and a standby room, a first transaction coordinator node is disposed in the main room, a second transaction coordinator node and a third transaction coordinator node are disposed in the standby room, the second transaction coordinator node is a backup node of the first transaction coordinator node, the third transaction coordinator node is a backup node of the second transaction coordinator node, and the first transaction coordinator node is a backup node of the third transaction coordinator node, where the backup node is configured to backup log data of a node serving as a backup target of the backup node in a transaction coordination processing state; for:
when a first transaction coordinator node in a transaction coordination processing state fails or network connection between the first transaction coordinator node and the second transaction coordinator node is interrupted, the second transaction coordinator node performs transaction coordination processing instead of the first transaction coordinator node according to the backup log data thereof,
characterized in that, the standby computer room further includes a fourth transaction coordinator node, and the program is further configured to:
and if the third transaction coordinator node fails or the network connection between the second transaction coordinator node and the third transaction coordinator node is disconnected, starting the fourth transaction coordinator node located in the standby machine room as a backup node of the second transaction coordinator node, and executing transaction coordination processing by the second transaction coordinator node instead of the first transaction coordinator node according to the backup log data of the second transaction coordinator node.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710983195.XA CN109697110B (en) | 2017-10-20 | 2017-10-20 | Transaction coordination processing system, method and device and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710983195.XA CN109697110B (en) | 2017-10-20 | 2017-10-20 | Transaction coordination processing system, method and device and electronic equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109697110A CN109697110A (en) | 2019-04-30 |
| CN109697110B true CN109697110B (en) | 2023-01-06 |
Family
ID=66225304
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710983195.XA Active CN109697110B (en) | 2017-10-20 | 2017-10-20 | Transaction coordination processing system, method and device and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109697110B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116069868B (en) * | 2023-03-13 | 2023-06-09 | 徐工汉云技术股份有限公司 | Distributed flexible transaction processing method and device based on enterprise microservice |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102203741A (en) * | 2008-10-30 | 2011-09-28 | 国际商业机器公司 | Performing a data write on a storage device |
| US8355317B1 (en) * | 2007-10-31 | 2013-01-15 | World Wide Packets, Inc. | Transaction-based coordination of data object modification for primary and backup control circuitry |
| CN103516734A (en) * | 2012-06-20 | 2014-01-15 | 阿里巴巴集团控股有限公司 | Data processing method, device and system |
| CN103731465A (en) * | 2012-10-10 | 2014-04-16 | 株式会社特博睿 | Distributed system and transaction treatment method thereof |
| CN103984768A (en) * | 2014-05-30 | 2014-08-13 | 华为技术有限公司 | Data management method for database cluster, nodes and data management system for database cluster |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9858136B2 (en) * | 2014-09-30 | 2018-01-02 | International Business Machines Corporation | Resource manager failure handling in a multi-process transaction environment |
-
2017
- 2017-10-20 CN CN201710983195.XA patent/CN109697110B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8355317B1 (en) * | 2007-10-31 | 2013-01-15 | World Wide Packets, Inc. | Transaction-based coordination of data object modification for primary and backup control circuitry |
| CN102203741A (en) * | 2008-10-30 | 2011-09-28 | 国际商业机器公司 | Performing a data write on a storage device |
| CN103516734A (en) * | 2012-06-20 | 2014-01-15 | 阿里巴巴集团控股有限公司 | Data processing method, device and system |
| CN103731465A (en) * | 2012-10-10 | 2014-04-16 | 株式会社特博睿 | Distributed system and transaction treatment method thereof |
| CN103984768A (en) * | 2014-05-30 | 2014-08-13 | 华为技术有限公司 | Data management method for database cluster, nodes and data management system for database cluster |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109697110A (en) | 2019-04-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104216793B (en) | Application Backup, the method and apparatus recovered | |
| CN112463535B (en) | Multi-cluster exception handling method and device | |
| CN102200944B (en) | Test environment cloning method and system for enterprise resource planning (ERP) system | |
| CN112380062A (en) | Method and system for rapidly recovering system for multiple times based on system backup point | |
| CN103617269A (en) | Disaster tolerance pipe connecting method and disaster tolerance pipe connecting system | |
| CN104572355A (en) | Asynchronous remote data copying method and device | |
| WO2018001262A1 (en) | Method, apparatus and system for disaster recovery of virtual machine | |
| KR101576370B1 (en) | System and method for remote restoration of computer system, and computer-readable recording medium with program therefor | |
| CN104951348B (en) | A kind of interruptable recovery upgrade method and device | |
| CN107729515A (en) | Data synchronization method, device and storage medium | |
| CN109697110B (en) | Transaction coordination processing system, method and device and electronic equipment | |
| CN105760251B (en) | A method and device for backing up data | |
| US10387262B1 (en) | Federated restore of single instance databases and availability group database replicas | |
| CN109614123A (en) | A data backup method, system, electronic device and storage medium | |
| US9542277B2 (en) | High availability protection for asynchronous disaster recovery | |
| CN109062733A (en) | A kind of method, system, equipment and storage medium restoring BMC initial setting up | |
| EP4220406B1 (en) | Action undo service based on cloud platform | |
| US9710188B2 (en) | Managing backup relationships in a data storage system | |
| KR101489819B1 (en) | One board ddc system comprising duplexed cpus | |
| CN108400881A (en) | Message engine dynamic adjusting method, device and electronic equipment based on state machine | |
| CN110019065B (en) | Log data processing method and device and electronic equipment | |
| CN115543963A (en) | Database service supply method and device | |
| KR101653862B1 (en) | Remote restoration device of computer system | |
| CN114598711A (en) | Data migration method, device, equipment and medium | |
| CN115242616B (en) | Remote disaster recovery method, device, equipment and medium |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |