Commit Graph

53 Commits

Author SHA1 Message Date
huone1 7f5809ce6e support region spread constraint
Signed-off-by: huone1 <huwanxing@huawei.com>
2022-04-26 11:16:48 +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 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
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
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
huone1 f7e6ecd56a [feature]support rescheduling when deleting a cluster
Signed-off-by: huone1 <huwanxing@huawei.com>
2022-03-03 09:49:44 +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
huone1 75aa4ce0e6 fix spreadconstraints[i].MaxGroups Invalidation when scaleup replicas
Signed-off-by: huone1 <huwanxing@huawei.com>
2022-02-08 10:53:54 +08:00
dddddai ff83773c5e remove redundant sort
Signed-off-by: dddddai <dddwq@foxmail.com>
2021-12-17 10:24:33 +08:00
Garrybest 4acb5aee8a add new test of division algorithm
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-12-07 10:30:33 +08:00
Garrybest 60c3f31897 delete scale scheduling
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-12-07 10:03:18 +08:00
Garrybest eb0dac3a68 merge scale scheduling with normal scheduling
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-12-07 10:02:58 +08:00
karmada-bot d40d559747
Merge pull request #978 from BDXGD/dev
Logic patch for dividing remaining replicas to clusters
2021-11-23 11:40:12 +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
xinjie xu 804bbed87c logic patch for calculating desireReplicaInfos
Signed-off-by: xinjie xu <1912747539@qq.com>
2021-11-18 21:04:06 +08:00
Garrybest d01fccfd3b add division algorithm test
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-11-06 22:39:57 +08:00
Garrybest a29f3f7a50 divide replicas by dynamic weight
Signed-off-by: Garrybest <garrybest@foxmail.com>
Co-authored-by: junqian <junqian@tencent.com>
2021-11-06 22:38:57 +08:00
Garrybest a3e1b597c0 add object reference when calling gRPC
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-11-02 22:25:12 +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
Garrybest f89e754f2e back off to general estimator when scheduler estimator is unavailable
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-09-24 14:26:50 +08:00
Garrybest a5774944b5 add scheduler estimator client
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-09-18 11:32:32 +08:00
karmada-bot f380abf288
Merge pull request #657 from Garrybest/pr_estimator
add node claim into ReplicaRequirements
2021-09-07 09:13:03 +08:00
Garrybest 4f8215e071 add node claim into ReplicaRequirements
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-09-06 15:31:42 +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
changzhen e7841639e7 set default weightPreference when WeightPreference is not set
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-09-02 20:22:21 +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
junqian 65b7f5c8de Replicas changes with aggregated ReplicaDivisionPreference
Signed-off-by: junqian <junqian@tencent.com>
2021-07-23 10:10:37 +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 26b318d149 scheduler with aggregated ReplicaDivisionPreference
Signed-off-by: junqian <junqian@tencent.com>
2021-07-10 10:18:42 +08:00
junqian f60a77160c scheduler with weighted ReplicaDivisionPreference
Signed-off-by: junqian <junqian@tencent.com>
2021-07-09 09:52:14 +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
Hanbo Li 01066ce3f8
Scheduler: support cluster resource binding (#213)
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-03-12 17:07:50 +08:00
RainbowMango 30bda2b55b Moving ResourceBinding to work.karmada.io group
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-06 15:37:51 +08:00
Hongcai Ren 7905bb2371
Rename PropagationBinding to ResourceBinding (#193)
* Rename PropagationBinding to ResourceBinding

Signed-off-by: RainbowMango <renhongcai@huawei.com>

* Auto generate files

Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-06 09:46:35 +08:00
RainbowMango aaef8770ba Scheduler: retrieve policy by binding labels
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-03 10:14:56 +08:00
Hanbo Li eb6265a78a
support spread constraints (#168)
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-02-08 12:05:49 +08:00
Hanbo Li bca72a58fb
support cluster label selector in scheduler (#149)
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-01-30 09:22:48 +08:00
Kevin Wang 422cd8e555 rename propagationstrategy to policy in implementations
Signed-off-by: Kevin Wang <kevinwzf0126@gmail.com>
2021-01-25 15:55:06 +08:00
Kevin Wang 4afcabe5f1 rename apigroup name, from propagationstrategy to policy
Signed-off-by: Kevin Wang <kevinwzf0126@gmail.com>
2021-01-25 15:55:06 +08:00