clusternet / clusternet

[CNCF Sandbox Project] Managing your Kubernetes clusters (including public, private, edge, etc.) as easily as visiting the Internet

Home Page:https://clusternet.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The default priority of localization for dynamic scheduling is 1000(the highest), which is not flexible

abstractmj opened this issue · comments

commented

when migrate third-party workload(like openkruise https://openkruise.io/zh/docs/user-manuals/advancedstatefulset) to clusternet, we may need to implements certain controller logic to override the default localization. the default priority 1000 make this difficult;

@abstractmj The default localization with highest priority 1000 is created based on the scheduling results. This object is only created when the scheduling strategy is Dividing. This design helps make sure the clusternet-created localization object for changing replicas can work as desired.

For your case, I think we may introduce a new field in Localization to indicate this localization could override clusternet-created localizations with the same priority.

commented

sounds reasonable

@abstractmj The default localization with highest priority 1000 is created based on the scheduling results. This object is only created when the scheduling strategy is Dividing. This design helps make sure the clusternet-created localization object for changing replicas can work as desired.

For your case, I think we may introduce a new field in Localization to indicate this localization could override clusternet-created localizations with the same priority.

sounds reasonable