Files
nomad/client
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
..
2018-10-16 16:53:31 -07:00
2018-10-16 16:56:56 -07:00
2018-10-16 16:56:55 -07:00
2018-11-07 11:31:52 -08:00
2018-05-31 18:05:03 -07:00
2018-10-16 16:56:55 -07:00
2018-10-16 16:53:30 -07:00
2018-02-15 13:59:03 -08:00
2018-11-13 10:21:40 -05:00
2018-10-16 16:53:30 -07:00
2018-10-16 16:53:30 -07:00
2018-10-16 16:53:29 -07:00