Skip to content

Commit

Permalink
update qos ingress_policing_burst
Browse files Browse the repository at this point in the history
Ovs document suggest set ingress_policing_burst  at least as large as 80% of  ingress_policing_rate, this helps TCP come closer to achieving the full rate.
  • Loading branch information
feixiang43 committed Jul 15, 2021
1 parent 187c594 commit 949c28c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ovs/ovs-vsctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func SetInterfaceBandwidth(podName, podNamespace, iface, ingress, egress string)

for _, ifName := range interfaceList {
// ingress_policing_rate is in Kbps
err := ovsSet("interface", ifName, fmt.Sprintf("ingress_policing_rate=%d", ingressKPS), fmt.Sprintf("ingress_policing_burst=%d", ingressKPS*10/8))
err := ovsSet("interface", ifName, fmt.Sprintf("ingress_policing_rate=%d", ingressKPS), fmt.Sprintf("ingress_policing_burst=%d", ingressKPS*8/10))
if err != nil {
return err
}
Expand Down

0 comments on commit 949c28c

Please sign in to comment.