Resource scheduling method, device, equipment and system for computing power network and medium

By setting up virtual queues on the supercomputing center and adopting a two-level scheduling strategy, the cross-regional and cross-platform problems of resource management and scheduling in distributed multi-supercomputing centers are solved, and resource utilization and management convenience are improved.

CN118796336APending Publication Date: 2024-10-18CHINA MOBILE COMM LTD RES INST +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311675065.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-07
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In the existing technology, distributed multi-supercomputing centers lack unified resource management and scheduling solutions, resulting in low resource utilization of cross-regional and cross-platform computing clusters, making it difficult for users to fully understand the resource situation of each supercomputing center.

Method used

By setting up a virtual queue on the super computing center, the differences in computing power resources of each super computing center are shielded, and unified management and scheduling of multiple super computing centers are realized. A two-level scheduling strategy is adopted. First, one-level scheduling is performed in the virtual queue. The resource management system within the supercomputing center performs secondary scheduling.

Benefits of technology

It achieves centralized management and scheduling of computing resources across regions and platforms, improves the resource utilization of each supercomputing center, provides resource management and scheduling services that are imperceptible to users, and enhances the flexibility and convenience of resource utilization. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796336A_ABST
    Figure CN118796336A_ABST
Patent Text Reader

Abstract

The invention discloses a computing power network-oriented resource scheduling method, apparatus, device and system, and a medium. The method comprises the following steps: in response to a job task, selecting a target supercomputing queue matched with job resource demand parameters from at least one virtual queue; wherein the job task comprises job resource demand parameters, and each virtual queue is used for maintaining a supercomputing queue of at least one supercomputing center with the same specification configuration; sending the job task to a supercomputing center where the target supercomputing queue is located; receiving operation data returned by a supercomputing center where the target supercomputing queue is located; and generating a job result of the job task based on the job data. Thus, the supercomputing queues of the multiple supercomputing centers can be managed and scheduled in a centralized mode based on the virtual queues, the purpose of carrying out supercomputing tasks based on centralized management and scheduling of cross-region and cross-platform computing power cluster resources is achieved, flexibility and convenience are achieved, and the resource utilization rate of all the supercomputing centers can be increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computing power applications, and in particular to a resource scheduling method, device, equipment, system and medium for a computing power network. Background Art

[0002] In the digital economy era, computing power is a new productivity and a solid foundation for the development of the digital economy. Supercomputing power refers to the computing power provided by high-performance computing clusters such as supercomputers, which are used to handle large-scale and high-performance scientific computing tasks.

[0003] In related technologies, distributed multi-supercomputing centers (also known as supercomputing platforms or supercomputing clusters) have the characteristics of wide distribution areas, highly heterogeneous resources, and diverse interfaces. Most of the related scheduling solutions are concentrated within the supercomputing clusters, and there is a lack of unified management and scheduling solutions for cross-regional and cross-platform clusters. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a resource scheduling method, device, equipment, system and medium for a computing power network, aiming to achieve unified management and scheduling of computing power resources in distributed multi-supercomputing centers.

[0005] The technical solution of the embodiment of the present application is implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides a resource scheduling method for a computing power network, including:

[0007] In response to a job task, a target supercomputing queue matching the job resource requirement parameter is selected from at least one virtual queue; wherein the job task includes the job resource requirement parameter, and each of the virtual queues is used to maintain a supercomputing queue of at least one supercomputing center having the same specification configuration;

[0008] Sending the job task to the supercomputing center where the target supercomputing queue is located;

[0009] Receiving the job data returned by the supercomputing center where the target supercomputing queue is located;

[0010] A work result of the work task is generated based on the work data.

[0011] In the above scheme, the method further comprises:

[0012] receiving a first request sent by a supercomputing center, where the first request is used to add a supercomputing queue to be added to a virtual queue, and the first request carries attribute information of the supercomputing queue to be added;

[0013] Generate a specification parameter for uniquely indicating the specification configuration of the supercomputing queue to be added based on the attribute information;

[0014] Based on the specification parameters, determine whether there is a virtual queue with the same specification configuration in the established virtual queue. If so, add the supercomputing queue to be added to the virtual queue with the same specification configuration. If not, create a virtual queue with the specification configuration corresponding to the specification parameters, and add the supercomputing queue to be added to the newly created virtual queue.

[0015] In the above solution, the generating, based on the attribute information, of a specification parameter for uniquely indicating the specification configuration of the supercomputing queue to be added includes:

[0016] extracting specified information from the attribute information based on a set extraction rule;

[0017] A hash operation is performed on the designated information based on a hash algorithm, and the obtained hash value is used as a specification parameter indicating the specification configuration of the supercomputing queue to be added.

[0018] In the above scheme, the method further comprises:

[0019] receiving a second request sent by the supercomputing center, where the second request is used to indicate that a set supercomputing queue on the supercomputing center is destroyed;

[0020] The set supercomputing queue to be destroyed based on the second request is deleted from the established virtual queues.

[0021] In the above scheme, the method further comprises:

[0022] Check whether the established virtual queue has a situation where the supercomputing queue is empty. If so, destroy the corresponding virtual queue.

[0023] In the above scheme, the method further comprises:

[0024] Obtain the resource status of each supercomputing center and / or the load status of the supercomputing queues on each supercomputing center;

[0025] The step of selecting a target supercomputing queue that matches the job resource requirement parameter from at least one virtual queue includes:

[0026] Selecting an initial supercomputing queue whose specification configuration meets the job requirement parameters from at least one virtual queue;

[0027] A target supercomputing queue whose resource status and / or load status meets the requirements is selected from the initial supercomputing queue based on the set scheduling policy.

[0028] In the above scheme, the job task also includes: a job script for indicating job execution logic and / or job parameters. Before sending the job task to the supercomputing center where the target supercomputing queue is located, the method also includes:

[0029] Detect whether the job script has queue information indicating a supercomputing queue for executing the job task; if so, remove the queue information in the job script.

[0030] In a second aspect, an embodiment of the present application provides a resource scheduling device for a computing power network, including:

[0031] A scheduling module, configured to select, in response to a job task, a target supercomputing queue that matches the job resource requirement parameter from at least one virtual queue; wherein the job task includes the job resource requirement parameter, and each of the virtual queues is used to maintain a supercomputing queue of at least one supercomputing center with the same specification configuration;

[0032] A sending module, used for sending the job task to the supercomputing center where the target supercomputing queue is located;

[0033] A receiving module, used to receive the job data returned by the supercomputing center where the target supercomputing queue is located;

[0034] A generating module is used to generate a job result of the job task based on the job data.

[0035] In a third aspect, an embodiment of the present application provides a resource scheduling device for a computing power network, comprising: a processor and a memory for storing a computer program that can be run on the processor, wherein the processor, when used to run the computer program, executes the steps of the method described in the first aspect of the embodiment of the present application.

[0036] In a fourth aspect, an embodiment of the present application provides a data processing system of a computing power network, comprising a resource scheduling device and multiple supercomputing centers as described in the fourth aspect of the embodiment of the present application, wherein the resource scheduling device is communicatively connected to the multiple supercomputing centers.

[0037] In a fifth aspect, an embodiment of the present application provides a computer storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in the first aspect of the embodiment of the present application are implemented.

[0038] The technical solution provided in the embodiment of the present application selects a target supercomputing queue that matches the job resource demand parameters from at least one virtual queue in response to a job task; wherein the job task includes the job resource demand parameters, and each virtual queue is used to maintain the supercomputing queue of at least one supercomputing center with the same specification configuration; sends the job task to the supercomputing center where the target supercomputing queue is located; receives the job data returned by the supercomputing center where the target supercomputing queue is located; and generates the job result of the job task based on the job data. In this way, the supercomputing queues of multiple supercomputing centers can be centrally managed and scheduled based on virtual queues, achieving the purpose of performing supercomputing tasks based on the centralized management and scheduling of computing power cluster resources across regions and platforms. It is not only flexible and convenient, but also can improve the resource utilization rate of each supercomputing center without the user having to fully understand the computing power resource situation of each supercomputing center. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 This is a schematic diagram of the structure of a data processing system based on distributed multi-supercomputing centers in an embodiment of the present application;

[0040] Figure 2 A schematic diagram of a process flow of a method for resource scheduling in a computing network according to an embodiment of the present application;

[0041] Figure 3 A schematic diagram of the mapping relationship between the virtual queue and the supercomputing queue in an application example of this application;

[0042] Figure 4 A schematic diagram of the logical architecture for the management and scheduling of computing resources of distributed multi-supercomputing centers in this application embodiment;

[0043] Figure 5 A schematic diagram of the collaborative process of the distributed multi-supercomputing center resource management component in this application embodiment;

[0044] Figure 6 A schematic diagram of the process of creating a virtual queue in this application embodiment;

[0045] Figure 7 A schematic diagram of a process of destroying a virtual queue in this application embodiment;

[0046] Figure 8 A schematic diagram of the two-level scheduling process of supercomputing jobs in this application embodiment;

[0047] Fig. 9 This is a schematic diagram of the structure of a resource scheduling device for a computing power network according to an embodiment of the present application;

[0048] Fig.10 This is a schematic diagram of the structure of the resource scheduling device according to an embodiment of the present application. DETAILED DESCRIPTION

[0049] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments.

[0050] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0051] In related technologies, supercomputing resource management software is used to effectively manage and allocate computing resources to support scientific research, engineering simulation, and other high-performance computing applications. Supercomputing resource management software is used for internal resource management and scheduling of supercomputing clusters. The following are some common supercomputing resource management software:

[0052] 1.SLURM (Simple Linux Utility for Resource Management): SLURM is a widely used open source resource management and job scheduling system for managing computing nodes, memory, storage and other resources, as well as scheduling computing jobs submitted by users.

[0053] 2. IBM Spectrum LSF: IBM Spectrum LSF (Load Sharing Facility) is a set of resource management and job scheduling software developed by IBM for high-performance computing clusters and supercomputers.

[0054] 3. Altair PBS Professional: PBS Professional is a commercial resource management and job scheduling software that supports high-performance computing clusters and supercomputing environments.

[0055] 4. Oracle Grid Engine: Oracle Grid Engine is an open source resource management and job scheduling system for cluster and high-performance computing environments.

[0056] With the trend of interconnecting multiple supercomputing centers, different resource management and job scheduling systems are usually used within the supercomputing centers. It is necessary to be able to implement the management and scheduling of distributed multi-supercomputing centers based on different types of resource management systems. Since traditional distributed multi-supercomputing centers do not support global resource scheduling, users must specify queues when using resources, and the job scheduling system will schedule them within the queues. Users do not have a comprehensive understanding of the resource situation, so their choices are blind, resulting in low resource utilization.

[0057] Based on this, in various embodiments of the present application, a two-level scheduling strategy is introduced, by setting a virtual queue on a super-computing center (also known as a distributed supercomputing center) that is connected to multiple supercomputing centers in communication, the virtual queue can shield the difference in computing power resources of each supercomputing center, so that the super-computing center aggregates multiple distributed supercomputing centers into a super center, and implements the first-level scheduling of the supercomputing queues on each supercomputing center through the virtual queue, and then the supercomputing center selects the appropriate node based on the selected supercomputing queue to implement the second-level scheduling of computing power resources. Among them, the second-level scheduling can be implemented by the resource management system inside the supercomputing center. In this way, the unified management and scheduling of computing power resources of distributed multi-supercomputing centers can be achieved, and the purpose of performing supercomputing tasks based on cross-regional and cross-platform computing power resources can be achieved.

[0058] Before describing the resource scheduling method for computing power network in the embodiment of the present application, the data processing system involved in the embodiment of the present application is described as an example. Figure 1 As shown, the data processing system based on distributed multi-supercomputing centers includes: a supercomputing center 110, which is communicatively connected to multiple supercomputing centers 120. A virtual queue is configured on the supercomputing center 110, through which the supercomputing queues on each supercomputing center can be uniformly managed and scheduled.

[0059] The embodiment of the present application provides a resource scheduling method for a computing power network, which can be applied to the aforementioned supercomputing center (also called resource scheduling device), such as Figure 2 As shown, the method includes:

[0060] Step 201, in response to a job task, select a target supercomputing queue that matches the job resource requirement parameters from at least one virtual queue; wherein the job task includes the job resource requirement parameters, and each of the virtual queues is used to maintain a supercomputing queue of at least one supercomputing center with the same specification configuration.

[0061] Here, users can submit job tasks to the supercomputing center through their terminal devices or submit job tasks in the job submission interface of the supercomputing center. The job tasks can be understood as supercomputing tasks, for example, including but not limited to: planetary simulation, drug molecule design, gene analysis and other supercomputing tasks.

[0062] Exemplarily, a job task may include a job name and job resource requirement parameters, so that the supercomputing center can obtain the job resource requirement parameters of the job task. For example, the job resource requirement parameters may include but are not limited to: number of CPU cores, storage space, acceleration card information, etc.

[0063] Exemplarily, the supercomputing center can generate a virtual queue based on the specification configuration of the supercomputing queues of each supercomputing center, that is, put the supercomputing queues with the same specification configuration into the same virtual queue, and then establish a mapping relationship between the virtual queue and the supercomputing queues with the same specification configuration in one or more supercomputing centers, and can implement the management and scheduling of the supercomputing arrays with the same specification configuration in each supercomputing center based on the virtual queue. Here, the specification configuration of the supercomputing queue can be determined based on one or more of the attribute information of the supercomputing queue, which is used to indicate the computing power resources required by the supercomputing queue. The attribute information may include, but is not limited to: CPU architecture, number of CPU cores, network type, and accelerator card type.

[0064] In an application example, the mapping relationship between the virtual queue and the supercomputing queue is as follows: Figure 3 As shown. For example, the naming convention of the supercomputing queues stored in the virtual queue is as follows:

[0065] v[virtual queue number]-c[supercomputing center name]-q[supercomputing queue name]

[0066] In this way, the supercomputing center and the virtual queue to which the supercomputing queue belongs can be determined based on the naming of the supercomputing queue in the virtual queue, and a mapping relationship between the virtual queue and the supercomputing queues on each supercomputing center can be established.

[0067] Exemplarily, based on a set scheduling policy (eg, a scheduling policy with optimal performance), a target supercomputing queue whose specification configuration can meet the job resource requirements of the job task can be selected from the virtual queue.

[0068] Step 202: Send the job task to the supercomputing center where the target supercomputing queue is located.

[0069] It is understandable that after determining the target supercomputer queue, the supercomputing center can send the job task to the supercomputing center where the target supercomputer is located. After receiving the job task, the supercomputing center can perform secondary scheduling based on the internal scheduling system, select a suitable node to execute the job task, and obtain the job data.

[0070] Step 203: Receive the job data returned by the supercomputing center where the target supercomputing queue is located.

[0071] Here, the supercomputing center can receive the job data returned by the supercomputing center where the target supercomputing queue is located.

[0072] Step 204: Generate a job result of the job task based on the job data.

[0073] Here, the supercomputing center can generate the job results of the job tasks based on the job data returned by the supercomputing center, and send the job results to the user's terminal device or display them locally.

[0074] It can be understood that the embodiments of the present application can centrally manage and schedule the supercomputing queues of multiple supercomputing centers based on virtual queues, thereby achieving the purpose of performing supercomputing tasks based on centralized management and scheduling of cross-regional and cross-platform computing power cluster resources. This is not only flexible and convenient, but can also improve the resource utilization of each supercomputing center without the user having to fully understand the computing power resource situation of each supercomputing center.

[0075] For example, if the number of matching target supercomputing queues is one, the supercomputing center can directly use the job data returned by the supercomputing center as the job result of the job task.

[0076] In some embodiments, the supercomputing center can divide the job task into multiple job subtasks, and determine the target supercomputing queues that match each job subtask, and receive the job data returned by multiple target supercomputing queues. The supercomputing center can perform association operations on multiple job data to obtain the job result of the job task. It can be understood that in the embodiment of the present application, the number of matching target supercomputing queues can be one or more, and the embodiment of the present application does not limit this. Exemplarily, the job task also includes: a job script for indicating job execution logic and / or job parameters. Before sending the job task to the supercomputing center where the target supercomputing queue is located, the method also includes:

[0077] Detect whether the job script has information including but not limited to queue information indicating a supercomputing queue for executing the job task; if so, remove the queue information and other designated resource information in the job script.

[0078] It should be noted that if the supercomputing center detects that the job script in a job task contains specified resource information such as queue information of the supercomputing queue that executes the job task, the job script needs to be modified to remove the specified resource information such as the queue information in the job script. Only in this way can the target supercomputing queue selected by the method of the embodiment of the present application be used to execute the job task.

[0079] It can be understood that the method of the embodiment of the present application relies on virtual queues to achieve unified management and scheduling of computing resources in distributed multi-supercomputing centers. Based on this, the method of the embodiment of the present application requires full life cycle management of the virtual queues in the super supercomputing center.

[0080] Exemplarily, the method further includes:

[0081] receiving a first request sent by a supercomputing center, where the first request is used to add a supercomputing queue to be added to a virtual queue, and the first request carries attribute information of the supercomputing queue to be added;

[0082] Generate a specification parameter for uniquely indicating the specification configuration of the supercomputing queue to be added based on the attribute information;

[0083] Based on the specification parameters, determine whether there is a virtual queue with the same specification configuration in the established virtual queue. If so, add the supercomputing queue to be added to the virtual queue with the same specification configuration. If not, create a virtual queue with the specification configuration corresponding to the specification parameters, and add the supercomputing queue to be added to the newly created virtual queue.

[0084] In this way, the supercomputing center can, based on the first request of the supercomputing center, place supercomputing queues with the same specification configuration into the same virtual queue, and then establish a mapping relationship between the virtual queue and the supercomputing queues with the same specification configuration in one or more supercomputing centers. The management and scheduling of supercomputing arrays with the same specification configuration in each supercomputing center can be realized based on the virtual queue.

[0085] Exemplarily, the generating, based on the attribute information, a specification parameter for uniquely indicating the specification configuration of the supercomputing queue to be added includes:

[0086] extracting specified information from the attribute information based on a set extraction rule;

[0087] A hash operation is performed on the designated information based on a hash algorithm, and the obtained hash value is used as a specification parameter indicating the specification configuration of the supercomputing queue to be added.

[0088] Here, based on the set extraction rules, one or more of the attribute information of the supercomputing queue can be extracted to obtain the target text (i.e., the aforementioned specified information), and the target text can be hashed based on the hash algorithm to obtain a unique hash value, that is, the hash value is obtained based on the specific combination of the target text and the properties of the hash function, and can uniquely indicate the specification configuration of the supercomputing queue. In this way, a virtual queue with an equal hash value can be matched based on the hash value of the supercomputing queue to be added. If it exists, the virtual queue is added. If it does not exist, a virtual queue with a specification configuration corresponding to the unmatched hash value is created, and the supercomputing queue to be added is added to the newly created virtual queue.

[0089] Exemplarily, the method further includes:

[0090] receiving a second request sent by the supercomputing center, where the second request is used to indicate that a set supercomputing queue on the supercomputing center is destroyed;

[0091] The set supercomputing queue that is destroyed based on the second request is deleted from the established virtual queues.

[0092] It can be understood that after receiving the second request from the supercomputing center, the supercomputing center can determine the destroyed supercomputing queue on the supercomputing center based on the second request, and immediately release the mapping relationship between the virtual queue and the destroyed supercomputing queue. In this way, subsequent job tasks will no longer be scheduled to the destroyed supercomputing queue.

[0093] Exemplarily, the method further includes:

[0094] Check whether the established virtual queue has a situation where the supercomputing queue is empty. If so, destroy the corresponding virtual queue.

[0095] It is understandable that if the supercomputing center detects that the supercomputing queue in the virtual queue is empty, the virtual queue can be automatically destroyed. In this way, the automatic management of the full life cycle of the virtual queue is completed.

[0096] Exemplarily, the method further includes:

[0097] Obtain the resource status of each supercomputing center and / or the load status of the supercomputing queues on each supercomputing center;

[0098] The step of selecting a target supercomputing queue that matches the job resource requirement parameter from at least one virtual queue includes:

[0099] Selecting an initial supercomputing queue whose specification configuration meets the job requirement parameters from at least one virtual queue;

[0100] A target supercomputing queue whose resource status and / or load status meets the requirements is selected from the initial supercomputing queue based on the set scheduling policy.

[0101] Here, the resource status of the supercomputing center can represent the current resource occupancy of the supercomputing center, and the load status of the supercomputing queue can represent the actual load of the supercomputing queue. In this way, the supercomputing center can select a target supercomputing queue whose resource status and / or load status meets the requirements from the initial supercomputing queue based on the set scheduling strategy.

[0102] It should be noted that the process of selecting the target supercomputing queue by the supercomputing center can be understood as a first-level scheduling process. The first-level scheduling scheme can support multiple scheduling strategies to meet the user's flexibility setting requirements. For example, the multiple scheduling strategies can include but are not limited to: a first strategy that prioritizes resource status matching, a second strategy that prioritizes load status matching, and a third strategy that balances resource status and load status.

[0103] It can be understood that in the embodiment of the present application, the virtual queue of the super supercomputing center is a high-level abstraction of computing power resources. The computing power resources can be uniformly managed and scheduled through the virtual queue, providing users with imperceptible resource management and scheduling services; in addition, the embodiment of the present application introduces a two-level scheduling architecture to realize hierarchical scheduling of computing power resources, wherein the first-level scheduling matches the target supercomputing queue in the appropriate virtual queue, supports multiple scheduling strategies, and can flexibly configure the scheduling strategy; the second-level scheduling selects the appropriate node, which is completed by the resource management software within the supercomputing center.

[0104] The present application is further described in detail below in conjunction with an application example.

[0105] Figure 4 FIG. 1 is a schematic diagram of the logical architecture for managing and scheduling computing resources of distributed multi-supercomputing centers in this application embodiment. Figure 4 As shown, the logical architecture includes three main components: resource manager, primary scheduler and secondary scheduler.

[0106] Among them, the resource manager is equipped with a resource agent in each supercomputing center, which integrates the supercomputing queue resources through the resource agent, establishes a virtual queue, and maintains the mapping relationship between the virtual queue and the supercomputing queue. The first-level scheduler matches the appropriate supercomputing queue according to the specification configuration of the virtual queue, can support multiple scheduling methods, and can be flexibly configured. The second-level scheduler is scheduled through the internal resource management system of the supercomputing center, comprehensively considering the demand for computing resources of the job or process. The supercomputing center and its connected multiple supercomputing centers can achieve more efficient, flexible and unified resource management through the collaborative work of the three components of the resource manager, the first-level scheduler and the second-level scheduler and the supporting components (i.e., the resource agent equipped by the supercomputing center).

[0107] like Figure 5 As shown, in this application embodiment, the collaboration process based on the above three components specifically includes:

[0108] Step 501, submitting the job task.

[0109] Here, the user uploads the job task, such as the job script and related data, to the supercomputing center through the job submission interface or interface.

[0110] Step 502: Obtain a global resource view.

[0111] Here, the supercomputing center obtains a global resource view from the resource manager, which includes information such as the mapping relationship between virtual queues and supercomputing queues, the load status of the supercomputing queues, and the resource status of the supercomputing center.

[0112] Step 5031, perform first-level scheduling.

[0113] Here, the job controller of the supercomputing center passes the job demand information (i.e., the aforementioned job resource demand parameters) and the global resource view to the first-level scheduler. The first-level scheduler matches the virtual queue and the target supercomputing queue according to the scheduling strategy and generates the first-level scheduling result.

[0114] Step 5032, return the scheduling result.

[0115] Here, the first-level scheduler returns the first-level scheduling result to the job controller.

[0116] Step 5041, perform secondary scheduling.

[0117] Here, the job controller submits the job task to the supercomputing center where the target supercomputing queue is located for secondary scheduling based on the first-level scheduling result, that is, based on the target supercomputing queue.

[0118] Step 5042, return the job data.

[0119] Here, the supercomputing center where the target supercomputing queue is located performs secondary scheduling of the job tasks, that is, scheduling according to the resource usage of the target supercomputing queue, selecting the appropriate node to execute the job tasks, obtaining the job data and returning it to the job controller.

[0120] Step 505, returning the operation result.

[0121] Here, the job controller can obtain the job results based on the job data returned by the supercomputing center and return the job results to the user.

[0122] It should be noted that the solution of this application embodiment mainly involves the following three aspects: establishment of a mapping relationship between a virtual queue and a supercomputing queue, full life cycle management of a virtual queue, and a two-level scheduling solution based on a virtual queue. The above aspects are exemplarily described below:

[0123] 1. Mapping method between virtual queue and supercomputing queue

[0124] In order to better manage the supercomputing queues in different supercomputing clusters, it is necessary to abstract the supercomputing queues and build virtual queues based on the supercomputing queues. A virtual queue is composed of supercomputing queues with the same specifications in one or more supercomputing centers. Therefore, it is necessary to establish a complete mapping relationship between virtual queues and supercomputing queues, such as Figure 3 The mapping relationship shown.

[0125] Exemplarily, the naming convention of the supercomputing queues stored in the virtual queue is as follows: v[virtual queue number]-c[supercomputing center name]-q[supercomputing queue name].

[0126] Exemplarily, the mapping relationship between the virtual queue and the supercomputing queue may be based on a hash mapping algorithm, and the specific process is as follows:

[0127] 1) Obtain supercomputing queue attributes: Extract relevant attribute information from the supercomputing queue, including CPU architecture, number of CPU cores, network type, and accelerator card type.

[0128] 2) Constructing the target text: Based on the above attribute information, a target text is constructed according to the set rules and format. The construction method is not limited. This target text is unique and is composed of a specific combination of the above attributes. It is designed to ensure the uniqueness of each supercomputing queue in the virtual queue.

[0129] 3) Hash mapping algorithm: The target text is calculated using the hash mapping algorithm to obtain a unique hash value. This hash value is based on the specific combination of the target text and the properties of the hash function.

[0130] 4) Find a matching virtual queue: Find a virtual queue with the same hash value as the existing virtual queues. This step is to ensure the unique mapping relationship of the supercomputing queue in the virtual queue.

[0131] 5) Establishing a mapping relationship: If a matching virtual queue is found, a mapping relationship between the supercomputing queue and the virtual queue is established. In this way, the resource manager can access the resources provided by the supercomputing queue through this mapping relationship.

[0132] 2. Full Lifecycle Management of Virtual Queues

[0133] Here, the virtual queue is constructed based on the supercomputing queue, and the creation and destruction process is closely related to the creation and destruction of the supercomputing queue. The creation and destruction process of the virtual queue is exemplarily described below.

[0134] like Figure 6 As shown, the creation of a virtual queue may include:

[0135] Step 601: The supercomputing queue applies to be merged into the virtual queue.

[0136] Here, the supercomputing center can receive a first request sent by the supercomputing center, and the first request is used to add the supercomputing queue to be joined to the virtual queue. The first request carries the attribute information of the supercomputing queue to be joined, for example, it may include the queue name, the supercomputing center to which it belongs, and attribute information related to the specification configuration, etc.

[0137] Step 602 , determine whether there is a virtual queue with the same specification configuration, if not, execute steps 603 and 604 , if yes, execute step 604 .

[0138] Step 603: Create a virtual queue with the specifications of the supercomputing queue to be added.

[0139] Step 604: Establish a mapping relationship between the virtual queue and the supercomputing queue to be added.

[0140] It can be understood that the supercomputing center can determine whether there is a virtual queue with the same specification configuration as the supercomputing queue to be added based on the aforementioned hash mapping algorithm. If so, execute step 604 to establish a mapping relationship between the supercomputing queue to be added and the matching virtual queue. If not, execute step 603 to automatically create a virtual queue with the specification configuration, and execute step 604 to establish a mapping relationship between the supercomputing queue to be added and the newly created virtual queue.

[0141] like Figure 7 As shown, the destruction of a virtual queue may include:

[0142] Step 701: The supercomputing queue submits a destruction application.

[0143] Here, the supercomputing center receives a second request sent by the supercomputing center, where the second request is used to indicate that a set supercomputing queue on the supercomputing center is destroyed.

[0144] Step 702: Release the mapping relationship between the virtual queue and the supercomputing queue.

[0145] Here, after receiving the second request from the supercomputing center, the supercomputing center can determine the destroyed supercomputing queue on the supercomputing center based on the second request, and immediately release the mapping relationship between the virtual queue and the destroyed supercomputing queue. In this way, subsequent job tasks will no longer be scheduled to the destroyed supercomputing queue.

[0146] Step 703, determine whether the supercomputing queue under the virtual queue is empty, if so, execute step 704 and end, if not, end directly.

[0147] Step 704, destroy the virtual queue.

[0148] It is understandable that if the supercomputing center detects that the supercomputing queue in the virtual queue is empty, the virtual queue can be automatically destroyed.

[0149] 3. Two-level scheduling scheme based on virtual queues

[0150] In the related art, the supercomputing job execution mode is often to first select the supercomputing queue in the corresponding supercomputing cluster and then submit the job task. Users need to fully understand the queue resources, which increases the user operation threshold and easily leads to low resource utilization of the supercomputing center. This application embodiment can implement two-level scheduling of distributed multi-supercomputing centers based on virtual queues, such as Figure 8As shown, the two-level scheduling operation may include:

[0151] Step 801, submitting the job task to the supercomputing center.

[0152] Here, users upload the job script and related input data to the supercomputing center through the job submission interface or interface.

[0153] Step 802, determine whether the job script needs to be modified, if so, execute step 803 and then step 804, if not, execute step 804.

[0154] Here, the supercomputing center detects the job script to see whether the job script needs to be modified; if modification is required, step 804 is executed after the job script is modified to enter the job scheduling system; if modification is not required, step 804 is executed to directly enter the job scheduling system.

[0155] Step 803, modify the job script.

[0156] Here, if the supercomputing center detects that the job script in the job task contains but is not limited to queue information indicating the supercomputing queue for executing the job task, the job script needs to be modified to remove the queue information and other specified resource information in the job script, and then execute step 804.

[0157] Step 804, enter the job scheduling system.

[0158] Here, the supercomputing center initiates the two-level scheduling scheme of the embodiment of the present application based on the job task.

[0159] Step 805: Filter out virtual queues that meet the conditions according to computing resource requirements.

[0160] Here, based on the specification configuration of the virtual queue, the virtual queue that meets the computing resource requirements of the job task can be screened out.

[0161] Step 806, obtaining resource information and workload in the virtual queue.

[0162] Here, you can obtain the resource status of the supercomputing center in the virtual queue and the load status of the supercomputing queue.

[0163] Step 807: Provide a first-level scheduling result according to the set strategy.

[0164] It can be understood that the above steps 805 to 807 correspond to a first-level scheduling plan, which can support multiple scheduling strategies and meet the user's flexibility setting requirements. The first-level scheduling results can be obtained by the first-level scheduler comprehensively considering resource allocation and load conditions, and matching the target supercomputing queue according to the scheduling strategy.

[0165] Step 808: According to the first-level scheduling result, specify the appropriate supercomputing cluster and supercomputing queue.

[0166] Here, the job task can be submitted to the supercomputing queue of the designated supercomputing center according to the first-level scheduling results, and the scheduling system inside the supercomputing center will perform second-level scheduling and select the appropriate node for execution.

[0167] Step 809: The supercomputing cluster gives a secondary scheduling result according to the node load in the supercomputing queue and the computing resource demand according to the scheduling strategy.

[0168] Step 810: The supercomputing cluster assigns the job to a specific node to execute the job.

[0169] Step 811: The supercomputing center returns the operation results to the user.

[0170] It is understandable that after the job is executed, the supercomputing center can return the job data to the supercomputing center, and the supercomputing center will generate the job results and feed back the job results to the user.

[0171] In order to implement the method of the embodiment of the present application, the embodiment of the present application also provides a resource scheduling device for a computing power network. The resource scheduling device for a computing power network corresponds to the above-mentioned resource scheduling method for a computing power network, and each step in the above-mentioned embodiment of the resource scheduling method for a computing power network is also fully applicable to the embodiment of the resource scheduling device for a computing power network.

[0172] like Fig. 9 As shown, the resource scheduling device for computing power network includes: a scheduling module 901, a sending module 902, a receiving module 903 and a generating module 904. The scheduling module 901 is used to select a target supercomputing queue that matches the job resource requirement parameters from at least one virtual queue in response to a job task; wherein the job task includes the job resource requirement parameters, and each virtual queue is used to maintain a supercomputing queue of at least one supercomputing center with the same specification configuration; the sending module 902 is used to send the job task to the supercomputing center where the target supercomputing queue is located; the receiving module 903 is used to receive the job data returned by the supercomputing center where the target supercomputing queue is located; and the generating module 904 is used to generate the job result of the job task based on the job data.

[0173] Exemplarily, the job task also includes: a job script for indicating job execution logic and / or job parameters, and the resource scheduling device also includes: a detection processing module 905, which is used to detect whether the job script has information including but not limited to queue information indicating the supercomputing queue that executes the job task before sending the job task to the supercomputing center where the target supercomputing queue is located; if so, remove the queue information and other specified resource information in the job script.

[0174] Exemplarily, the resource scheduling device further includes: a resource management module 906, which is used to:

[0175] receiving a first request sent by a supercomputing center, where the first request is used to add a supercomputing queue to be added to a virtual queue, and the first request carries attribute information of the supercomputing queue to be added;

[0176] Generate a specification parameter for uniquely indicating the specification configuration of the supercomputing queue to be added based on the attribute information;

[0177] Based on the specification parameters, determine whether there is a virtual queue with the same specification configuration in the established virtual queue. If so, add the supercomputing queue to be added to the virtual queue with the same specification configuration. If not, create a virtual queue with the specification configuration corresponding to the specification parameters, and add the supercomputing queue to be added to the newly created virtual queue.

[0178] Exemplarily, the generating, based on the attribute information, a specification parameter for uniquely indicating the specification configuration of the supercomputing queue to be added includes:

[0179] extracting specified information from the attribute information based on a set extraction rule;

[0180] A hash operation is performed on the designated information based on a hash algorithm, and the obtained hash value is used as a specification parameter indicating the specification configuration of the supercomputing queue to be added.

[0181] Exemplarily, the resource management module 906 is further configured to:

[0182] receiving a second request sent by the supercomputing center, where the second request is used to indicate that a set supercomputing queue on the supercomputing center is destroyed;

[0183] The set supercomputing queue that is destroyed based on the second request is deleted from the established virtual queues.

[0184] Exemplarily, the resource management module 906 is further configured to:

[0185] Check whether the established virtual queue has a situation where the supercomputing queue is empty. If so, destroy the corresponding virtual queue.

[0186] Exemplarily, the resource management module 906 is further used to: obtain the resource status of each supercomputing center and / or the load status of the supercomputing queue on each supercomputing center; the scheduling module 901 is specifically used to:

[0187] Selecting an initial supercomputing queue whose specification configuration meets the job requirement parameters from at least one virtual queue;

[0188] A target supercomputing queue whose resource status and / or load status meets the requirements is selected from the initial supercomputing queue based on the set scheduling policy.

[0189] It can be understood that the scheduling module 901 corresponds to the aforementioned first-level scheduler, the sending module 902, the receiving module 903 and the generating module 904 correspond to the aforementioned job controller, and the resource management module 906 corresponds to the aforementioned resource manager.

[0190] In actual application, the scheduling module 901, the sending module 902, the receiving module 903, the generating module 904, the detecting and processing module 905 and the resource management module 906 can be implemented by a processor in the resource scheduling device. Of course, the processor needs to run the computer program in the memory to realize its function.

[0191] It should be noted that: the resource scheduling device provided in the above embodiment only uses the division of the above program modules as an example when performing resource scheduling. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the resource scheduling device provided in the above embodiment and the resource scheduling method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0192] Based on the hardware implementation of the above-mentioned program modules, and in order to implement the method of the embodiment of the present application, the embodiment of the present application also provides a resource scheduling device for a computing power network. Fig.10 Only an exemplary structure of the resource scheduling device is shown, not the entire structure, and can be implemented as needed. Fig.10 Partial or complete structure shown.

[0193] like Fig.10As shown, the resource scheduling device 1000 provided in the embodiment of the present application includes: at least one processor 1001, a memory 1002, a user interface 1003 and at least one network interface 1004. The various components in the resource scheduling device 1000 are coupled together through a bus system 1005. It can be understood that the bus system 1005 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 1005 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Fig.10 Various buses are labeled as bus system 1005 .

[0194] The user interface 1003 may include a display, a keyboard, a mouse, a trackball, a click wheel, keys, buttons, a touch pad or a touch screen.

[0195] The memory 1002 in the embodiment of the present application is used to store various types of data to support the operation of the resource scheduling device. Examples of such data include: any computer program used to operate on the resource scheduling device.

[0196] The resource scheduling method disclosed in the embodiment of the present application can be applied to the processor 1001, or implemented by the processor 1001. The processor 1001 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the resource scheduling method can be completed by the hardware integrated logic circuit or software instructions in the processor 1001. The above-mentioned processor 1001 can be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 1001 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiment of the present application. The general-purpose processor can be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 1002. The processor 1001 reads the information in the memory 1002 and completes the steps of the resource scheduling method provided in the embodiment of the present application in combination with its hardware.

[0197] In an exemplary embodiment, the resource scheduling device can be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), field programmable gate array (FPGA), general processor, controller, microcontroller (MCU), microprocessor, or other electronic components to execute the aforementioned method.

[0198] It can be understood that the memory 1002 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus random access memory (DRRAM).The memories described in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.

[0199] In an exemplary embodiment, the embodiment of the present application further provides a resource scheduling system for a computing power network, including a resource scheduling device and multiple supercomputing centers described in the embodiment of the application, and the resource scheduling device is communicatively connected with the multiple supercomputing centers. The resource scheduling device can be understood as the aforementioned supercomputing center, which can execute the resource scheduling method of the embodiment of the present application, and the details can be referred to the aforementioned description, which will not be repeated here.

[0200] In an exemplary embodiment, the present application also provides a computer storage medium, which can be a computer-readable storage medium, for example, a memory 1002 storing a computer program, and the computer program can be executed by a processor 1001 of a resource scheduling device to complete the steps described in the method of the present application embodiment. The computer-readable storage medium can be a memory such as a ROM, a PROM, an EPROM, an EEPROM, a Flash Memory, a magnetic surface memory, an optical disk, or a CD-ROM.

[0201] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0202] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.

[0203] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A resource scheduling method for computing power network, characterized in that: include: In response to a job task, a target supercomputing queue matching the job resource requirement parameter is selected from at least one virtual queue; wherein the job task includes the job resource requirement parameter, and each of the virtual queues is used to maintain a supercomputing queue of at least one supercomputing center having the same specification configuration; Sending the job task to the supercomputing center where the target supercomputing queue is located; Receiving the job data returned by the supercomputing center where the target supercomputing queue is located; A work result of the work task is generated based on the work data.

2. The method according to claim 1, characterized in that The method further comprises: receiving a first request sent by a supercomputing center, where the first request is used to add a supercomputing queue to be added to a virtual queue, and the first request carries attribute information of the supercomputing queue to be added; Generate a specification parameter for uniquely indicating the specification configuration of the supercomputing queue to be added based on the attribute information; Based on the specification parameters, determine whether there is a virtual queue with the same specification configuration in the established virtual queue. If so, add the supercomputing queue to be added to the virtual queue with the same specification configuration. If not, create a virtual queue with the specification configuration corresponding to the specification parameters, and add the supercomputing queue to be added to the newly created virtual queue.

3. The method according to claim 2, characterized in that The generating, based on the attribute information, a specification parameter for uniquely indicating the specification configuration of the supercomputing queue to be added includes: extracting specified information from the attribute information based on a set extraction rule; A hash operation is performed on the designated information based on a hash algorithm, and the obtained hash value is used as a specification parameter indicating the specification configuration of the supercomputing queue to be added.

4. The method according to claim 1, characterized in that The method further comprises: receiving a second request sent by the supercomputing center, where the second request is used to indicate that a set supercomputing queue on the supercomputing center is destroyed; The set supercomputing queue to be destroyed based on the second request is deleted from the established virtual queues.

5. The method according to claim 4, characterized in that The method further comprises: Check whether the established virtual queue has a situation where the supercomputing queue is empty. If so, destroy the corresponding virtual queue.

6. The method according to claim 1, characterized in that The method further comprises: Obtaining the resource status of each supercomputing center and / or the load status of the supercomputing queues on each supercomputing center; The step of selecting a target supercomputing queue that matches the job resource requirement parameter from at least one virtual queue includes: Selecting an initial supercomputing queue whose specification configuration meets the job requirement parameters from at least one virtual queue; A target supercomputing queue whose resource status and / or load status meets the requirements is selected from the initial supercomputing queue based on the set scheduling policy.

7. The method according to claim 1, characterized in that The job task further includes: a job script for indicating job execution logic and / or job parameters. Before sending the job task to the supercomputing center where the target supercomputing queue is located, the method further includes: Detect whether the job script has queue information indicating a supercomputing queue for executing the job task; if so, remove the queue information in the job script.

8. A resource scheduling device for a computing network, characterized in that: include: A scheduling module, configured to select, in response to a job task, a target supercomputing queue that matches the job resource requirement parameter from at least one virtual queue; wherein the job task includes the job resource requirement parameter, and each of the virtual queues is used to maintain a supercomputing queue of at least one supercomputing center with the same specification configuration; A sending module, used for sending the job task to the supercomputing center where the target supercomputing queue is located; A receiving module, used to receive the job data returned by the supercomputing center where the target supercomputing queue is located; A generating module is used to generate a job result of the job task based on the job data.

9. A resource scheduling device for computing power network, characterized in that: include: A processor and a memory for storing a computer program that can be executed on the processor, wherein: The processor is used to execute the steps of the method according to any one of claims 1 to 7 when running a computer program.

10. A data processing system for a computing network, characterized in that: It comprises the resource scheduling device as claimed in claim 9 and a plurality of supercomputing centers, wherein the resource scheduling device is communicatively connected with the plurality of supercomputing centers.

11. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.