Monitoring of replicated data instances
First Claim
1. A computer-implemented method of monitoring replicated database instances from a control environment, comprising:
- under control of one or more computer systems configured with executable instructions,assigning each of a plurality of replicated database instances in a database environment to one of a plurality of workload partitions, the plurality of workload partitions grouped according to one of a plurality of data zones or a plurality of geographical locations;
assigning each of a plurality of monitoring components in the control environment to one of the plurality of workload partitions, each monitoring component being assigned to a workload partition that is grouped to one of a first data zone or a first geographic zone that is different from a second data zone or a second geographic zone of the workload partition to which at least one of a primary instance replica or a secondary instance replica of a replicated database instance is assigned;
for each replicated database instance of the plurality of replicated database instances;
causing an assigned monitoring component to send a communication to a host manager for the primary instance replica of the replicated database instance, the assigned monitoring component being assigned to the workload partition to which the replicated database instance is assigned;
when data for the primary instance replica is synchronized with data for the secondary instance replica for the replicated database instance, receiving to the assigned monitoring component a lease for the replicated database instance, the lease specifying at least a lease period during which the assigned monitoring component will be able to monitor the replicated database instance,wherein, during the lease period, other monitoring components of the plurality of monitoring components are prohibited from initiating failover of the replicated database instance upon determination of failure of the replicated database instance; and
in response to receiving the lease to the assigned monitoring component, monitoring at least a status of the replicated database instance during the lease period using the assigned monitoring component.
1 Assignment
0 Petitions
Accused Products
Abstract
Replicated instances in a database environment provide for automatic failover and recovery. A monitoring component can obtain a lease enabling the component to periodically communicate with, and monitor, one or more data instances in the data environment, where the data instance can be a replicated instance including a primary and a secondary replica. For a large number of instances, the data environment can be partitioned such that each monitoring component can be assigned a partition of the workload. In the event of a failure of a monitoring component, the instances can be repartitioned and the remaining monitoring components can be assigned to the new partitions to substantially evenly distribute the workload.
141 Citations
24 Claims
-
1. A computer-implemented method of monitoring replicated database instances from a control environment, comprising:
under control of one or more computer systems configured with executable instructions, assigning each of a plurality of replicated database instances in a database environment to one of a plurality of workload partitions, the plurality of workload partitions grouped according to one of a plurality of data zones or a plurality of geographical locations; assigning each of a plurality of monitoring components in the control environment to one of the plurality of workload partitions, each monitoring component being assigned to a workload partition that is grouped to one of a first data zone or a first geographic zone that is different from a second data zone or a second geographic zone of the workload partition to which at least one of a primary instance replica or a secondary instance replica of a replicated database instance is assigned; for each replicated database instance of the plurality of replicated database instances; causing an assigned monitoring component to send a communication to a host manager for the primary instance replica of the replicated database instance, the assigned monitoring component being assigned to the workload partition to which the replicated database instance is assigned; when data for the primary instance replica is synchronized with data for the secondary instance replica for the replicated database instance, receiving to the assigned monitoring component a lease for the replicated database instance, the lease specifying at least a lease period during which the assigned monitoring component will be able to monitor the replicated database instance, wherein, during the lease period, other monitoring components of the plurality of monitoring components are prohibited from initiating failover of the replicated database instance upon determination of failure of the replicated database instance; and in response to receiving the lease to the assigned monitoring component, monitoring at least a status of the replicated database instance during the lease period using the assigned monitoring component. - View Dependent Claims (2, 3)
-
4. A computer-implemented method of monitoring database instances in a database environment from a control environment, comprising:
under control of one or more computer systems configured with executable instructions, assigning a monitoring component of a plurality of monitoring components in the control environment to a database instance in a database environment, the plurality of monitoring components grouped according to one of a plurality of data zones or a plurality of geographic locations, the database instance capable of being replicated to include at least a primary instance replica and a secondary instance replica, the monitoring component being assigned to at least one of a first data zone or a first geographical location that is different from a second data zone or a second geographical location of at least one of the primary instance replica or the secondary instance replica in the database environment when the database instance is replicated; causing the monitoring component to send a communication to the database instance, the communication being sent to at least the primary instance replica when the database instance is replicated; and in response to receiving lease information from the database instance, monitoring at least a status of the database instance using the monitoring component during a lease period associated with the lease information, wherein, during the lease period, other monitoring components of the plurality of monitoring components in the control environment are prohibited from initiating failover of the database instance upon determination of failure of the database instance. - View Dependent Claims (5, 6, 7, 8, 9, 10, 11, 12, 13, 14)
-
15. A system for monitoring database instances in a database environment from a control environment, comprising:
-
a processor; and a memory device including instructions that, when executed by the processor, cause the processor to; assign a monitoring component of a plurality of monitoring components in the control environment to a database instance in the database environment, the plurality of monitoring components grouped according to one of a plurality of data zones or a plurality of geographic locations, the database instance capable of being replicated to include at least a primary instance replica and a secondary instance replica, the monitoring component being assigned to at least one of a first data zone or a first geographical location that is different from a second data zone or a second geographical location of at least one of the primary instance replica or the secondary instance replica in the database environment when the database instance is replicated; cause the monitoring component to send a communication to the database instance, the communication being sent to at least the primary instance replica when the database instance is replicated; and in response to receiving lease information from the database instance, monitor at least a status of the database instance using the monitoring component during a lease period associated with the lease information, wherein, during the lease period, other monitoring components of the plurality of monitoring components in the control environment are prohibited from initiating failover of the database instance upon determination of failure of the database instance. - View Dependent Claims (16, 17, 18, 19, 20)
-
-
21. A non-transitory computer-readable storage medium storing instructions for monitoring database instances in a database environment from a control environment, the instructions when executed by a processor causing the processor to:
-
assign a monitoring component of a plurality of monitoring components in the control environment to a database instance in the database environment, the plurality of monitoring components grouped according to one of a plurality of data zones or a plurality of geographic locations, the database instance capable of being replicated to include at least a primary instance replica and a secondary instance replica, the monitoring component being assigned to at least one of a first data zone or a first geographical location that is different from a second data zone or a second geographical location of at least one of the primary instance replica or the secondary instance replica in the database environment when the database instance is replicated; cause the monitoring component to send a communication to the database instance, the communication being sent to at least the primary instance replica when the database instance is replicated; and in response to receiving lease information from the database instance, monitor at least a status of the database instance using the monitoring component during a lease period associated with the lease information, wherein, during the lease period, other monitoring components of the plurality of monitoring components in the control environment are prohibited from initiating failover of the database instance upon determination of failure of the database instance. - View Dependent Claims (22, 23, 24)
-
Specification