clusternet icon indicating copy to clipboard operation
clusternet copied to clipboard

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

Open abstractmj opened this issue 1 year ago • 2 comments

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 avatar Jan 12 '24 08:01 abstractmj

@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.

dixudx avatar Jan 12 '24 09:01 dixudx

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

abstractmj avatar Jan 12 '24 09:01 abstractmj