Skip to content

Conversation

@orasagar
Copy link
Contributor

Introduce -d/--disk option for setting a maximum total disk size for PCP archives. Update documentation and script logic to parse size values with K/M/G suffixes, enforce purging of oldest files when the limit is exceeded, and improve size reporting. This helps manage storage usage more effectively.

@kmcdonell
Copy link
Member

@orasagar sorry I botched the build, but this is now fixed. Could you please rebase or pull latest commits from main, so we rerun the checks here and get a cleaner bill of health?

Introduce a new -d/--disk option to pmlogger_daily.sh for specifying a maximum disk usage (in GB) for PCP_LOG_DIR. Added logic to check and enforce this limit by removing oldest archives when exceeded, to prevent disk overuse.
Refactored size-based archive culling logic in pmlogger_daily.sh for clarity and maintainability. Replaced boolean SIZE_LIMIT_FLAG with integer check, updated logic to be more robust, and moved purge logic to a separate function for better structure. Enhanced verbosity handling and archive size calculation.
Introduce -d/--disk option for setting a maximum total disk size for PCP archives. Update documentation and script logic to parse size values with K/M/G suffixes, enforce purging of oldest files when the limit is exceeded, and improve size reporting. This helps manage storage usage more effectively.
@orasagar
Copy link
Contributor Author

@kmcdonell I have successfully re-based my branch on top of the current main branch

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