diff options
author | Anita Zhang <anitzhang@gmail.com> | 2018-10-07 20:28:36 -0700 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-10-18 09:56:20 +0200 |
commit | 90fc172e191f44979005a524521112f2bd1ff21b (patch) | |
tree | c7a62bfde5e0775425b209327d2be623a69ee8c5 /src/journal/journald-rate-limit.h | |
parent | 9fcdab9c8747ab092ac120b58de2ee7b1be9d7db (diff) | |
download | systemd-90fc172e191f44979005a524521112f2bd1ff21b.tar.gz |
core: implement per unit journal rate limiting
Add LogRateLimitIntervalSec= and LogRateLimitBurst= options for
services. If provided, these values get passed to the journald
client context, and those values are used in the rate limiting
function in the journal over the the journald.conf values.
Part of #10230
Diffstat (limited to 'src/journal/journald-rate-limit.h')
-rw-r--r-- | src/journal/journald-rate-limit.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/journal/journald-rate-limit.h b/src/journal/journald-rate-limit.h index 3a7f106de0..a2992800fe 100644 --- a/src/journal/journald-rate-limit.h +++ b/src/journal/journald-rate-limit.h @@ -5,6 +5,6 @@ typedef struct JournalRateLimit JournalRateLimit; -JournalRateLimit *journal_rate_limit_new(usec_t interval, unsigned burst); +JournalRateLimit *journal_rate_limit_new(void); void journal_rate_limit_free(JournalRateLimit *r); -int journal_rate_limit_test(JournalRateLimit *r, const char *id, int priority, uint64_t available); +int journal_rate_limit_test(JournalRateLimit *r, const char *id, usec_t rl_interval, unsigned rl_burst, int priority, uint64_t available); |