From 1e5cce8dcabece7c8b83bca97b3bb2ac082c161a Mon Sep 17 00:00:00 2001 From: GraysonWu Date: Thu, 31 Aug 2023 03:46:36 -0700 Subject: [PATCH] Increase Rate-limit config (#5460) 100 packets per second and 200 burst are not enought. Increase to 500 packets per second and 1000 burst. Signed-off-by: graysonwu --- pkg/agent/openflow/packetin.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/agent/openflow/packetin.go b/pkg/agent/openflow/packetin.go index 1faf2991554..1dc02b799d5 100644 --- a/pkg/agent/openflow/packetin.go +++ b/pkg/agent/openflow/packetin.go @@ -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.