-
Notifications
You must be signed in to change notification settings - Fork 2
Added weekly VACUUM FULL maintenance with cron scheduling for database optimization #4
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
base: main
Are you sure you want to change the base?
Conversation
0ba4bb8
to
98e0202
Compare
I ran the current commit locally and with
Please confirm functionality locally both with existing storage volume and without. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to deal with the crond file permission issue I mentioned in the comments
# Log file for vacuum operations | ||
LOG_FILE="/var/lib/postgresql/vacuum_full.log" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Log to standard out
# Check if VACUUM FULL schedule is set | ||
if [ -n "${OR_VACUUM_FULL_CRON_SCHEDULE}" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep this outer if in the entrypoint for ease of reading
Additional tasks:
|
No description provided.