Skip to content

Add Aggressive cleanup when disk util is high #335

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

Merged
merged 1 commit into from
Jan 17, 2023

Conversation

xinlongz1
Copy link
Collaborator

Kraken currently isn't able to handle a lot of downloading traffic in a short amount of time because disk space is used up very quickly.

Add the aggressive cleanup so that Kraken cleans up disk space when the current disk space util is higher than the configured threshold.


if c.AggressiveThreshold != 0 {
if c.AggressiveTTL == 0 {
c.AggressiveTTL = 30 * time.Minute
Copy link
Collaborator

Choose a reason for hiding this comment

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

In reality, 1 or 2 hours might be more reasonable defaultl

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Change to 1 hour.

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