Commit Graph

147 Commits

Author SHA1 Message Date
dddddai 01f37c160c adopt transform func to save memory
Signed-off-by: dddddai <dddwq@foxmail.com>
2022-09-16 10:43:05 +08:00
changzhen 8b4eb7b310 fix bug of #2447: when replicaDivisionPreference is Weighted and WeightPreference is nil
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-08-30 21:51:50 +08:00
changzhen 4049bf8285 don't consider the older cluster when filter with taint_toleration
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-08-30 20:52:23 +08:00
chaunceyjiang 90ce5e004e Reschedule ResourceBinding when adding a cluster
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-08-27 11:01:25 +08:00
Garrybest ff94289352 remove Failover from scheduler
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-08-22 14:23:16 +08:00
karmada-bot 0cc00f7bcf
Merge pull request #2345 from yy158775/patch-update
patch resourcebinding instead of update and update observed generation.
2022-08-10 08:56:08 +08:00
yy158775 2d8d70202b add test for Scheduler's patchXXX
Signed-off-by: yy158775 <1584616775@qq.com>
2022-08-09 11:59:46 +08:00
AllenZMC eecb74f513 add ut for spreadconstraint
Signed-off-by: AllenZMC <zhongming.chang@daocloud.io>
2022-08-07 23:28:00 +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
karmada-bot 02836f928d
Merge pull request #1854 from likakuli/feature_notreadytaint
feat: use taint instead of condition to filter cluster
2022-07-22 16:57:48 +08:00
karmada-bot 37ffc7dfd5
Merge pull request #2135 from chaunceyjiang/scheduler_plugins
custom enable or disable of scheduler plugins
2022-07-20 15:59:44 +08:00
chaunceyjiang fc600ae003 custom scheduler plugin
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-07-20 11:16:02 +08:00
karmada-bot ab0883e73d
Merge pull request #2170 from RainbowMango/pr_rename_plugin
Rename scheduler plugin name
2022-07-19 10:27:43 +08:00
Garrybest 1d2028b10f add taint manager
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-07-15 10:42:38 +08:00
RainbowMango 8159189708 Rename scheduler plugin name
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-07-11 18:05:08 +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
karmada-bot 3f1d0cf81c
Merge pull request #1720 from CharlesQQ/scheduler-feature
feat: allow propagate workload to cluster but replicas is zero
2022-05-30 20:37:49 +08:00
likakuli a42c819c10 feat: taint cluster by condition and filter cluster by taint in scheduler
Signed-off-by: likakuli <1154584512@qq.com>
2022-05-29 11:54:11 +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
RainbowMango db217990dd supply unit test to cover zero replica case
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-05-20 11:39:14 +08:00
yingjinhui dafe30c649 fix test fail on arm64 mac `panic: permission denied`, removing gomonkey
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-05-16 20:07:40 +08:00
karmada-bot 7ea7415b31
Merge pull request #1646 from huone1/feature/spreadconstraint-region
support region spread constraint
2022-04-26 12:00:13 +08:00
huone1 7f5809ce6e support region spread constraint
Signed-off-by: huone1 <huwanxing@huawei.com>
2022-04-26 11:16:48 +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
RainbowMango 501d586462 Introduce AssignedReplicasForCluster for ResourceBinding
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-04-22 11:49:18 +08:00
karmada-bot 15e614ba56
Merge pull request #1563 from huone1/optimize/selectClusters
[optimize]Consider available resources when selecting clusters
2022-04-20 17:01:09 +08:00
huone1 960b2f924d [optimize]ensure that the selected clusters has sufficient available resources
Signed-off-by: huone1 <huwanxing@huawei.com>
2022-04-20 15:16:57 +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
karmada-bot a649575920
Merge pull request #1570 from gf457832386/add_filterplugin_cluster_property
add filter plugin ClusterProperty to filter cluster
2022-04-07 14:18:46 +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
RainbowMango 545020a042 Setup binding helpers
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-03-28 15:31:39 +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
huone1 785ad5dc63 add the ut case for selecting cluster
Signed-off-by: huone1 <huwanxing@huawei.com>
2022-03-24 16:03:59 +08:00
huone1 c69d0e0eda refactor the selectclusters process
Signed-off-by: huone1 <huwanxing@huawei.com>
2022-03-23 14:28:16 +08:00
huone1 670cc154eb extend the score process to support the normalizeScore and scoreWeight
Signed-off-by: huone1 <huwanxing@huawei.com>
2022-03-18 11:39:04 +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
karmada-bot 0d0975db5d
Merge pull request #1448 from huone1/fix/scheduler
fix rb spec.Clusters is incorrent in some scenarios
2022-03-10 09:32:22 +08:00
Garrybest ab2028f341 clean up scheduler metrics
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-03-08 11:12:25 +08:00
huone1 c876bb624f fix rb spec.Clusters is incorrent in some scenarios
Signed-off-by: huone1 <huwanxing@huawei.com>
2022-03-08 11:02:26 +08:00
huone1 0c0f1eece8 fix the failover e2e test failed
Signed-off-by: huone1 <huwanxing@huawei.com>
2022-03-07 20:45:09 +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
lihanbo 4569663b40 adapt for propagating dependencies
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2022-02-26 15:49:06 +08:00
karmada-bot 0756007db1
Merge pull request #1370 from kerthcet/feature/quick-return-in-filter
feat: quick return in filter phase when unsuccessful state returned
2022-02-25 14:36:06 +08:00
kerthcet eba5d2f497 feat: quick return in filter phase when unsuccessful state returned
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-02-24 10:45:19 +08:00
huone1 6d8d68a72c delete some invalid logic in static weight strategy
Signed-off-by: huone1 <huwanxing@huawei.com>
2022-02-19 15:33:02 +08:00