Develop a device plug-in
When you start the Node Manager, the new device plug-in is automatically loaded into the framework. You must implement only the DevicePlugin interface and optionally the DevicePluginScheduler interface.
As an example, the new framework includes a sample implementation of Nvidia GPU plug-in supporting Nvidia GPUs detection with a custom scheduler, and isolating containers run with both YARN cgroups and Nvidia Docker runtime v2. You can use the example as a reference for developing your device plug-in.