System and method for switching to a new coordinator resource
First Claim
Patent Images
1. A method comprising:
- receiving information identifying a new coordinator resource for use by a cluster, whereinthe cluster is coupled to an existing coordinator resource,the cluster comprises a plurality of nodes, andone of the nodes of the plurality of nodes is a primary node;
detecting whether each of the nodes within the cluster is committing to use the new coordinator resource, whereinthe detecting comprises detecting whether each of the nodes of the cluster has received a switchover request, andthe detecting is performed prior to switching from the existing coordinator resource to the new coordinator resource;
detecting a cluster partition;
switching from the existing coordinator resource to the new coordinator resource, in response to detecting that each of the nodes within the cluster is committing to use the new coordinator resource, whereinthe new coordinator resource is configured to deny access by a first node of the plurality of nodes subsequent to the cluster partition; and
ending cluster operations on the first node, if the first node has not received a done message from each of the other nodes in the cluster prior to detection of the cluster partition, wherein each done message indicates that a respective sending node is now using the new coordinator resource.
8 Assignments
0 Petitions
Accused Products
Abstract
Various embodiments of methods and systems for dynamically switching to a new coordinator resource are disclosed. In one embodiment, a method involves receiving information identifying a new coordinator resource for use by a cluster; detecting whether each of the nodes within the cluster is committing to use the new coordinator resource; and switching from an existing coordinator resource to the new coordinator resource, in response to detecting that each of the nodes within the cluster is committing to use the new coordinator resource. This method can be performed concurrently with normal cluster operations, and thus the cluster need not be disabled to perform the switchover.
47 Citations
22 Claims
-
1. A method comprising:
-
receiving information identifying a new coordinator resource for use by a cluster, wherein the cluster is coupled to an existing coordinator resource, the cluster comprises a plurality of nodes, and one of the nodes of the plurality of nodes is a primary node; detecting whether each of the nodes within the cluster is committing to use the new coordinator resource, wherein the detecting comprises detecting whether each of the nodes of the cluster has received a switchover request, and the detecting is performed prior to switching from the existing coordinator resource to the new coordinator resource; detecting a cluster partition; switching from the existing coordinator resource to the new coordinator resource, in response to detecting that each of the nodes within the cluster is committing to use the new coordinator resource, wherein the new coordinator resource is configured to deny access by a first node of the plurality of nodes subsequent to the cluster partition; and ending cluster operations on the first node, if the first node has not received a done message from each of the other nodes in the cluster prior to detection of the cluster partition, wherein each done message indicates that a respective sending node is now using the new coordinator resource. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A system comprising:
-
a first coordinator resource; a second coordinator resource; and a cluster comprising a plurality of nodes, wherein the first coordinator resource is coupled to the cluster, the cluster comprises a primary node, the cluster is configured to; detect, prior to switching from the first coordinator resource to the second coordinator resource, whether each of the plurality of nodes is committing to use the second coordinator resource, wherein the cluster is further configured to detect whether each of the nodes of the cluster has received a switchover request; detect a cluster partition; switch from using the first coordinator resource to using the second coordinator resource without ending cluster operations, wherein the second coordinator resource is configured to deny access by a first node of the plurality of nodes subsequent to the cluster partition; and end cluster operations on the first node, if the first node has not received a done message from each of the other nodes in the cluster prior to detection of the cluster partition, wherein the done message indicates that a sending node is using the second coordinator resource. - View Dependent Claims (11, 12, 13, 14)
-
-
15. A node comprising:
-
an interface configured to receive information identifying a new coordinator resource; and a coordinator resource update module coupled to the interface and configured to; receive information identifying a new coordinator resource for use by a cluster, wherein the cluster comprises the node and an additional node, the cluster comprises a primary node, the cluster is coupled to an existing coordinator resource; detect, prior to switching from the existing coordinator resource to the new coordinator resource, whether each of the nodes of the cluster is committing to use the new coordinator resource, wherein the coordinator resource update module is further configured to detect whether each of the nodes of the cluster has received a switchover request; detect a cluster partition; and switch from the existing coordinator resource to the new coordinator resource, in response to detecting that each of the nodes of the cluster is committing to use the new coordinator resource, wherein the new coordinator resource is configured to deny access by a first node of the plurality of nodes subsequent to the cluster partition; end cluster operations on the first node, if the first node has not received a done message from each of the other nodes in the cluster prior to detection of the cluster partition, wherein the done message indicates that a sending node is now using the new coordinator resource. - View Dependent Claims (16, 17, 18, 19)
-
-
20. A non-transitory computer readable storage medium comprising program instructions executable to:
-
receive information identifying a new coordinator resource for use by a cluster, wherein the cluster is coupled to an existing coordinator resource, the cluster comprises a plurality of nodes, and one of the nodes of the plurality of nodes is a primary node; detect, prior to switching from the existing coordinator resource to the new coordinator resource, whether each of the nodes within the cluster is committing to use the new coordinator resource; detect whether each of the nodes of the cluster has received a switchover request; detect a cluster partition; switch from the existing coordinator resource to the new coordinator resource, in response to detecting that each of the nodes within the cluster is committing to use the new coordinator resource, wherein the new coordinator resource is configured to deny access by a first node of the plurality of nodes subsequent to the cluster partition; and end cluster operations on the first node, if the first node has not received a done message from each of the other nodes in the cluster prior to detection of the cluster partition, wherein the done message indicates that a sending node is now using the new coordinator resource. - View Dependent Claims (21, 22)
-
Specification