Commit Graph

100 Commits

Author SHA1 Message Date
karmada-bot 7adfdfaa15
Merge pull request #3455 from Poor12/fix-generation-inconsistent
Ensure the latest schedulerObservedGeneration if do not need to schedule
2023-04-27 14:13:12 +08:00
Poor12 9ee205fcb1 fix generation inconsistent
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-04-27 11:26:45 +08:00
changzhen 467adcf0b6 add worker for cluster update in scheduler
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-04-26 18:29:51 +08:00
whitewindmills 5bb8eae68f Avoid accidental impact for rb/crb's pointer on the cache
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-04-18 16:45:53 +08:00
karmada-bot 0b640f7785
Merge pull request #3371 from Poor12/fix-scheduler-duplicated
Unify the assign replicas when duplicated
2023-04-10 19:27:58 +08:00
Poor12 b61a87e7cc unify the assign replicas when duplicated
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-04-07 09:28:44 +08:00
whitewindmills b15e43251b use patch helper instead of jsonpatch
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-04-06 16:04:58 +08:00
changzhen 313ecd3b2c consider clusteraffinities when scedule with binding
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-02-27 17:11:58 +08:00
karmada-bot 69d330f04c
Merge pull request #3210 from XiShanYongYe-Chang/update-rb-status-conditions-only-after-scheduling
Update the RB condition is updated only after scheduling
2023-02-27 10:38:06 +08:00
changzhen da0664728c the condition is updated only after scheduling
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-02-27 09:27:45 +08:00
changzhen d96296f66b modify judgement of placement changed
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-02-27 09:13:48 +08:00
changzhen 9ca35d20f4 add bindingStatus in the schedule algorithm interface
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-02-25 17:04:49 +08:00
Poor12 5eff625925 add placement for binding
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-02-10 15:18:01 +08:00
Poor12 bec9ca1f6a Support multiple schedulers
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-02-01 12:00:40 +08:00
Garrybest 6597fafd17 avoid calling apiserver when scheduling result has no changes
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-12-29 16:40:26 +08:00
karmada-bot 6111ad0e69
Merge pull request #2899 from Garrybest/pr_metrics
clean up metrics for scheduler, descheduler and estimator
2022-12-15 16:49:23 +08:00
jwcesign 950b614fa7 Fix resource hangover in member cluster when propagating matching changes
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2022-12-13 14:55:50 +08:00
Garrybest c747cbcce7 clean up metrics for scheduler, descheduler and estimator
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-12-12 17:35:49 +08:00
Poor12 5418b5d265 refactor events
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-11-15 15:34:22 +08:00
carlory 23b52270da karmada scheduler & descheduler introduce scheduler-estimator-service-prefix flag
Signed-off-by: carlory <baofa.fan@daocloud.io>
2022-10-12 13:53:25 +08:00
raymondmiaochaoyue f4fc3d1480 1. Support deploy karmada-scheduler-estimator in physical machine.
2. remove unnecessary sudo

Signed-off-by: raymondmiaochaoyue <raymondmiaochaoyue@didiglobal.com>
2022-09-26 16:25:16 +08:00
Garrybest ff94289352 remove Failover from scheduler
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-08-22 14:23:16 +08:00
yy158775 194a448b6f patch ClusterResourceBinding instead of update and update observed generation.
Signed-off-by: yy158775 <1584616775@qq.com>
2022-08-07 16:49:40 +08:00
RainbowMango 286805c239 patch resourcebinding instead of update and update observed generation.
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-08-05 09:17:01 +08:00
chaunceyjiang fc600ae003 custom scheduler plugin
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-07-20 11:16:02 +08:00
prodan 2f35a48c5e add: disable-scheduler-estimator-in-pull-mode flag
Signed-off-by: prodan <pengshihaoren@gmail.com>
2022-06-30 12:10:37 +08:00
kerthcet 84cc6f8500 Feat: add outOfTree plugin entry when initializing scheduler
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-06-01 20:32:54 +08:00
chang.qiangqiang 962089cb01 feat: add command option for enable-empty-workload-propagation
Signed-off-by: charlesQQ <charles_ali@qq.com>

Author:   charlesQQ <charles_ali@qq.com>
2022-05-26 00:52:15 +08:00
Kante b5af525b19
introduce schedulerOptions to optimize scheduler instantiation (#1627)
* feat: introduce schedulerOptions to scheduler

Signed-off-by: kerthcet <kerthcet@gmail.com>

* add tests for NewScheduler

Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-04-26 09:26:13 +08:00
kerthcet 6d30ff9eb9 refactor: remove commented codes
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-04-15 16:58:40 +08:00
kerthcet 7f3b3dc072 feat: introduce registry to store plugins in framework initialization
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-04-15 15:09:40 +08:00
gf457832386 4e436af66e add filter plugin SpreadConstraint to filter cluster
Signed-off-by: gf457832386 <13278887558@163.com>
2022-04-07 12:04:35 +08:00
huone1 31201c6bf4 add plugin clusterLocality to favor cluster
Signed-off-by: huone1 <huwanxing@huawei.com>
2022-03-25 15:13:12 +08:00
lihanbo 0a42c38b52 replace update method with patch method when updating schedule result
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2022-03-14 14:54:29 +08:00
Garrybest ab2028f341 clean up scheduler metrics
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-03-08 11:12:25 +08:00
karmada-bot b33bda9709
Merge pull request #1383 from huone1/DeleteCluster
[feature]support rescheduling when deleting a cluster
2022-03-04 15:13:14 +08:00
pigletfly 9e28d6c6e8 add ratelimiter flags
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2022-03-03 16:09:39 +08:00
huone1 f7e6ecd56a [feature]support rescheduling when deleting a cluster
Signed-off-by: huone1 <huwanxing@huawei.com>
2022-03-03 09:49:44 +08:00
wlp1153468871 ed261ef0a0 modify log type to Error when err ocurs
Signed-off-by: wlp1153468871 <luping.wei@daocloud.io>
2022-01-19 18:21:19 +08:00
huone1 e8b717575a split the code about resource event into event_handler.go
Signed-off-by: huone1 <huwanxing@huawei.com>
2022-01-17 18:19:19 +08:00
huone1 4c9bfbf310 [scheduler]fix a defer execution sequence problem
Signed-off-by: huone1 <huwanxing@huawei.com>
2022-01-13 20:34:34 +08:00
karmada-bot ea0874acd0
Merge pull request #1070 from mrlihanbo/add_events_in_resource
add events to resource template
2021-12-21 09:26:28 +08:00
lihanbo b238572263 add events to resource template
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-12-20 17:31:38 +08:00
Garrybest cbe5cae13b add rate limited when errors occur in scheduler
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-12-20 14:19:18 +08:00
Garrybest 60c3f31897 delete scale scheduling
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-12-07 10:03:18 +08:00
karmada-bot 09c04490bc
Merge pull request #988 from mrlihanbo/schedule-condition
update Scheduled conditon when failed scheduling
2021-12-07 09:18:14 +08:00
Garrybest 7445bd90da fix slow enqueue of async worker
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-12-04 19:44:33 +08:00
lihanbo 435f32cc4d update Scheduled conditon when failed scheduling
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-12-02 17:53:53 +08:00
karmada-bot 668eaee05b
Merge pull request #967 from dddddai/sched-type
Refactor schedule type
2021-11-29 18:07:06 +08:00
dddddai b94580a33e refactor schedule type
Signed-off-by: dddddai <dddwq@foxmail.com>
2021-11-27 10:46:42 +08:00