Description
The scheduler option percentageOfNodeToScore controls how many nodes should be checked when scheduling a pod. It has an important impact on the scheduling performance.
To better balance the scheduling performance and quality to meet different scheduling needs of diverse workloads, an idea is to introduce a PreFilter plugin that updates the default global value if a custom threshold is specified through a Pod label.
This plugin sets the value of percentageOfNodesToScore according to the value associated with a label. For example,
parameter.scheduling.sigs.k8s.io/percentageOfNodesToScore: 10
We’d like to have your input and suggestions, particularly
-
Is it a valid and useful feature?
-
Is it possible to implement? A problem we notice is that the current scheduling framework does not provide a mechanism for plugins to access and update the scheduler options. Would it possible to change the plugin APIs with an additional argument, e.g. a scheduler option pointer?
Thanks a lot!