Skip to content

Commit

Permalink
Set a rate limit on syslog messages from all Docker containers (sonic…
Browse files Browse the repository at this point in the history
…-net#2573)

Rate limiting at 20,000 messages per 5-minute interval
  • Loading branch information
jleveque authored and tiantianlv committed Apr 10, 2019
1 parent 1e48feb commit 1aa304e
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 1aa304e

Please sign in to comment.