Skip to content

Commit c992889

Browse files
committed
limited journald SystemMaxFiles to 30% of disk
1 parent e271b9a commit c992889

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tasks/perun_journald.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
# see "man 5 journald.conf" for documentation of these directives
2323
[Journal]
2424
# use max 30% of disk
25-
SystemMaxUse={{ (log_disk.size_total * 0.3 / 1000000) | int }}M
25+
SystemMaxUse={{ (log_disk.size_total * 0.3 / 1073741824) | int }}G
2626
# keep free at least 20% of disk
27-
SystemKeepFree={{ (log_disk.size_total * 0.2 / 1000000) | int }}M
27+
SystemKeepFree={{ (log_disk.size_total * 0.2 / 1073741824) | int }}G
2828
# controls how large individual journal files in /var/log/journal may grow at most
29-
SystemMaxFileSize=512M
29+
SystemMaxFileSize=1G
3030
# controls how many individual journal files to keep at most
31-
SystemMaxFiles=200
31+
SystemMaxFiles={{ (log_disk.size_total * 0.3 / 1073741824) | int }}
3232
register: perunjourconf
3333

3434
- name: "reload journald configuration"

0 commit comments

Comments
 (0)