Skip to content

Commit

Permalink
Set a rate limit on syslog messages from all Docker containers (#2573)
Browse files Browse the repository at this point in the history
Rate limiting at 20,000 messages per 5-minute interval
  • Loading branch information
jleveque authored and yxieca committed Mar 7, 2019
1 parent daf45c5 commit e5b8302
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dockers/docker-base/etc/rsyslog.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
#################

$ModLoad imuxsock # provides support for local system logging

#
# Set a rate limit on messages from the container
#
$SystemLogRateLimitInterval 300
$SystemLogRateLimitBurst 20000

#$ModLoad imklog # provides kernel logging support
#$ModLoad immark # provides --MARK-- message capability

Expand Down
7 changes: 7 additions & 0 deletions platform/p4/docker-sonic-p4/rsyslog.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
#################

$ModLoad imuxsock # provides support for local system logging

#
# Set a rate limit on messages from the container
#
$SystemLogRateLimitInterval 300
$SystemLogRateLimitBurst 20000

#$ModLoad imklog # provides kernel logging support
#$ModLoad immark # provides --MARK-- message capability

Expand Down

0 comments on commit e5b8302

Please sign in to comment.