nomad: Adding per-task resources block

This commit is contained in:
Armon Dadgar 2015-09-12 16:22:18 -07:00
parent 93020187da
commit a8d0c6994e

View file

@ -902,10 +902,14 @@ type Allocation struct {
// TaskGroup is the name of the task group that should be run
TaskGroup string
// Resources is the set of resources allocated as part
// Resources is the total set of resources allocated as part
// of this allocation of the task group.
Resources *Resources
// TaskResources is the set of resources allocated to each
// task. These should sum to the total Resources.
TaskResources map[string]*Resources
// Metrics associated with this allocation
Metrics *AllocMetric