The cluster administrator can specify affinities between a resource group in a zone cluster and another resource group in a zone cluster or a resource group on the global cluster.
You can use the following command to specify the affinity between resource groups in zone clusters.
# clresourcegroup set -p RG_affinities=affinity-typetarget-zc:target-rg source-zc:source-rg |
The resource group affinity types in a zone cluster can be one of the following:
+ (weak positive)
++ (strong positive)
- (weak negative)
-- (strong negative)
The affinity type +++ is not supported for zone clusters in this release.
This example shows the command for specifying a strong positive affinity between resource groups in zone clusters.
The resource group RG1 in a zone cluster ZC1 declares a strong positive affinity for a resource group RG2 in a zone cluster ZC2.
If you need to specify a strong positive affinity between a resource group RG1 in a zone cluster ZC1 and a resource group RG2 in another zone cluster ZC2, use the following command:
# clresourcegroup set -p RG_affinities=++ZC2:RG2 ZC1:RG1 |
This example shows the command for specifying a strong negative affinity between resource groups in zone clusters. If you need to specify a strong negative affinity between a resource group RG1 in a zone cluster ZC1 and a resource group RG2 in the global cluster, use the following command:
# clresourcegroup set -p RG_affinities=--global:RG2 ZC1:RG1 |