Change the default resource allocation policy in conjunction with resource plan

You must be a cluster administrator.

EGO systematically allocates resources according to a default plan. A key component of this plan is that consumers who experience demand borrow resources from other lending consumers before they reclaim any of their lent resources.

You can create a resource plan and change the resource allocation behavior so that owned resources get reclaimed by consumers before they are borrowed or allocated from elsewhere. This is done in coordination with an effective resource plan that properly reflects your business requirements.

  1. Create an appropriate resource plan (Consumers > Consumers & Plans > Configure Resource Plan).

    If you have never created, updated, or imported a resource plan, the base plan is your only plan and it has default settings. See the topic Create or modify a resource plan for a detailed procedure. Find a summary below:

    1. Set the date and time as well as the frequency of occurrence.
    2. If you have created resource groups, choose the resource group you want to set the resources from the drop-down menu (for example, Resource Group: ComputeHosts).
    3. Select Show Advanced Settings.
    4. Click Expand All.
    5. Set your owned slots for each consumer until the balance for each consumer branch in each time period is 0.
    6. Rank your consumers, remembering that resources are reclaimed based on rank (those leaf consumers with a lower consumer rank are reclaimed before consumers with a higher rank).

      Specify any positive whole number, where 1 is the highest priority. Priority settings are relative to one another within the resource group. If you leave the priority blank, that consumer has no priority over any other consumer (it does not form part of any consumer ordering/sequencing).

    7. For each leaf consumer that has something registered to it, select the options to Lend and Borrow.

      Lending allows a consumer’s unused slots to be used by other consumers. Borrowing lets a consumer use unowned or lent slots when they are available.

    8. (Optional: if Lend is checked) Next to Lend, click Details. In the Lend Details dialog box, specify the maximum number of slots you would like to lend in the Total lend limit field.
    9. (Optional: if Borrow is checked) Next to Borrow, specify the maximum number of slots you would like to borrow at any time in Limit.
    10. (Optional) Specify the share ratio that applies across consumers at the same level in one branch.
      • If you want sibling consumers to share the resources equally, type 1 for all.

      • If you want one leaf consumer to have twice as many resources as its sibling, type 2 for the first consumer and 1 for the second consumer.

      • If you want one consumer to give up all its borrowed resources when a sibling has demand, specify 0 for the lower-priority consumer. Note that in doing this, the consumer does not receive any resource from the share pool.

    11. Click Apply to save and make the current settings active.

      If you do not want to make the current changes active, export the resource plan instead.

  2. Set a reclaim grace period and rebalance behavior for a selected consumer:
    1. Click Consumers > Consumers & Plan.
    2. Click a top-level consumer from the consumer tree.
    3. Click Consumer Properties.
    4. Specify a reclaim grace period to apply when a resource gets reclaimed by its owner.
    5. Check the Rebalance when time intervals change box if you want EGO to “rebalance” or reset to the originally configured resource plan whenever a time interval change occurs (when there is a change in ownership of resources) or when resources are reclaimed (or passed back to their original owners).
    6. Click Apply.
  3. Change the default reclaim behavior:
    1. Click Cluster > Summary > Cluster Properties.
    2. Specify the resource allocation behavior for the cluster by checking the appropriate boxes in the section Specify resource allocation behavior.
      • To allow the share pool to reclaim resources from an over-allocated consumer, ensure Reclaim shared resources is checked (default).

      • To allow a leaf consumer to reclaim its resources before borrowing from another consumer, check Reclaim lent resources before borrowing.

    3. Click Apply.

EGO continues to allocate resources according to your configured resource plan, but now considers systematically allocating resources in a different order.