Skip to content

Commit e5b8302

Browse files
jlevequeyxieca
authored andcommitted
Set a rate limit on syslog messages from all Docker containers (#2573)
Rate limiting at 20,000 messages per 5-minute interval
1 parent daf45c5 commit e5b8302

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

dockers/docker-base/etc/rsyslog.conf

+7
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414
#################
1515

1616
$ModLoad imuxsock # provides support for local system logging
17+
18+
#
19+
# Set a rate limit on messages from the container
20+
#
21+
$SystemLogRateLimitInterval 300
22+
$SystemLogRateLimitBurst 20000
23+
1724
#$ModLoad imklog # provides kernel logging support
1825
#$ModLoad immark # provides --MARK-- message capability
1926

platform/p4/docker-sonic-p4/rsyslog.conf

+7
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414
#################
1515

1616
$ModLoad imuxsock # provides support for local system logging
17+
18+
#
19+
# Set a rate limit on messages from the container
20+
#
21+
$SystemLogRateLimitInterval 300
22+
$SystemLogRateLimitBurst 20000
23+
1724
#$ModLoad imklog # provides kernel logging support
1825
#$ModLoad immark # provides --MARK-- message capability
1926

0 commit comments

Comments
 (0)