open-nomad/client/devicemanager
Mahmood Ali 3890619100 initialize device manager stats interval
Fixes a bug where we cpu is pigged at 100% due to collecting devices
statistics.  The passed stats interval was ignored, and the default zero
value causes a very tight loop of stats collection.

FWIW, in my testing, it took 2.5-3ms to collect nvidia GPU stats, on a
`g2.2xlarge` ec2 instance.

The stats interval defaults to 1 second and is user configurable.  I
believe this is too frequent as a default, and I may advocate for
reducing it to a value closer to 5s or 10s, but keeping it as is for
now.

Fixes https://github.com/hashicorp/nomad/issues/6057 .
2019-08-23 14:58:34 -04:00
..
state move reattach config 2019-01-22 15:11:58 -08:00
instance.go goimports until make check is happy 2019-01-23 06:27:14 -08:00
manager.go initialize device manager stats interval 2019-08-23 14:58:34 -04:00
manager_test.go test: fix NewMemDB API change 2019-03-04 13:37:20 -08:00
testing.go client/pluginmanager: add plugin manager interface to device/driver managers 2018-12-18 22:56:23 -05:00
utils.go