Copyright (c) 2019 Intel Corporation
Node Feature Discovery support in Smart Edge Open
Overview of NFD and Edge usecase
Commercial, off-the-shelf (COTS) platforms used for edge deployment come with many features that enable workloads to take advantage of, to provide better performance, and to meet the SLA. When such COTS platforms are deployed in a cluster as part of a cloud-native deployment, it becomes important to detect the hardware and software features on all nodes that are part of that cluster. It should also be noted that some of the nodes might have special accelerator hardware (FPGA, GPU, Non-Volatile Memory Express (NVMe)*, etc.).
Consider an edge application such as CDN that needs to be deployed in the cloud-native edge cloud. It is favorable for a container orchestrator like Kubernetes* to detect the nodes that have CDN-friendly hardware and software features (NVMe, media extensions, etc.).
Next, consider a Container Network Function (CNF) such as 5G gNb that implements L1 5G NR base station. It is favorable for the container orchestrator like Kubernetes to detect nodes that have hardware and software features—FPGA acceleration for Forward Error Correction (FEC), advanced vector instructions to implement math functions, real-time kernel, etc.
Smart Edge Open supports the discovery of such features using Node Feature Discovery (NFD). NFD is a Kubernetes add-on that detects and advertises hardware and software capabilities of a platform that can, in turn, be used to facilitate intelligent scheduling of a workload. NFD is one of the technologies from Intel that supports targeting of intelligent configuration and capacity consumption of platform capabilities. NFD runs as a separate container on each node of the cluster, discovers the capabilities of the node, and finally, publishes these as node labels using the Kubernetes API. NFD only handles non-allocatable features.
Some of the Node features that NFD can detect include:
Figure - Sample NFD Features
At its core, NFD detects hardware features available on each node in a Kubernetes cluster and advertises those features using node labels.
NFD consists of two software components:
1) nfd-master is responsible for labeling Kubernetes node objects
2) nfd-worker detects features and communicates them to the nfd-master. One instance of nfd-worker should be run on each node of the cluster
The figure below illustrates how the CDN application will be deployed on the correct platform when NFD is utilized, where the required key hardware like NVMe and the AVX instruction set support is available.
Figure - CDN app deployment with NFD Features
Non-Volatile Memory Express (NVMe)* is a scalable, non-volatile memory host interface that can help increase efficiency and reduce latency, while providing high-speed access to storage media connected over PCIe. NVMe overcomes SAS/SATA SSD performance limitations by optimizing hardware and software to take full advantage of NVM SSD technology.
AVX CPUID Features: Intel® Advanced Vector Extensions 512 (Intel® AVX-512)
UEFI Secure Boot: Boot Firmware verification and authorization of OS Loader/Kernel components
Node Feature Discovery support in Smart Edge Open Network Edge
Node Feature Discovery is enabled by default. It does not require any configuration or user input. It can be disabled by changing the
ne_nfd_enable variable to
false in the
inventory/default/group_vars/all/10-open.yml before the Smart Edge Open installation.
The connection between
nfd-control-plane is secured by certificates generated before running NFD pods.
Node Feature Discovery is deployed in Smart Edge Open using a Helm chart downloaded from container-experience-kits repository.
NFD is working automatically and does not require any user action to collect the features from nodes. Features found by NFD and labeled in Kubernetes can be shown by the following command:
kubectl get no -o json | jq '.items.metadata.labels'
Example output :
To specify which features should be available by the node at deploying pod time, the
nodeSelector field should be defined in the pod
.yaml file. Example pod
- image: golang
More details about NFD can be found here: https://github.com/Intel-Corp/node-feature-discovery