Skip to content

Commit 980cd60

Browse files
committed
fixed size limits for journald
1 parent 4b53ea5 commit 980cd60

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tasks/perun_journald.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,16 @@
1919
copy:
2020
dest: /etc/systemd/journald.conf.d/perun.conf
2121
content: |
22+
# see "man 5 journald.conf" for documentation of these directives
2223
[Journal]
2324
# use max 30% of disk
2425
SystemMaxUse={{ (log_disk.size_total * 0.3 / 1000000) | int }}M
2526
# keep free at least 20% of disk
2627
SystemKeepFree={{ (log_disk.size_total * 0.2 / 1000000) | int }}M
28+
# controls how large individual journal files in /var/log/journal may grow at most
29+
SystemMaxFileSize=512M
30+
# controls how many individual journal files to keep at most
31+
SystemMaxFiles=200
2732
register: perunjourconf
2833

2934
- name: "reload journald configuration"

0 commit comments

Comments
 (0)