Files
nomad/api
Mahmood Ali 58cbafe913 Populate alloc stats API with device stats
This change makes few compromises:

* Looks up the devices associated with tasks at look up time.  Given
that `nomad alloc status` is called rarely generally (compared to stats
telemetry and general job reporting), it seems fine.  However, the
lookup overhead grows bounded by number of `tasks x total-host-devices`,
which can be significant.

* `client.Client` performs the task devices->statistics lookup.  It
passes self to alloc/task runners so they can look up the device statistics
allocated to them.
  * Currently alloc/task runners are responsible for constructing the
entire RPC response for stats
  * The alternatives for making task runners device statistics aware
don't seem appealing (e.g. having task runners contain reference to hostStats)

* On the alloc aggregation resource usage, I did a naive merging of task device statistics.
  * Personally, I question the value of such aggregation, compared to
costs of struct duplication and bloating the response - but opted to be
consistent in the API.
  * With naive concatination, device instances from a single device group used by separate tasks in the alloc, would be aggregated in two separate device group statistics.
2018-11-16 10:26:32 -05:00
..
2017-10-13 14:36:02 -07:00
2017-10-13 13:12:20 -07:00
2017-10-13 13:12:20 -07:00
2018-03-12 11:59:33 -07:00
2018-03-11 19:07:44 +00:00
2018-03-11 17:47:24 +00:00
2017-07-21 16:33:04 -07:00
2018-05-31 10:57:08 -07:00
2018-03-14 16:10:32 -05:00
2017-09-29 10:36:08 -07:00
2018-11-01 17:05:17 -05:00
2017-09-19 10:08:23 -05:00
2017-10-13 14:36:02 -07:00
2018-11-14 22:13:23 -05:00
2018-09-04 16:03:52 -07:00
2017-10-13 14:36:02 -07:00
2017-10-13 14:36:02 -07:00
2017-07-21 16:33:04 -07:00
2017-09-19 10:08:23 -05:00
2017-09-19 10:08:23 -05:00
2017-07-21 16:33:04 -07:00
2016-03-17 16:04:09 -07:00
2017-07-21 16:33:04 -07:00