Patent ID: 9641449
Date: 2017-05-02
CPC Classifications: G06F,H04L

Claim:
1. A method for maintaining continuous availability, the method comprising: establishing a plurality of workload distribution rules, comprising a workload distribution rule for each of a plurality of workloads, wherein a first workload distribution rule applies to a first workload and a second workload distribution rule applies to a second workload; receiving four or more units of work data, comprising a first unit of work data for a first workload replicated in a plurality of first replicas across a plurality of sites, and a second unit of work data for a second workload replicated in a plurality of second replicas across the plurality of sites; selecting a primary replica of the first workload from among the plurality of first replicas to process the first unit of work data based on the first workload distribution rule; selecting a primary replica of the second workload from among the plurality of second replicas to process the second unit of work data based on the second workload distribution rule; wherein the primary replica of the first workload and the primary replica of the second workload exist simultaneously and are located on distinct sites from each other among the plurality of sites; determining, by a computer processor, based on one or more user configurable settings, that the primary replica of the first workload is capable of processing a third unit of work data for the first workload, the third unit of work data being among the four or more units of work data; transmitting the third unit of work data to the primary replica of the first workload responsive to determining that the primary replica of the first workload is capable of processing the third unit of work data; and replicating the third unit of work data between the primary replica of the first workload and a secondary replica of the first workload, the secondary replica being from among the plurality of first replicas; wherein each of the four or more units of work data is distributed among the plurality of sites according to the first workload distribution rule using one of: wherein a fourth unit of work data of the four or more units of work data is distributed among the plurality of first replicas across the plurality of sites using the active/query configuration, and wherein the method further comprises: