Resource Groups

The notion of a "resource group" in Allocator is useful when you have a resource that is derived from multiple sources.

For example, you have some licenses of spice in India and some other license of the same spice in Russia, and you want to manage the aggregate of those license through Allocator.

Continuing the example, we are defining a resource group called "WAN:Spice" consisting of the two resources from the two servers, as follows:
#
# Fragment of vovlad/config.tcl 
#

LA::DefineResourceGroup "WAN:Spice" {
    #
    # Two components in this group.
    #
    LA::AddResource "India:spice"  FLEXLM/IN/spice ""
    LA::AddResource "Russia:spice" FLEXLM/RU/spice ""
}

This results in a resource map called "WAN:Spice" which is derived from the "OR'ing" of the licenses from India and the licenses from Russia, in addition to the individual resources called India:spice and Russia:spice.

By defining resource groups, Allocator can take into account the out-of-queue usage for the components when computing the allocation of the group.

It is possible to restrict distribution of a component to specific sites, such as geographically, by setting their weights to DO_NOT_SHARE.
#
# Fragment of vovlad/config.tcl 
#

LA::SetResourceWeight "RU" "India:spice" DO_NOT_SHARE