SparkApplication CRD improvements
メンテナーはふだん 1 日以内に返信
評価
この issue はまだ評価されていません。
説明
Description
The current implementation of the operator uses a Kubernetes Job workload running spark-submit in order to create Spark applications.
While this works fine for most cases, it has several drawbacks that cannot be easily addressed.
The primary reason for these drawbacks is the fact the Job pod adds a level of indirection between the operator and the applications such that the operator loses some control over parts of the resources owned by the application.
This architecture makes it unnecessarily complex to run applications in "client" mode. But this mode has many benefits over the "cluster" mode:
- It makes application monitoring more robust and reliable.
- It makes the application life cycle management more robust. This is particularly important for streaming applications.
- It makes application owned resource cleanup configurable and transparent.
[!NOTE]
In client mode, the driver runs on the same Pod as as the submit command and it requires a headless service where the executors can connect back to the driver. To create this service, the operator needs to know the name of the driver Pod. The operator cannot know the name of this Pod until it creates the Job object at which point it doesn't have control over any other resources (most notably executor Pods). This lack of control can then lead to application startup failures.
Further improvements:
- Allow users to delete application CRs on condition (always, onSuccess) to free up resources and make app names reusable.
Proposal
Summary: Introduce a new version of the SparkApplication CRD without the spec.job field and that runs in client mode only.
- How does it make monitoring more robust?
When the operator is in control of driver and executor pods, it can take all of them in consideration when updating the application status.
Currently only the driver pod is taken into consideration.
- How does it make application life cycle more robust?
The operator can recognize failure states of both driver and executors and can act accordingly.
Currently the Job workload resubmits applications without much control from the operator.
In some cases, failure states are not propagated properly from executors to the Job pod, which leaves the application "hanging" in a failure state.
- How does it make resource cleanup better?
All resources owned by the application are created by the operator and not by the submit job.
Therefore the operator knows exactly what it needs to clean up and when.
- 主要言語
- Rust
- スター
- 73
- フォーク
- 5
- 平均マージ
- 9時間 55分
- マージ済み PR(30日)
- 16
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
stackabletech/spark-k8s-operator のほかの issue
-
type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
stackabletech/spark-k8s-operator#775 ·
メンテナーはふだん 1 日以内に返信
-
Pin versions/ranges for spark-connect-client python dependencies using a constraints file対応中かも @Maleware が 11 日前に担当しました。 オープンtype/bug
stackabletech/spark-k8s-operator#786 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Application driver Pod is not terminated when Spark is OOMKilled対応中かも @razvan が 21 日前に担当しました。 オープンtype/bug
stackabletech/spark-k8s-operator#780 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
stackabletech/spark-k8s-operator#774 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
type/bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
stackabletech/spark-k8s-operator#770 ·
メンテナーはふだん 1 日以内に返信
stackabletech/spark-k8s-operator の issue をすべて見る
似ている issue
-
bug: workspace access hint suggests a --subject command that fails for hyphen-leading OIDC subjectsオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
A-FFI C-Testing D-Straightforward S-Ready
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
docs priority:P3 size:XS
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
Appimage Conventionsオープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信