Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple schedule policies for different pods. #9920

Closed
HaiyangDING opened this issue Jun 17, 2015 · 8 comments
Closed

Multiple schedule policies for different pods. #9920

HaiyangDING opened this issue Jun 17, 2015 · 8 comments
Labels
area/admin Indicates an issue on admin area. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/backlog Higher priority than priority/awaiting-more-evidence. sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling.

Comments

@HaiyangDING
Copy link

In production, we need multiple schedule policies to meet the requirements of different pods. For instance, some pods may prefer a schedule policy in which ServiceSpreading is considered to be import, while some other pods just want themselves to be deployed on the nodes with more free resources regardless of the ServiceSpreading. To meet these "conflict" requirement, different schedule policies should be allowed when kube-scheduler is up.

How should we do this?

An initial discussion at https://groups.google.com/forum/#!topic/google-containers/wyn8dNXq6xI.

@davidopp davidopp added team/master priority/backlog Higher priority than priority/awaiting-more-evidence. labels Jun 17, 2015
@davidopp
Copy link
Member

Two ideas were suggested in that thread:

  1. Run multiple schedulers, each with one policy configuration and each responsible for a disjoint set of pods
  2. Run a single scheduler, which figures out which policies to apply for each pod it is scheduling

We haven't tried either of these, but you are definitely welcome to try it out and let us know if you have problems.

@HaiyangDING
Copy link
Author

OK. I am going to try them and let you know if there is any progress/problem.

@mikeln
Copy link
Contributor

mikeln commented Jun 17, 2015

I have a similar issue. My first thought was multiple schedulers, then add to the podspec/rcspec to allow the pod to specify the scheduler to use for it. Resort to the default (with some warning message) if the desired scheduler isn't available. In my case, it may be viable to just allow multiple default scheduler instances, each with their own configuration file and name (label).

@timothysc
Copy link
Member

Please see #367 , but I'm all for multiple schedulers too ;-)

@HaiyangDING
Copy link
Author

After a rough consideration, I would prefer to go for a single scheduler with multiple policies for specific pods. I am working on the codes and hope to show something sooner:)

@fejta-bot
Copy link

Issues go stale after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Freeze the issue for 90d with /lifecycle frozen.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or @fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 14, 2017
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or @fejta.
/lifecycle rotten
/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jan 13, 2018
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/admin Indicates an issue on admin area. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/backlog Higher priority than priority/awaiting-more-evidence. sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling.
Projects
None yet
Development

No branches or pull requests

8 participants