Skip to content

Fix conflicting logrotate settings#526

Merged
gracewehner merged 4 commits into
ci_devfrom
grwehner/logrotate-config-fix
Apr 6, 2021
Merged

Fix conflicting logrotate settings#526
gracewehner merged 4 commits into
ci_devfrom
grwehner/logrotate-config-fix

Conversation

@gracewehner

Copy link
Copy Markdown
Contributor

The node and the omsagent container both have a cron.daily file to rotate certain logs daily. These settings are the same for some files in /var/log (mounted from the node with read/write access), causing the rotation to fail when both try to rotate at the same time. So then the /var/log/*.1 file is written to forever. Since these files are always written to and never rotated, it causes high memory usage on the node after a while.

This fix removes the container logrotate settings for /var/log, which the container does not write to.

@gracewehner gracewehner requested a review from a team as a code owner April 5, 2021 22:46
Comment thread kubernetes/linux/setup.sh Outdated
Comment thread kubernetes/linux/setup.sh Outdated
@gracewehner gracewehner merged commit e31cc87 into ci_dev Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants