-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Garbage Collection provide a way to track progress #13154
Comments
Oh, great, I'm already using 2.1! A current status on the live run would still be interesting. FYI: My GC took 3 hours and freed up 200 GB |
Thanks for the feedback, |
I have to correct myself, it took 1 hour 20 min, to free up 194 GB (Total ~460 GB), it was a total of 5853 blobs marked for deletion. The detection of the to be deleted blobs took around 7 seconds. The requests to the registry:
Took between 1-3 seconds each (per log dates). I see here a good option to parallize the deletion process, I do have multiple docker-registry instances to load balance, but all requests are serialized. I'm using docker registry via S3 on minio (20 node cluster). |
thanks for your data, parallize the deletion is a good point. But, for the non-blocking, user can do any modification opertaion, pull/push/delete, so the performance may not be as important as it in the read-only mode. Do you have a roughly execution time of GC on previous v2.1.0? |
Yes, since it allows now modification operations thats already much better, I just read in the docs that it moves it to readonly... Sadly not, I migrated from Harbor 1.8, and now used the retention rules to clean up all the garbage that collected. (So kudos for the retention rules ;) ) |
@thoro |
Probably I got redirected to an old version .. the search does tend todo that ... For example if you search for GC, it gives you a 2.0.0 and a 1.10 version .. maybe the search should stay on the current version? |
@thoro |
Please re-open it if you still need this. |
Is your feature request related to a problem? Please describe.
Once a GC job is started there is no information how far it is, or how long it will take.
Describe the solution you'd like
Provide a progress field that tells the user how far a job is, it might just be field like "50/5000" artifacts. This would help to estimate how long it will still take, and how far it already is. This is especially interesting since GC puts Harbor into a readonly mode(still?).
The text was updated successfully, but these errors were encountered: