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

gc: add scheduled gc task #179

Merged
merged 1 commit into from
Sep 6, 2023
Merged

gc: add scheduled gc task #179

merged 1 commit into from
Sep 6, 2023

Conversation

Desiki-high
Copy link
Collaborator

  • Add scheduled GC task, we will start GC every hour.
  • It will start the schedule after creating LocalAdapter.
  • The scheduled GC task will reduce local storage to less than 40 percent of the threshold.
    Ref: Feature request: manage local layer caches #141

pkg/adapter/adapter.go Outdated Show resolved Hide resolved
pkg/adapter/adapter.go Outdated Show resolved Hide resolved
pkg/content/content.go Outdated Show resolved Hide resolved
@Desiki-high Desiki-high force-pushed the gc-task branch 3 times, most recently from adcd0ea to a8df97d Compare September 5, 2023 04:54
@Desiki-high Desiki-high requested a review from imeoer September 5, 2023 04:57
pkg/content/content.go Outdated Show resolved Hide resolved
- Add scheduled GC task, we will start GC every hour.
- It will start the schedule after creating LocalAdapter.
- The scheduled GC task will reduce local storage to less than 40 percent of the threshold.

Signed-off-by: Yadong Ding <ding_yadong@foxmail.com>
Copy link
Collaborator

@imeoer imeoer left a comment

Choose a reason for hiding this comment

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

LGTM!

@imeoer imeoer merged commit a7aa579 into goharbor:main Sep 6, 2023
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