Commit Graph

72 Commits

Author SHA1 Message Date
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
Xinzhao Xu 953537d1fb Remove unused policyLister in the genericScheduler
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-11-19 15:13:08 +08:00
guoyao b22da790ea cleanup some codes
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-08 20:43:39 +08:00
iawia002 98ee6ce938 Introduce feature gates for the scheduler component
Signed-off-by: iawia002 <z2d@jifangcheng.com>
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-11-05 21:03:02 +08:00
zhongjun.li d8483eeffc clean up
Signed-off-by: zhongjun.li <zhongjun.li@daocloud.io>
2021-10-26 09:42:11 +08:00
changzhen 8e1e16e950 adapt the Scheduled condition for binding
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-10-20 10:59:03 +08:00
karmada-bot d2af1e1991
Merge pull request #823 from dddddai/sched-condition
Propose a Scheduled condition for RB/CRB
2021-10-18 15:15:01 +08:00
dddddai eaea5c608b add scheduled condition for binding
Signed-off-by: dddddai <dddwq@foxmail.com>
2021-10-18 11:43:40 +08:00
Garrybest 08fa785670 run async worker with no intervals
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-10-18 10:58:49 +08:00
junqian 226b48bd52 add metrics for scheduler
Signed-off-by: junqian <junqian@tencent.com>
2021-09-29 10:34:08 +08:00
RainbowMango 56fbbe1054 adopt binding v1alpha2
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-09-28 17:03:46 +08:00
dddddai aeafb96d89 use cluster lister instead of map to implement scheduler cache
Signed-off-by: dddddai <dddwq@foxmail.com>
2021-09-18 16:51:24 +08:00
Garrybest a5774944b5 add scheduler estimator client
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-09-18 11:32:32 +08:00
esto a6165e47f9 update import-aliases
Signed-off-by: esto <1291156784@qq.com>
2021-09-15 15:13:14 +08:00
karmada-bot 08ddb58cfd
Merge pull request #699 from kerthcet/cleanup/refactor-getScheduleType
refactor func getScheduleType
2021-09-08 14:50:05 +08:00
kerthcet b21bee487d refactor func getScheduleType
Signed-off-by: kerthcet <kerthcet@gmail.com>
2021-09-08 11:08:13 +08:00
karmada-bot fb6f3bfe43
Merge pull request #446 from mrlihanbo/reschedule
fix bug of choosing candidate clusters when failover schedule
2021-09-06 11:49:02 +08:00
esto 0903703234 Cleanup cyclomatic complexity with function getScheduleType
Signed-off-by: esto <1291156784@qq.com>
2021-09-01 19:51:13 +08:00
Garrybest 5af53ce908 move ReplicaResourceRequirements and Replicas into ResourceBindingSpec
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-08-21 10:43:33 +08:00
lihanbo 8689c3d7e9 fix bug of choosing candidate clusters when failover schedule
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-08-14 17:49:05 +08:00
RainbowMango 0d0b2cd7a6 replace k/k with component-helpers
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-08-09 15:29:11 +08:00
pigletfly 8edb376966 Move labels to apis
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-08-06 00:03:00 +08:00
changzhen db441697e8 add toleration match in rescheduling
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-08-03 16:40:57 +08:00
changzhen 7a35aa069d fix an issue in cluster fault rescheduling
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-07-31 15:12:29 +08:00
karmada-bot 9f2283c281
Merge pull request #544 from qianjun1993/scheduler-queue
never drop binding in scheduler when failed
2021-07-22 08:58:45 +08:00
junqian f742a3c850 never drop binding in scheduler when failed
Signed-off-by: junqian <junqian@tencent.com>
2021-07-20 16:29:42 +08:00
junqian b15854f3cb Replicas changes with Duplicated ReplicaSchedulingStrategy or Weighted ReplicaDivisionPreference
Signed-off-by: junqian <junqian@tencent.com>
2021-07-20 16:17:45 +08:00
junqian 228dbaa5ba scheduler with Duplicated ReplicaSchedulingStrategy
Signed-off-by: junqian <junqian@tencent.com>
2021-07-07 15:32:07 +08:00
pengli c6cf6b83fb Add new scheduler plugin for checking if required api has installed in target cluster
Signed-off-by: pengli <justdoit.pli@gmail.com>
2021-07-01 21:51:00 +08:00