Cockpit could/should have a system "Janitor" that ties in with the health card.
The main idea is to show an persistent overview of upcoming issues before they hit a critical enough level to display in the health card and to provide a means to address these issues.
It could be a new page, linked from the health card, that would show the amount of available storage — among other things — for critical, growing filesystem points, including:
/
/var/log/
/var/cache/
/tmp/
/home/
(In many systems, these are the same. In some, they're not. Where they're the same, they'd collapse down to /.)
Critically, there should be a way to vacuum logs and set policies to automatically trim the log size.
For manual compacting, it would be the eqivalent of:
journalctl --vacuum-time=20d
journalctl --vacuum-size=500M
For automatic compacting, we could have an interface that adjusts /etc/systemd/journald.conf with flags like SystemMaxUse=, SystemKeepFree=, SystemMaxFileSize=, SystemMaxFiles=, RuntimeMaxUse=, RuntimeKeepFree=, RuntimeMaxFileSize=, RuntimeMaxFiles=
In addition to logs, a janitor could show the size of and clean various caches, /tmp/, and so on.
It should be arranged in a human logical format instead of a filesystem format, so it could have groups on the page that say: "Log storage", "Cache", "Quota" (for users, including implied quotas) and mechanisms to free up space for each.
Cockpit could/should have a system "Janitor" that ties in with the health card.
The main idea is to show an persistent overview of upcoming issues before they hit a critical enough level to display in the health card and to provide a means to address these issues.
It could be a new page, linked from the health card, that would show the amount of available storage — among other things — for critical, growing filesystem points, including:
(In many systems, these are the same. In some, they're not. Where they're the same, they'd collapse down to /.)
Critically, there should be a way to vacuum logs and set policies to automatically trim the log size.
For manual compacting, it would be the eqivalent of:
For automatic compacting, we could have an interface that adjusts /etc/systemd/journald.conf with flags like
SystemMaxUse=, SystemKeepFree=, SystemMaxFileSize=, SystemMaxFiles=, RuntimeMaxUse=, RuntimeKeepFree=, RuntimeMaxFileSize=, RuntimeMaxFiles=In addition to logs, a janitor could show the size of and clean various caches, /tmp/, and so on.
It should be arranged in a human logical format instead of a filesystem format, so it could have groups on the page that say: "Log storage", "Cache", "Quota" (for users, including implied quotas) and mechanisms to free up space for each.