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
- 星标
- 74
- 派生
- 5
- 平均合并
- 10 小时 42 分钟
- 30 天内合并 PR
- 17
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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 于 21 天前认领。 未关闭type/bug
stackabletech/spark-k8s-operator#786 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Application driver Pod is not terminated when Spark is OOMKilled可能重新可做 @razvan 于 31 天前认领,目前没有进行中的 PR。 未关闭type/bug
stackabletech/spark-k8s-operator#780 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Allow defining a time to live for finished SparkApplication driver pods可能已有人在做 @sweb 于 6 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 55/100
stackabletech/spark-k8s-operator#774 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
type/bug
难度 4/5 3-5 天 新手友好度 45/100
stackabletech/spark-k8s-operator#770 ·
维护者通常 1 天内回复
查看 stackabletech/spark-k8s-operator 的全部 Issue
相似的 Issue
-
example
难度 2/5 1-3 小时 新手友好度 72/100
rust-lang-nursery/rust-cookbook#954 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 70/100
OpenZeppelin/openzeppelin-relayer#967 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
src/runs.rs:1987: a missing --source-run-id now answers 400 "Source run ... does not exist", not 404未关闭nightly-audit
难度 2/5 1-3 小时 新手友好度 62/100
antithesishq/snouty#602 ·
维护者通常 1 天内回复