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

Kubernetes中的任务调度需求 #40

Open
Yancey1989 opened this issue Nov 5, 2016 · 3 comments
Open

Kubernetes中的任务调度需求 #40

Yancey1989 opened this issue Nov 5, 2016 · 3 comments

Comments

@Yancey1989
Copy link
Collaborator

Yancey1989 commented Nov 5, 2016

场景:
有一系列Job类型的任务需要提交到Kubernetes去运行,这些任务有如下特点:

  1. 每个任务拥有独立的Resource Request(CPU and Memory)。
  2. 每个任务的执行时间可以认为是和占用资源线性相关的(可配置的公式)。
  3. 每个任务会配有最迟的启动时间(一个或多个)。
  4. 所有的任务每天至少被调用一次。

需求:
如何基于kubernetes集群去调度这些Job?

@xiaoping378
Copy link

k8s里有个CronJob, 但不清楚是否支持limitRange

@Yancey1989
Copy link
Collaborator Author

@xiaoping378 CronJob并不能完全满足需求,详见issue: kubernetes/kubernetes#39411

@xiaoping378
Copy link

@Yancey1989 可以用TPR自己实现,官文上有例子

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants