about summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2020-04-23 13:35:12 +0200
committerGitHub <noreply@github.com>2020-04-23 13:35:12 +0200
commit25605d2e3f76e6b457825ecee5bc8fd68c282528 (patch)
treef8618da2211e4f3ee57cbf33cbfe20cee49fbdb3 /nixos/modules/system
parent58f8e4a8c2d1c258710ec8389cc6615abf6463c7 (diff)
parent811411db6e67aac454cbdae8ff375ed467ef4eba (diff)
downloadnixlib-25605d2e3f76e6b457825ecee5bc8fd68c282528.tar
nixlib-25605d2e3f76e6b457825ecee5bc8fd68c282528.tar.gz
nixlib-25605d2e3f76e6b457825ecee5bc8fd68c282528.tar.bz2
nixlib-25605d2e3f76e6b457825ecee5bc8fd68c282528.tar.lz
nixlib-25605d2e3f76e6b457825ecee5bc8fd68c282528.tar.xz
nixlib-25605d2e3f76e6b457825ecee5bc8fd68c282528.tar.zst
nixlib-25605d2e3f76e6b457825ecee5bc8fd68c282528.zip
Merge pull request #85735 from nh2/journald-storage-limit-logs
journald service docs: Add helpful comments about the journal getting full
Diffstat (limited to 'nixos/modules/system')
-rw-r--r--nixos/modules/system/boot/systemd.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix
index f955746f78a0..2167df60bc9a 100644
--- a/nixos/modules/system/boot/systemd.nix
+++ b/nixos/modules/system/boot/systemd.nix
@@ -593,6 +593,9 @@ in
         each other's limit. The value may be specified in the following
         units: s, min, h, ms, us. To turn off any kind of rate limiting,
         set either value to 0.
+
+        See <option>services.journald.rateLimitBurst</option> for important
+        considerations when setting this value.
       '';
     };
 
@@ -604,6 +607,19 @@ in
         interval) that is applied to all messages generated on the system.
         This rate limiting is applied per-service, so that two services
         which log do not interfere with each other's limit.
+
+        Note that the effective rate limit is multiplied by a factor derived
+        from the available free disk space for the journal as described on
+        <link xlink:href="https://www.freedesktop.org/software/systemd/man/journald.conf.html">
+        journald.conf(5)</link>.
+
+        Note that the total amount of logs stored is limited by journald settings
+        such as <literal>SystemMaxUse</literal>, which defaults to a 4 GB cap.
+
+        It is thus recommended to compute what period of time that you will be
+        able to store logs for when an application logs at full burst rate.
+        With default settings for log lines that are 100 Bytes long, this can
+        amount to just a few hours.
       '';
     };