Idea: Start ReportingTaskJob only once the NifiCluster is ready
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 30/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- kubernetes, rust
- 領域
- devops, infrastructure
調査の方向性
rust/operator-binary/src/controller.rs の277行目付近から開始し、次に Superset から参照されている readiness の監視パターンと比較します。提案されたアプローチのうち、どれが対象範囲に含まれるか—NifiCluster の readiness を待機する、Job を一時停止する、または HTTP リクエストに置き換える—を判断し、クラスタが ready になる前に reporting task が通常の CrashLoopBackOff に入らなくなっていることを確認します。
索引モデルが issue の本文から書いたものです。
説明
There is a reporting task started immediately: https://github.com/stackabletech/nifi-operator/blob/db33e5e32c55975369e15a063ae21ef728498c2c/rust/operator-binary/src/controller.rs#L277
I want to suggest to follow a pattern we've implemented in Superset: Add a status to the NifiCluster and let the operator listen to it. Only start the job once the cluster is ready.
At the moment the job is started and remains in a CrashLoopBackOff, until the Cluster is ready. This doens't look good and can also cover up actual problems with the job (because this CrashLoopBackoff is 'normal' for us). It would also make the task finish quicker, because at the moment once the cluster is ready, the task is still in a retry-waiting-period. Only once this has passed the job finishes. This can easily save 30 seconds of time.
Edit: since k8s 1.24 Jobs can be started in the suspended state, so the Job object could already be created, but only started once the cluster is up.
Edit: Alternatively the Operator could do the HTTP request, and we could drop the Job altogether
- 主要言語
- 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
-
bug CLI custom-model
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
rust-bitcoin/rust-bitcoin#6930 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
fulcrumgenomics/ferro-hgvs#2251 ·
-
A-allocators A-docs C-enhancement T-libs
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100