Skip to content

Commit

Permalink
Increase Rate-limit config (#5460)
Browse files Browse the repository at this point in the history
100 packets per second and 200 burst are not enought.
Increase to 500 packets per second and 1000 burst.

Signed-off-by: graysonwu <wgrayson@vmware.com>
  • Loading branch information
GraysonWu authored Aug 31, 2023
1 parent 4ccd785 commit 1e5cce8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/agent/openflow/packetin.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,16 @@ const (
PacketInMeterIDDNS = 3
// Meter Entry Rate. It is represented as number of events per second.
// Packets which exceed the rate will be dropped.
PacketInMeterRateNP = 100
PacketInMeterRateTF = 100
PacketInMeterRateDNS = 100
PacketInMeterRateNP = 500
PacketInMeterRateTF = 500
PacketInMeterRateDNS = 500

// PacketInQueueSize defines the size of PacketInQueue.
// When PacketInQueue reaches PacketInQueueSize, new packetIn will be dropped.
PacketInQueueSize = 200
PacketInQueueSize = 1000
// PacketInQueueRate defines the maximum frequency of getting items from PacketInQueue.
// PacketInQueueRate is represented as number of events per second.
PacketInQueueRate = 100
PacketInQueueRate = 500
)

// RegisterPacketInHandler stores controller handler in a map with category as keys.
Expand Down

0 comments on commit 1e5cce8

Please sign in to comment.