rkaw92 / vpslite

An easy automation solution for cheaply hosting your containerized app on a VPS.
0 stars 0 forks source link

Limit log size #2

Closed rkaw92 closed 20 hours ago

rkaw92 commented 2 days ago

See https://access.redhat.com/solutions/6985647

rkaw92 commented 21 hours ago

I checked and apparently Podman in the Quadlets mode (unit file) sends logs to journald, so it's not necessary to add separate limits.

We should configure journald instead, using a drop-in config.

rkaw92 commented 20 hours ago

Looking at journald defaults:

The first pair defaults to 10% and the second to 15% of the size of the respective file system, but each value is capped to 4G.

Should be OK for typical use.