diff --git a/pkg/features/koordlet_features.go b/pkg/features/koordlet_features.go index cb76621ac3..89ad18aaa6 100644 --- a/pkg/features/koordlet_features.go +++ b/pkg/features/koordlet_features.go @@ -141,6 +141,12 @@ const ( // Backend applications can enable the hugepages based on the allocation results. // For example, the CSI mounts the pre-allocated hugepages into the pod. HugePageReport featuregate.Feature = "HugePageReport" + + // owner: @l1b0k + // alpha: v1.5 + // + // NetQoS enables net QoS feature of koordlet. + NetQoS featuregate.Feature = "NetQoS" ) func init() { @@ -170,6 +176,7 @@ var ( BlkIOReconcile: {Default: false, PreRelease: featuregate.Alpha}, ColdPageCollector: {Default: false, PreRelease: featuregate.Alpha}, HugePageReport: {Default: false, PreRelease: featuregate.Alpha}, + NetQoS: {Default: false, PreRelease: featuregate.Alpha}, } ) diff --git a/pkg/koordlet/qosmanager/plugins/register.go b/pkg/koordlet/qosmanager/plugins/register.go index 0f385fb940..118e38bf1e 100644 --- a/pkg/koordlet/qosmanager/plugins/register.go +++ b/pkg/koordlet/qosmanager/plugins/register.go @@ -24,6 +24,7 @@ import ( "github.com/koordinator-sh/koordinator/pkg/koordlet/qosmanager/plugins/cpuevict" "github.com/koordinator-sh/koordinator/pkg/koordlet/qosmanager/plugins/cpusuppress" "github.com/koordinator-sh/koordinator/pkg/koordlet/qosmanager/plugins/memoryevict" + "github.com/koordinator-sh/koordinator/pkg/koordlet/qosmanager/plugins/netqos" "github.com/koordinator-sh/koordinator/pkg/koordlet/qosmanager/plugins/resctrl" "github.com/koordinator-sh/koordinator/pkg/koordlet/qosmanager/plugins/sysreconcile" ) @@ -38,5 +39,6 @@ var ( memoryevict.MemoryEvictName: memoryevict.New, resctrl.ResctrlReconcileName: resctrl.New, sysreconcile.SystemConfigReconcileName: sysreconcile.New, + netqos.NetQoSName: netqos.New, } )