Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Optimize resource discovery/collection

オープン
#620 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go, kubernetes

調査の方向性

まず、ルールセットの読み込みとリソース検出の経路を追跡し、次に検出されたオブジェクトがどのように取得され、メモリ上に保持されるかを調べます。読み込まれた組み込みルールとカスタムルールを使用して必要なリソースタイプを特定し、無関係なリソースをスキップして、残りの検出をページネーションします。大規模なクラスターで無関係なリソースを収集する必要がなくなり、既存の非推奨チェックが引き続き機能すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

enhancement triage

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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

FairwindsOps/pluto のほかの issue

FairwindsOps/pluto の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。