Commit Graph
229 Commits
Author SHA1 Message Date
Zexi Li b47b0dc863 scheduler: ignore non running guests only exclude ready status 2020-11-05 18:05:49 +08:00
Zexi Li 0ed41b09e1 scheduler: forecast api with candidates result 2020-11-04 21:10:07 +08:00
Zexi Li cc32bb39ef feature: support cloudprovider, cloudregion and zone schedtag 2020-10-30 10:58:34 +08:00
Qiu Jian 8f2c514699 fix: use option manager for scheduler 2020-10-28 21:04:51 +08:00
yunion-ci-robot 128173d320 Merge pull request #7620 from wanyaoqi/feature/wyq/arm-v2
feature: arm support
2020-10-26 15:50:40 +08:00
Rain ca58fb8d21 fix(scheduler): filter InstanceGroup whose enabled is false 2020-09-28 15:54:12 +08:00
Qiu Jian c516525dbb fix: scheduler token not support policy 2020-09-19 23:39:54 +08:00
wanyaoqi 1f51af3a61 scheduler: fix fillter isolated device 2020-09-16 18:30:38 +08:00
Zexi Li e129d580bd scheduler: ignore network type when specified 2020-09-12 15:56:40 +08:00
rainzm 81feadc13a fix(scheduler): more standardized testing 2020-09-08 14:27:31 +08:00
rainzm 9d18b94ad6 refactor(scheduler): make forcast result clearer
forcast 的返回值包括:
1. CanCreate: 是否可以创建
2. FilteredCandidate: 被过滤掉的candidate(宿主机),并记录了
   过滤其的 filter 的名字以及给出的原因。
3. ReqCount: 请求的机器数量
4. AllowCount: 允许的机器数量
5. NotAllowReasons: 不允许的原因,每一个不被允许的都会被列出原因。
2020-09-08 14:27:31 +08:00
rainzm 57d8f991ab Add mock test for genericScheudler.Schedule 2020-09-08 14:27:26 +08:00
rainzm 0bd84dd4b0 feat: Add method 'Sku' to CandidatePropertyGetter 2020-09-07 16:14:28 +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
Qiu Jian b8238d2059 fix: scheduler aware policy 2020-09-04 10:36:21 +08:00
wanyaoqi 75cd041d79 baremetal colloct isolated devices info (#7357) 2020-08-28 12:10:34 +08:00
wanyaoqi e510ed1969 add host cpu archs capabilitie 2020-08-27 11:07:50 +08:00
wanyaoqi 7d94c4e46f support create arm virtual machine 2020-08-27 11:05:21 +08:00
Zexi Li 7a08a60dbd scheduler: refactor network predicate (#7553) 2020-08-13 17:56:47 +08:00
Zexi Li 6f2ddbd3ad scheduler: fix network auto alloc logic 2020-08-11 18:03:13 +08:00
Jian QiuandQiu Jian 1ba9715ec2 feature: add is_auto_alloc flag to networks (#7473)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2020-08-03 11:58:02 +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 0957fee3d0 scheduler: fix storage filter duplicate error message 2020-07-19 20:23:35 +08:00
Zexi Li d8d6e8c5b5 scheduler: fix memory over committed 2020-06-16 18:51:13 +08:00
Zexi Li fce9d7dac9 Merge pull request #6613 from swordqiu/hotfix/qj-scheduler-test-ignore-quota
fix: scheduler test ignore quota limit
2020-05-27 17:54:39 +08:00
Yousong Zhou fb26b0c389 vet: composite literal uses unkeyed fields 2020-05-27 15:08:02 +08:00
Qiu Jian 354a61632d fix: scheduler test ignore quota limit 2020-05-27 10:10:39 +08:00
wanyaoqi 91ff1d7d84 isolated device add attribute reserved resource 2020-05-25 17:31:34 +08:00
Zexi Li 0f9f4ec381 Merge pull request #6468 from zexi/hotfix/host-convert-docker-config
host convert inject dockerd config
2020-05-20 10:44:26 +08:00
Zexi Li 04b4e5713e host convert inject dockerd config 2020-05-19 19:07:44 +08:00
Zexi Li db65bf4ef0 scheduler: fix min counter get count not correct 2020-05-15 15:04:38 +08:00
Zexi Li 86fbbf5a65 Merge pull request #6353 from zexi/hotfix/scheduler-schedtag-empty-strategy
scheduler: filter disabled cloudprovider
2020-05-14 18:58:36 +08:00
Zexi Li 2e93072691 scheduler: filter disabled cloudprovider 2020-05-14 18:09:26 +08:00
Zexi Li 811cdedc89 Merge pull request #6347 from zexi/hotfix/scheduler-schedtag-empty-strategy
scheduler: set schedtag default strategy if input empty
2020-05-14 17:49:00 +08:00
Zexi Li e00b1fdc3b scheduler: set schedtag default strategy if input empty 2020-05-14 17:23:02 +08:00
Zexi Li d049ac936e scheduler: get region nil panic 2020-05-11 14:40:21 +08:00
Zexi Li f39c829595 scheduler: fix network predicate get wrong free port 2020-04-25 23:23:43 +08:00
Qiu Jian a687d49181 fix: add scheduler support 2020-03-27 01:20:30 +08:00
wanyaoqi f4d86b4fb2 guest add metadata cpu mode
- live migrate if guest cpu mode is qemu, do not check host cpu mode
- disk name generation replace '_' to '-'
2020-03-20 15:04:46 +08:00
Zexi Li 4f3d7c2c32 scheduler: fix disk allocated not balanced 2020-03-14 16:39:26 +08:00
Rain 84f3798322 fix(scheduler): Candidater's CloudProvider maybe nil
Candidater(Host) in Provider Onecloud doesn't have CloudProvider.
2020-03-12 20:17:46 +08:00
Qiu Jian cf5498ac24 feature: recode structuralized GetExtraDetails and ListItemFilter 2020-03-04 14:01:25 +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
yunion-ci-robot a1526d07de Merge pull request #4901 from wanyaoqi/feature/wyq/sync-on-slave-start
backup guest fix
2020-01-19 15:43:12 +08:00
wanyaoqi c0e2019acd backup guest fix 2020-01-19 10:46:24 +08:00
Yousong Zhou 7c29b06669 scheduler: network_predicate: allow onecloud vpc networks 2020-01-17 17:48:04 +08:00