云容器引擎 CCE-节点池亲和性调度:配置Volcano节点池软亲和调度策略

时间:2024-05-17 11:30:04

配置Volcano节点池软亲和调度策略

  1. 在节点池上配置用于亲和调度的标签。

    1. 登录CCE控制台。
    2. 单击集群名称进入集群,在左侧选择“节点管理”,在右侧选择“节点池”页签。
    3. 单击节点池名称后的“更新”,在弹出的“更新节点池”页面中配置参数,在“K8s标签”中配置对应的标签。

      示例如下:

  2. 单击左侧导航栏的“插件中心”,在右侧找到Volcano调度器,单击“安装”“编辑”,并在“参数配置”中设置Volcano调度器配置参数。

    {
        "ca_cert": "",
        "default_scheduler_conf": {
            "actions": "allocate, backfill, preempt",
            "tiers": [
                {
                    "plugins": [
                        {
                            "name": "priority"
                        },
                        {
                            "name": "gang"
                        },
                        {
                            "name": "conformance"
                        }
                    ]
                },
                {
                    "plugins": [
                        {
                            "name": "drf"
                        },
                        {
                            "name": "predicates"
                        },
                        {
                            "name": "nodeorder"
                        }
                    ]
                },
                {
                    "plugins": [
                        {
                            "name": "cce-gpu-topology-predicate"
                        },
                        {
                            "name": "cce-gpu-topology-priority"
                        },
                        {
                            "name": "cce-gpu"
                        },
                        {
                            // 开启节点池亲和性调度
                            "name": "nodepoolaffinity", 
                            // 节点池亲和性调度权重及标签设置
                            "arguments": { 
                                "nodepoolaffinity.weight": 10000,
                                "nodepoolaffinity.label": "nodepool1=nodepool1"
                            }
                        }
                    ]
                },
                {
                    "plugins": [
                        {
                            "name": "nodelocalvolume"
                        },
                        {
                            "name": "nodeemptydirvolume"
                        },
                        {
                            "name": "nodeCSIscheduling"
                        },
                        {
                            "name": "networkresource"
                        }
                    ]
                }
            ]
        },
        "server_cert": "",
        "server_key": ""
    }

  3. 完成以上配置后,单击“确定”。
support.huaweicloud.com/usermanual-cce/cce_10_0767.html