From: Lennart Poettering Date: Thu, 29 Dec 2011 14:00:05 +0000 (+0100) Subject: journald: increase rate limit burst rate X-Git-Tag: v38~144^2~9 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de97b26ac5e29063632312ec1a20eb6318ca924c;p=systemd journald: increase rate limit burst rate --- diff --git a/src/journal/journald.c b/src/journal/journald.c index c216b787..e7231d96 100644 --- a/src/journal/journald.c +++ b/src/journal/journald.c @@ -44,6 +44,9 @@ #define USER_JOURNALS_MAX 1024 #define STDOUT_STREAMS_MAX 4096 +#define DEFAULT_RATE_LIMIT_INTERVAL (10*USEC_PER_SEC) +#define DEFAULT_RATE_LIMIT_BURST 200 + #define RECHECK_AVAILABLE_SPACE_USEC (30*USEC_PER_SEC) typedef struct StdoutStream StdoutStream; @@ -1574,7 +1577,7 @@ static int server_init(Server *s) { if (r < 0) return r; - s->rate_limit = journal_rate_limit_new(10*USEC_PER_SEC, 2); + s->rate_limit = journal_rate_limit_new(DEFAULT_RATE_LIMIT_INTERVAL, DEFAULT_RATE_LIMIT_BURST); if (!s->rate_limit) return -ENOMEM;