Handle graceful cluster shrinking
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- kubernetes, rust
调研方向
首先阅读 NifiCluster 的调谐和状态处理,以了解如何检测请求的集群大小变更。跟踪 Pod 的选择方式,以及如何跨调谐等待 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
- 平均合并
- 1 天 11 小时
- 30 天内合并 PR
- 11
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
stackabletech/nifi-operator 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 68/100
stackabletech/nifi-operator#956 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 45/100
stackabletech/nifi-operator#879 ·
维护者通常 1 天内回复
-
customer-request type/bug
难度 3/5 1-2 天 新手友好度 42/100
stackabletech/nifi-operator#842 · 1 条评论 ·
维护者通常 1 天内回复
-
size/M type/security
难度 5/5 一周以上 新手友好度 25/100
stackabletech/nifi-operator#811 · 1 条评论 ·
维护者通常 1 天内回复
-
size/L
难度 5/5 一周以上 新手友好度 20/100
stackabletech/nifi-operator#810 · 1 条评论 ·
维护者通常 1 天内回复
查看 stackabletech/nifi-operator 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
akitaonrails/ai-memory#1225 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
acsandmann/rift#577 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
-
[Bug]: rerank on the huggingface provider (TEI) always costs $0, configured input_cost_per_query is ignored可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭llm translation
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复