private ClusterResources applyOn(ClusterResources resources, Capacity capacity, boolean exclusive) {
        int nodes = decideCount(resources.nodes(), capacity.isRequired(), applicationId.instance().isTester());
        int groups = decideGroups(resources.nodes(), resources.groups(), nodes);
        var nodeResources = decideNodeResources(resources.nodeResources(), capacity.isRequired(), exclusive);
        return new ClusterResources(nodes, groups, nodeResources);
    }
Defines the policies for assigning cluster capacity in various environments.

@author bratseth
config-provisioning/src/main/java/com/yahoo/config/provision/CapacityPolicies.java