Patent ID: 11886307
Assignee: VMWARE LLC
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. A method to provide site locality support in a stretched cluster having hosts at different geographic locations, the method comprising:
determining a site affinity setting of a file server;
based on the determined site affinity setting and on a workload of a first host at a first site at a first geographic location, locating the file server and corresponding data path components at the first host, such that access by a client to a storage object at a distributed storage system traverses through the first site and avoids cross-site access to a second site;
in response to a failure at the first host, performing a failover to migrate the file server and corresponding data path components from the failed first host to an active second host; and
in response to restoration of the first host to be active, performing a failback to migrate the file server and at least some of the corresponding data path components from the active second host back to the restored first host, wherein the file server and the at least some of the corresponding data path components are migrated from the active second host to an active third host, instead of performing the failback to migrate from the active second host back to the restored first host, based on a guardrail that specifies an amount of tolerable disruption due to attempting the failback to migrate from the active second host back to the restored first host.