From: David Tardon Date: Thu, 5 Apr 2018 11:06:59 +0000 (+0200) Subject: journald: bump rate limits (#8660) X-Git-Tag: v239~435 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3de8ff5a69d0d30f099799ae661c0b8e337ae528;p=thirdparty%2Fsystemd.git journald: bump rate limits (#8660) Apparently, it is quite common to hit a problem, where systemd-journald would drop messages because service is logging too fast. --- diff --git a/man/journald.conf.xml b/man/journald.conf.xml index aaef49efd5a..bd63a6a98c7 100644 --- a/man/journald.conf.xml +++ b/man/journald.conf.xml @@ -158,7 +158,7 @@ interval is over. A message about the number of dropped messages is generated. This rate limiting is applied per-service, so that two services which log do not interfere - with each other's limits. Defaults to 1000 messages in 30s. + with each other's limits. Defaults to 10000 messages in 30s. The time specification for RateLimitIntervalSec= may be specified in the following units: s, min, diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c index a5f13153277..1858936c01d 100644 --- a/src/journal/journald-server.c +++ b/src/journal/journald-server.c @@ -79,7 +79,7 @@ #define DEFAULT_SYNC_INTERVAL_USEC (5*USEC_PER_MINUTE) #define DEFAULT_RATE_LIMIT_INTERVAL (30*USEC_PER_SEC) -#define DEFAULT_RATE_LIMIT_BURST 1000 +#define DEFAULT_RATE_LIMIT_BURST 10000 #define DEFAULT_MAX_FILE_USEC USEC_PER_MONTH #define RECHECK_SPACE_USEC (30*USEC_PER_SEC) diff --git a/src/journal/journald.conf b/src/journal/journald.conf index 03fce40e908..94d5c678aa0 100644 --- a/src/journal/journald.conf +++ b/src/journal/journald.conf @@ -18,7 +18,7 @@ #SplitMode=uid #SyncIntervalSec=5m #RateLimitIntervalSec=30s -#RateLimitBurst=1000 +#RateLimitBurst=10000 #SystemMaxUse= #SystemKeepFree= #SystemMaxFileSize=