-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Add a text to explain the time window for GC #18735
Conversation
@OrlinVasilev Can you help to review the English text in this PR? |
Codecov Report
@@ Coverage Diff @@
## main #18735 +/- ##
==========================================
- Coverage 67.39% 67.37% -0.03%
==========================================
Files 980 980
Lines 106749 106749
Branches 2665 2665
==========================================
- Hits 71946 71921 -25
- Misses 30940 30959 +19
- Partials 3863 3869 +6
Flags with carried forward coverage won't be shown. Click here to find out more. |
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.
IMO the text is vague. It has too much room for interpretation. Furthermore, there are words that actually need to have an introduction and explanation because the meaning is not clear or vague:
Specifically:
- How long is the time window
- What is happens inside and outside this time window?
- What does "covers" mean exactly?
Isn't the time window is hard-coded to 2h?
Why not write it in more simple words, explaining the restriction?
We can turn this -> Any garbage collection operation (including the dry run) only covers images that were not uploaded within the specified time window"
In more in simple words, straight to the point, that doesn't need any additional lookup.
- EN: Artifacts uploaded in the past 2 hours are excluded from garbage collection.
- DE: Artefakte, die in den vergangenen 2 Stunden hochgeladen wurden, sind von der Garbage Collection ausgenommen.
- ES: Los artefactos cargados en las últimas 2 horas se excluyen de la recogida de basura.**
Agree with @Vad1mo we need clear and simple explanations. |
@OrlinVasilev @Vad1mo Thanks for the comments. |
@AllForNothing if it's tuneable variable the documentations is not pointing that: https://goharbor.io/docs/2.8.0/administration/garbage-collection/#run-garbage-collection
Can we read that setting and display the value that the user has setup ? |
@OrlinVasilev No, users can not read it. because we don't want to expose this to the user, but the user can surely override this value in the environment variable: |
@AllForNothing can you point me to that part of the documentation where is listed that you can tune that variable ?
|
@OrlinVasilev This is not included in our doc. |
@OrlinVasilev @Vad1mo I will update my PR later according to the text 'Artifacts uploaded in the past 2 hours(the default window) are excluded from garbage collection.' |
@AllForNothing by simple search looks like there are not many other env variables that we use to tune some services. |
@Vad1mo @OrlinVasilev The original intention of this tooltip is to inform users that the garbage collector will not remove deleted artifacts within the specified time window, which is set to 2 hours by default. This is done to prevent any potential damage to artifacts that are currently being uploaded. Many users do not read the official documentation and often inquire about this behavior. Regarding the tuning aspect, it was not originally intended for users to customize. Instead, it was primarily designed for debugging purposes. In other words, if a user sets the tuning value to 0 (disabled), it may cause issues in concurrent scenarios where the GC could potentially disrupt the pushing of artifacts. This pushing process is a critical pathway within the registry. So, in any of production environment, we don't recommend user to reset it. If we would like to doc it, @AllForNothing please file another issue specifically addressing this matter. Let's keep the review focused on the wording of the tooltip. @AllForNothing My suggestion is to inform the user about the existing 2-hour time window in the GC(required) and provide a brief explanation of its purpose(optional). However, for more detailed information on why we have implemented this time window, we recommend referring to the documentation. |
1.Fixes goharbor#18692 Signed-off-by: AllForNothing <sshijun@vmware.com>
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.
lgtm
1.Fixes goharbor#18692 Signed-off-by: AllForNothing <sshijun@vmware.com> Signed-off-by: Wilfred Almeida <60785452+WilfredAlmeida@users.noreply.github.com>
1.Fixes goharbor#18692 Signed-off-by: AllForNothing <sshijun@vmware.com>
1.Fixes #18692
UI change:
Thank you for contributing to Harbor!
Comprehensive Summary of your change
Issue being fixed
Fixes #(issue)
Please indicate you've done the following: