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

Handle graceful cluster shrinking

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

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

評価

難易度
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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

stackabletech/nifi-operator のほかの issue

stackabletech/nifi-operator の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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