Commit Graph

341 Commits

Author SHA1 Message Date
jiangkaihua e0e712d17c Add bestNodeFn for plugins to select best node of its own.
Signed-off-by: jiangkaihua <54176503+jiangkaihua@users.noreply.github.com>
2020-05-06 11:16:52 +08:00
Volcano Bot 39587aad39
Merge pull request #758 from red-firefly/feature/more-metrics
[scheduler] Add namespace, queue and job related metrics
2020-04-16 16:35:44 +08:00
Changjian Gao b231a03b03 Update author name in boilerplate header to "Volcano"
Signed-off-by: Changjian Gao <gaochangjian@gmail.com>
2020-04-16 14:29:47 +08:00
Changjian Gao 7af48f5f1e Add boilerplate header and update ns to namespace
Signed-off-by: Changjian Gao <gaochangjian@gmail.com>
2020-04-16 11:43:28 +08:00
Changjian Gao d52a8c0154 Fix golint error
Signed-off-by: Changjian Gao <gaochangjian@gmail.com>
2020-04-16 11:43:28 +08:00
Changjian Gao fd489a80f7 [scheduler] Add namespace, queue and job related metrics
Signed-off-by: Changjian Gao <gaochangjian@gmail.com>
2020-04-16 11:43:28 +08:00
zionwu 0f0644e2ab Ignore error from deleteTask 2020-04-09 16:51:17 +08:00
Volcano Bot c39776e5d6
Merge pull request #583 from zionwu/fix-gang-preempt
Fix preemptableFn of gang plugin
2020-03-10 23:15:34 +08:00
Klaus Ma 7f97d53cd9 Added resources predicate in allocate action.
Signed-off-by: Klaus Ma <klaus1982.cn@gmail.com>
2020-03-09 11:37:03 +08:00
Volcano Bot 2c627e2ae3
Merge pull request #725 from zionwu/reuse-validate-victims
Use util.ValidateVictims in reclaim action
2020-02-28 15:24:32 +08:00
zionwu 542c40d1c9 Use util.ValidateVictims in reclaim action 2020-02-27 18:11:08 +08:00
EDGsheryl bfd5238b6b Fix a typo in comments. 2020-02-27 17:45:36 +08:00
xuzhonghu 2a2725d93c remove the legacy test cases 2020-02-25 16:31:05 +08:00
xuzhonghu 7c417c88f3 Cherry-pick kube-batch: revert cache to original state on evict and bind errors #909 2020-02-11 11:03:09 +08:00
Klaus Ma 6b6280ec8e Enqueue refactor.
Signed-off-by: Klaus Ma <klaus1982.cn@gmail.com>
2020-02-09 12:27:21 +08:00
Thandayuthapani 3bd14695d8 Delete Scheduling API version - Fix UT 2020-02-07 22:39:44 +05:30
Thandayuthapani 8b46f393ea Delete Scheduling API version - v1alpha1, v1alpha2 2020-02-07 22:39:26 +05:30
Zhang Jinghui d45eb50a16 change depend package 2020-02-04 12:55:06 +00:00
Yodar Shafrir f17c4831aa Remove task's nodeName for statement discard 2020-01-20 10:56:00 +02:00
Volcano Bot 082af9da34
Merge pull request #651 from sivanzcw/develop
Reclaim Enhancement: Add Reclaimable parameter for queue
2020-01-02 15:21:20 +08:00
Zhang Jinghui 508ea8febf add reclaimable parameter for queue 2020-01-02 10:31:42 +08:00
Volcano Bot 8925a38375
Merge pull request #647 from sivanzcw/bugfix
Considering best-effort pods when calculating ready task number
2019-12-31 09:54:20 +08:00
Volcano Bot 8a7680af54
Merge pull request #654 from hzxuzhonghu/pdb
Remove pdb support
2019-12-30 20:22:19 +08:00
xuzhonghu db1e557ac5 Remove pdb 2019-12-30 16:27:47 +08:00
Zhang Jinghui 98a3e2e4fa considering best-effort pods when calculating ready task number 2019-12-30 11:35:10 +08:00
Volcano Bot 0dbc246796
Merge pull request #638 from zionwu/remove-duplicated-code
Remove duplicated check in jobEnqueueableFn of proportion
2019-12-25 17:15:18 +08:00
zionwu 09ea1adc7f Remove duplicated check in jobEnqueueableFn of proportion 2019-12-25 16:24:33 +08:00
Zhang Jinghui b4dbb7f692 modify error check of return error 2019-12-24 15:39:32 +08:00
zionwu 047700dfbd Fix preemptableFn of gang plugin 2019-12-20 15:48:56 +08:00
zionwu 01a6fc6766 Push job back to queue if task is assigned 2019-12-20 15:45:33 +08:00
Zhang Jinghui 2ac5432a4b pipeline task if task's request resource less than the releasing resource of node during performing allocate action 2019-12-17 11:48:17 +08:00
Volcano Bot 2eec41daa1
Merge pull request #599 from sivanzcw/lessequal
Change lessequal function in Reclaimable function
2019-12-11 22:08:16 +08:00
Zhang Jinghui 31aed62425 change lessequal function 2019-12-11 21:17:19 +08:00
Your Name 27be1730f0 bugfix add a new shadowjob when delete pod 2019-12-11 14:44:01 +08:00
Mateusz f9f48174d1 added priority based preemption to priority plugin
Cherry-picking from https://github.com/kubernetes-sigs/kube-batch/pull/895.
2019-12-10 09:31:57 -08:00
Zhang Jinghui 55f10312f9 add arguments for action 2019-12-06 15:56:42 +08:00
Volcano Bot 0f1bb49f7a
Merge pull request #585 from mateuszlitwin/mlitwin-correct-pipelining
use future idle resources when checking if task can fit node
2019-12-06 15:09:14 +08:00
Mateusz b167ec8226 use future idle resources when checking if task can fit node
Future idle resources (current idle resources + resources being released) are considered for pipelining during allocate and preempt action.

Fixes read-write race condition in FakeEvictor
Fixes a bug when task was used as preemptor on the first iteration of the preempt loop despite task's job being "pipelined".
Fixes issue #582
2019-12-05 14:29:29 -08:00
Your Name 6655fab459 change node notfound error 2019-12-04 09:09:48 +08:00
Yodar Shafrir 61c31eb866 Change statement.go unevict method to call UpdateTask instead of AddTask. This is needed in order to 'undo' the changes that were created during the call to 'evict' method (currently the node.Releasing value is wrong and will have the value as if the job was evicted, even if 'unevict' was called). When AddTask is called an error is returned because the task already exists in this node, and the Releasing value isn't set to the right value as if the job was never evicted. 2019-12-02 17:47:43 +02:00
wuziyang a3fc8fc7f3 fix validate victims check for preempt action 2019-11-28 10:00:04 +08:00
wuziyang 8bae01b0b6 Fix wrong condition for reclaim action 2019-11-27 17:09:43 +08:00
Klaus Ma f21a227fe7
Merge pull request #563 from k82cn/glog_klog
Update to klog.
2019-11-27 16:32:42 +08:00
Klaus Ma ba3f278afa Update to klog.
Signed-off-by: Klaus Ma <klaus1982.cn@gmail.com>
2019-11-27 16:15:36 +08:00
xuzhonghu 2791e8b28d Move myself to controller owner 2019-11-26 17:43:35 +08:00
Klaus Ma 7da37d6cc4 Fixed import order.
Signed-off-by: Klaus Ma <klaus1982.cn@gmail.com>
2019-11-15 20:14:04 +08:00
陈邵瑾 7e4fe4cc25 gofmt 2019-11-13 15:53:15 +08:00
陈邵瑾 da4003b859 pdb bug 修复 2019-11-13 15:18:45 +08:00
Zhang Jinghui 4a7bb60ec1 modify podgroup events 2019-11-11 16:50:49 +08:00
w00417949 b9741c1a20 fix filter NotReady node 2019-11-07 16:45:09 +08:00