Time-based resource planning

Time-based resource distribution

The resource plans can change according to time of day.

Time-based configuration in the resource plan allows the resource distribution for a consumer to change according to the time of day.

Time interval boundaries are at the hour point, so the minimum time interval is 60 minutes. The daily pattern repeats itself every 24 hours.

The simplest configuration is to divide the 24-hour period into 2 intervals such as daytime and nighttime, but you can specify multiple time intervals in the plan, with different resource distribution during every interval.

Example

For example, a consumer requires an ownership of 20 slots from 8:00 a.m. to midnight and only 10 slots from midnight to 8:00 a.m. Define two time intervals: one with ownership=20, one with ownership=10.

If the consumer wants the option to borrow resources only from 8:00 a.m. to 4:00 p.m., three time intervals are required:

  • midnight-8:00 a.m. (ownership=10, borrowing disabled)

  • 8:00 a.m.- 4:00 p.m. (ownership=20, borrowing enabled)

  • 4:00 p.m.- midnight (ownership=20, borrowing disabled)

Resource distribution changes

When a new time interval begins, with one or more consumers having new values for ownership or borrowing configuration, EGO responds to the change in plan immediately.

The change in plan can trigger reclaim of resources. Examples of how plan changes can affect consumers include the following:

Increased ownership

Decreased ownership

Decreased share pool

A consumer whose ownership increases when a new time interval begins may find themselves suddenly under-allocated. If there are workload units pending, EGO distributes more resources immediately.

A consumer whose ownership decreases when a new time interval begins could have workload units interrupted as resources get redistributed or reclaimed by other consumers.

When a new time interval begins, resources are immediately reallocated with changes in ownership, regardless of demand considerations. After the new time interval’s ownership allocations are made, resources may be reallocated back to consumers with demand through configured borrowing or sharing policies.

In cases where the resource distribution model changes from full share (with no ownership) to a hybrid model (with both sharing and resource ownership), a decrease in share pool resources between plans or given time intervals could affect configured consumer allocations.

If there are not enough unallocated resources in the share pool at the moment a new resource plan or time interval takes effect, then consumers are not allocated the planned number of owned resources. Allocated resources from the share pool must first be released back to the share pool by the clients that are using them before they can be reallocated as owned resources to a consumer.

A consumer whose ownership decreases when a new time interval begins could continue running workload units without interruption in this situation: if borrowing is enabled, the resource status can change from owned to borrowed.