Skip to main content

Distribution policy

A distribution policy determines how the resources of a CPU or GPU are shared between the tasks on a host. OpenDC defines 5 distribution policies, with the default policy being maxMinFairness.

The type selects the policy:

TypeFieldsBehaviour
maxMinFairnessSatisfies the smallest demands first, so that no task is starved. This is the default.
bestEffortupdateInterval (Duration, default 1 s)Round-robin over the tasks, rotating every updateInterval, while using as much of the capacity as possible. Inspired by NVIDIA's vGPU scheduler.
equalShareGives every task the same share of the capacity, regardless of its demand. Inspired by NVIDIA's vGPU scheduler.
firstFitGives each task its full demand, in order, until the capacity is used up.
fixedShareshareRatio (default 1.0)Gives each active task a fixed fraction of the capacity. Unused shares are not given to other tasks. Inspired by NVIDIA's vGPU scheduler.

Example​

"gpuDistribution": {
"type": "bestEffort",
"updateInterval": "1 minutes"
}