A node grouping job scheduling method and system based on volcano
By installing the node group priority plug-in on the Volcano platform, grouping and configuring priorities according to resource types, the problem of low resource utilization on the Volcano platform in mixed scheduling scenarios is solved, and more efficient resource utilization and job training efficiency are achieved.
Patent Information
- Application Number
- CN202311148697.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-07
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2043-09-07
AI Technical Summary
The Volcano platform does not support node group scheduling in hybrid scheduling scenarios, resulting in low resource usage.
By installing the node group priority plug-in on the Volcano scheduler, build a hybrid cluster, including Slurm and K8S clusters, group nodes according to resource types, generate multiple node groups, configure priorities for each node group, and based on the node group Priority determines the target node used to run the Pod.
Improved resource utilization, especially in mixed scheduling scenarios, jobs are prioritized to high-performance node groups, reducing the time cost for users to manually specify nodes, and improving job training efficiency and resource usage.
Smart Images

Figure CN117170811B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a method and system for scheduling node grouping jobs based on volcano. Background Art
[0002] Volcano is a container batch computing platform based on Kubernetes. It is used to run traditional batch jobs on Kubernetes, mainly for high-performance computing scenarios. It provides a set of mechanisms that Kubernetes currently lacks, which are usually required for a variety of high-performance workloads such as machine learning big data applications, scientific computing, and special effects rendering. As a general batch processing platform, Volcano seamlessly connects with almost all mainstream computing frameworks. It also provides hybrid scheduling capabilities for heterogeneous devices including CPUs and GPUs based on various mainstream architectures. Volcano has scheduling algorithm diversity, scheduling performance efficiency, seamless connection with mainstream computing frameworks, and support for heterogeneous devices. It abstracts these batch jobs into a CRD (Custom Resource Definition) called Volcano Job, and has an excellent scheduler to improve resource utilization. However, Volcano currently does not support group scheduling of nodes, which is prone to low resource utilization in hybrid scheduling scenarios.
[0003] Therefore, it is necessary to provide a volcano-based node grouping job scheduling system to improve resource utilization in hybrid scheduling scenarios. Summary of the invention
[0004] One of the embodiments of the present specification provides a node grouping job scheduling method based on Volcano, comprising: establishing a hybrid cluster, wherein the hybrid cluster includes a Slurm cluster and a K8S cluster, the hybrid cluster includes at least one hybrid node and at least one K8S node, and the hybrid node is scheduled by one of the Slurm cluster and the K8S cluster at the same time; installing a node group priority plug-in on the Volcano scheduler; grouping the at least one Slurm node, the at least one hybrid node and the at least one K8S node according to resource types to generate multiple node groups, and configuring a priority for each of the node groups; for the unscheduled Pod, the Volcano scheduler determines, based on the priority configured for each of the node groups, a target node for running the unscheduled Pod from the at least one hybrid node and the at least one K8S node.
[0005] In some embodiments, the multiple node groups include at least a hybrid CPU node group, a hybrid GPU node group, a K8S CPU node group, and a K8S GPU node group.
[0006] In some embodiments, the priority of the K8S CPU node group is higher than the priority of the hybrid CPU node group; the priority of the hybrid CPU node group is higher than the priority of the K8S GPU node group; the priority of the K8S GPU node group is higher than the priority of the hybrid GPU node group.
[0007] In some embodiments, the Volcano scheduler determines the target node for running the unscheduled Pod from the at least one hybrid node and the at least one K8S node based on the configuration priority of each of the node groups, including: determining a candidate node that meets pre-selected requirements from the at least one hybrid node and the at least one K8S node; based on the configuration priority of each of the node groups, determining the target node for running the unscheduled Pod from the candidate nodes that meet the pre-selected requirements.
[0008] In some embodiments, determining the target node for running the unscheduled Pod from the candidate nodes that meet the pre-selected requirements based on the configuration priority of each of the node groups includes: determining the target node for running the unscheduled Pod from the candidate nodes that meet the pre-selected requirements based on the relevant information of each of the candidate nodes and the configuration priority of each of the node groups.
[0009] In some embodiments, based on the relevant information of each of the candidate nodes and the node group configuration priority, determining the target node for running the unscheduled Pod from the candidate nodes that meet the pre-selected requirements includes: for each of the candidate nodes, based on the relevant information of the candidate node, generating a scoring result of the candidate node; based on the node group configuration priority, determining the weight of the candidate node; based on the weight and the scoring result, determining the basic score of the candidate node; based on the basic score of each of the candidate nodes, determining the target node for running the unscheduled Pod.
[0010] In some embodiments, the relevant information of the candidate node includes at least the remaining resource information of the candidate node.
[0011] In some embodiments, the Volcano scheduler determines the target node for running the unscheduled Pod from the at least one hybrid node and the at least one K8S node based on the configuration priority of each of the node groups, including: determining whether the target node exists in the K8S CPU node group; if the target node does not exist in the K8S CPU node group, determining whether the target node exists in the hybrid CPU node group; if the target node does not exist in the hybrid CPU node group, determining whether the target node exists in the K8S GPU node group; if the target node does not exist in the K8S GPU node group, determining whether the target node exists in the hybrid GPU node group.
[0012] In some embodiments, the unscheduled Pods are used for research and development of numerical weather forecasting applications.
[0013] One of the embodiments of the present specification provides a volcano-based node grouping job scheduling system, including: a hybrid cluster, including a Slurm cluster and a K8S cluster, the hybrid cluster including at least one hybrid node and at least one K8S node, the hybrid node being scheduled by one of the Slurm cluster and the K8S cluster at the same time; a Volcano scheduler, installed with a node group priority plug-in; a priority configuration module, for grouping the at least one hybrid node and the at least one K8S node according to resource type, generating multiple node groups, and configuring a priority for each of the node groups; the Volcano scheduler is also used to determine a target node for running the unscheduled Pod from the at least one hybrid node and the at least one K8S node based on the priority configured for each of the node groups. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] This specification will be further described in the form of exemplary embodiments, which will be described in detail by the accompanying drawings. These embodiments are not restrictive, and in these embodiments, the same number represents the same structure, wherein:
[0015] Figure 1 It is a module diagram of a volcano-based node grouping job scheduling system according to some embodiments of this specification;
[0016] Figure 2 is a flowchart of a volcano-based node grouping job scheduling method according to some embodiments of this specification;
[0017] Figure 3 It is a schematic diagram of the structure of the integrated system architecture of the R&D and operation and maintenance environment according to some embodiments of this specification;
[0018] Figure 4 It is a flowchart of a Volcano scheduler determining a target node for running an unscheduled Pod from at least one hybrid node and at least one K8S node according to some embodiments of this specification;
[0019] Figure 5 is a schematic diagram of a hybrid cluster according to some embodiments of the present specification;
[0020] Figure 6 It is a code diagram of installing a node group priority plug-in on a Volcano scheduler according to some embodiments of this specification. DETAILED DESCRIPTION
[0021] In order to more clearly illustrate the technical solutions of the embodiments of this specification, the following is a brief introduction to the drawings required for the description of the embodiments. Obviously, the drawings described below are only some examples or embodiments of this specification. For ordinary technicians in this field, this specification can also be applied to other similar scenarios based on these drawings without creative work. Unless it is obvious from the language environment or otherwise explained, the same reference numerals in the figures represent the same structure or operation.
[0022] As shown in this specification and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "comprise" and "include" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.
[0023] Flowcharts are used in this specification to illustrate the operations performed by the system according to the embodiments of this specification. It should be understood that the preceding or following operations are not necessarily performed precisely in order. Instead, the steps may be processed in reverse order or simultaneously. At the same time, other operations may also be added to these processes, or one or more operations may be removed from these processes.
[0024] First, the terms used in this specification are explained.
[0025] Kubernetes: is a portable, extensible, open source platform for managing containerized workloads and services that facilitates declarative configuration and automation.
[0026] CRD (Custom Resource Definition): User-defined resources refer to various software that can run on Kubernetes. Kubernetes has some built-in resources, and CRD provides a way for users to customize new resources. Using CRD, you can easily expand the functions of Kubernetes without modifying the Kubernetes source code.
[0027] Pod (container group): It is the smallest unit managed by Kubernetes. Multiple containers combined together are called a Pod.
[0028] Volcano: Volcano is the first and only Kubernetes-based container batch computing platform under CNCF, mainly used in high-performance computing scenarios. It provides a set of mechanisms that Kubernetes currently lacks, which are usually required for various high-performance workloads such as machine learning big data applications, scientific computing, special effects rendering, etc.
[0029] Volcano Job: VcJob for short, is a custom Job resource type of Volcano. Different from KubernetesJob, VcJob provides more advanced features, such as the ability to specify a scheduler, support a minimum number of running Pods, support Tasks, support lifecycle management, support for specified queues, support for priority scheduling, etc. Volcano Job is more suitable for high-performance computing scenarios such as machine learning, big data, and scientific computing.
[0030] CPU: The Central Processing Unit (CPU) is the computing and control core of the computer system and the final execution unit for information processing and program running.
[0031] GPU: Graphics processing unit (GPU), also known as display core, visual processor, display chip, is a microprocessor that specializes in performing image and graphics related calculations on personal computers, workstations, game consoles and some mobile devices (such as tablets, smart phones, etc.).
[0032] Volcano Controller: Volcano controller, manages Volcano Job on the cluster.
[0033] Volcano Scheduler: Volcano Scheduler schedules VolcanoJob through a series of actions and plug-ins and finds a most suitable node for it.
[0034] NodeGroupPriority Plugin: Node group priority plugin.
[0035] CNCF: Cloud Native Foundation.
[0036] Slurm: The Slurm job scheduling tool is a free and open source job scheduler for Linux and Unix-like kernels, used by many of the world's supercomputers and computer clusters.
[0037] Singularity: Singularity is a container platform. It allows you to create and run containers that package software in a portable and repeatable way. You can build a container with Singularity on your laptop, and then run it on many of the world's largest HPC clusters, a local university or corporate cluster, a single server, in the cloud, or on a workstation down the hall.
[0038] Podgroup: PodGroup is a resource type in volcano. PodGroup is a group of strongly associated pods, mainly used for batch scheduling.
[0039] Figure 1 is a module diagram of a volcano-based node grouping job scheduling system according to some embodiments of this specification, such as Figure 1 As shown, the volcano-based node grouping job scheduling system may include a hybrid cluster, a volcano scheduler, and a priority configuration module.
[0040] The hybrid cluster may include a Slurm cluster and a K8S cluster. The hybrid cluster includes at least one hybrid node and at least one K8S node. The hybrid node is scheduled by one of the Slurm cluster and the K8S cluster at the same time.
[0041] The Volcano scheduler can be installed with a node group priority plugin.
[0042] The priority configuration module can be used to group at least one hybrid node and at least one K8S node according to resource type, generate multiple node groups, and configure the priority for each node group.
[0043] The Volcano scheduler is also used to determine a target node for running unscheduled Pods from at least one hybrid node and at least one K8S node based on the configuration priority of each node group.
[0044] The node grouping job scheduling system based on Volcano can be applied to the integrated system architecture of R&D and operation and maintenance environment. Figure 3is a schematic diagram of the structure of the integrated system architecture of the R&D and operation and maintenance environment according to some embodiments of this specification, such as Figure 3 As shown in the figure, the integrated system architecture of R&D and operation environment includes two parts: numerical forecast R&D system and numerical forecast business system, which are respectively applied to R&D scenarios and business scenarios. In the numerical forecast R&D system, R&D users use K8S and Docker technology to develop numerical forecast applications, create application images, manage containers, etc.; in the numerical forecast business system, general business users use Slurm and Singularity technology to pull forecast applications built by the R&D system and run jobs. Volcano is introduced to process numerical forecast batch tasks. Volcano can make up for the shortcomings of K8S scheduling capabilities and support a large number of mainstream computing frameworks in the fields of machine learning, deep learning, big data, etc. By grouping cluster nodes of R&D use scenario resources, business use scenario resources, mixed use scenario resources, and CPU and GPU resources with different resource types in business use, different priorities are given to different node groups at the scheduling level to achieve isolation at the scheduling level. That is, only when no node group with high priority meets the job resource requirements will it be scheduled in the next node group. In the numerical forecast platform, this plug-in is mainly used to group CPU and GPU nodes. Assign a higher weight to the CPU node group, so that CPU jobs are scheduled to the CPU nodes first, instead of occupying the GPU, which results in the subsequent GPU nodes being unable to schedule GPU jobs due to insufficient CPU resources. Group the node types in the K8S cluster, including nodes that only run K8S jobs and nodes that can run both K8S jobs and Slurm jobs, and assign a higher priority to the former, so that the K8S jobs will not use the mixed node resources first, resulting in insufficient resources when the Slurm job demand is large, while the K8S nodes still have spare resources.
[0045] For more information about hybrid clusters, Volcano scheduler, and priority configuration modules, see Figure 1 The related descriptions will not be repeated here.
[0046] Currently, group scheduling of nodes is not supported, which may lead to low resource utilization in some scenarios. For example, when a cluster has GPU resources, the scheduler may schedule CPU jobs to GPU nodes, resulting in subsequent GPU jobs being unable to be scheduled to GPU nodes due to insufficient CPU. To avoid this problem, current users have the following methods: a. Although users can manually specify nodes to schedule to certain nodes to improve resource utilization, the process will consume more time and manpower costs. b. Divide different nodes by configuring Volcano Job tolerance, but the configuration is more cumbersome, and each time a job is started, the task tolerance needs to be configured, which is time-consuming and costly.
[0047] Figure 2 is a flowchart of a node grouping job scheduling method based on volcano according to some embodiments of this specification, such as Figure 2 As shown, the node grouping job scheduling method based on volcano may include the following steps.
[0048] Step 210: Establish a hybrid cluster.
[0049] Figure 5 is a schematic diagram of a hybrid cluster according to some embodiments of this specification, such as Figure 5 As shown, the hybrid cluster includes a Slurm cluster and a K8S cluster. The hybrid cluster includes at least one Slurm node, at least one hybrid node and at least one K8S node. The hybrid node is scheduled by one of the Slurm cluster and the K8S cluster at the same time.
[0050] Step 220, install the node group priority plug-in on the Volcano scheduler.
[0051] In some embodiments, a scheduling plug-in of a template officially provided by Volcano Scheduler is developed to generate a node group priority plug-in (NodeGroupPriority Plugin).
[0052] Installing the node group priority plug-in can specifically include: deploying Volcano in the Kubernetes cluster and implementing the scheduler required by the node group priority plug-in. After deploying Volcano, users need to add the node group priority plug-in to the VolcanoSchduler Configmap to enable the node group priority function, and monitor the change messages of the Volcano Scheduler Configmap and Node configuration in the cluster. After changing the Volcano SchdulerConfigmap and Node configuration, they will be monitored by the Volcano Scheduler.
[0053] The code to install the node group priority plugin on the Volcano scheduler can be as follows Figure 6 As shown, add the "-namenodegrouppriority" field.
[0054] Step 230, group at least one hybrid node and at least one K8S node according to resource type, generate multiple node groups, and configure a priority for each node group.
[0055] In some embodiments, Figure 5 As shown, the multiple node groups include at least Slurm node groups, hybrid CPU node groups, hybrid GPU node groups, K8S CPU node groups and K8S GPU node groups. Configuring the priority for each node group can specifically include: configuring a label in the format of "volcano.sh / nodegrouppriority:priority number-node group name" for all Node nodes. Among them, "priority number" is a non-negative integer, which represents the priority of the current node. Nodes with the same priority are in the same node group. The larger the number, the higher the priority. "Node group name" is the group name of the node group, which is used to briefly describe the characteristics of the node group. The nodes in the k8s cluster are divided into two types of nodes, CPU and GPU, according to the resource type, and are divided into three types of nodes according to the scheduling method. Since the Slurm scheduling module is not affected by the volcano scheduler, the resource type is not divided. A total of 5 types of nodes are divided. Among them, 4 node groups receive job scheduling from the volcano scheduler. The size of the priority field indicates the job scheduling priority of these 4 node groups. Since the cost of gpu resources is relatively expensive, the priority of the gpu node group is set to a low level to ensure that when a cpu job is requested, it will not be scheduled to the gpu node first.
[0056] For example, to add a label to nodes in a hybrid GPU node group: "volcano.sh / nodegrouppriority:1-nodegroup1".
[0057] In some embodiments, the priority of the K8S CPU node group is higher than the priority of the hybrid CPU node group; the priority of the hybrid CPU node group is higher than the priority of the K8S GPU node group; the priority of the K8S GPU node group is higher than the priority of the hybrid GPU node group.
[0058] Step 240, for the unscheduled Pod, the Volcano scheduler determines a target node for running the unscheduled Pod from at least one hybrid node and at least one K8S node based on the configuration priority of each node group.
[0059] Among them, the unscheduled Pods are used for the research and development of numerical weather forecasting applications.
[0060] Specifically, after creating a Volcano Job, the Volcano Controller will create a Pod according to the Volcano Job configuration. At this time, the Pod is in a waiting state, waiting for the Volcano Scheduler to schedule it. When the Volcano Scheduler starts, it will load the scheduling plug-in configured in the Volcano Scheduler ConfigMap, register the corresponding plug-in, and obtain the configuration information of all nodes. The Volcano scheduler configures the priority of each node group and determines the target node for running the unscheduled Pod from at least one hybrid node and at least one K8S node.
[0061] In some embodiments, a candidate node that meets the pre-selection requirement is determined from at least one hybrid node and at least one K8S node; based on the configuration priority of each node group, a target node for running the unscheduled Pod is determined from the candidate nodes that meet the pre-selection requirement. The pre-selection requirement may be that the remaining resources of the node are greater than the resources required by the unscheduled Pod.
[0062] In some embodiments, based on the relevant information of each candidate node and the configuration priority of each node group, the target node for running the unscheduled Pod is determined from the candidate nodes that meet the pre-selection requirements. For example, for each candidate node, based on the relevant information of the candidate node, a scoring result of the candidate node is generated; based on the configuration priority of the node group, the weight of the candidate node is determined; based on the weight and the scoring result, the basic score of the candidate node is determined; based on the basic score of each candidate node, the target node for running the unscheduled Pod is determined. It can be understood that the higher the priority, the greater the weight of the candidate node. Among them, the relevant information of the candidate node includes at least the remaining resource information of the candidate node, and may also include other information, such as other scheduling strategies.
[0063] It can be understood that the node group priority obtains the label information of the node configuration, adds different large weight scores to different nodes, and realizes the large difference in the basic scores of different node groups, thus realizing the grouping of node scoring. Since the basic scores of other scheduling strategies are small, the node scheduling strategy node group priority strategy is much greater than other scheduling strategies.
[0064] For example, Figure 4 is a flowchart of a Volcano scheduler determining a target node for running an unscheduled Pod from at least one hybrid node and at least one K8S node according to some embodiments of this specification, such as Figure 4As shown, the Volcano scheduler determines the target node for running the unscheduled Pod from at least one hybrid node and at least one K8S node based on the configuration priority of each node group, including:
[0065] Determine whether the target node exists in the K8S CPU node group;
[0066] If the target node does not exist in the K8S CPU node group, determine whether the target node exists in the hybrid CPU node group;
[0067] If the target node does not exist in the hybrid CPU node group, determine whether the target node exists in the K8S GPU node group;
[0068] If the target node does not exist in the K8S GPU node group, determine whether the target node exists in the hybrid GPU node group.
[0069] from Figure 4 It can be seen that the job will determine whether the resource requirements are met according to the node group priority and schedule the job to the node. However, the node group resources are judged in only one direction in the last step, and they do not continue to move downward when the resources are insufficient. This is because Volcano will first use the gang algorithm to determine whether the cluster resources meet the requirements before scheduling. In other words, when scheduling the current node group priority, it has already determined that the current cluster meets the job resource requirements, and there is no situation of insufficient resources in the left step.
[0070] It can be understood that when there are multiple candidate nodes in the K8S CPU node group, a scoring result of the candidate node can be generated based on the relevant information of the candidate node, and the target node can be determined from the multiple candidate nodes in the K8S CPU node group based on the scoring result.
[0071] As an example only, the following describes the process of applying this method to Pod scheduling:
[0072] The first step for a Pod to enter the scheduling phase is to enter the queue. This step will filter the qualified jobs and arrange them into the queue. The Gang algorithm will either schedule all or none of them, and filtering will be performed in this step.
[0073] Next, we enter the allocation phase, which is used to process Pods in the Pod list that have resource requests and need to be scheduled. This phase includes pre-selection and optimization, where pre-selection is used to determine candidate nodes, and optimization is used to determine target nodes from candidate nodes. The node group priority plug-in will take effect in the allocation phase, and the node group priority function will be implemented by scoring the nodes by adding the scoring method of the allocation phase. Since this phase is the scheduling of Pods with resource requests in the Pod list, the node group priority plug-in will only take effect on the scheduling of Pods with resource requests in the Pod list.
[0074] Then it will enter the preemption phase, which is used to preempt resources between jobs in the queue or between tasks in a job.
[0075] Finally, the backfill phase will be entered, which processes the Pods in the Pod list that do not have the specified resource request amount.
[0076] It can be understood that the node grouping job scheduling method based on volcano has at least the following beneficial effects:
[0077] 1. It can improve the resource utilization rate of node scheduling scenarios with different resource types in the Volcano scheduling link.
[0078] 2. Volcano can be provided with other schedulers (e.g., Slurm) to improve resource utilization in hybrid scheduling scenarios.
[0079] 3. Node group scheduling can prioritize jobs to high-performance node groups in different performance node scenarios, improve job training efficiency, and reduce job training time.
[0080] 4. Reduce the time cost of users manually specifying nodes, and more automatically schedule node hardware environments in different scenarios.
[0081] The basic concepts have been described above. Obviously, for those skilled in the art, the above detailed disclosure is only for example and does not constitute a limitation of this specification. Although not explicitly stated here, those skilled in the art may make various modifications, improvements and corrections to this specification. Such modifications, improvements and corrections are suggested in this specification, so such modifications, improvements and corrections still belong to the spirit and scope of the exemplary embodiments of this specification.
[0082] At the same time, this specification uses specific words to describe the embodiments of this specification. For example, "one embodiment", "an embodiment", and / or "some embodiments" refer to a certain feature, structure or characteristic related to at least one embodiment of this specification. Therefore, it should be emphasized and noted that "one embodiment" or "an embodiment" or "an alternative embodiment" mentioned twice or more in different positions in this specification does not necessarily refer to the same embodiment. In addition, certain features, structures or characteristics in one or more embodiments of this specification can be appropriately combined.
[0083] In addition, unless explicitly stated in the claims, the order of the processing elements and sequences described in this specification, the use of alphanumeric characters, or the use of other names are not intended to limit the order of the processes and methods of this specification. Although the above disclosure discusses some invention embodiments that are currently considered useful through various examples, it should be understood that such details are only for illustrative purposes, and the attached claims are not limited to the disclosed embodiments. On the contrary, the claims are intended to cover all modifications and equivalent combinations that are consistent with the essence and scope of the embodiments of this specification. For example, although the system components described above can be implemented by hardware devices, they can also be implemented only by software solutions, such as installing the described system on an existing server or mobile device.
[0084] Similarly, it should be noted that in order to simplify the description disclosed in this specification and thus help understand one or more embodiments of the invention, in the above description of the embodiments of this specification, multiple features are sometimes combined into one embodiment, figure or description thereof. However, this disclosure method does not mean that the features required by the subject matter of this specification are more than the features mentioned in the claims. In fact, the features of the embodiments are less than all the features of the single embodiment disclosed above.
[0085] Finally, it should be understood that the embodiments described in this specification are only used to illustrate the principles of the embodiments of this specification. Other variations may also fall within the scope of this specification. Therefore, as an example and not a limitation, alternative configurations of the embodiments of this specification may be considered consistent with the teachings of this specification. Accordingly, the embodiments of this specification are not limited to the embodiments explicitly introduced and described in this specification.
Claims
1. A node grouping job scheduling method based on volcano, characterized in that: include: Establishing a hybrid cluster, wherein the hybrid cluster includes a Slurm cluster and a K8S cluster, the hybrid cluster includes at least one hybrid node and at least one K8S node, and the hybrid node is scheduled by one of the Slurm cluster and the K8S cluster at the same time; Install the node group priority plug-in on the Volcano scheduler, including: deploying Volcano in the Kubernetes cluster and implementing the scheduler required by the node group priority plug-in. After deploying Volcano, add the node group priority plug-in to the VolcanoSchduler Configmap to enable the node group priority function, and monitor the change messages of the Volcano Scheduler Configmap and Node configuration in the cluster. After changing the Volcano SchdulerConfigmap and Node configuration, the Volcano Scheduler will monitor it. The at least one hybrid node and the at least one K8S node are grouped according to resource types to generate a plurality of node groups, and a priority is configured for each of the node groups, wherein the plurality of node groups at least include a Slurm node group, a hybrid CPU node group, a hybrid GPU node group, a K8S CPU node group, and a K8S GPU node group; For the unscheduled Pod, the Volcano scheduler determines the target node for running the unscheduled Pod from the at least one hybrid node and the at least one K8S node based on the configuration priority of each node group. Specifically, after creating the Volcano Job, the Volcano Controller creates the Pod according to the Volcano Job configuration. At this time, the Pod is in a waiting state, waiting for the Volcano Scheduler to schedule. When the Volcano Scheduler starts, it loads the scheduling plug-in configured in the Volcano Scheduler ConfigMap, registers the corresponding plug-in, and obtains the configuration information of all nodes. The Volcano scheduler determines the target node for running the unscheduled Pod from the at least one hybrid node and the at least one K8S node based on the configuration priority of each node group. Among them, the Volcano scheduler determines the target node for running the unscheduled Pod from at least one hybrid node and at least one K8S node based on the configuration priority of each node group, including: Determine whether the target node exists in the K8S CPU node group; If the target node does not exist in the K8S CPU node group, determine whether the target node exists in the hybrid CPU node group; If the target node does not exist in the hybrid CPU node group, determine whether the target node exists in the K8S GPU node group; If the target node does not exist in the K8S GPU node group, determine whether the target node exists in the hybrid GPU node group; The node grouping job scheduling method based on volcano is applied in the integrated system architecture of R&D and operation and maintenance environment. The integrated system architecture of R&D and operation and maintenance environment includes two parts: numerical forecast R&D system and numerical forecast business system, which are respectively applied to R&D scenarios and business scenarios. In the numerical forecast R&D system, R&D users use K8S and Docker technologies to develop numerical forecast applications, create application images, and manage containers; in the numerical forecast business system, users use Slurm and Singularity technologies to pull the forecast applications built by the R&D system and run jobs, and introduce Volcano to process numerical forecast batch tasks.
2. According to the volcano-based node grouping job scheduling method of claim 1, it is characterized in that: The priority of the K8S CPU node group is higher than the priority of the hybrid CPU node group; The priority of the hybrid CPU node group is higher than the priority of the K8S GPU node group; The priority of the K8S GPU node group is higher than the priority of the hybrid GPU node group.
3. A volcano-based node grouping job scheduling method according to claim 1 or 2, characterized in that: The Volcano scheduler determines a target node for running the unscheduled Pod from the at least one hybrid node and the at least one K8S node based on the configuration priority of each of the node groups, including: Determine a candidate node that meets the pre-selection requirements from the at least one hybrid node and the at least one K8S node; Based on the configuration priority of each node group, a target node for running the unscheduled Pod is determined from the candidate nodes that meet the pre-selection requirements.
4. A volcano-based node grouping job scheduling method according to claim 3, characterized in that: The step of determining, based on each of the node group configuration priorities, a target node for running the unscheduled Pod from the candidate nodes that meet the pre-selection requirements comprises: Based on the relevant information of each of the candidate nodes and the configuration priority of each of the node groups, a target node for running the unscheduled Pod is determined from the candidate nodes that meet the pre-selection requirements.
5. A volcano-based node grouping job scheduling method according to claim 4, characterized in that: The determining, based on the relevant information of each of the candidate nodes and the configuration priority of each of the node groups, a target node for running the unscheduled Pod from the candidate nodes that meet the pre-selection requirements, includes: For each of the candidate nodes, Based on the relevant information of the candidate node, generating a scoring result of the candidate node; Determining the weight of the candidate node based on the node group configuration priority; Based on the weight and the scoring result, determining a basic score of the candidate node; Based on the basic score of each of the candidate nodes, a target node for running the unscheduled Pod is determined.
6. A volcano-based node grouping job scheduling method according to claim 5, characterized in that: The relevant information of the candidate node at least includes the remaining resource information of the candidate node.
7. A volcano-based node grouping job scheduling method according to claim 1 or 2, characterized in that: The unscheduled Pod is used for the research and development of numerical weather forecasting applications.
8. A node grouping job scheduling system based on volcano, characterized in that: include: A hybrid cluster, comprising a Slurm cluster and a K8S cluster, wherein the hybrid cluster comprises at least one hybrid node and at least one K8S node, and the hybrid node is scheduled by one of the Slurm cluster and the K8S cluster at the same time; The Volcano scheduler is installed with a node group priority plug-in, which includes: deploying Volcano in the Kubernetes cluster and implementing the scheduler required for the node group priority plug-in. After deploying Volcano, add the node group priority plug-in to the VolcanoSchduler Configmap to enable the node group priority function, and monitor the change messages of the Volcano Scheduler Configmap and Node configuration in the cluster. After changing the Volcano SchdulerConfigmap and Node configuration, the Volcano Scheduler will monitor it. A priority configuration module, for grouping the at least one hybrid node and the at least one K8S node according to resource types, generating a plurality of node groups, and configuring a priority for each of the node groups, wherein the plurality of node groups at least include a Slurm node group, a hybrid CPU node group, a hybrid GPU node group, a K8S CPU node group, and a K8S GPU node group; The Volcano scheduler is also used to determine the target node for running the unscheduled Pod from the at least one hybrid node and the at least one K8S node based on the configuration priority of each node group. Specifically, after creating the Volcano Job, the Volcano Controller will create the Pod according to the Volcano Job configuration. At this time, the Pod is in a waiting state, waiting for the Volcano Scheduler to schedule. When the Volcano Scheduler is started, it will load the scheduling plug-in configured in the VolcanoScheduler ConfigMap and register the corresponding plug-in and obtain the configuration information of all nodes. The Volcano scheduler determines the target node for running the unscheduled Pod from the at least one hybrid node and the at least one K8S node based on the configuration priority of each node group. Among them, the Volcano scheduler determines the target node for running the unscheduled Pod from at least one hybrid node and at least one K8S node based on the configuration priority of each node group, including: Determine whether the target node exists in the K8S CPU node group; If the target node does not exist in the K8S CPU node group, determine whether the target node exists in the hybrid CPU node group; If the target node does not exist in the hybrid CPU node group, determine whether the target node exists in the K8S GPU node group; If the target node does not exist in the K8S GPU node group, determine whether the target node exists in the hybrid GPU node group; The node grouping job scheduling system based on volcano is applied in the integrated system architecture of R&D and operation and maintenance environment. The integrated system architecture of R&D and operation and maintenance environment includes two parts: numerical forecast R&D system and numerical forecast business system, which are respectively applied to R&D scenarios and business scenarios. In the numerical forecast R&D system, R&D users use K8S and Docker technologies to develop numerical forecast applications, create application images, and manage containers; in the numerical forecast business system, users use Slurm and Singularity technologies to pull the forecast applications built by the R&D system and run jobs, and introduce Volcano to process numerical forecast batch tasks.
