CPC G06F 11/1469 (2013.01) [G06F 11/1443 (2013.01); G06F 11/1451 (2013.01); G06F 11/1464 (2013.01); G06F 11/2025 (2013.01); G06F 11/2056 (2013.01); G06F 11/2064 (2013.01); G06F 11/2069 (2013.01); G06F 11/2082 (2013.01); G06F 11/3006 (2013.01); G06F 16/178 (2019.01); G06F 16/275 (2019.01); G06F 11/2028 (2013.01); G06F 11/2041 (2013.01); G06F 11/2048 (2013.01); G06F 11/2076 (2013.01)] | 20 Claims |
1. A system, comprising:
at least one processor; and
a memory, storing program instructions that when executed by the at least one processor, cause the at least one processor to implement:
detect a failure of a first replica of a database in a first data zone comprising a first one or more data centers, wherein the database is synchronously replicated to a second replica of the database in a second data zone comprising a second one or more data centers, wherein the second data zone is selected out of a plurality of data zones offered by a database service that hosts the database via an interface of the database service, and wherein the selection of the second data zone is to create the second replica of the database in the second data zone;
responsive to the detection of the failure:
perform a failover to the second replica of the database in the second data zone from the first replica of the database in the first data zone; and
update a record for an endpoint DNS name of the database to direct client requests using the endpoint DNS name to the second replica of the database in the second data zone instead of the first replica of the database in the first data zone.
|