Commit Graph
44 Commits
Author SHA1 Message Date
Qiu Jian a687d49181 fix: add scheduler support 2020-03-27 01:20:30 +08:00
Zexi Li 4f3d7c2c32 scheduler: fix disk allocated not balanced 2020-03-14 16:39:26 +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
Yousong Zhou d17452240b scheduler: simplify MinCounters 2020-01-17 17:48:04 +08:00
Yousong Zhou da68e7fccf scheduler: simplify findCandidatesThatFit() 2020-01-17 17:48:03 +08:00
Qiu Jian bc7f62a2ad scheduler schedule according to quota limit 2020-01-03 13:58:04 +08:00
Zexi Li e8377a8709 baremetal: add cdrom boot schedule 2019-10-23 11:18:27 +08:00
Rain 0c93b0c7d4 Feature: Unforced Group which prioritize scheduling guest to host with
enough resources of InstanceGroup and then to host even if this hosts has
no enough resources. Add groups desc in SGuest.ToSchedDesc. The backup
guest also occupies InstanceGroup resources now.
2019-10-17 12:57:43 +08:00
Rain 10991015ef guest persion 2019-10-09 20:43:35 +08:00
Zexi 9bc81fe94c scheduler: optimize forecast filter info 2019-07-15 09:15:25 +08:00
yunion-ci-robot 170f010c9a Merge pull request #1384 from wanyaoqi/feature/wyq/live-migrate-filter-cpu-model
feature: live migrate filter cpu model
2019-06-27 16:58:50 +08:00
wanyaoqi fa370a7c6d - live migrate filter cpu model
- fix list export keys
2019-06-26 13:01:11 +08:00
Zexi fcf600f6b2 scheduler: add schedule filter interface to guestdriver 2019-06-21 17:09:44 +08:00
Zexi d17fbaf02c scheduler: fix prefer avoid score 2019-06-21 13:57:13 +08:00
Zexi 4257263097 scheduler: support sharable candidate 2019-06-12 11:33:01 +08:00
Zexi bef1848357 scheduler: host filter by cloudprovider domain id 2019-06-10 12:17:56 +08:00
Zexi 64cca04a17 scheduler: add pending usage process 2019-05-29 19:57:44 +08:00
Zexi d185dfa932 scheduler: fix nets result not select 2019-05-29 15:54:51 +08:00
Zexi 8c3a1460cd baremetal schedule net bonding check 2019-04-26 00:20:40 +08:00
Zexi 8b1cc4fbee fix: prepaid recycle host not check storage types 2019-04-24 19:25:50 +08:00
Zexi Li e01c4e590f support network schedtag 2019-04-18 09:48:18 +08:00
Zexi Li eab87ed6df fix: scheduler forecast backup server not work (#399) 2019-04-15 15:17:10 +08:00
Zexi Li 2393df6bda fix: scheduler schedtag filters execute when candidates specified (#277) 2019-04-08 22:24:34 +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 4c82dae39b Merge remote-tracking branch 'origin/release/2.6.0' into bugfix/yousong-goimports-270 2019-03-13 13:33:51 +00: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
Zexi Li 1c8b745860 scheduler: add scheduler forecast api 2019-03-04 14:06:01 +08:00
Qiu Jian 2914e4dd6b make fmt 2018-12-19 01:02:23 +08:00
Zexi Li 2c5ed4b360 scheduler: make schedtag prefer and avoid strategy work 2018-12-12 19:56:21 +08:00
Zexi Li 4e344450c5 scheduler: add resource type filter 2018-12-07 15:45:03 +08:00
邱剑 443e55279e Automatic merge from release/2.3.0 -> release/2.4.0
* commit 'df6f57a5ca5e986e7929b53103a3024214b388c8':
  fix: scheduler nil map panic
2018-11-27 17:34:16 +08:00
Zexi Li 743ff2ef9d fix: scheduler nil map panic 2018-11-27 17:32:10 +08:00
wanyaoqi e64b71818b region: support create backup guest;
scheduler: support backup guest schedule
2018-11-20 21:29:43 +08:00
Yousong Zhou 4f0b4ec7c9 govet: treewide
# yunion.io/x/onecloud/pkg/lbagent/utils
  pkg/lbagent/utils/configdir.go:134: unreachable code
  # yunion.io/x/onecloud/pkg/mcclient/modules
  pkg/mcclient/modules/mod_domains.go:243: Sprintf format %s has arg len(result.Data) of wrong type int
  # yunion.io/x/onecloud/pkg/lbagent/models
  pkg/lbagent/models/reflect.go:68: Errorf call needs 1 arg but has 2 args
  # yunion.io/x/onecloud/pkg/cloudcommon/db
  pkg/cloudcommon/db/db_dispatcher.go:1064: Sprintf call needs 1 arg but has 2 args
  # yunion.io/x/onecloud/pkg/scheduler/core
  pkg/scheduler/core/context.go:579: assignment copies lock value to dataItem.Networks: sync.Map contains sync.Mutex
  # yunion.io/x/onecloud/pkg/scheduler/data_manager
  pkg/scheduler/data_manager/candidate_manager.go:353: Errorf format %#v reads arg #1, but call has 0 args
  # yunion.io/x/onecloud/pkg/scheduler/algorithm/predicates/baremetal
  pkg/scheduler/algorithm/predicates/baremetal/network_predicate.go:145: call of u.SetFiltedData copies lock value: sync.Map contains sync.Mutex
  # yunion.io/x/onecloud/pkg/scheduler/algorithm/predicates/guest
  pkg/scheduler/algorithm/predicates/guest/network_predicate.go:207: call of u.SetFiltedData copies lock value: sync.Map contains sync.Mutex
  # yunion.io/x/onecloud/pkg/cloudcommon/db/lockman
  pkg/cloudcommon/db/lockman/inmemory_test.go:49: loop variable id captured by func literal
  # yunion.io/x/onecloud/pkg/util/seclib2
  pkg/util/seclib2/seclib.go:56: unreachable code
  # yunion.io/x/onecloud/cmd/climc/shell
  cmd/climc/shell/alarmlogs.go:46: result of fmt.Errorf call not used
  # yunion.io/x/onecloud/pkg/util/aliyun
  pkg/util/aliyun/disk.go:267: Errorf format %s has arg size of wrong type int64
  pkg/util/aliyun/image.go:93: Sprintf format %s reads arg #1, but call has 0 args
  # yunion.io/x/onecloud/pkg/compute/models
  pkg/compute/models/cachedimages.go:161: Errorf format %d has arg imgId of wrong type string
  pkg/compute/models/disks.go:1274: Errorln call has possible formatting directive %s
  pkg/compute/models/guests.go:1749: Infof format %s has arg self.IsOwner(userCred) of wrong type bool
  pkg/compute/models/hosts.go:1134: Debugf format %s has arg storage of wrong type *models.SStorage
  pkg/compute/models/hosts.go:1135: Debugf format %s has arg self of wrong type *models.SHost
  # yunion.io/x/onecloud/pkg/util/azure
  pkg/util/azure/instance.go:536: unreachable code
  pkg/util/azure/network.go:128: unreachable code
  pkg/util/azure/storage.go:69: unreachable code
  # yunion.io/x/onecloud/pkg/util/azure/shell
  pkg/util/azure/shell/disk.go:20: unreachable code
  pkg/util/azure/shell/network.go:55: unreachable code
2018-10-22 12:33:41 +00:00
Zexi Li 4d6fbcdf0c scheduler: dynamicschedtags support 2018-10-18 18:01:31 +08:00
Zexi Li c7656041a5 修正: 调度器指定网络批量失败的bug 2018-08-13 14:47:58 +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