12 Star 61 Fork 15

Carina / carina

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
capacity-scheduler.md 1.11 KB
一键复制 编辑 原始数据 按行查看 历史

capacity scheduling

carina-scheduler can scheduling pods based on usage and capacity of nodes' disks.

 config.json: |-
    {
      "diskScanInterval": "300", # disk scan intervals in seconds. Zero will disable scanning. 
      "diskGroupPolicy": "type", # disk group policy
      "schedulerStrategy": "spreadout" # scheduler policy, supports binpack and spreadout.
    }

For schedulerStrategy,

  • In case of storageclass volumeBindingMode:Immediate, the scheduler will only consider nodes' disk usage. For example, with spreadout policy, carina scheduler will pick the node with the largest disk capacity to create volume.
  • In case of schedulerStrategystorageclass volumeBindingMode:WaitForFirstConsumer, carina scheduler only affects the pod scheduleing by providing its rank. Kube-scheduler will pick a node finally. User can learn detailed messages in carina-scheduler's log.
  • When multiples nodes have valid capacity ten times larger than requested, those node will share the same rank.

Note:there is an carina webhook that will change the pod scheduler to carina-scheduler if it uses carina PVC.

Go
1
https://gitee.com/bocloud-open-source/carina.git
git@gitee.com:bocloud-open-source/carina.git
bocloud-open-source
carina
carina
main

搜索帮助