Reduce squashing version overhead of retain_repo_versions
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start by reading how retain_repo_versions is enforced and how squashing updates RepositoryContent memberships and deletes repository versions; the issue does not name files, tests, or entry points. Compare batching squashes by count or time with the proposed inverted squashing strategy, then identify tests that cover version retention. Done means retention reaches the configured target without repeatedly doing work proportional to all past versions or growing without bound.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Is your feature request related to a problem? Please describe
When a user only cares about a few repository versions it might want to set a low retain_repo_versions value, like 1, to keep only the latest repository version.
At each new version, this creates work to update all past version to point to the new one.
In repositories with a lot of contents, let's say 500k, this means at least updating 500k RepositoryContent membership instances and deleting the repository versions, which is a poor use of resources if repository is updated even mildly often.
Describe the solution you'd like
Introduce more efficient strategies for enforcing a desired retained versions target.
The idea is stating that the user don't care about the history, but it doesn't mind temporarily having more versions than his target number is, as long as it doesn't grow indefinitely and he doens't have to baby-sit the count.
A general approach for this is batch-squash multiple versions at once with a reasonable frequency (either by extra versions count, time-based, or whatever).
Describe alternatives you've considered
Not alternative, maybe complementary: invert the squashing logic.
Let's say $v_n$ is the latest version of a repository and $P$ are past versions, $P=\{v_0, ..., v_{n-1}\}$.
If we squash $P$ into $v_n$, that means we'll have $RC$ (RepositoryContent) updates proportial to $|P|$, as $RC$ represents $C$ (Content) membership with the $P$ set. If we define $N$ (new) as $N=\{v_1, ..., v_n\}$, and we squash $N$ into $v_0$, that gives $RC$ proportial updates with $|N|$, for all $c_k \in N$.
In general, repositories tends to grow with time and have $|\text{adds}| \gg |\text{removes}|$.
So assuming only adds, the $P$ will grow monotonically (to be fair, the count of $RC$ units), even after squashes (the new $P$ will be bigger than it ever was). $N$ in the other hand is effectively reset between these inverted squashes.
Additional context
None.
- Ngôn ngữ chính
- Python
- Star
- 641
- Fork
- 178
- Merge trung bình
- 17 giờ 36 phút
- Pull request đã merge (30 ngày)
- 76
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của pulp/pulpcore
-
Content cache ignores the query string, so one path serves the response cached for another queryĐang mởTriage-Needed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Reclaim Space Server ErrorĐang mởIssue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
pulp/pulpcore#5802 · 10 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Creating a repository version from a large base_version uses excessive memory (can OOM the worker)Có thể đã có người làm @dkliban đã nhận hôm nay. Đang mởIssue Triage-Needed
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 18/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Feature Triage-Needed
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của pulp/pulpcore
Issue tương tự
-
Triage-Needed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
pulp/pulp-oci-images#875 ·
-
intake mcp-intake needs-human-review priority:high type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Ikalus1988/MisakaNet#5718 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
facebookresearch/autoform-bot#872 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Dataset.to_json() writes "Value": [] for an empty sequenceCó thể đã có người làm @DG47 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 2 ngày
-
area: docs area: providers/oci priority: p3 size: S type: documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
finos/open-resource-broker#933 ·
Maintainer thường phản hồi trong vòng 1 ngày