Task resource allocation method and system
By generating computing tasks and matching node resources, the problem of limited computing resource allocation methods in the existing technology is solved, and the scenario adaptive resource allocation of computing tasks is realized, and the adaptability and efficiency of resource allocation are improved.
Patent Information
- Application Number
- CN202310671247.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-07
- Publication Date
- 2024-12-10
AI Technical Summary
In the prior art, the computing power orchestration and scheduling method is solidified into the template, resulting in limited allocation methods of computing power resources and poor adaptability, which cannot effectively meet diversified business needs.
By generating computing tasks, applying for available node resources according to business scenario needs, using scheduling information and strategies to match computing nodes, the allocation and processing of computing tasks are realized, and the scenario adaptability and efficiency of resource allocation are improved.
It realizes scenario adaptive and self-aware resource allocation of computing tasks, improves the adaptability and efficiency of computing resource allocation, and meets diversified business needs.
Smart Images

Figure CN119109986A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network technology, and in particular to a method and system for allocating resources for a task. Background Art
[0002] Computing power network is a new type of information infrastructure that allocates and flexibly schedules computing resources, storage resources, and network resources between clouds, networks, and edges based on business needs.
[0003] Computing power network orchestration and scheduling can be used to meet the diverse and customized computing network integration service needs. It can flexibly combine and integrate the atomic capabilities of computing power and network, design product service models, and solidify the required resources, services, policies and configurations in the form of templates, so as to achieve the generalization and standardization of factors such as processes and models, and realize the unified orchestration, deployment and guarantee of computing network services.
[0004] In related technologies, computing power orchestration and scheduling mainly creates the status of computing power resources and services in the network domain, thereby relying on network forwarding and customized templates to achieve computing power orchestration and scheduling at the network layer. Due to the limited combination of templates, the way of allocating computing power resources is limited and the adaptability is poor. Summary of the invention
[0005] To this end, the present invention provides a task resource allocation method and system to solve the problem of limited computing resource allocation methods and poor adaptability caused by solidifying computing power orchestration and scheduling in a template manner in the prior art.
[0006] In order to achieve the above-mentioned object, the first aspect of the present invention provides a method for allocating resources for a task, the method comprising: generating a corresponding computing task according to a service required by a client-side device in a business scenario, the computing task being used to indicate the resource requirements of the required service on a computing network in the business scenario;
[0007] Generate scheduling information for the computing task, and apply for available node resources according to the scheduling information, wherein the scheduling information is used to indicate task information of the computing task and corresponding scheduling strategy information;
[0008] Calculating node resource information that matches the scheduling strategy information and the task information to obtain node information of at least one computing node;
[0009] Allocating the computing task to a corresponding computing node according to the node information of the at least one computing node;
[0010] The computing task is processed using the allocated computing nodes to obtain the execution result of the computing task.
[0011] A second aspect of the present invention provides a task resource allocation system, the system comprising:
[0012] A service proxy module, used to generate corresponding computing tasks according to the services required by the client-side device in the business scenario, wherein the computing tasks are used to indicate the resource requirements of the required services on the computing network in the business scenario;
[0013] An orchestration center module, used to generate scheduling information of the computing task, and apply for available node resources according to the scheduling information, wherein the scheduling information is used to indicate task information of the computing task and corresponding scheduling strategy information;
[0014] A management center module, used to calculate node resource information matching the scheduling strategy information and the task information, and obtain node information of at least one computing node;
[0015] The orchestration center module is further configured to allocate the computing task to a corresponding computing node according to the node information of the at least one computing node;
[0016] The computing module is used to process the computing task using the allocated computing nodes to obtain the execution result of the computing task.
[0017] The present invention has the following advantages: According to the resource allocation method in the embodiment of the present invention, the service required by the client-side device in the business scenario can generate a computing task, and the computing task can be converted into the computing network resource demand of the service demand in the business scenario, so as to realize the scene adaptation and self-perception of the computing task to perform resource allocation and task processing of the computing power network, thereby improving the scene adaptability of computing power resource allocation and improving resource allocation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present invention, but do not constitute a limitation of the present invention.
[0019] Figure 1 A flowchart of a method for allocating resources for a task provided by an embodiment of the present invention;
[0020] Figure 2 A structural diagram of a resource allocation system for tasks provided by an embodiment of the present invention;
[0021] Figure 3 A detailed flow chart of a method for allocating resources for tasks of an exemplary embodiment provided by an embodiment of the present invention;
[0022] Figure 4 A structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0023] The specific implementation of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the present invention, and is not used to limit the present invention.
[0024] As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items.
[0025] The terms used in the present invention are only used to describe specific embodiments and are not intended to limit the present invention. As used in the present invention, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
[0026] When the terms “comprising” and / or “made of…” are used in the present invention, it specifies the existence of the stated features, integers, steps, operations, elements and / or components, but does not exclude the existence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0027] The embodiments of the present invention may be described with reference to plan views and / or cross-sectional views by way of ideal schematic views of the present invention. Therefore, the exemplary illustrations may be modified according to manufacturing techniques and / or tolerances.
[0028] Unless otherwise defined, all terms (including technical and scientific terms) used in the present invention have the same meaning as those commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and the present invention, and will not be interpreted as having an idealized or overly formal meaning unless the present invention clearly defines it as such.
[0029] In order to better understand the present invention, the resource allocation method and system for tasks according to embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that these embodiments are not intended to limit the scope of the present invention.
[0030] In a first aspect, an embodiment of the present invention provides a method for allocating resources for a task.
[0031] Figure 1 FIG. 4 is a flow chart showing a method for allocating resources for tasks according to an embodiment of the present invention. Figure 1 As shown, the method for allocating resources for tasks in an embodiment of the present invention includes the following steps.
[0032] S110, generating corresponding computing tasks according to the services required by the client-side device in the business scenario, where the computing tasks are used to indicate the resource requirements of the required services on the computing power network in the business scenario.
[0033] S120, generating scheduling information of the computing task, and applying for available node resources according to the scheduling information, wherein the scheduling information is used to indicate task information of the computing task and corresponding scheduling policy information.
[0034] S130, calculating node resource information that matches the scheduling strategy information and the task information, and obtaining node information of at least one computing node.
[0035] S140: Allocate computing tasks to corresponding computing nodes according to node information of at least one computing node.
[0036] S150, using the allocated computing nodes to process the computing tasks and obtain the execution results of the computing tasks.
[0037] According to the task resource allocation method of the embodiment of the present invention, the service required by the client-side device in the business scenario can generate a computing task, and convert the computing task into the computing network resource demand of the service demand in the business scenario, so as to realize the scenario adaptation and self-perception of the computing task to perform resource allocation and task processing of the computing power network, thereby improving the scenario adaptability of computing power resource allocation and improving resource allocation efficiency.
[0038] In some embodiments, step S110 may specifically include:
[0039] S11, matching the required service with the service template based on the service level agreement of the computing power network to obtain resource requirement information matching the required service, wherein the level agreement is used to define the resource requirements of the computing power network for the service required by the client-side device in the form of an agreement for different business scenarios;
[0040] In this step, the Service Level Agreement (SLA) is used to realize the function of converting task requirements into computing power and network requirements. As an implementation form, a contract or agreement signed by two parties, such as a computing network resource provider and a user on the client side, regulates the business relationship or part of the business relationship between the two parties.
[0041] The parameters agreed upon in the protocol are different for different scenarios. For example, in different scenarios, the commitments on indicators such as network availability, packet success rate, latency, jitter, and fault acceptance time are made to provide high-quality circuits and services for customer-side equipment, and the rights and obligations of both parties are regulated in the form of an agreement.
[0042] In some embodiments, the SLA agreement may be pre-set or applied temporarily.
[0043] S12, generating a corresponding computing task according to the network protocol content, service identifier and the matching resource requirement information of the client-side device; wherein the service identifier is used to indicate a service parameter of the corresponding service.
[0044] Exemplarily, the service identity (SID) may be identification information registered in the service contract of the computing network orchestration center when signing the computing network service. The SID may be used to indicate content parameters of the corresponding service, such as bandwidth, latency, computing requirements, priority, etc.
[0045] In this embodiment, tasks can be generated according to client-side requirements, and an SLA agreement can be reached by matching the requirements of the computing job with the computing network standard service template, that is, completing the translation of the computing network service capability required by the client, and realizing scene adaptation and self-perception.
[0046] In some embodiments, the step of generating the scheduling information of the computing task in step S120 may specifically include: S21, caching the computing task using the task cache queue; S22, generating the scheduling information of the computing task when the task queue is not empty.
[0047] In this embodiment, the task cache queue is a cache setting containing a task queue. When the task queue is not empty, a task scheduling queue is generated according to the tasks in the task queue to perform subsequent resource scheduling according to the policy template information of the signed contract.
[0048] In some embodiments, after step S150, the method further includes: S31, releasing the computing power resources of each computing node; S32, sending the execution result of the computing task to the client-side device; S33, in response to the client-side device receiving a confirmation message for the execution result, releasing the computing task from the task cache queue.
[0049] In this embodiment, after using the allocated computing node to process the computing task and obtaining the execution result of the computing task, the corresponding allocated node resources and the corresponding task information in the task cache queue can be released to complete the service required by the client-side device in the business scenario and the resource request for the computing network service.
[0050] In some embodiments, after step S32, the method further includes: receiving the service fee of the computing task sent by the client-side device; and synchronizing the service fee.
[0051] In this embodiment, in response to receiving the current service fee calculated by the client-side device, synchronous billing can be performed to complete the current calculation task.
[0052] The resource allocation method for tasks according to the embodiments of the present invention can adaptively and self-perceive the scenarios of computing tasks to perform resource allocation of the computing power network, complete dynamic allocation of tasks and resources through task parallelism and according to contract policy matching rules, and complete billing according to the execution of the tasks, thereby improving the scenario adaptability of computing power resource allocation and improving resource allocation efficiency.
[0053] The step division of the above methods is only for the purpose of clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this patent.
[0054] In a second aspect, an embodiment of the present invention provides a task resource allocation system.
[0055] Figure 2 FIG. 2 shows a schematic diagram of a task resource allocation system according to an embodiment of the present invention. Figure 2 As shown, the task resource allocation system 200 includes:
[0056] The service proxy module 210 is used to generate corresponding computing tasks according to the services required by the client-side device in the business scenario, and the computing tasks are used to indicate the resource requirements of the required services on the computing network in the business scenario;
[0057] The orchestration center module 220 is used to generate scheduling information of the computing task and apply for available node resources according to the scheduling information, wherein the scheduling information is used to indicate task information of the computing task and corresponding scheduling policy information;
[0058] The management center module 230 is used to calculate the node resource information matching the scheduling strategy information and the task information, and obtain the node information of at least one computing node;
[0059] The orchestration center module 220 is further configured to allocate the computing task to a corresponding computing node according to the node information of the at least one computing node;
[0060] The computing module 240 is used to process the computing task using the allocated computing nodes to obtain the execution result of the computing task.
[0061] In this embodiment, the task resource allocation system can generate computing tasks for the services required by the client-side device in the business scenario, and convert the computing tasks into computing network resource requirements for the service requirements in the business scenario, thereby realizing scenario adaptation and self-perception of the computing tasks to perform resource allocation and task processing of the computing power network, thereby improving the scenario adaptability of computing power resource allocation and improving resource allocation efficiency.
[0062] In some embodiments, a service agent (Agent) module may be installed in a client-side device. The service agent (Agent) may be called a computing network service agent and may be implemented as a hardware device or a software service.
[0063] In some embodiments, the service proxy module 210, when used to generate corresponding computing tasks according to the services required by the client-side device in the business scenario, is specifically used to:
[0064] Matching the required service with the service template of the computing power network to obtain resource requirement information matching the required service, wherein the service template is used to record the resource requirement of the predetermined service for the computing power network in the form of a template;
[0065] A corresponding computing task is generated according to the network protocol content, service identifier and the matching resource requirement information of the client-side device; wherein the service identifier is used to indicate the service parameters of the corresponding service.
[0066] In this embodiment, the service agent module 210 can generate tasks according to client-side requirements, and reach an SLA agreement by matching the requirements of the computing job with the computing network standard service template, that is, completing the translation of the computing network service capability required by the client and realizing scene adaptation and self-perception.
[0067] In some embodiments, the management center module 230 is also used to cache the computing task using the task cache queue after generating the corresponding computing task; the orchestration center module 220 is also used to generate scheduling information for the computing task when the task queue is not empty.
[0068] In this embodiment, the task cache queue is a cache setting containing a task queue. When the task queue is not empty, the management center module 230 sends the tasks in the task queue to the task scheduling queue. The orchestration center module 220 can generate scheduling information based on the task scheduling queue and perform subsequent resource scheduling based on the policy template information of the signed contract.
[0069] In some embodiments, the management center module 230 includes: a node release unit, which is used to release the computing power resources of each computing node after the computing task is processed by the allocated computing node and the execution result of the computing task is obtained; a result sending unit, which is used to send the execution result of the computing task to the client-side device; and a task release unit, which is used to release the computing task from the task cache queue in response to the client-side device's reception confirmation message of the execution result.
[0070] In this embodiment, after the management center module uses the allocated computing node to process the computing task and obtains the execution result of the computing task, it can release the corresponding allocated node resources and the corresponding task information in the task cache queue, thereby completing the service required by the client-side device in the business scenario and the resource request for the computing network service.
[0071] In some embodiments, the management center module 230 includes: a fee receiving unit, used to receive the service fee of the computing task sent by the client-side device after the execution result of the computing task is sent to the client-side device; and a fee synchronization unit, used to synchronize the service fee.
[0072] In this embodiment, the management center module may perform synchronous billing in response to receiving the service fee calculated by the client-side device to complete the calculation task.
[0073] The task resource allocation system according to the embodiment of the present invention can adaptively and self-perceive the scenario of the computing task to perform resource allocation of the computing power network, complete the dynamic allocation of tasks and resources through task parallelism and according to contract policy matching rules, and complete billing according to the execution of the task, thereby improving the scenario adaptability of computing power resource allocation and improving resource allocation efficiency.
[0074] For ease of understanding, Figure 3 Detailed flow chart showing resource allocation for tasks according to some exemplary embodiments of the present invention. Figure 3 As shown, the resource allocation system includes the following four management and execution modules: client-side device 10, management center module 230, orchestration center module 220 and calculation module 240.
[0075] In some scenarios, the client-side device 10 contains or has installed thereon a service agent module 210. In the description of the following embodiments, the service agent module may be referred to as a computing network service agent 210, the management center module 230 may be referred to as a computing power network management center 230, the orchestration center module 220 may be referred to as a computing power network orchestration and scheduling center 220, and the computing module 240 may be implemented as a computing node and a cluster 240.
[0076] In some embodiments, the service agent module 210 may include a computing power service demand sub-module and a demand escape sub-module (also referred to as an SLA service escape module); the management center module 230 contains a task queue manager Q and a registered computing power resource manager C, and the computing power network management center 230 can be used to save the computing power resource topology, perform computing power resource status notifications, and perform billing management and other operations; the computing power network orchestration and scheduling center 220 can rely on the network forwarding and control layer, and contain a scheduler (including a scheduler generating a queue), contract policy templates, calculation result queue cache and other functions.
[0077] The computing power network orchestration and scheduling center 220 can be used to manage scheduling policy templates (contract templates about scheduling policies), scheduler DISPATCH, etc., and can rely on the existing network forwarding layer and other functions to perform task scheduling management.
[0078] In some embodiments, resource allocation for the task may include the following steps.
[0079] S301, the service agent module 210 generates a computing task.
[0080] In this step, the computing network service agent 210 is running on the client-side device 10. The computing power service demand submodule of the computing network service agent 210 generates a task (JOB). The JOB contains the IP protocol content of the device (including IPV4 and IPV6), SID, and the computing network resource requirements of the task (the resource requirements of the computing power network in the business scenario for the service required by the task) escaped by the computing power service demand submodule.
[0081] In some embodiments, when serving customers, the computing power network embeds the computing network service agent to generate demand and bill, and uses the service ID to distinguish different parts. The SID is registered in the computing network management center.
[0082] In some embodiments, the demand generation module of the computing network service agent 210 can divide the task according to the task requirements and the SLA of the computing network service agreement, and generate one or more JOBs. The JOB contains the device IP content (including IPV4 and IPV6), SID, and the task computing network resource requirements escaped by the computing power service demand module, which is a computing vector or computing matrix.
[0083] S302, the JOB queue manager Q of the computing power network management center 230 saves the task.
[0084] JOB enters the JOB queue manager Q of the computing network management center 230. Among them, Q is a cache facility containing a task queue.
[0085] S303: Generate a scheduling queue.
[0086] In this step, when Q is not empty, the task enters the scheduler of the computing power network orchestration and scheduling center 220 and generates a scheduling queue DISPATCH.
[0087] Among them, DISPATCH contains JOB information, contracted policy template information, and distributed resource node information NODE. At this time, the NODE node is empty and the DISPATCH value is 0.
[0088] S304, apply for available node resources.
[0089] In this step, the scheduler of the computing power network orchestration and scheduling center 220 applies for available node resources from the computing resource manager C (a cache facility containing a list and status of all registered resources) of the computing power network management center 230.
[0090] S305, the computing power network management center 230 receives the application sent by the scheduler of the computing power network orchestration and scheduling center 220.
[0091] S306, calculating a suitable node information list.
[0092] In this step, the computing network management center 230 can calculate a node information list NODE suitable for the given node based on the policy information and application JOB information carried by DISPATCH, and NODE contains resource information and resource topology information.
[0093] S307, the computing power network management center 230 updates the resource notification information through the computing resource manager C and returns the node list.
[0094] S308, the computing power network management center 230 allocates NODE node resources according to the policy and contract service template.
[0095] In this step, the scheduler DISPATCH of the computing power network orchestration and scheduling center 220 completes NODE node allocation according to the allocated node resources.
[0096] In some embodiments, parallel computing and two-way dynamic matching of tasks and resources are achieved through resource matching of the scheduling queues DISPATCH and NODE of the computing network management center 230 and segmentation of computing needs of the client-side computing network service agent, as well as the orchestration and distribution of computing resources of the computing network orchestration center according to policy templates (service contract templates).
[0097] S309, executing task calculation.
[0098] In this step, when the DISPATCH value is not 0, the node or cluster is calculated according to the allocation of the NODE node, and the execution result is returned to the result list R of the computing network orchestration and scheduling center 220. The result information in the result list R includes JOB information, NODE information for executing the JOB, and returned result information.
[0099] S310, returning the execution result.
[0100] In this step, the computing power network orchestration and scheduling center 220 feeds back the NODE information in the result list R to the computing power network management center 230, and the computing power network management center 230 releases the corresponding NODE node.
[0101] In this step, the computing power network orchestration and scheduling center 220 can also feed back the JOB information and Result information in the result list R to the client-side device 10.
[0102] S311, the computing power network management center 230 updates the resource notification information.
[0103] S312, after receiving the result, the computing network service agent 210 of the client-side device 10 releases the local task queue cache.
[0104] Through the above steps S301-S312, a demand request can be completed.
[0105] S313, the network service agent 210 calculates the service fee.
[0106] S314, the computing power network management center 230 performs service evaluation and synchronous billing based on the completion status of the service contract.
[0107] In this step, the computing network management center 230 completes the service contract status evaluation and synchronous billing based on the information of the computing network service agent on the customer demand side, and the task is completed completely.
[0108] S315, perform service evaluation and synchronous billing.
[0109] In this step, service evaluation can be performed through the client-side computing network service agent and the computing network management center to implement a flexible billing model based on task requirements and completion status.
[0110] Through the task resource allocation method and system of the embodiments of the present invention, it is possible to generate computing tasks for the services required by client-side devices in business scenarios, and convert the computing tasks into computing network resource requirements for the service requirements in the business scenarios, thereby achieving scenario adaptation and self-perception of computing tasks to perform resource allocation and task processing of the computing power network, thereby improving the scenario adaptability of computing power resource allocation and improving resource allocation efficiency.
[0111] It should be clear that the present invention is not limited to the specific configurations and processes described in the above embodiments and shown in the figures. For the convenience and brevity of description, a detailed description of the known methods is omitted here, and the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, which will not be repeated here.
[0112] Figure 4 A structural diagram of an electronic device provided by an embodiment of the present invention.
[0113] Reference Figure 4 An embodiment of the present invention provides an electronic device, which includes: one or more processors 401; a memory 402, on which one or more programs are stored, and when the one or more programs are executed by one or more processors, the one or more processors implement a resource allocation method for any of the above tasks; one or more I / O interfaces 403, connected between the processor and the memory, and configured to implement information interaction between the processor and the memory.
[0114] Among them, the processor 401 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory 402 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH); the I / O interface (read-write interface) 403 is connected between the processor 401 and the memory 402, and can realize information interaction between the processor 401 and the memory 402, including but not limited to a data bus (Bus), etc.
[0115] In some embodiments, the processor 401 , the memory 402 , and the I / O interface 403 are connected to each other through a bus, and further connected to other components of the computing device.
[0116] In some embodiments, a resource allocation system may be run on the electronic device to implement the resource allocation method for the tasks in the above embodiments.
[0117] This embodiment also provides a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the resource allocation method for the task provided in this embodiment is implemented. To avoid repeated description, the specific steps of the resource allocation method for the task are not repeated here.
[0118] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the invented method described above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0119] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0120] Those skilled in the art will understand that although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features from different embodiments is meant to be within the scope of the present embodiment and to form different embodiments.
[0121] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present invention, but the present invention is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.
Claims
1. A method for allocating resources for a task, characterized in that: include: Generate a corresponding computing task according to the service required by the client-side device in the business scenario, wherein the computing task is used to indicate the resource demand of the required service on the computing network in the business scenario; Generate scheduling information for the computing task, and apply for available node resources according to the scheduling information, wherein the scheduling information is used to indicate task information of the computing task and corresponding scheduling strategy information; Calculating node resource information that matches the scheduling strategy information and the task information to obtain node information of at least one computing node; Allocating the computing task to a corresponding computing node according to the node information of the at least one computing node; The computing task is processed using the allocated computing nodes to obtain the execution result of the computing task.
2. The method according to claim 1, characterized in that The generating of corresponding computing tasks according to the services required by the client-side device in the business scenario includes: Matching the required service with the service template based on the service level agreement of the computing power network to obtain resource demand information matching the required service, wherein the level agreement is used to define the resource demand of the computing power network for the service required by the client-side device in the form of an agreement for different business scenarios; A corresponding computing task is generated according to the network protocol content, service identifier and the matching resource requirement information of the client-side device; wherein the service identifier is used to indicate the service parameters of the corresponding service.
3. The method according to claim 1, characterized in that The generating the scheduling information of the computing task includes: Utilizing a task cache queue to cache the computing task; When the task queue is not empty, the scheduling information of the computing task is generated.
4. The method according to claim 1, characterized in that: After the computing task is processed by the allocated computing node to obtain the execution result of the computing task, the method further includes: Release the computing power resources of each computing node; Sending the execution result of the computing task to the client-side device; In response to a reception confirmation message of the execution result from the client-side device, the computing task is released from the task cache queue.
5. The method according to claim 4, characterized in that After sending the execution result of the computing task to the client-side device, the method further includes: Receiving a service fee for the computing task sent by the client-side device; The service fee is synchronized.
6. A task resource allocation system, characterized in that: include: A service proxy module, used to generate corresponding computing tasks according to the services required by the client-side device in the business scenario, wherein the computing tasks are used to indicate the resource requirements of the required services on the computing network in the business scenario; An orchestration center module, used to generate scheduling information of the computing task, and apply for available node resources according to the scheduling information, wherein the scheduling information is used to indicate task information of the computing task and corresponding scheduling strategy information; A management center module, used to calculate node resource information matching the scheduling strategy information and the task information, and obtain node information of at least one computing node; The orchestration center module is further configured to allocate the computing task to a corresponding computing node according to the node information of the at least one computing node; The computing module is used to process the computing task using the allocated computing nodes to obtain the execution result of the computing task.
7. The system according to claim 6, characterized in that The service proxy module, when used to generate corresponding computing tasks according to the services required by the client-side device in the business scenario, is specifically used to: Matching the required service with the service template of the computing power network to obtain resource requirement information matching the required service, wherein the service template is used to record the resource requirement of the predetermined service for the computing power network in the form of a template; A corresponding computing task is generated according to the network protocol content, service identifier and the matching resource requirement information of the client-side device; wherein the service identifier is used to indicate the service parameters of the corresponding service.
8. The system according to claim 6, characterized in that The management center module is further used to cache the computing task using the task cache queue after generating the corresponding computing task; The orchestration center module is further used to generate scheduling information for the computing task when the task queue is not empty.
9. The system according to claim 6, characterized in that The management center module includes: A node release unit, configured to release the computing power resources of each computing node after the computing task is processed by the allocated computing node and an execution result of the computing task is obtained; A result sending unit, used for sending the execution result of the computing task to the client-side device; The task releasing unit is used to release the computing task from the task cache queue in response to a reception confirmation message of the execution result sent by the client-side device.
10. The system according to claim 9, characterized in that The management center module includes: A fee receiving unit, configured to receive the service fee of the computing task sent by the client-side device after the execution result of the computing task is sent to the client-side device; The fee synchronization unit is used to synchronize the service fee.
Citation Information
Patent Citations
Intelligent computing power scheduling method, device and system
CN113037786A
Heterogeneous computing device virtualization method and system
CN113434261A
Service computing power resource scheduling method, service computing power resource requesting method, node equipment and terminal
CN113810438A
SLA strategy processing method and device, server and service node
CN114629805A
Scheduling method, system and equipment containing edge network computing power resources and medium
CN115134371A
