Patent ID: 9465698
Filing Date: 2016-10-11
CPC Classification: G06F,H04L

Claim Text:
1. A method of recovering from a fault in a multi-tenant distributed environment comprising processing resources including at least one processor and in which a registry stores information indicating which of a plurality of nodes in the multi-tenant distributed environment are assigned to host master and replication instances storing data for respective tenants, the method comprising, in response to a detected fault: obtaining a list of running instances in the multi-tenant distributed environment; identifying from the list of running instances, for each tenant, one or more candidate instances that might host master and/or replication instances for the respective tenant; for each tenant for which exactly one candidate instance is identified, re-registering with the registry this identified candidate instance as the master instance for the respective tenant; and for each tenant for which exactly two candidate instances are identified: determining whether timestamps of the last changes for each of these two candidate instances are available, and in response to a determination that timestamps of the last changes for each of these two candidate instances are available, re-registering with the registry the two candidate instances as master and replication instances for the respective tenant based at least in part on the timestamps.