Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jobs]Feat: mysql log rotation #125

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

shikharish
Copy link
Member

@shikharish shikharish commented Feb 8, 2024

Implement cron job which runs logrotate on 03:02 AM everyday.
If the size of any of the log files in /var/lib/mysql/ goes above 1GB, it makes a copy of that file and empties the main log file. That copy is deleted and a new copy made when the main file goes over 1GB again.

Copy link
Member

@rajivharlalka rajivharlalka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chirag-ghosh chirag-ghosh merged commit bdbc2f3 into metakgp:master Feb 8, 2024
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.

None yet

3 participants