Configure maximum size and timespan of journald logs #594

Merged
raucao merged 3 commits from feature/506-journald_logs_config into master 2025-05-21 12:12:58 +00:00
Owner

This has been run of mastodon-3, still need to do it on the rest of the nodes

Ready to review

Closes #506

This has been run of mastodon-3, still need to do it on the rest of the nodes Ready to review Closes #506
greg added the
kredits-1
ops
bug
labels 2025-05-21 09:38:00 +00:00
greg added 2 commits 2025-05-21 09:38:00 +00:00
greg requested review from raucao 2025-05-21 09:38:00 +00:00
greg added this to the 2025/Q2 project 2025-05-21 09:38:00 +00:00
Owner

Let's put those values in default attributes, so we can override them per role or environment?

I think we could also define a service without having to create a custom service, so we can just notify :restart, service[systemd-journald].

Let's put those values in default attributes, so we can override them per role or environment? I think we could also define a `service` without having to create a custom service, so we can just notify `:restart, service[systemd-journald]`.
raucao added
feature
and removed
bug
labels 2025-05-21 10:53:51 +00:00
greg added 1 commit 2025-05-21 11:41:38 +00:00
Also extract the attributes so it is possible to override them.
Author
Owner

Let's put those values in default attributes, so we can override them per role or environment?

I think we could also define a service without having to create a custom service, so we can just notify :restart, service[systemd-journald].

It does look better with these changes

> Let's put those values in default attributes, so we can override them per role or environment? > > I think we could also define a `service` without having to create a custom service, so we can just notify `:restart, service[systemd-journald]`. It does look better with these changes
raucao approved these changes 2025-05-21 12:11:15 +00:00
raucao left a comment
Owner

Confirmed to work by testing on strfry-1. 👍

Confirmed to work by testing on `strfry-1`. 👍
Owner

I think we don't need to run this everywhere immediately. For most nodes, it should be enough as a drive-by improvement next time they're converged. And the ones that had issues with disk space in the past already have it configured manually.

I think we don't need to run this everywhere immediately. For most nodes, it should be enough as a drive-by improvement next time they're converged. And the ones that had issues with disk space in the past already have it configured manually.
raucao merged commit 98be234a4f into master 2025-05-21 12:12:58 +00:00
raucao deleted branch feature/506-journald_logs_config 2025-05-21 12:12:59 +00:00
raucao moved this to Done in 2025/Q2 on 2025-05-22 12:43:02 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kosmos/chef#594
No description provided.