Skip to content

Commit

Permalink
update priority range in htb qos (#1688)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongzhen-ma committed Jul 14, 2022
1 parent ef4673d commit 8bc1b16
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions docs/qos.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
type: object
properties:
priority:
type: string # Value in range 0 to 4,294,967,295.
type: string # Value in range 0 to 7.
scope: Cluster
names:
plural: htbqoses
Expand All @@ -52,9 +52,9 @@ The spec parameter has only one field, `htbqoses.spec.priority`, which value rep
```
mac@bogon kube-ovn % kubectl get htbqos
NAME PRIORITY
htbqos-high 100
htbqos-low 300
htbqos-medium 200
htbqos-high 1
htbqos-low 5
htbqos-medium 3
```
Specific priority values are unimportant, only relative ordering matters. The smaller the priority value, the higher the QoS priority.

Expand Down
6 changes: 3 additions & 3 deletions pkg/controller/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -703,11 +703,11 @@ func (c *Controller) initHtbQos() error {

switch qosName {
case util.HtbQosHigh:
priority = "100"
priority = "1"
case util.HtbQosMedium:
priority = "200"
priority = "3"
case util.HtbQosLow:
priority = "300"
priority = "5"
default:
klog.Errorf("qos %s is not default defined", qosName)
}
Expand Down

0 comments on commit 8bc1b16

Please sign in to comment.