Optimize resource discovery/collection
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- go, kubernetes
- 領域
- cli, infrastructure
調査の方向性
まず、ルールセットの読み込みとリソース検出の経路を追跡し、次に検出されたオブジェクトがどのように取得され、メモリ上に保持されるかを調べます。読み込まれた組み込みルールとカスタムルールを使用して必要なリソースタイプを特定し、無関係なリソースをスキップして、残りの検出をページネーションします。大規模なクラスターで無関係なリソースを収集する必要がなくなり、既存の非推奨チェックが引き続き機能すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Is your feature request related to a problem? Please describe.
Pluto currently appears to pull all API resource types from a cluster, followed by all objects matching those types, in an unpaginated list. In a large cluster with a significant number of resources, many of them unrelated to the rules/deprecations being checked, this leads to high memory usage.
Describe the solution you'd like
Short version: only pull the resources that appear in the ruleset we loaded, so we don't use as much memory.
Long version / suggestion:
- After loading the ruleset (built-in deprecations and custom/user-defined), build a list of resource types we need to check
- Only pull the resources that actually need to be checked (this can avoid loading thousands of events, for example)
- Paginate discovery of the remaining resource types, discarding ones we don't need before fetching the next set
Describe alternatives you've considered
- Smaller clusters with fewer resources: it's currently not feasible for me to reduce the number of resources in my cluster.
- Give pluto more resources: I've more than tripled the resources I gave to pluto to run against a cluster, I can technically keep going but improving the collection logic is more efficient
Additional context
N/A
- 主要言語
- Go
- スター
- 2.6k
- フォーク
- 142
- 平均マージ
- 1時間 21分
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
FairwindsOps/pluto のほかの issue
-
Dependency Dashboardオープン
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
FairwindsOps/pluto#608 ·
-
enhancement pinned priority: could
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
FairwindsOps/pluto#421 · コメント 2 件 · リアクション 2 件 ·
-
Exclude some resource kind再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンenhancement pinned
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
FairwindsOps/pluto#399 · コメント 2 件 · リアクション 1 件 ·
-
enhancement pinned priority: could
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
FairwindsOps/pluto#215 · コメント 4 件 · リアクション 1 件 ·
-
enhancement help wanted pinned priority: could
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
FairwindsOps/pluto#137 · コメント 2 件 · リアクション 2 件 ·
FairwindsOps/pluto の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
SAP/crossplane-provider-btp#1118 ·
メンテナーはふだん 1 日以内に返信
-
benchmark: `make setup` fails because audit-exporter builds with Go 1.25.0 while go.mod requires 1.26.0対応中かも @xsvm が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
volcano-sh/volcano#6097 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
[Bug]: Bedrock invoke-with-response-stream reports `stop_reason: "end_turn"` for tool-use turnsオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信