34 Commits
Author SHA1 Message Date
Zexi Li 7d836f77a6 fix(scheduler): get candidates error more info 2020-12-14 14:39:27 +08:00
Zexi Li c0da4cc524 fix(scheduler): clean expire cache before schedule 2020-11-25 21:50:14 +08:00
rainzm 4b4875cd70 feat: Add IResultHelper
1. Adjust the package structure about pkg/scheduler/core and
pkg/scheduler/manager

2. Add IResultHelper

3. Change the signature of genericScheduler.Schedule
func (*Unit, []Candidater) (*SchedResultItemList, error) ==>
func (*Unit, []Candidater, IResultHelper) (*ScheduleResult, error)
2020-09-07 16:13:20 +08:00
rainzm de1b5bc96e fix(scheduler): fix array out of bounds when sorting hosts 2020-09-07 15:13:19 +08:00
rainzm ed4847dffc opt(scheduler): better sort for hosts when selectHost 2020-08-01 17:28:22 +08:00
Zexi Li d5f8855cc2 Merge pull request #7143 from wanyaoqi/feature/wyq/kvm-misc
auto switch to backup server
2020-07-24 10:48:02 +08:00
wanyaoqi a677f24351 - add precheck for perform action
- auto switch to backup

- add sync cleand schedule cache

- add reconcile with backup

- add manual reconcile backup
2020-07-22 20:38:36 +08:00
rainzm fa0450b454 feat(scheduler): Change the action for guests with backup and instanceGroup
1. 对于主机组的打散功能,放在调度的最后单独处理。
2. 主备机的调度,通过在主机和备机之间设置一个粒度为1的主机组来实现。
3. 虚拟机的调度默认打散,在打散的基础上,选择容量大的宿主机。
3. 主备机中,主机和备机的默认打散流程分散开,互不影响。
2020-07-21 20:29:47 +08:00
Zexi Li d8d6e8c5b5 scheduler: fix memory over committed 2020-06-16 18:51:13 +08:00
Zexi Li 04b4e5713e host convert inject dockerd config 2020-05-19 19:07:44 +08:00
Rain 5170778767 feature: Specify cloud provider when creating vm
Specifying the eip is equivalent to specifying the cloudprovider when
creating vm.
2020-02-18 11:33:13 +08:00
wanyaoqi c0e2019acd backup guest fix 2020-01-19 10:46:24 +08:00
Yousong Zhou 8ba5986d83 goimports: first run 2019-10-28 06:22:17 +00:00
Qiu Jian dfc44bbaae fix: go vet issues 2019-07-26 20:31:40 +08:00
Yousong Zhou 8c88fbc9d9 treewide: gofmt with go1.12.6 2019-06-24 07:54:22 +00:00
yunion-ci-robot 11e52c0da0 Merge pull request #1328 from tb365/feature/tb-onecloud-skus-data-init
Feature/tb onecloud skus data init
2019-06-24 12:41:50 +08:00
Zexi d17fbaf02c scheduler: fix prefer avoid score 2019-06-21 13:57:13 +08:00
tangbin 00f78e2b72 add init local sku data 2019-06-20 09:05:01 +08:00
Zexi 64cca04a17 scheduler: add pending usage process 2019-05-29 19:57:44 +08:00
Qiu Jian 004d9b6f95 update copyright headers of all source 2019-03-29 14:47:48 +08:00
Zexi Li 6df6880501 define scheduler apis output and input structs 2019-03-20 12:03:29 +08:00
Zexi Li 19c341c297 scheduler: use compute models 2019-03-20 12:03:29 +08:00
Yousong Zhou 8fe4f2ec98 treewide: group imports with goimports
./goimports -w -local yunion.io/x/onecloud/ -corp yunion.io/x/ $GOPATH/src/yunion.io/x/onecloud/{cmd,pkg}
2019-03-13 10:46:12 +00:00
Qiu Jian d008d47f52 Avoid empty policy rules 2018-12-25 16:31:07 +08:00
Zhang Dongliang 2fd89c4ae6 make fmt 2018-12-24 19:36:31 +08:00
wanyaoqi e64b71818b region: support create backup guest;
scheduler: support backup guest schedule
2018-11-20 21:29:43 +08:00
Zexi Li 8d7360298f schedule k8s local volume 2018-11-15 11:49:19 +08:00
Zexi Li 95f49ead84 scheduler: k8s scheduler extender 2018-11-10 13:27:00 +08:00
屈轩 77128909ae Merge branch 'release/2.3.0' of ssh://git.yunion.io/yunionio/onecloud into bugfix/qx-secgroup-tenant 2018-11-08 11:37:17 +08:00
Qiu Jian 630ad7c526 Merge branch 'release/2.2.0' of ssh://git.yunion.io/~qiujian/onecloud into hotfix/qj-resolve-conflict-20181102-2.3.0
Conflicts:
	pkg/compute/models/secgrouprules.go
2018-11-02 20:42:50 +08:00
Zexi Li e6788bb75e add doc.go for each package 2018-08-11 14:41:38 +08:00
Zexi Li 22411ffb53 path move: github.com/yunionio -> yunion.io/x 2018-08-11 14:28:18 +08:00
Qiu Jian fcee2de326 修正:1. 由于系统盘大小设置单位未转换,导致阿里云创建主机失败 2.
伪删除阿里云主机后,detach了系统盘,导致主机恢复后无系统盘 3.
修正一些格式错误 4. 补充一些climc命令
2018-07-31 00:42:18 +08:00
Zexi Li 270298fae2 Add scheduler service. 2018-07-30 11:18:02 +08:00