scylladb / scylla-machine-image

Apache License 2.0
19 stars 26 forks source link

Avoid rsyslog filling disk space for branch-5.1 #470

Closed syuu1228 closed 1 year ago

syuu1228 commented 1 year ago

Default configuration of logrotate is not enough to avoid disk full when logging speed is too fast. To make sure it rotates logs before disk full, we need to run logrotate much more frequently, and also do rotation in size based, not time based.

Related scylladb/scylla-enterprise#3080

syuu1228 commented 1 year ago

We cannot merge this to master branch, since we do not have it anymore, because we moved to Ubuntu Minimal (see more detail on https://github.com/scylladb/scylla-enterprise/issues/3080#issuecomment-1674141343). branch-5.1 is the latest version which uses rsyslog + logrotate on the image.

yaronkaikov commented 1 year ago

@syuu1228 Is this ready for review? please validate the change doesn't break anything

yaronkaikov commented 1 year ago

Validation passed https://jenkins.scylladb.com/job/scylla-5.1/job/releng-testing/job/next-machine-image/16/