Allow dynamic change of scheduler configuration #41600

Open
bsalamat opened this Issue Feb 16, 2017 · 4 comments

Projects

None yet

3 participants

@bsalamat
bsalamat commented Feb 16, 2017 edited

Is this a BUG REPORT or FEATURE REQUEST? (choose one): FEATURE REQUEST

Kubernetes currently supports "multiple schedulers" (users can run their own custom scheduler(s))
(https://kubernetes.io/docs/admin/multiple-schedulers/), but running an entire separate scheduler is heavyweight, especially for common desires like using best-fit instead of the default spreading policy. There is a scheduler configuration file which allows users to selectively enable/disable predicate and priority functions, and to choose the weights of the enabled priority functions. But this file is read from local disk, so it is not flexible enough for run-time changes and may not be easily accessible in hosted solutions.
It would be great if scheduler configuration could be changed dynamically (probably by setting/changing a ConfigMap in an API call).

One possible use case for this feature is to allow automatic change of scheduling policies when certain characteristics of the cluster change. For example, we could automatically switch the scheduling policy from spreading to best-fit when the user enables cluster autoscaler (https://kubernetes.io/docs/admin/cluster-management/#cluster-autoscaling) on an existing cluster.

@bgrant0607
Member

@bsalamat This is a dupe of #1627

@bsalamat

@bgrant0607 Yes. Thanks for pointing out. This is specifically targeting scheduler's config, but I guess we can mark it a dupe and continue the discussion in #1627.

@davidopp
Member

I think it's worth keeping both issues open; this one is specific to scheduler, even if it uses an appoach decided in #1627.

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