open-nomad/plugins/device/cmd/nvidia
oleksii.shyman 0ea1dc1776 Introduce Nvidia-plugin stats
- created go-nvml wrapper for stats
 - added stats feature to nvidia-plugin
2018-10-03 15:12:05 -07:00
..
cmd Introduce nvidia-plugin fingerprinting 2018-10-03 15:11:56 -07:00
nvml Introduce Nvidia-plugin stats 2018-10-03 15:12:05 -07:00
README.md Introduce Nvidia-plugin stats 2018-10-03 15:12:05 -07:00
device.go Introduce Nvidia-plugin stats 2018-10-03 15:12:05 -07:00
device_test.go Introduce Nvidia-plugin stats 2018-10-03 15:12:05 -07:00
fingerprint.go Introduce nvidia-plugin fingerprinting 2018-10-03 15:11:56 -07:00
fingerprint_test.go Introduce nvidia-plugin fingerprinting 2018-10-03 15:11:56 -07:00
stats.go Introduce Nvidia-plugin stats 2018-10-03 15:12:05 -07:00
stats_test.go Introduce Nvidia-plugin stats 2018-10-03 15:12:05 -07:00

README.md

This package provides an implementation of nvidia device plugin

Behavior

Nvidia device plugin uses NVML bindings to get data regarding available nvidia devices and will expose them via Fingerprint RPC. GPUs can be excluded from fingerprinting by setting the ignored_gpu_ids field. Plugin sends statistics for fingerprinted devices every stats_period period.

Config

The configuration should be passed via an HCL file that begins with a top level config stanza:

config {
  ignored_gpu_ids = ["uuid1", "uuid2"]
  fingerprint_period = "5s"
  stats_period = "5s"
}

The valid configuration options are:

  • ignored_gpu_ids (list(string): []): list of GPU UUIDs strings that should not be exposed to nomad
  • fingerprint_period (string: "5s"): The interval to repeat fingerprint process to identify possible changes.
  • stats_period (string: "5s"): The interval at which to emit statistics about the devices.