A computer system comprising one or more processors, one or more computer-readable memories, one or more computer-readable storage devices, and program instructions, stored on at least one of the one or more storage devices for execution by at least one of the one or more processors via at least one of the one or more memories, the stored program instructions comprising:
- program instructions to identify a plurality of functional domains for controlling a grouping of a plurality of servers;
- program instructions to assign, to each functional domain of the plurality of functional domains, a separate primary server from among the plurality of servers and a separate backup server from among the plurality of servers, wherein for each functional domain the separate primary server is different from the separate backup server based on a separate affinity selection for each functional domain;
- and
- program instructions, responsive to detecting a failure in a particular primary server of the plurality of servers, to automatically switch control of a particular functional domain assigned to the particular primary server from the particular primary server to a particular backup server assigned to the particular functional domain.