Reduce squashing version overhead of retain_repo_versions
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Python
- スター
- 641
- フォーク
- 178
- 平均マージ
- 17時間 36分
- マージ済み PR(30日)
- 76
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pulp/pulpcore のほかの issue
-
Content cache ignores the query string, so one path serves the response cached for another queryオープンTriage-Needed
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
Issue
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
Feature
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
pulp/pulpcore#5802 · コメント 10 件 ·
メンテナーはふだん 1 日以内に返信
-
Creating a repository version from a large base_version uses excessive memory (can OOM the worker)対応中かも @dkliban が今日担当しました。 オープンIssue Triage-Needed
難易度 4/5 3〜5日 初心者へのやさしさ 18/100
メンテナーはふだん 1 日以内に返信
-
Feature Triage-Needed
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
Triage-Needed
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
pulp/pulp-oci-images#875 ·
-
intake mcp-intake needs-human-review priority:high type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
Ikalus1988/MisakaNet#5718 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
facebookresearch/autoform-bot#872 ·
メンテナーはふだん 1 日以内に返信
-
Dataset.to_json() writes "Value": [] for an empty sequence対応中かも @DG47 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
area: docs area: providers/oci priority: p3 size: S type: documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
finos/open-resource-broker#933 ·
メンテナーはふだん 1 日以内に返信