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

blobuploadcleanupworker: Add BLOBUPLOAD_DELETION_DATE_THRESHOLD (PROJQUAY-2915) #1022

Merged
merged 1 commit into from
Dec 7, 2021

Conversation

bcaton85
Copy link
Contributor

@bcaton85 bcaton85 commented Dec 7, 2021

Added the BLOBUPLOAD_DELETION_DATE_THRESHOLD internal property to configure the TTL on orphaned blobs.

@bcaton85 bcaton85 requested review from kleesc and syed December 7, 2021 14:09
flavianmissi
flavianmissi previously approved these changes Dec 7, 2021
Copy link
Contributor

@flavianmissi flavianmissi left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -15,7 +15,7 @@

logger = logging.getLogger(__name__)

DELETION_DATE_THRESHOLD = timedelta(days=2)
DELETION_DATE_THRESHOLD = timedelta(hours=12)
Copy link
Member

@kleesc kleesc Dec 7, 2021

Choose a reason for hiding this comment

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

Can we make this configurable instead. Something like BLOB_UPLOAD_DELETION_DATE_THRESHOLD.
This way we can keep the current value as default, but allow it to be shorter or longer for others.
Not too dissimilar to how BLOBUPLOAD_CLEANUP_FREQUENCY is being set.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added

…QUAY-2915)

Added BLOBUPLOAD_DELETION_DATE_THRESHOLD option to configure TTL on orphaned blobs.
@bcaton85 bcaton85 force-pushed the adjust-deletion-threshold branch from e396e4e to 8bd5c17 Compare December 7, 2021 15:15
@bcaton85 bcaton85 changed the title blobuploadcleanupworker: Reduced DELETION_DATE_THRESHOLD (PROJQUAY-2915) blobuploadcleanupworker: Add BLOBUPLOAD_DELETION_DATE_THRESHOLD (PROJQUAY-2915) Dec 7, 2021
Copy link
Member

@kleesc kleesc left a comment

Choose a reason for hiding this comment

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

LGTM

@bcaton85 bcaton85 merged commit f35f3f1 into quay:master Dec 7, 2021
bcaton85 added a commit to bcaton85/quay that referenced this pull request Dec 7, 2021
…QUAY-2915) (quay#1022)

Added BLOBUPLOAD_DELETION_DATE_THRESHOLD option to configure TTL on orphaned blobs.
flavianmissi pushed a commit that referenced this pull request Dec 7, 2021
…QUAY-2915) (#1022) (#1023)

Added BLOBUPLOAD_DELETION_DATE_THRESHOLD option to configure TTL on orphaned blobs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants