Skip to content

fix: preserve worker cache across duplicate index events - #802

Merged
Mishaoyue merged 1 commit into
mainfrom
codex/index-resource-compat
Sep 29, 2026
Merged

Mishaoyue merged 1 commit into
mainfrom
codex/index-resource-compat

Conversation

@Mishaoyue

Copy link
Copy Markdown
Collaborator

标题:修复 v1/v2 GPU index 兼容及 PodCache 冲突恢复

内容:

背景

v1/v2 混合运行或升级回滚期间,legacy tensor-fusion.ai/index 与 v2 index_* 资源并存。PodCache 在重复 index、删除事件乱序时可能覆盖或误删其他 worker 的缓存,导致 device-plugin 分配等待或绑定错误。

修改内容

  • v2 hypervisor 同时注册 legacy tensor-fusion.ai/index 资源。
  • 支持解析 legacy index 资源,并优先使用 v2 index_* 资源。
  • NodeOverlay 保留 legacy index 容量,支持升级和回滚期间的 NodeClaim 初始化。
  • PodCache 检测重复 index 时暂不提供歧义 worker。
  • 删除冲突 Pod 后重新构建 index 缓存,恢复唯一 worker。
  • 增加 legacy resource、device-plugin 和 PodCache 冲突恢复测试。

验证

  • make test
  • make lint
  • go test ./pkg/hypervisor/backend/kubernetes
  • 集群验证重复 index、删除恢复、GPU 资源释放及 v1/v2 资源注册。

@Mishaoyue
Mishaoyue merged commit 75a0550 into main Sep 29, 2026
7 of 9 checks passed
@Mishaoyue
Mishaoyue deleted the codex/index-resource-compat branch September 29, 2026 06:12
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.17.17 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant