CPC G06F 16/273 (2019.01) | 20 Claims |
1. A system comprising:
a secondary database management system configured to asynchronously replicate a primary database management system remote from the secondary database management system, the secondary database management system comprising a first host performing a first source role, a second host performing a first replica role for the first source role, a third host performing a second source role, and a fourth host performing a second replica role for the second source role, the first host, the second host, third host, and fourth host being executable software components of the secondary database management system, the first host and the second host being for managing a first portion of data stored by the secondary database management system the third host and the fourth host being for managing a second portion of the data stored by the secondary database management system, and the secondary database management system being programmed to execute operations comprising:
receiving, by a coordinator component of the secondary database management system, a takeover request, the takeover request indicating that the secondary database management system is to assume a role of the primary database management system;
determining, by the coordinator component, that a last valid commit of the first host is an oldest last valid commit;
reverting the secondary database management system to a first state of the primary database management system corresponding to the last valid commit of the first host; and
after reverting the secondary database management system to the first state of the primary database management system, configuring the secondary database management system to assume the role of the primary database management system.
|