Handle graceful cluster shrinking
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- kubernetes, rust
調査の方向性
まず NifiCluster の reconciliation とステータス処理を読み、要求されたクラスタサイズの変更がどのように検出されるかを理解します。Pod がどのように選択されるか、また reconciliation をまたいで NiFi REST API のアクションをどのように待機できるかを追跡します。削除対象のノードが自動的に切断されてドレインされてから縮小処理が進むことが完了条件です。
索引モデルが issue の本文から書いたものです。
説明
Affected version
0.6.0
Current and expected behavior
Currently when a NifiCluster is shrunk in size, the user has to make sure that the node(s) to be removed have been disconnected and drained manually before triggering the shrinking.
Ideally we'd want the operator to use the NiFi Rest api to perform these administrative tasks automatically.
Possible solution
The operator needs to be able to track, whether an action is about to shrink the cluster, determine which pods are going to be removed and trigger the necessary action via the NiFi api for these pods.
In order to do this we'll probably have to track "current pods" in the status of the NifiCluster object, in order for the operator to be able to determine if the new version of the object signifies a shrinking action.
Once this check is triggered, the operator then needs to check if all nodes are drained. If this is the case the reconciliation can proceed normally, if not, drain tasks need to be started for all pods / checked if tasks are already running. Then the operator can requeue, and will simply keep running this check until all tasks are done.
Additional context
No response
Environment
No response
Would you like to work on fixing this bug?
No response
- 主要言語
- Rust
- スター
- 48
- フォーク
- 12
- 平均マージ
- 11時間 26分
- マージ済み PR(30日)
- 10
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
stackabletech/nifi-operator のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
stackabletech/nifi-operator#956 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
stackabletech/nifi-operator#879 ·
-
customer-request type/bug
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
stackabletech/nifi-operator#842 · コメント 1 件 ·
-
size/M type/security
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
stackabletech/nifi-operator#811 · コメント 1 件 ·
-
size/L
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
stackabletech/nifi-operator#810 · コメント 1 件 ·
stackabletech/nifi-operator の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
TheLarkInn/aipm#2413 ·
-
documentation
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
alexgorbatchev/simple-ptt#15 ·
-
tooling
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
todo:ticket
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
taikoxyz/taiko-mono#22168 · コメント 1 件 ·