feat: add leader election function to the scheduler extension - #87
Open
coldzerofear wants to merge 8 commits into
Open
feat: add leader election function to the scheduler extension#87coldzerofear wants to merge 8 commits into
coldzerofear wants to merge 8 commits into
Conversation
Cluster Autoscaler PR kubernetes/autoscaler#9786 把 HTTP scheduler extender 接进了扩容仿真链路,使 CA 能感知 extender 管理的 vGPU 资源。 vgpu-manager 作为标准 extender 正是受益方,但当前 Filter 无法被仿真 安全调用。 核心阻塞:Filter 把「可行性判断」与「乐观预分配提交」耦合在一起, 命中节点后会 PatchPodPreAllocatedMetadata 真改 Pod、写 podLister 缓存并发 Event,而 CA 仿真必须只读且会跨 nodegroup 多轮调用。 本文档给出改造设计:抽出只读的 feasibleNodes() 作为共享可行性核心 (allocator.Allocate 本就在 DeepCopy 上纯计算),提交段内聚为 commitPreAllocation() 仅真实路径调用;新增独立只读端点 /scheduler/filter-dryrun 供 CA 配置 filterVerb 指向,不占串行锁。 scale-from-0 依赖模板节点容量暴露的标准化,划入 Phase 2。 含方案选型对比、详细改动点、CA 侧配置样例、影响面与测试计划。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: coldzerofear <coldzerofear@outlook.com>
Signed-off-by: coldzerofear <coldzerofear@outlook.com>
Signed-off-by: coldzerofear <coldzerofear@outlook.com>
Signed-off-by: coldzerofear <coldzerofear@outlook.com>
Signed-off-by: coldzerofear <coldzerofear@outlook.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.