Affinity-based recovery/failover in a cluster environment
First Claim
Patent Images
1. A computer-implemented method for responding to termination of a terminated node, the method comprising:
- using an affinity-independent assignment mechanism to cause a plurality of nodes to master all resources that belong to an object, wherein at least two resources that belong to the object are mastered by separate nodes of the plurality of nodes;
using an affinity-based assignment mechanism to (a) establish an affinity relationship between a first node of the plurality of nodes and the object and (b) cause the first node to master all resources that belong to the object;
in response to termination of the first node, determining that the affinity relationship is established between the terminated first node and object;
in response to determining that the affinity relationship is established between the terminated first node and the object, causing a particular node of the plurality of nodes to master all resources that belong to the object by transferring the affinity relationship from the first node to the particular node;
causing the particular node to perform at least one of;
recovering resources that were opened by the terminated first node; and
serving as a failover node to execute one or more transactions that had been executing on the terminated first node;
wherein the method is performed by one or more computing devices.
1 Assignment
0 Petitions
Accused Products
Abstract
Techniques are provided for responding to the termination of a node by selecting another node, and assigning to the selected node the affinity relationships that existed between the terminated node and one or more objects. The resources that belong to the objects involved in the affinity relationships are remastered to the selected node. The selected node then performs recovery of the resources that had been opened by the terminated node and/or serves as a failover node to execute the transactions that had been executing on the terminated node.
204 Citations
18 Claims
-
1. A computer-implemented method for responding to termination of a terminated node, the method comprising:
-
using an affinity-independent assignment mechanism to cause a plurality of nodes to master all resources that belong to an object, wherein at least two resources that belong to the object are mastered by separate nodes of the plurality of nodes; using an affinity-based assignment mechanism to (a) establish an affinity relationship between a first node of the plurality of nodes and the object and (b) cause the first node to master all resources that belong to the object; in response to termination of the first node, determining that the affinity relationship is established between the terminated first node and object; in response to determining that the affinity relationship is established between the terminated first node and the object, causing a particular node of the plurality of nodes to master all resources that belong to the object by transferring the affinity relationship from the first node to the particular node; causing the particular node to perform at least one of; recovering resources that were opened by the terminated first node; and serving as a failover node to execute one or more transactions that had been executing on the terminated first node; wherein the method is performed by one or more computing devices. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform:
-
using an affinity-independent assignment mechanism to cause a plurality of nodes to master all resources that belong to an object, wherein at least two resources that belong to the object are mastered by separate nodes of the plurality of nodes; using an affinity-based assignment mechanism to (a) establish an affinity relationship between a first node of the plurality of nodes and the object and (b) cause the first node to master all resources that belong to the object; in response to termination of the first node, determining that the affinity relationship is established between the terminated first node and the object; in response to determining that the affinity relationship is established between the terminated first node and the object, causing a particular node of the plurality of nodes to master all resources that belong to the object by transferring the affinity relationship from the first node to the particular node; causing the particular node to perform at least one of; recovering resources that were opened by the terminated first node; and serving as a failover node to execute one or more transactions that had been executing on the terminated first node. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
-
Specification