Skip to content

Commit

Permalink
apis: add net QoS
Browse files Browse the repository at this point in the history
Signed-off-by: l1b0k <libokang.lbk@alibaba-inc.com>
  • Loading branch information
l1b0k committed Jan 15, 2024
1 parent 7c7a844 commit 6c737c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/features/koordlet_features.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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},
}
)

Expand Down
2 changes: 2 additions & 0 deletions pkg/koordlet/qosmanager/plugins/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand All @@ -38,5 +39,6 @@ var (
memoryevict.MemoryEvictName: memoryevict.New,
resctrl.ResctrlReconcileName: resctrl.New,
sysreconcile.SystemConfigReconcileName: sysreconcile.New,
netqos.NetQoSName: netqos.New,
}
)

0 comments on commit 6c737c6

Please sign in to comment.